Julius Lucks schrieb:
> Hi Jörn,
>
> Just to be extra clear, I am using jquery to overide an existing rails
> action (/save_record). The action is returning the html and is what
> is used to generate the first instance of the html that is being
> displayed. So the html that the $.post is recieving is the full
> shebang - I am not sure if the headers, javascripts, whatnot would get
> in the way of parsing it correctly.
Ok, there may be a better solution, but try this:
var id = $("<div>").html(html).find("[EMAIL PROTECTED]").attr('value');
That way your html content is added to a new div element and should be
"searchable" for jQuery. You should take a look at the dataTypes that
$.ajax accepts, maybe that works better.
--
Jörn Zaefferer
http://bassistance.de
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/