[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Firefox - Ajax PostBack Fails

Posted on 2009-02-21
7
Medium Priority
?
804 Views
Last Modified: 2013-12-07
Hi Experts,

I have a gridview with dropdown as one of the control in template column. Postback for dropdown is set.
Now changing dropdown selection postbacks (asynchronous) to server and there is some processing gng on.

This functionality works fine in IE and was working fine in FireFox 2.0. In FF3 the postback fails for this dropdown most of the time. After selecting value, the ddl gets change to index 0. And I need to refresh the page to even open the dropdown next time.

I tried debugging and noticed that page was not posted back at all. Page_Load for the page was not fired.

Any suggestions??
0
Comment
Question by:expertsoul
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 12

Assisted Solution

by:CB_Thirumalai
CB_Thirumalai earned 600 total points
ID: 23702923
May be Firefox 3 has reduced some of the features or added some extra ones that asp.net ajax framework isn't able to trap?  You may want to check this
http://www.mozilla.com/en-US/firefox/3.0.6/releasenotes/
0
 
LVL 12

Author Comment

by:expertsoul
ID: 23702934
is there anything particular I should look at in that link? B'cos I see lot of things, not sure what is related to my issue.
0
 
LVL 27

Assisted Solution

by:nmarun
nmarun earned 600 total points
ID: 23702965
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 27

Expert Comment

by:nmarun
ID: 23702967
My apologies... I messed up the posts.
0
 
LVL 15

Assisted Solution

by:aibusinesssolutions
aibusinesssolutions earned 800 total points
ID: 23703050
I may be making a long shot here, but is your <form> tag inside of the <body> tag?  I've seen all kinds of problems stem from asp.net with Firefox because of that.  

The correct format is:
<html>
<head></head>
<body>
    <form>
    </form>
</body>
</html>

If your layout is
<form>
    <body>
    </body>
</form>

then most ajax controls will not work in Firefox 3.
0
 
LVL 12

Accepted Solution

by:
expertsoul earned 0 total points
ID: 23722525
Thanks for suggestions guys.

I found the solution. I was using Alert on the same page, which was getting fired before making ddl selection. I don't have a valid reason but somehow that alert was messing up with further postbacks.

I had to use window.setTimeOut with time delay of 0 ms, to put a negligible delay while adding alert script. It fixed the problem.

I would really appreciate if someone can explain why it happening, though I am closing this question for now.

Thanks.
0
 
LVL 12

Expert Comment

by:CB_Thirumalai
ID: 23729513
Have anyone heard of .focus() not working on firefox.  Refer this link http://forums.asp.net/t/1146517.aspx, which says to set a fractional delay to do that.  May be this is a default behavior of FF to cause the event after a slight delay.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…
Suggested Courses
Course of the Month17 days, 20 hours left to enroll

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question