Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Nov 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Dropdown list triggers unkown javascript function

    Hi,

    I have no experience whatsoever with javascript, and need some help.

    The website in question: https://www.avanzabank.se/aktier/lista

    I would like to know what happens when you click on the dropdownlist "Lista" and change value. I assume it triggers some kind of javascript function, causing the website to load new stocks. I have studied the website/objects in chrome for hours without success.
    Last edited by Sandstedt; 11-16-2012 at 10:44 PM. Reason: Solved

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,730
    Thanks
    202
    Thanked 2,507 Times in 2,485 Posts
    Quote Originally Posted by Sandstedt View Post
    Hi,

    I have no experience whatsoever with javascript, and need some help.

    The website in question: https://www.avanzabank.se/aktier/lista

    I would like to know what happens when you click on the dropdownlist "Lista" and change value. I assume it triggers some kind of javascript function, causing the website to load new stocks. I have studied the website/objects in chrome for hours without success.
    Not Javascript as such. Page refreshes with Ajax.

    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #3
    New to the CF scene
    Join Date
    Nov 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Philip M View Post
    Not Javascript as such. Page refreshes with Ajax.

    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.
    Thanks. So any idea why the page won't refresh on a FireEvent ("onchange") command? Could it have something to do with IE9?

  • #4
    New to the CF scene
    Join Date
    Nov 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Solved!

    IE9 was the problem. Reverted to IE8, and suddenly the onchange-event triggered successfully!

  • #5
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,020
    Thanks
    75
    Thanked 4,323 Times in 4,289 Posts
    Works fine for me with IE9.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #6
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,730
    Thanks
    202
    Thanked 2,507 Times in 2,485 Posts
    Quote Originally Posted by Old Pedant View Post
    Works fine for me with IE9.
    And for me! There was no mention of IE9 in the original post.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.


  •  

    Posting Permissions

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