Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-16-2012, 11:44 AM   PM User | #1
Sandstedt
New to the CF scene

 
Join Date: Nov 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Sandstedt is an unknown quantity at this point
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
Sandstedt is offline   Reply With Quote
Old 11-16-2012, 02:23 PM   PM User | #2
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,043
Thanks: 197
Thanked 2,412 Times in 2,390 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
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.
Philip M is offline   Reply With Quote
Old 11-16-2012, 04:56 PM   PM User | #3
Sandstedt
New to the CF scene

 
Join Date: Nov 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Sandstedt is an unknown quantity at this point
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?
Sandstedt is offline   Reply With Quote
Old 11-16-2012, 10:43 PM   PM User | #4
Sandstedt
New to the CF scene

 
Join Date: Nov 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Sandstedt is an unknown quantity at this point
Solved!

IE9 was the problem. Reverted to IE8, and suddenly the onchange-event triggered successfully!
Sandstedt is offline   Reply With Quote
Old 11-16-2012, 11:29 PM   PM User | #5
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,210
Thanks: 59
Thanked 3,996 Times in 3,965 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
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.
Old Pedant is online now   Reply With Quote
Old 11-17-2012, 07:25 AM   PM User | #6
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,043
Thanks: 197
Thanked 2,412 Times in 2,390 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
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.
Philip M is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:14 PM.


Advertisement
Log in to turn off these ads.