Website javascript not running on iphone (safari)

34,935

You might want to turn on the Debug Console. I note the last error I find on your page is "JavaScript: Error: undefined. JavaScript execution exceeded timeout".

Share:
34,935
SwiftD
Author by

SwiftD

Updated on July 05, 2022

Comments

  • SwiftD
    SwiftD almost 2 years

    I do not have a specific block of code to post here, my website includes a fair bit of javascript/jquery which works great on android and modern desktop browsers (including Safari). However when I look at the site through an iphone none of the javascript is running.

    Site is www.alexchapman.co.uk, I have checked that js is enabled on the iphone and I am not getting any error messages on the phone. The site is a bit slow so I am connecting to the site on the iphone via a wi-fi connection.

    My question is where do I begin trying to sort this out. I don't have access to a mac. Is there anything I can run on the iphone similar to firbug or ie dev tools to try to see what's happening here? I tried the Electronic Mobile Simulator but this shows the site working fine (although I realise this isn't a proper iphone emulation)

    Has anyone had a similar issue?

  • JayC
    JayC about 12 years
    That is, the iPhone Debug Console.
  • Nader Chehab
    Nader Chehab about 12 years
    I apologize, my answer was meant to be a comment, but as a new user I did not have the option to add a comment to the original post.
  • SwiftD
    SwiftD about 12 years
    Thank you for your post, as above not answering my question but I have voted your answer up as its good info - I wasn't aware of a jquery mobile library. A seperate mobile site is not within the scope of what I am doing now, but may be something I will look at later on and when I do I will ceratainly be checking out the jquery mobile.
  • SwiftD
    SwiftD about 12 years
    Thanks for looking, I have corrected this for good measure but it isn't the issue as the problem remains
  • SwiftD
    SwiftD about 12 years
    This was what I was looking for, thank you - although I am now going to open another question to see if anyone knows how to solve this without splitting up my javascript into seperate files again. If JayC's link doesn't work for anyone looking. The instructions to start debug console on iphone are Settings->Safai->Developer(at bottom)->debug console on (God knows why they spread that info over 7 pages)