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 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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 10:48 PM.


 

Posting Permissions

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