Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 6    Views: 85

kevindosi
I hate code!
Profile
Posts: 22
Reg: May 09, 2012
location unknow...
2,070
02/16/14 09:59 PM (11 years ago)

HTML Pro not working

I'm trying to figure out how to get HTML Pro to work, but so far no luck. I'm sure that I'm just doing something stupid wrong. My app is hosted on the BT servers. The most I've gotten was for the link to open up the page that it is currently on, basically refreshing the page. Most of the time, though, I get the error message: "iOS Error Code: -1100 iOS Error Message: The requested URL was not found on this server." Any ideas how to work this out? I'm perplexed. Here's what I've done, maybe you can figure out what I'm doing wrong: 1) Create HTML Pro screen 2) In HTML Pro screen, under itemID Lookup, select screen called “Basics and Tips” - it’s an HTMLCustom Text screen that I want to be the destination of the link. 3) Copy the itemId (4905ECA32CB7681D647E351). There is no choice to “add” as in the pdf instructions. It just allows me to select screens and copy their IDs. 4) Go to my Home screen, (also an HTMLCustom Text screen), where I want to place my link. 5) Create a link like <a href=“4905ECA32CB7681D647E351”>Basics and Tips</a> 6) Press save. When it saves, I copy the dataURL below the save button. It’s an https:// link. 7) Return to HTML Pro screen. 8) Under document location, copy the https url and save. So far it's gotten me nowhere, and I kind of need this to make my app more than a series of ugly menus. I sent an email to the dev a few days ago but haven't heard back yet, so I would really appreciate any input. Thanks!
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
02/16/14 11:47 PM (11 years ago)
Sounds like you're on the right track. In your app, when you load the HTML document, how are you doing so? Are you loading it from a menu item? If so, what are you pointing to? A common mistake is for people to create the HTML document, referencing the itemId like you did, and then point the menu screen to that HTML document. Instead, you should be pointing the menu item to the HTML Pro screen. So, your app would have the following screens (in a simplified example): 1) Menu Screen (set to home screen) 2) HTML Pro screen 3) HTML document #1 would point to #2, and #2 would point to #3. Make sense?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/17/14 03:51 AM (11 years ago)
I keep thinking of that song 'Dem Bones'. :) Cheers! -- Smug
 
kevindosi
I hate code!
Profile
Posts: 22
Reg: May 09, 2012
location unknow...
2,070
like
02/17/14 12:26 PM (11 years ago)
Thanks for the response, Chris! I'm on a chromebook for the rest of the day, but I'll take a look when I get home tonight. I think it makes sense to me now. So just to clarify, the document location for screen 1 should point to screen 2, and document location for 2 points to 3? The way I currently have it set up, the home screen is an HTML\Custom Text screen with several buttons on it. Each button should link to another screen. Eventually, I would also like those screens to have links to other screens as well. I'll post back this evening. Thanks again!
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
02/17/14 01:03 PM (11 years ago)
Okay, so since you're loading the HTML document as the home screen, you'll want to set your home screen to the HTML Pro plugin. In the control panel screen for that plugin, you can set the document location for your actual HTML document. Think of it like the Custom URL plugin - that plugin doesn't have any HTML in it - it simply points to a location of an HTML document (typically a URL). The HTML Pro plugin works the same way.
 
kevindosi
I hate code!
Profile
Posts: 22
Reg: May 09, 2012
location unknow...
2,070
like
02/18/14 10:14 AM (11 years ago)
Aha! I've been thinking about this all wrong. I set my home tab to HTML Pro and all is well in the world. I guess this means that, if I want links on another screen, I need to create a second HTML Pro screen. I'll post back if I have any more problems, but thanks a lot for your help!
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
02/18/14 10:16 AM (11 years ago)
you got it
 

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.