Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 11    Views: 57

Stacey5150
Lost but trying
Profile
Posts: 54
Reg: Feb 17, 2013
West Middlesex,...
8,490
01/19/14 05:31 PM (11 years ago)

HTML Pro issue

My iOS app gives me an error that the "requested url was not found on this server" when I click on the text link that is supposed to load a location map. I had the same issue in my Android app, which I still haven't been able to resolve. I know there has been updates to the plugin for V3 and I have recompiled my projects, so my plugins would also update, and I am still having the same issues. Obviously I am missing something in my implementation. Any suggestions would be greatly appreciated.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/19/14 09:11 PM (11 years ago)
Although the plugin may be updated in your control panel, the 'code' in your project is not updated until you repackage and redownload the project. If you have made several changes to your package 'code' and don't want to redo everything, you can also download the plugin and copy over the new updated files over your old files (making sure that you also edit/rename the "BT_appDelegate" calls in the fresh plugin code. Either way 'should' be your method. If you aren't doing one of these, then your (updated plugin) code will not show. Hope this makes sense. Cheers! -- Smug
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/19/14 09:24 PM (11 years ago)
I just updated the plugin to fix some of these issues. Make sure your links are setup properly once you update your app.
 
Stacey5150
Lost but trying
Profile
Posts: 54
Reg: Feb 17, 2013
West Middlesex,...
8,490
like
01/20/14 04:43 AM (11 years ago)
Thanks Chris and Smug! I appreciate your help!
 
Stacey5150
Lost but trying
Profile
Posts: 54
Reg: Feb 17, 2013
West Middlesex,...
8,490
like
02/08/14 07:59 AM (11 years ago)
Hi Chris and Smug! I decided to re-do my project from scratch to make sure that my project was using the updated version of the HTMLPro plug-in. When I ran it in Xcode I am still having the issue that it cannot locate the url on the server. I followed the documentation in properly setting up the links, so again, I am not sure what I am doing wrong. I created a link off of the main menu called Arts. within that Custom HTML document I created a text link to the location map plugin for a museum. The link created to the map is: B4A4E57F82165B3AE2B9FBF. This is how it appears in the source of the saved custom HTML document as well as the saved JSON: <p> </p> <div> </div> <div> THIS IS A LINK TO THE <a href="B4A4E57F82165B3AE2B9FBF">MAP</a></div> <p> </p> {"itemId":"DDB45BCB7EB14E3606A38A0", "itemType":"BT_screen_customHTML", "itemNickname":"art", "navBarTitleText":"art", "dataURL":"https://www.buzztouch.com/applications010914/JA5AAC4278671136121AEC2D7/documents/customHTML_DDB45BCB7EB14E3606A38A0.html”} I copied this dataURL and pasted it in the location "Load from this URL field: https://www.buzztouch.com/applications010914/JA5AAC4278671136121AEC2D7/documents/customHTML_DDB45BCB7EB14E3606A38A0.html I saved this location then saved the JSON which appears as follows: { "itemId": "DEB12BF1B3CDB78120A9B83", "itemType": "Cr_html_pro", "itemNickname": "HTML Pro", "navBarTitleText": "HTML Pro", "navBarBackgroundColor": "#00FF99", "navBarStyle": "transparent", "dataURL": "https://www.buzztouch.com/applications010914/JA5AAC4278671136121AEC2D7/documents/customHTML_DDB45BCB7EB14E3606A38A0.html" } I don"t understand what I am missing here. Any suggestions? Is there any possibility that the plugin is not updating in my control panel. If so, is it possible to delete the plugin from my control panel and re-install. If so, how do I go about this? Thanks for your patience! Stacey
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
02/08/14 10:15 AM (11 years ago)
I just updated the plugin to get rid of the need for the pesky child items. Now, you can set a link to any itemId in your app and it will automatically find it. Let me know how you find the update.
 
Stacey5150
Lost but trying
Profile
Posts: 54
Reg: Feb 17, 2013
West Middlesex,...
8,490
like
02/08/14 06:20 PM (11 years ago)
Hi Chris, I tried the updated HTML Pro Plugin and it still couldn't find the requested URL on the server. I got the itemId of the location map per the itemId lookup tool which was: B4A4E57F82165B3AE2B9FBF . So I set the href in the cutom HTML link in my document to <other> protocol and B4A4E57F82165B3AE2B9FBF and saved the document. The JSON of my custom HTML document reads: JSON Data for this Plugin (for reference, copy and paste as needed) {"itemId":"DDB45BCB7EB14E3606A38A0", "itemType":"BT_screen_customHTML", "itemNickname":"art", "navBarTitleText":"art", "dataURL":"https://www.buzztouch.com/applications010914/JA5AAC4278671136121AEC2D7/documents/customHTML_DDB45BCB7EB14E3606A38A0.html”} I tried to setting up my link with and without setting the dataUrl (I wasn't sure if I still had to do that in the updated plugin) in the HTML Pro plugin Document Location “Load from this URL instead” field using: https://www.buzztouch.com/applications010914/JA5AAC4278671136121AEC2D7/documents/customHTML_DDB45BCB7EB14E3606A38A0.html I also made sure I published the changes in the app, and watched the You Tube video to see if I was missing something. Not sure why it is still not finding the url. Thanks, Stacey
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
02/08/14 06:54 PM (11 years ago)
Can you send me your BT_config.txt file? [email protected]
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
02/08/14 07:17 PM (11 years ago)
Got your file - it was just as I thought it might be. Real common issue. You are linking your menu screen items to the Custom HTML screens, not the HTML Pro screens. Think of HTML Pro much in the same way as the Custom URL screen - it loads an HTML document from either a local file or a URL. In your case, you created an HTML document using the Custom HTML plugin, but you need to still load the actual document using the HTML Pro plugin. To do this, find the dataURL for your HTML document (hint, you noted it on your previous post above). Paste that URL into the HTML Pro screen, and point your menu item to that HTML Pro screen. Make sense?
 
Stacey5150
Lost but trying
Profile
Posts: 54
Reg: Feb 17, 2013
West Middlesex,...
8,490
like
02/09/14 07:23 AM (11 years ago)
Thanks Chris for your help. It's working now. One other thing, I saw in the You Tube demo that you had image links to your pages. Do I have to hard code images into the custom HTML as I didn't see a way to place images. Also, is there a special path I have to use to the image file?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
02/09/14 07:37 AM (11 years ago)
No need to hard code them - there's an image button on the Custom HTML plugin. For iOS, no need to specify folders. For Android, yes
 
Stacey5150
Lost but trying
Profile
Posts: 54
Reg: Feb 17, 2013
West Middlesex,...
8,490
like
02/09/14 08:12 AM (11 years ago)
I don't see it in the text editor bar. Am I looking in the wrong place?
 

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.