Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

checkbox and frameset help needed!

Status
Not open for further replies.

questhaven

Programmer
Mar 28, 2001
81
US
Hi there - I am trying to solve an issue. I am working on a page using frames (I know, it's the worst!) and I am trying to solve the following issue:

Ok - pretend that I am in the frame on the right side, and that there are checkboxes that were checked on that side have changed (these are being stored in arrays). However, rather then hitting submit, I hit a link on the left frame to go to a new page. I am trying to figure out a way to prompt/remind the user to hit submit and save the data in the right frame, before allowing them to change pages, but only if the checkboxes that were check have changed.

Does this even make sense? Any help would be very much appreciated!

- Michele
 
Hi Michele,

So basically, you need a hidden control, a sort of Boolean FormHasBeenTouched control. If any changes are made in that frame, it sets the FormHasBeenTouched control. Ordinary navigation (such as via links or buttons) via your buttons and controls automatically checks the status of the FormHasBeenTouched control. If == 1, then you halt the naviagtion and pop up a warning window.

Make sense?

Cheers,


[monkey] Edward [monkey]

"Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!" -- inventor of the cat door
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top