Showing posts with label cause. Show all posts
Showing posts with label cause. Show all posts

Saturday, March 24, 2012

Exception in WebResource.axd when PostBack occurs in Firefox

I attempted to add an ATLAS UpdatePanel to a page that can cause an additional page to popup for some user input. When the popup is closed the data entered is, via JavaScript, posted into controls within the UpdatePanel in the calling page via "window.opener..." calls and then a postback is performed in the calling page via a "window.opener.__doPostBack()" call. This works fine in IE but, with Firefox 1.5.0.6 it fails with the following appearing in the Firefox JavaScript console:

Error: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: http://localhost/TaxBrowser/WebResource.axd?d=UtGnGti3th-E3k4H6R_105-ZnoTFL0xfqNYWKYczTD1WL_MlZnWikLeZY4VJgy1PFU2wuwGL8eNKwcH3DdmeLa2lMRfeto2rgkZK9pto_QA1&t=632870129240000000 :: anonymous :: line 4140" data: no]
Source File: http://localhost/TaxBrowser/WebResource.axd?d=UtGnGti3th-E3k4H6R_105-ZnoTFL0xfqNYWKYczTD1WL_MlZnWikLeZY4VJgy1PFU2wuwGL8eNKwcH3DdmeLa2lMRfeto2rgkZK9pto_QA1&t=632870129240000000
Line: 4140Same problem...

I'll cry with you...Crying

Hi,

It's an old post, but I have the same problem.

Did you find an explanation ? What did you do to avoid that error ?

Thank's.

Gilles


It's not so old... The explanation... I send a e-mail to one of the Atlas developers so we could know something... if they know this, if it will be fixed in next release, blablabla... Nobody answered...

To avoid the error... i remove the atlas update panel on that page...
I had a similar problem on a page where I added some updatePanels dynamically. I managed to fix the problem by placing the __doPostBack() call inside of a window.setTimeout, as seenhere

Hi

I get the same error with v1.0. And I tried the setTimeout workaround with no success.


I resolved my problem with the setTimeout solution...

Thx man, my problem lied in that the script script did a window.close() directly after __doPostBack...

function doPostBack(e) { window.opener.__doPostBack(\'" + _owner + "\'); window.close(); }
setTimeout('doPostBack()', 0);

...the solution was...

function doPostBack(e) { window.opener.__doPostBack(\'" + _owner + "\'); setTimeout('window.close()', 500); }
setTimeout('doPostBack()', 0);

Wednesday, March 21, 2012

Event issue ?

Hi everybody,

I have a real weird behaviour on a control with Ajax (seems to be the cause) :

I have a UserControl, developped without taking care of Ajax thing. It works fine when placed in a basic Page, but it does not work at all when integrated in the global application we are developping.

There are some combos in my control, selecting an item in the first one set the values of the two other and add some controls in the page. Selecting an item on the two other applies a filter on the possible values of the first one and unselect (and remove additionnal controls). So i have a postback event launched on each combo selection changed.

The difference between the two contexts is mostly that control is dynamically loaded in a PlaceHolder (placed in a UpdatePannel) during CreateChildControls step in the application.

The issue is that in the application, the UserControl initializes fine, but here is what happens next :

1 - I select a value in the first DDL : it works fine.

2 - I select another value, no matter what DDL : It fires multiple events, and sometimes not the one which rised the postback. So my control have an heratic behaviour.

Any idea for the reason ?

Thanks for your help.

It sounds very strange to trigger multiply events at the same time.Try to specify asynchronous?post?back?for?the?DropDownLists?in?a?asp:UpdatePanel.
If you place a user control in a asp:UpdatePanel in a web form,try to set the postback ControlID = User control ID.
If you still have any question about multiply triggered events of the DropDownlists,try to post some codes. I'd like to check it.