Solved

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

Posted on 2004-09-03
9
365 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

 
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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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

617 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