[jQuery] IE: appending <script> on ajax return?

[jQuery] IE: appending <script> on ajax return?

Hi All,
I've got a php/jquery app, which, when a button is pushed, fires off an
ajax request to a php script that returns a combination of html and
javascript, that is then appended to the document via .before().
The script returned includes another ajax call, so that when a selection
box changes, another ajax script fires to grab more data from the server
and replace a div's contents with a selection box.
Basically, the first call inserts a "line item" which includes a
selection box and some empty id'ed <divs>, and when something in that
selection box is selected, it fires off an ajax call to fetch the option
list for that selection.
This all works perfectly in Firefox, but, of course does NOT in IE (have
I mentioned how much I *HATE* IE???).
The code is using something like:
$.ajax({type: "POST", dataType:"html", url:"/ajax.php",
success:insert_html });
and insert_html does:
$("#marker").before(html);
The html returned from ajax.php looks something like:
<div>
<select id="x_1">
<option>val1</option>
...
</select>
</div>
<script type="text/javascript">
$.ajax(type:"POST", dataType:"html",
url:"/ajax2.php",success:insert_next_html });
</script>
I tried putting alert's in the <script> returned from the php program,
and they do not fire. Which leads me to believe that IE cannot
dynamically add to the JS on the page?
Any suggestions or help would be VERY welcome.
As I said -- this works PERFECTLY in FF...
-Scott
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/