Search

You searched for the word(s): userid:804884

Matching Posts

  • Re: [JS] Ask confirm to exit page with pending changes (onbeforeunload)

    Yeah, I got it on my own!!! I don't know, whether it's the best way, but it works good: Here is my scriptcode: <script type="text/javascript"> var UNLOAD_MSG = "Ungespeicherte Daten gehen verloren!"; var IGNORE_UNLOAD = false; function doBeforeUnload() { var vChange = document.getElementById("ctl00_cphInhaltOR_hdCheckedChange").value; var strIsPostBack = theForm.__EVENTTARGET.value; if (IGNORE_UNLOAD == false) { if (strIsPostBack.length == 0) { if (vChange
    Posted to Tips & Tricks (Forum) by bolle on 6/2/2008
    Filed under: JavaScript, asp.NET 2.0
  • Re: [JS] Ask confirm to exit page with pending changes (onbeforeunload)

    Hey, first of all, sorry for my bad English. I hope you can understand, what I need ;) I have a ASP.NET Application with one page, where users can setup filter settings. I want to have such a message as described here, but it doesn't work correctly. If I add "IGNORE_UNLOAD = true" to the 'textChanged'- or 'checkedchanged'-Event I get the error, that thats not found. So I tried a work-around and did it in the vb-part. I have a invisible checkbox in my contentplaceHolder
    Posted to Tips & Tricks (Forum) by bolle on 6/2/2008
    Filed under: asp.NET 2.0
Page 1 of 1 (2 items)