Portal Home > Knowledgebase > Articles Database > Help with a script - external file call
Help with a script - external file call
Posted by mystycs, 06-11-2010, 09:41 AM |
Im using this script as a popup on my website for a login.
http://yensdesign.com/2008/09/how-to...-using-jquery/
But i don't want the code to be inside my actual code of the popup. Is there a way i can have it called from a external file such as remote.html or popup.php when i click the button to bring up this popup? I don't know how to do this, help would be really appreciated!
Thanks!
|
Posted by MMrs, 06-11-2010, 08:37 PM |
If you want to "hide" it from HTML then you can put that HTML into JavaScript variable and write function to create that box.
For example:
|
Posted by mystycs, 06-11-2010, 09:19 PM |
So i should just put the code for my box in there? And add that into the top of the website for example?
And it should work with the script?
|
Posted by MMrs, 06-12-2010, 06:18 AM |
First you need to escape quotes second you must call that function somewhere.
|
Posted by mystycs, 06-12-2010, 01:28 PM |
So basically i have this code in my body
And i should put this somewhere on my site like this to hide it?
Kinda confused.. On the escape quotes ect. Im trying to make it work with this popup script, http://yensdesign.com/2008/09/how-to...-using-jquery/
But so it hides the html code for the popup until i call it or whatever.
|
Posted by MMrs, 06-15-2010, 08:13 AM |
|
Posted by mystycs, 06-15-2010, 11:17 AM |
Yea it but it doesnt work with this http://yensdesign.com/2008/09/how-to...-using-jquery/
|
Posted by MMrs, 06-15-2010, 01:47 PM |
This part must be before your jquery code.
|
Add to Favourites Print this Article
Also Read