Page 1 of 2

Custom HTML Not Loading

Posted: Thu Apr 16, 2015 5:29 pm
by Alliant Content

Hey gang,

We're trying to embed a Javascript video player into a page within our app, but it only will show if it's in the starting page. This is the same problem with either the phone or the tablet app.

Do we need to pay more to unlock sub-page custom HTMLs? Is Javascript disabled on anything but the first page of the app? Any and all help would be appreciated, we're very new to development and need to decide if Appery.IO is where we should place our business.

Thanks,
Chris Murphy
XiveTV


Custom HTML Not Loading

Posted: Thu Apr 16, 2015 6:17 pm
by Illya Stepanov

Hello -

It is not very clear how exactly it is working for you on a 'startpage', but not on any other, could you please show examples of your implementations?


Custom HTML Not Loading

Posted: Thu Apr 16, 2015 6:57 pm
by Alliant Content

Hey Illya,

Currently we're trying to make this work on a phone screen.

We have, right now, a very rudimentary app design: A main page ('startscreen') and a videos page ('VIDEOS'). The main page has a button to the videos page, and the videos page has a 'back' button to return to the start screen. Other than that, they both have the same exact embedded custom HTML for our video player.

Here are screenshots of them both in the developer and the testing service:

Image Image Image Image

As you can see, we clearly have a video player on the startscreen, but none on the 'VIDEOS' page. It's the same HTML code in both instances of embedded HTML.


Custom HTML Not Loading

Posted: Thu Apr 16, 2015 7:17 pm
by Illya Stepanov

Is it possible to show the source code for this both HTML elements? Or you can share you app with us and tell us its name.


Custom HTML Not Loading

Posted: Thu Apr 16, 2015 7:19 pm
by Alliant Content

The app's name is XiveTV Worldwide. Here's the HTML code:


Custom HTML Not Loading

Posted: Thu Apr 16, 2015 7:19 pm
by Alliant Content

Wait, that didn't work. Here is is without brackets:

script type="text/javascript" src="http://content.jwplatform.com/players...


Custom HTML Not Loading

Posted: Thu Apr 16, 2015 7:20 pm
by Alliant Content

Wait, that didn't work. Here it is without brackets:

script type="text/javascript" src="http://content.jwplatform.com/players..." /script


Custom HTML Not Loading

Posted: Thu Apr 16, 2015 7:39 pm
by Illya Stepanov

You can use here: precode<code>< /code>/code/pre


Custom HTML Not Loading

Posted: Thu Apr 16, 2015 7:58 pm
by Alliant Content

Hey Illya, I'm confused, do we wrap that around the entirety of our Javascript? It doesn't seem to be doing much.


Custom HTML Not Loading

Posted: Thu Apr 16, 2015 8:05 pm
by Alliant Content

If this helps, the HTML we're trying to embed is a JWPlayer frame. We can get it to work if we switch the code to this (I've deleted the brackets:)

iframe src="http://content.jwplatform.com/players..." width="480" height="270" frameborder="0" scrolling="auto" /iframe

But that won't work for us because we need the player to re-size based on the user's phone.