Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 6    Views: 73

chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
08/13/12 09:34 AM (11 years ago)

full html in custom html5 plugin?

How can I add header information (i.e., css and js scripts) into the custom html5 plugin? Is my only option really to host the webpage on a server and link to it with the custom url plugin?
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
08/13/12 10:01 AM (11 years ago)
view source in the wysiwyg editor and either add inline css and js or reference them in the head. css and js can be placed in the assets of the android or iOs project so references might be something like file:/assets/css/file.css etc
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
08/13/12 10:09 AM (11 years ago)
When I try to do that, it removes the "<head>" and "</head>", making everything part of the body.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/13/12 10:23 AM (11 years ago)
You should be able to provide a local (bundled with the app) .html file that you can edit in any way you want. Won't be able to use the online editor on it, but you can put whatever HTML/JS/CSS/Whatever code in it you want. Mark
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
08/13/12 10:38 AM (11 years ago)
Upload html to file manager. Grab link, use link. It'll be hosted exactly the same place as Custom HTML Text html file. Fred
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
08/13/12 10:38 AM (11 years ago)
Thanks Mark. How would I link it to a button? I assume I'd use the custom url plugin? But where do I go from there?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
08/13/12 10:39 AM (11 years ago)
Thanks Fred - I'll try that out.
 

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.