Autpostback for Netscape and Firefox is broken

G

Guest

I have a dropdownlist/select box with an autopostback to code behind.
It works great in Internet Explorer, but doesn't work in Netscape and Firefox.
What kind of support does ASP.net promise for Netscape and Firefox?
 
S

Scott Mitchell [MVP]

Arne said:
I have a dropdownlist/select box with an autopostback to code behind.
It works great in Internet Explorer, but doesn't work in Netscape and Firefox.
What kind of support does ASP.net promise for Netscape and Firefox?

ASP.NET emits standards-compliant HTML (although it's validators don't
emit standard-compliant JavaScript... grrr....)

Anywho, I've used AutoPostBack DropDownLists just fine with FireFox.
Are you sure you don't have JavaScript disabled in these browsers?

--

Scott Mitchell
(e-mail address removed)
http://www.4GuysFromRolla.com

* When you think ASP.NET, think 4GuysFromRolla.com!
 
G

Guest

ASP.net emits Standard HTML most of the time and incorrect javascript at this
time
The lines
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
in
function __doPostBack(eventTarget, eventArgument) {
doesn't execute at all in firefox and Netscape 7.2.

I have also send ASP.net sending the setting the Selected attribute in a
dropdown list to Selected="Selected" which is incorrect HTML.

Arne.
 
S

Scott Mitchell [MVP]

I assure you I have had pages with AutoPostBack DDLs work just fine in
FireFox. Scout's honor.

Using FireFox's JavaScript Inspector, are you seeing specific JavaScript
errors on those lines? What's the error message?

ASP.net emits Standard HTML most of the time and incorrect javascript at this
time
The lines
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
in
function __doPostBack(eventTarget, eventArgument) {
doesn't execute at all in firefox and Netscape 7.2.

I have also send ASP.net sending the setting the Selected attribute in a
dropdown list to Selected="Selected" which is incorrect HTML.

Arne.


:


--

Scott Mitchell
(e-mail address removed)
http://www.4GuysFromRolla.com

* When you think ASP.NET, think 4GuysFromRolla.com!
 
Joined
May 28, 2007
Messages
1
Reaction score
0
This is way after the fact, but I just found this on Google. I was having the same problem in FireFox. Turns out I had some invalid JavaScript somewhere else on the page, and this made FireFox not execute any JavaScript on the page (even in response to an event). Hence, no DDL AutoPostBacks.

In my case, I was doing a document.getElementById("xxx"), and xxx was an invalid path to a control inside a UserControl, on a page in a MasterPage. Invalid, because I had made a typo.

Aaron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top