Results 1 to 9 of 9

Thread: [2005] Atlas and page refreshing

  1. #1

    Thread Starter
    Frenzied Member Fishcake's Avatar
    Join Date
    Feb 2001
    Location
    Derby, UK
    Posts
    1,092

    [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)

    Has anyone else come across this?
    Attached Images Attached Images  

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539

    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

  3. #3
    Fanatic Member Valleysboy1978's Avatar
    Join Date
    Nov 2004
    Location
    Planet Xeoroaniar CC Posts:1,928,453,459,361
    Posts
    770

    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?
    Life is one big rock tune

  4. #4

    Thread Starter
    Frenzied Member Fishcake's Avatar
    Join Date
    Feb 2001
    Location
    Derby, UK
    Posts
    1,092

    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

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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!

    Unfortunately, all I got was 'Syntax error', no blank messagebox.

  6. #6

    Thread Starter
    Frenzied Member Fishcake's Avatar
    Join Date
    Feb 2001
    Location
    Derby, UK
    Posts
    1,092

    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!

    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.

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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...

  8. #8

    Thread Starter
    Frenzied Member Fishcake's Avatar
    Join Date
    Feb 2001
    Location
    Derby, UK
    Posts
    1,092

    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.

  9. #9
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2005] Atlas and page refreshing

    Did you create XMLScript for this? How did you define the behavior?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width