Try the html() function instead of document.write -
http://docs.jquery.com/DOM/Attributes#html.28_val_.29
sccr410 wrote:
>
> Documentation says to use this:
>
> $.get("test.cgi",
> { name: "John", time: "2pm" },
> function(data){
> alert("Data Loaded: " + data);
> }
> );
>
> Instead of an alert box, I want to write the data var to the page like so:
>
> $.get("test.cgi",
> { name: "John", time: "2pm" },
> function(data){
> document.write("Data Loaded: " + data);
> }
> );
>
> Nothing gets displayed when I do this.
>
--
View this message in context:
http://www.nabble.com/Using-document.write%28%29-in-%24.get-callback-function-tf3298563.html#a9184010
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/