This is the exact code being returned from update.aspx, as returned through FireBug (except for some linebreaks for quasi-readability).

None of the JS in that "test = function()" JS block appears to be executed.

<div class="service_body" id="area_279" style="width: 100%">
<script type='text/_javascript_'>
services['service279'] = new Service();
</script>
<table class="service">
<tr><td valign='top'><div class='service_header'><div style='float: right' id="minimize_buttons_279"><a href=""><img src="" style="border: none;" alt="Minimize" /></a><a href=""><img src="" style="border:none" alt="Close" /></a></div><div style="padding: 3px;">myLINKS</div></div></td></tr>

<tr id="service_body_279"><td>
<form action="" method="post" id="edit_form_279">
<input type="hidden" name="action" value="update_data" />
<input type="hidden" name="ServiceID" value=279 />
<input type="hidden" name="target_action" value="show" />

<script type="text/_javascript_">
test = function() { alert("test"); };
alert("test");
</script>

<table class="small_input" id="edit_table_279">

<tr><td><input type="text" name="Profile_Links[0][title]" value="JBU" size="12" /></td>
    <td><input type="text" name="Profile_Links[0][url]" value="http://www.jbu.edu" size="12" /></td>
</tr>

<tr><td><input type="text" name="Profile_Links[1][title]" value="Slashdot" size="12" /></td>
    <td><input type="text" name="Profile_Links[1][url]" value="http://slashdot.org/" size="12" /></td>
</tr>

</table>
<input type="button" value="test" />
<p><input type="button" value="Save" /> <input type="button" value="Cancel" /></form></p></td></tr></table></div>

--
Brad Ediger
866-EDIGERS


On Apr 18, 2006, at 4:21 PM, Daniel Elmore wrote:

Then update.aspx probably isn't returning to you what you expect. When I had
bugs I didn't think it was my server code either, but it was.



-----Original Message-----
[mailto:[EMAIL PROTECTED]] On Behalf Of Brad
Ediger
Sent: Tuesday, April 18, 2006 4:14 PM
Subject: Re: [Rails-spinoffs] [Prototype] evalScripts not working for me


I'm working in FF for right now. Incidentally, I tried the above  
code before and it didn't work. It's like the scripts aren't being  
evaluated at all.

I have one more block of code above that script block, so in effect  
two script blocks must be evaluated. It looks like the first one is  
being evaluated, but I'm not sure.

I just tried blowing out the first script block, still no luck with  
the other one. For some reason, even something as simple as

<script type="text/_javascript_">
alert("Hello");
</script>

isn't working.

_______________________________________________
Rails-spinoffs mailing list

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to