开发者

Why does my ajax request disappear immediately from firebug console?

Something is going wrong with my jquery ajax-ing. When in a similar situation before I have been able to open the site in firebug and wa开发者_运维问答tch the ajax request in the in the console, seeing exactly what was sent and received.

In my current project for some reason I see the request flash across firebug's console but it disappears almost immediately. Here is a video of what's happening.

What's going on here? How do I get that information to remain in the console so that I can explore it?


Wow I'm an idiot. This is an ASP.NET application and that's an ASP.NET button which triggers a postback! So of course the console refreshes. It's a new page.

Duh. The solution is to make it a normal button.

Still, the symptoms are confusing enough that someone else might run into this problem.


Instead of making it a normal button, you can also use Firebug's Persist button

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜