Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
jQuery removes "script" tags
Old 01-15-2012, 04:15 PM jQuery removes "script" tags
Average Talker

Posts: 20
Trades: 0
Hi guys, I have a problem. I'm creating a registration form dialog. The whole registration form is fetched from another page via jQuery's ".load()". Everything works fine, except that the ".load()" function won't fetch the script tags.
Does anybody have an idea how to solve that?
hellboy124 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-15-2012, 08:19 PM Re: jQuery removes "script" tags
Physicsguy's Avatar
404 - Title not found

Posts: 919
Name: Scott Kaye
Location: Ontario
Trades: 0
Would this help?

If not, you could make a quick AJAX call to make PHP do all the work with file_get_contents().
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is offline
Reply With Quote
View Public Profile
 
Old 01-16-2012, 01:44 AM Re: jQuery removes "script" tags
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
Perhaps you could use the delegate() function? It enables you to bind an event to some set of elements, even if those elements doesn't exists at the time of binding, meaning that if you dynamically load these elements afterwards, they will still get bound to this event.

This means, of course, that you could have your script on the main page instead of loading it with the other loaded data.
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.

Last edited by lizciz; 01-16-2012 at 01:45 AM..
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Reply     « Reply to jQuery removes "script" tags
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26731 seconds with 12 queries