- This topic has 19 replies, 4 voices, and was last updated 12 years ago by
rob@volleyhollix.com.
-
AuthorPosts
-
rob@volleyhollix.comMemberI’m using
i.click(function(){
}
where the “i” variable is an image element so when the users click on this image it sets focus on that image.
It seems to work fine in the MobiOne’s Test Center and in my desktop’s Chrome web browser (once it’s published as a web app).
But once I connect to the app with my iPhone this function does not work.
Please Help! Thanks!
Robert
rob@volleyhollix.comMemberHello….
Anyone out there?
BrandonMemberIs there a particular reason you are doing this instead of defining a typical function and assigning the image the function when clicked?
rob@volleyhollix.comMemberHey Cincy,
Yes, because this image is dynamic. This image gets copied onto a screen’s panel based on certain events. I use Raphael.js paper.set() for this panel and this paper.set contains images based on events. That’s why i use i.click as oppose to div with a OnClick parameter.
Also on my previous e-mail I said, “once I connect to the app with my iPhone this function does not work.” … I have not built the iOS application yet…I’m running it as a web app on the Safari browser.
Could this be because Safari does not support this function or maybe we need to download JQuery onto Safari? As I mentioned it works well from “Test Center” and Chrome once it’s published as a web app.
Thank you and I’m looking forward to your reply.
Robert
support-octavioMemberHi Robert,
Have you checked that you don’t have syntax errors? See the debugger section to learn about the javascript console in case you don’t know how to check these errors: http://www.genuitec.com/mobile/docs/testingAndDebugging/testingAndDebugging.html#debugger
rob@volleyhollix.comMemberCincy,
If I had syntax erros then it wouldn’t work on the MobiOne’s “Test Center” and my desktop’s Chrome browser, correct? It works without problem for both of these.
My issue is it doesn’t work as a web app for the iPhone. I believe iPhone uses Safari.
Please Help!
Thanks.
BrandonMemberDepending on the error it can work in the test center and browsers. I have had this happen before.
rob@volleyhollix.comMemberCincy,
Could there be a chance that the jQuery library needs to be downloaded and installed for the iPhone’s Safari web browser?
Or Could it be it’s a web app and that once it’s built as a native app for the iPhone iOS it would work fine?
Robert
BrandonMemberThe JQuery library is included when you publish the app, you can double check this by viewing the source code of the web add and checking for the line:
<script type=”text/javascript” src=”res/jquery-1.8.3.min.js”></script>Does it show any error in the debugger?
rob@volleyhollix.comMemberCincy,
I ran the debugger and there were no errors.
Any other causes?
Robert
BrandonMemberDo you have a url of the published project I can test it for you both in my browser and on my iPhone?
If you dont want to post it here you can email it to me at info at cincyplanet dot com
rob@volleyhollix.comMemberCincy,
I’m running Debugger again.
I have a .JS file I’ve created but I notice that it’s not listed on the drop-down listbox where all the other .JS files are, so therefore I cannot test it.
My .JS is in the app-www directory.
So why is it not listed there? Isn’t it suppose to be part of that list?
Robert
BrandonMemberIs it added as an addition project file?
rob@volleyhollix.comMemberWhere and how do I check if it’s added as an additional project file?
Robert
rob@volleyhollix.comMemberCincy,
I’m hearing the iPhone does not support OnClick? Is this true?
Do you know if iPhone supports Rapahel.js’s .Click method?
Thanks,
Robert
-
AuthorPosts