Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 6    Views: 126

Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
09/08/13 03:33 PM (12 years ago)

HTML Pro issue

Hey guys, trying to link to a Menu with Image screen in my app by clicking an image in my html. Using the following code: <a href="DD0FB366519126D0FC6110D"><img src="http://www.angryninjas.com/webapps/travelsolo/wsp_images/but_maps.png" style="overflow:hidden; position:absolute; left:44px; top:23px; width:245px; height:227px; background:none; " id="wsp_66e929c9" alt="" title="" border="0" /></a> When opening in a web browser, it tries to connect to http://angryninjas.com/webapps/travelsolo/DD0FB366519126D0FC6110D (the prefix of the address is the root directory where my index.html file resides that I have the code in) When tapping on it in my app, nothing happens. I've double checked the ID number given to me by the HTML Pro plugin, and make sure it's linked to the Menu with Images screen that I need it to load. I even deleted the reference and recreated it, still nothing. What am I missing? Thanks.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
09/08/13 03:44 PM (12 years ago)
What do the logs say? Cheers! -- Smug
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
09/08/13 03:57 PM (12 years ago)
Absolutely nothing. My image is in my HTML file, which loads fine. When I tap the image in the simulator, or my device, nothing happens, and no new lines appear in the Xcode log/debugger. But when I load the HTML file in a web browser, it's clickable... And tried to load the URL mentioned above. Plugin folder has been added to the project in Xcode, so it's not that either
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
09/08/13 04:04 PM (12 years ago)
Hmm. You might try removing some of the additional parameters, and simplify it a little while troubleshooting... Instead of: <a href="DD0FB366519126D0FC6110D"><img src="http://www.angryninjas.com/webapps/travelsolo/wsp_images/but_maps.png" style="overflow:hidden; position:absolute; left:44px; top:23px; width:245px; height:227px; background:none; " id="wsp_66e929c9" alt="" title="" border="0" /></a> try <a href="DD0FB366519126D0FC6110D"><img src="http://www.angryninjas.com/webapps/travelsolo/wsp_images/but_maps.png"></a> And see if that has a different result. Cheers! -- Smug
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
09/09/13 09:02 AM (12 years ago)
Tried that as well, same thing :( Happy to upload my source code and html file if you want to take a look at it.
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
09/09/13 09:14 AM (12 years ago)
GOT IT! Kind of... the issue was "prevent user interaction" was turned on. The reason I had that on though was I didn't want my users to be able to pinch in or out on my html page. Is there a way to prevent zooming while still allowing user interaction on the html page? Also, when I tap my image in the html page, it puts a gray box over it while it is loading the Menu With Image screen... but that screen takes about 15-30 seconds to load beofre it transitions. Is there a way to put a "Loading" message over my view until that screen loads up?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
09/09/13 02:21 PM (12 years ago)
I'm not sure; Chris would know though; it's his plugin. Glad to see you worked through it :) Cheers! -- Smug
 

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.