[jQuery] Partial load strips out script tags?

2008-10-05 Thread ctford
When I use .load() to pull in a whole page, script tags are correctly pulled in and executed. However, if I add a selector to the .load() call all script tags get stripped out. In the following example, the heading from the second HTML file gets pulled in, but the JS with the alert does not. Coul

[jQuery] Partial .load()

2007-09-24 Thread Smith, Allex
I'm going nuts with a fairly simple selector issue. $("#topic").load("help.html #topic-example"); I want to get the contents of #topic-example, but only the children, not the container itself. What is the proper way to do this. It seems so simple, but I'm struggling with it. Thanks AllexS