I've wrapped the rjs code with the content-type header like this and it 
works:


page << ' <SCRIPT type="text/javascript">'
page << 'alert("wow")';
page << "$('.info').html('Yeah, it works!');"
page << ' </SCRIPT>'




Erhard Karger wrote:
> Hi,
> kannst Du vielleicht den code posten ? Ich habe dasselbe Prolem
> 
> Danke
> 
> Erhard
> 
> 
> 
> 
> Jan Luehr wrote:
>> Hallo,
>> 
>> Am Donnerstag, 5. Juni 2008 schrieb Benjamin Behr:
>>> > Laut Firebug sieht die response so aus:
>>> >
>>> > try {
>>> >
>>> > alert("Geht los!");
>>> >
>>> > } catch (e) { alert('RJS error:\n\n' + e.toString());
>>> > alert('alert(\"Geht los!
>>> > \");'); throw e }
>>> >
>>> > Leider erscheint die alert-Box jedoch nicht...
>> 
>>> renderst du das denn auch als js raus?
>> 
>> Autsch, das war's.
>> 
>> Danke,
>> Keep smiling
>> yanosz

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug

Antwort per Email an