Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

How to call function on closing popup directly - RapidSpell Web ASP.NET - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
Swati
#1 Posted : Monday, January 19, 2015 3:24:31 AM
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
Jim
#2 Posted : Monday, January 19, 2015 2:57:14 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
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!


Swati
#3 Posted : Tuesday, January 20, 2015 7:13:12 AM
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
Swati
#4 Posted : Tuesday, January 20, 2015 7:14:47 AM
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
Jim
#5 Posted : Tuesday, January 20, 2015 4:21:07 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
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!


Jim
#6 Posted : Tuesday, January 20, 2015 6:59:07 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
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!


Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.




About | Contact | Site Map | Privacy Policy

Copyright © 2002- Keyoti Inc.