开发者

Is ajax faster than targetting in iframe

I hav开发者_如何学Goe used both ajax as well as targetting in iframe. Can anycody tell me which is faster.


From this ajax plugin: malsup form, you can try both ajax form, then decide which one better suits you and iframe for the same form, here is an example:

$("#your-form-id").ajaxForm({ 
//iframe: true //this goes with iframe 
success: function (responseText, statusText, req, $form) 
                { $("#target-div-id").html(responseText);  } });

Ajax is used unless you have to file upload then you can use iframe, that imitates ajax form.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜