|
Rank: Advanced Member
Groups: Registered
Joined: 12/18/2014 Posts: 34
|
i want to run function of parent window when spell check window closes from directly by pressing top red cross button (close) ? swati swati
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
Hi Swati, In your other thread http://keyoti.com/support/topic.asp?TOPIC_ID=2136 I gave you an event listener that is close to this. You will see in my example code at the bottom that there is an argument in the event listener function called 'complete'. If 'complete' is false then either the 'red cross' was clicked' on the 'finish' button was clicked. Is that close enough to what you need? Jim -your feedback is helpful to other users, thank you!-your feedback is helpful to other users, thank you!
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/18/2014 Posts: 34
|
HI Jim, below is the code snippet i am using for calling callbackfunction when even popup is closed from clicking red cross button but its not calling, it is only calling whenever we click on finish or spell check complete ok. rapidSpell.addEventListener('dialog_finishedcheckingtextbox', callbackFunction); swati swati
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/18/2014 Posts: 34
|
is there any way to freeze the window from re sizing and disabling the red cross button on popup window ? swati swati
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
Hi Swati, You cannot disable the close button, there's no browser allows that. I can look in to no resize for you. For the listener you must use the other event Code: rapidSpell.addEventListener('<b>dialog_finishedcheckingall</b>', function (src, textbox, complete) { spellcheckperformed = complete; alert('d'); });
-your feedback is helpful to other users, thank you!-your feedback is helpful to other users, thank you!
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
To make the dialog not be resizable, add this to your page Code: function rsw_create_popup_window(url, name, options) { options = options.replace(/resizable=yes/, "resizable=no");
return window.open(url, name, options); }
-your feedback is helpful to other users, thank you!-your feedback is helpful to other users, thank you!
|
|