1 Attachment(s)
[2005] Atlas and page refreshing
I'm having trouble with Atlas and page refreshing.
I'm seeing this issue everywhere but in the most simple case:
I have an atlas:updatepanel, a placeholder and a dropdownlist.
Depending on the value of the dropdownlist controls are added to the placeholder which is inside the updatepanel. So it all appears nicely on the page seemingly without a postback.
But if i now refresh the page the dropdownlist is empty and the controls are gone and if i select a new value from the dropdownlist I get this horrible error (see pic) http://www.ihud.com/file.php?file=fi...9017/error.jpg
Has anyone else come across this?
Re: [2005] Atlas and page refreshing
what did u set the mode of the panel as?
try changing it to always or conditional
atlas is a ***** to get it to work properly
Re: [2005] Atlas and page refreshing
Could always use AJAX instead of doing a postback (a la Google Maps) but this may be too much work. You tried tracing and stepping through the code to see where the error occurs?
Re: [2005] Atlas and page refreshing
Kovan: I have tried both conditional and always but the effect is the same.
Valleysboy: There is no code to step through as the error occurs in javascript generated by Atlas but only after an item was previously selected and then a page refresh is performed and you try selecting another item.
Anyone who's interested: You can see the error here. There are a few problems that I'm aware of on the page but if you try selecting a sector it will refresh a list of disciplines at the bottom of the page. You can also try the checkbox "Use company contact as office contact" and you'll see the same error.
Has anyone else experienced this? It really seems quite simple so does Atlas ever work after a page refresh?
I might have to switch to Ajax.net instead of Atlas as i presume it's more stable?
All I wanted to do was make a nicer experience for the user :(
Re: [2005] Atlas and page refreshing
Atlas is ajax, just... it's just that you are going through this extra layer to create it.
I tried your page. I got an error in IE, but nothing in Firefox! :lol:
Unfortunately, all I got was 'Syntax error', no blank messagebox.
Re: [2005] Atlas and page refreshing
Quote:
Originally Posted by mendhak
Atlas is ajax, just... it's just that you are going through this extra layer to create it.
I tried your page. I got an error in IE, but nothing in Firefox! :lol:
Unfortunately, all I got was 'Syntax error', no blank messagebox.
mmm I've tried in FF,IE and Opera and always got the blank messagebox error. When you say there's no error in FF does the list at the bottom of the page refresh for the new sector and do the extra fields appear when you uncheck the checkbox?
The only reason I'm thinking of trying AJAX.net is because it's been in development since .net 1.1 and is now in release version 6 so i'd hope it's been more extensively tested than Atlas.
Re: [2005] Atlas and page refreshing
Yes, and yes. It works perfectly. I checked on FF 1.5 and FF 2.0RC1
Thing is, you have to consider whether getting this whole javascript framework is worth it for a small feature like this...
Re: [2005] Atlas and page refreshing
I think I've already decided that I don't have the time to spend messing around with this, it's just a shame because I wanted to try something new and it's annoying not to get it working.
Re: [2005] Atlas and page refreshing
Did you create XMLScript for this? How did you define the behavior?