开发者

jquery ajaxsuccess call results in blank page and hang

开发者 https://www.devze.com 2023-01-18 00:23 出处:网络
I am trying to savedata into a variable like so (so i can keep track of what was posted to jquery) $(document).ajaxSuccess (function product(a, b, s) {

I am trying to save data into a variable like so (so i can keep track of what was posted to jquery)

$(document).ajaxSuccess (function product(a, b, s) {
    document.write('url: ' + s.data);
});

I am using flexigridlink text and the above code is printing out the correct data, but preventing flexigrid to load, and hanging the page. So I get a white page with the posted url printed out. I also get "failed to load source" in firebug.

i am wondering is it a similar problem to this? link text

Iv开发者_JAVA技巧e been trying for 3 days now to work out how to get the posted data from this script, so any ideas would be much appreciated :)

Cheers

Ke


if you do this

document.write('any thing'); // it will display white screen with string passes

in spite of doing document.write do something like this

<div id="target"></div>
jQuery('#target').append(s.data)

Iam not very sure this your requirement or not. Please provide more code if you are looking for some thing else.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号