cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jcesarmobile (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-10598) Unable to run javascript in Cordova iOS project on simulator
Date Tue, 16 Feb 2016 12:01:18 GMT

    [ https://issues.apache.org/jira/browse/CB-10598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15148501#comment-15148501
] 

jcesarmobile commented on CB-10598:
-----------------------------------

You don't have to open the index.html on safari, you have to use the Safari feature called
"Remote web inspector". You run the app on your device or simulator and then use that feature.
For more information read this:
http://developer.telerik.com/featured/a-concise-guide-to-remote-debugging-on-ios-android-and-windows-phone/

This is not the place to help newbiews, if you have problems with app development, ask on
the phonegap google group or stack overflow.

> Unable to run javascript in Cordova iOS project on simulator
> ------------------------------------------------------------
>
>                 Key: CB-10598
>                 URL: https://issues.apache.org/jira/browse/CB-10598
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaJS, iOS
>    Affects Versions: 5.4.1
>         Environment: Mac OSX El Capitan, Xcode v7.2
>            Reporter: Sumit Soman
>
> I created a cordova project, added the iOS platform and built the project. After that
I opened the .xcodeproj in Xcode, built it and the homepage showed the sample app homescreen.
I then created another js file with the following content in the Staging/js folder
> function testLoad(){
>     alert("Loaded!");
> }
> In index.html, I added
>  <script type="text/javascript" src="js/myScript.js"></script>
> and called the function
> <body onload="testLoad()">
> However no alert appears! How to fix? I am using xCode 7.2.1 and Cordova 5.4.1.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message