Solved

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

Posted on 2004-09-03
9
358 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 75 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
 
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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
This article discusses how to create an extensible mechanism for linked drop downs.
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now