jQuery pass 'script'
- Started
- Last post
- 6 Responses
- mikotondria3
ok, So I have content div on my page, and am using the .ajax in jQuery to pipe content into it.
It works fine for everything except when the content I am trying to pass into it contains a '< script > tag.. It just doesnt appear..
Any ideas why ?
- BattleAxe0
correct SRC ?
- version30
preload the script in the head of your document then simply call it later. you ever viewed the source of QBN lately, not what you might expect
- must_dash0
scripts don't like to be run from within a page like that from my experience
- mikotondria30
Think I'm going with your method, sort of, V3..
I have set up a script that document.write's the scripts I need for that content, and when the event that loads in that content is fired, Im running that. Hopefully it'll work.. and yes, the backside on this site isn't what you'd think at all - all seems very nicely done..
- acescence0
it's getting injected into the DOM as text. if you took the returned ajax data and used append to insert it, i believe that would work.