Discussion Forums  >  WebViews and HTML for Mobile

Replies: 8    Views: 106

JustinPadgett
Android Fan
Profile
Posts: 13
Reg: Jun 03, 2012
winston salem n...
1,680
06/04/12 10:37 AM (13 years ago)

HTML form submit not calling JS functions

Hello everyone, I'm creating an App that uses the html5 plugin. This app is a simple 10 question quiz that (on submit) displays one of two possible html pages (pass or fail.html) The quiz loads like it is supposed to, but when you click finish, nothing happens. I have the html files (pass, fail.html) in the Manage Screens and Actions section, and I have also tested the code in my web browser(working). Can anyone guide me in the right direction? If you need sample code I will be more than happy to paste a snippet. Thanks
 
coderx
Veteran developer
Profile
Posts: 433
Reg: Oct 29, 2011
Ontario, Canada
8,680
like
06/04/12 10:42 AM (13 years ago)
Did you make sure that your script is not compiled and is bundled instead?
 
JustinPadgett
Android Fan
Profile
Posts: 13
Reg: Jun 03, 2012
winston salem n...
1,680
like
06/04/12 10:46 AM (13 years ago)
I have created two customer html 5 pages, and pasted the code; no success I have also created two html doc files; no success.
 
JustinPadgett
Android Fan
Profile
Posts: 13
Reg: Jun 03, 2012
winston salem n...
1,680
like
06/04/12 10:49 AM (13 years ago)
I have created two customer html 5 pages, and pasted the code; no success I have also created two html doc files; no success.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/04/12 12:58 PM (13 years ago)
This'll solve your problem: http://www.chrisboyd.net/2011/11/about-javascript-files-and-xcode-4/ It's exactly what @coderx was talking about. Mark
 
coderx
Veteran developer
Profile
Posts: 433
Reg: Oct 29, 2011
Ontario, Canada
8,680
like
06/04/12 01:07 PM (13 years ago)
Is it Android or iOS?
 
JustinPadgett
Android Fan
Profile
Posts: 13
Reg: Jun 03, 2012
winston salem n...
1,680
like
06/04/12 02:03 PM (13 years ago)
@GoNorthWest: Thanks I'm researching it now. @Coderx: Originally it was for Android; I ran the program in iOS and get the same result.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/04/12 02:11 PM (13 years ago)
I'd be interested in learning the Android solution as well. The link I provided was just for iOS. Mark
 
Njmpwnz
Apple Fan
Profile
Posts: 165
Reg: Feb 08, 2011
Cleves
2,350
like
06/05/12 05:10 AM (13 years ago)
Where is the file? I can't find my screen that I used HTML for.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.