Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Enable Checkbox upon Scrollbar Reaching Bottom : Ensure user has read guidelines

Posted on 2004-09-03
9
Medium Priority
?
372 Views
Last Modified: 2008-02-01
I have an <iframe> that loads a page with all of my guidelines for the workplace.

Before being allowed to click on :
       _
      |_| I agree to the terms stated above.

I would like to make it mandatory that the user scroll to the bottom of the iframe (guidelines).

~Stu
0
Comment
Question by:stu215
  • 4
  • 3
  • 2
9 Comments
 
LVL 5

Accepted Solution

by:
darksinclair earned 300 total points
ID: 11973174
0
 
LVL 5

Expert Comment

by:darksinclair
ID: 11973263
unfortunately other than that entry or placing a check box at the end and asking them to select the box before they may proceed, there is no API or function in Javascript (or VB, or ASP that I've ever seen) that Can do this for you.
Sorry M8t,

Cheers,
0
 
LVL 10

Author Comment

by:stu215
ID: 11973272
Yea, I saw that one but was wondering if there was a way to detect the scrollbar reaching bottom / using iframes
because then it makes it easier to update the content i want displayed in the form page.

[ Will ensure that the person who is updating the guidelines doesnt mess up my programming by having them work with just a text file ]

~Stu
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 8

Expert Comment

by:a_twixt_in_the_tale
ID: 11974358
cant u hv the chkbox after the guidelines? ;)

guide ---------
guide ---------
guide ---------
guide ---------
guide ---------
guide ---------
[ ] i agree to the above lines

:)
Don
0
 
LVL 8

Expert Comment

by:a_twixt_in_the_tale
ID: 11974371
if u are using asp u can just include the text file and then response.write ur checkbox
0
 
LVL 10

Author Comment

by:stu215
ID: 11974889
I do have the checkbox after the guidelines however I want the user to scroll to the bottom of them and then activate the box.

Problem = How to determine when the scrollbar is at absolute bottom & to activate my function ChkStatus(); which will activate or de-activate the checkbox.

How it looks :
-------------------------------------------------------------------------------------------------------------
<tr bgcolor="CCCCCC"><td><b>Section D: Standard Operating Procedures</b></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td><b>You MUST read (scroll to the bottom) of the following guidelines to activate the checkbox below:</b></td></tr>
<tr>
      <td>
      <ul>
      <iframe frameborder="1" height="150" width="652" scrolling="yes" src="Operating_Procedures.txt"></iframe>
      <br><br>
      <input name="StdOps" type="checkbox" disabled="true" value="Yes">
      <b>I agree to adhere to the guidelines stated above.</b>
      </ul>
      </td>
</tr>
-------------------------------------------------------------------------------------------------------------

Ive modified the thing from the link Darksinclair put up (which works) by pasting my "OperatingProcedures" file in place of the "BLAHBLAHBLAH"  and by adding a function to activate/de-activate the box,  but id really like to be able to keep "OperatingProcedures" as a seperate file so that it can be modified by people with no programming experience.

Would mean less upkeep for me...

~Stu
0
 
LVL 5

Expert Comment

by:darksinclair
ID: 12002308
What you'd need then is to put "OperatingProcedures in its own file and include that file as it is.. So simple plain text in the OperatingProcedures file and then include it in that frame.  in order to minimize the upkeep, if you have an administrator log in, set up a text editor being able to modify that file and save the changes to the file.  I've never done this in Javascript... but it should be fairly simple in whatever other language your writing in.

Cheers M8t,

Pf
0
 
LVL 10

Author Comment

by:stu215
ID: 12007028
They have access to a specific folder on the server (IIS) so they can modify stuff in the one folder they have access to with whatevr editor they please.

I dont know how to determine when the scrollbar is at the bottom of that (frame or whatevr i put it in) to be able to have my script enable / disable the checkbox ...

~Stu :-P
0
 
LVL 5

Expert Comment

by:darksinclair
ID: 12010716
stu215, I do not believe there is a control event for when someone moves the scrollbar.

Sorry mate.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question