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 07-17-2012, 01:22 PM   PM User | #1
Kenneth Heeres
New to the CF scene

 
Join Date: Jul 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Kenneth Heeres is an unknown quantity at this point
Javascript global variables acting differently on mobil browser versus computer brows

I declare a global variable in open code in a <head> section and call a function also defined in the <head> section which sets the values. I then use the values in a <script> section in the <body> section. When access the html from Chrome on my mac it works as expected. When I access from my iPad the globals are undefined.

It turns out that an exception was being thrown in the function so the global variables were not being set.

Never mind!

Last edited by Kenneth Heeres; 07-17-2012 at 09:48 PM..
Kenneth Heeres 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 03:25 PM.


Advertisement
Log in to turn off these ads.