Callbacks and FireFox

Published 15 June 05 04:47 PM | despos

It's probably just me, but I'm totally unable to have ASP.NET script callback properly work through FireFox or Netscape 7. The example that works just fine with IE 6 doesn't do much if run through FireFox. If I pass a constant as an argument to the callback, it is executed on the server but back on the client the Javascript callback is never invoked. If I pass an expression, some (undisclosed) error happens along the way and nothing happens.

This is as of Beta 2.

Anybody out there with some experience to share and perhaps more luck?

 

 

Comments

# scottgu said on June 15, 2005 11:11 AM:

Can you send me a sample? I have examples working just fine with FireFox on my local box -- maybe you are doing something different?

# Wilco Bauwer said on June 15, 2005 11:56 AM:

In beta 1, I had to explicitly set supportsXmlHttp and supportsCallback to true. This way, "SmartTextBox" (http://www.wilcob.com/Demos/SmartTextBox/) works on both IE and FireFox.

---

<browserCaps>
<!-- GECKO Based Browsers (Netscape 6+, Mozilla/Firebird, ...) //-->
<case match="^Mozilla/5\.0 \([^)]*\) (Gecko/[-\d]+)? (?'type'[^/\d]*)([\d]*)/(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*)).*">
browser=Gecko
type=${type}
frames=true
tables=true
cookies=true
javascript=true
javaapplets=true
ecmascriptversion=1.5
w3cdomversion=1.0
css1=true
css2=true
xml=true
tagwriter=System.Web.UI.HtmlTextWriter
supportsXmlHttp=true
supportsCallback=true
<case match="rv:(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*))">
version=${version}
majorversion=${major}
minorversion=${minor}
<case match="^b" with="${letters}">
beta=true
</case>
</case>
</case>
</browserCaps>

# vb said on June 15, 2005 12:01 PM:

example from quickstart works just fine on both IE and Firefox, i did something similar in my project. Take a look here - http://beta.asp.net/QUICKSTART/aspnet/doc/tipstricks/default.aspx#clientscriptgoodies

# Elton Wells said on June 15, 2005 02:44 PM:

I have seen this. In my case I noticed that it would happen on any page that uses client callbacks and a DropDownList. I searched the MSDN Feedback Center and saw that it had already been reported:

http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=3ed308d5-1def-41ca-86cf-417487024b3d
http://lab.msdn.microsoft.com/productfeedback/ViewFeedback.aspx?FeedbackID=fc3124c9-28e9-42ed-bbf6-10b310d2de7e
http://lab.msdn.microsoft.com/productfeedback/ViewFeedback.aspx?FeedbackID=640d74a4-db01-400a-b23f-06cb072dad72

The first report says that it has been fixed as of 5/25/05 and that it will be in the next release.

- Elton

# Michael Teper said on June 15, 2005 04:43 PM:

Yup, this bug's been around for a while (affects DropDownLists and RadioButtonLists, at least). Hopefully the upcoming CTP will fix it.

# william tulloch said on June 15, 2005 11:37 PM:

I had high hopes for the CallBack feature in ASP.Net but when i first tried it with FireFox it didn't work. Rather than spending my time trying to work out why i have instead made use of AJAX.Net (http://ajax.schwarz-interactive.de/vbnetsample/default.aspx) which works fine across all the current browsers and does what it claims to.

bill

(bill.tulloch@gamil.com?)

# Zubair.NET! said on June 25, 2005 08:56 AM:

I have my implementation of Script callback (<a href="http://zubairdotnet.blogspot.com/2005/06/script-callback-in-aspnet-20_01.html">http://zubairdotnet.blogspot.com/2005/06/script-callback-in-aspnet-20_01.html</a>), which works fine with IE aswel as Firefox without any issues.

# Rick Strahl said on June 30, 2005 04:32 AM:

In Beta 2 cross browser support is not supported from what I gathered. It sure doesn't work for me either and I don't recall where I read that the support wasn't complete as of beta 2. It only works with IE.

I sure hope we get another shot to check this out before release.

# davidw said on July 13, 2005 08:35 PM:

yes, it works under beta 2 on firefox, but you can not have dropdown (select) control on the page, that sucks!

Leave a Comment

(required) 
(required) 
(optional)
(required)