imservices 2 Posted August 26, 2011 Report Share Posted August 26, 2011 Hi, Basically when I save the inputted text on a certain site it still stays in the WYSIWYG editor even though the text is saved and live so I'm done on that page. When I go to the next page in the script IE prompts me with something like "are you sure you want to navigate away from the page unsaved data may be lost", I do in fact want to navigate away but obviously clicking OK each time makes the script less than automatic. I have played with the site itself and this is just how it is, there is no way to save and preview or move away the editor once saved without this prompt appearing. Apparently it was designed poorly so even in manual mode this prompt occurs every time. Is there a setting within IE that it will automatically choose yes and no longer prompt or any other workarounds? Thank you VERY much http://blogs.msdn.com/blogfiles/saraford/WindowsLiveWriter/ThereisaAreyousureyouwanttonavigateawaya_D281/image_2.png Is just taken from Google Images but is basically the prompt that I get. Quote Link to post Share on other sites
JohnB 255 Posted August 26, 2011 Report Share Posted August 26, 2011 Just before the navigate away, use ("close all dialogs",on) right after the nav use ("close all dialogs",off) John 1 Quote Link to post Share on other sites
imservices 2 Posted August 26, 2011 Author Report Share Posted August 26, 2011 Thank you much will try first thing in the morning. Dunno why I didn't think of that but absolutely no reason it wont work! Quote Link to post Share on other sites
imservices 2 Posted August 26, 2011 Author Report Share Posted August 26, 2011 Doesn't work, any other ideas? Quote Link to post Share on other sites
imservices 2 Posted August 26, 2011 Author Report Share Posted August 26, 2011 OK, After a lot of trial/error. Had to use BOTH the close all dialogs and click dialog. Why? No clue, either one didn't do it by itself - with the close it still appears for about 1 second before closing, with the click by itself it seemed to instantly reappear. Running close first and then click did the trick though. Quote Link to post Share on other sites
JohnB 255 Posted August 26, 2011 Report Share Posted August 26, 2011 Ok, the close all dialogs runs every second or so. That's why it appears for a second. John 1 Quote Link to post Share on other sites
imservices 2 Posted August 29, 2011 Author Report Share Posted August 29, 2011 Something strange. It works for me on all 3 of my machines, XP, Vista and 7 respectively with IE 7 and IE 8 on these machines. I have given out a few copies of this script and for some people it doesn't work even though their specs are the same and for some people it works fine just like it does for me. Is there another way to go about dismissing the dialogue box that I can try? Thanks. Quote Link to post Share on other sites
Eddie Waller 158 Posted August 29, 2011 Report Share Posted August 29, 2011 Something strange. It works for me on all 3 of my machines, XP, Vista and 7 respectively with IE 7 and IE 8 on these machines. I have given out a few copies of this script and for some people it doesn't work even though their specs are the same and for some people it works fine just like it does for me. Is there another way to go about dismissing the dialogue box that I can try? Thanks. If you can give us a link to the site I'll let you know how to disable that using javascript. 1 Quote Link to post Share on other sites
imservices 2 Posted August 29, 2011 Author Report Share Posted August 29, 2011 Thank you for that, killing it with js seems to work and is cleaner. Sometimes I just need somebody to jump start my brain Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.