Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
'Global' variables in jquery
Message
From
20/12/2012 17:18:24
 
General information
Forum:
Javascript
Category:
Other
Miscellaneous
Thread ID:
01560348
Message ID:
01560352
Views:
46
>Hi everybody,
>
>I have the following code
>
>
>$("#sform").dialog({
>        autoOpen: false,
>        show: "blind",
>        resizable: true,
>        width: 1200,
>        height: 750
>    });
>    $("#sform").dialog("open");
>
>I want to somehow have the variable dlg defined with all dialog deifnition and use it in several methods in my js script.
>
>What is the correct way to do so in jquery? How and where should I define such variable to be able to use it in several methods? Also, how would I call its open method this way?
>
>Thanks in advance.

If I remember correctly, you create an invisible element on the fly, and set its value.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform