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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Thoughts on JavaScript for prompt to save data 1

Status
Not open for further replies.

clanm

Programmer
Dec 26, 2005
237
US
I know that some clients turn off JavaScripting, so I was thinking about keeping the script on the server and having two buttons:
Close w/o saving data
Close w/ saving data

...or something to this affect. It would be nice to have a pop-up or prompt that says "do you want to save you data?", but I want to ensure they'll see it.

I know you can see if they have the option of Javascript turned off (I believe), then you can redirect them to the Javascript_off.aspx page...or something like that to tell them they have it turned off (maybe they didn't know it was in fact off). I just wanted to get some ideas out there from others about this issue, and what you did in this case.

Thanks!
 
You will only be able to inform the user (with a pop up) if they have client scripting turned on (e.g. JavaScript). If they have it disabled, there is nothing you can do...

The easiest way to inform the user that they have javascript disabled, is the create a div that informs them of this, set it's style to "display:block" and then use JavaScript to set the style to "display:none" when the page loads. That way, if JavaScript is disabled, it will never be hidden.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Thanks ca8msm!

I'll look into the issue with the team lead, and see what comes up. Thanks for the info!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top