Local HTML

  1. last year

    apt

    3 Jul 2018 User since 2018
    Edited last year by apt

    I successfully added a hype document (HTML) and it’s resources folder (js, css) into Creo and was able to add it into a web view by specifying the index.html name as the source. This runs fine on the preview but doesn’t work in the Creo player.

    Is this a bug or working by design?

  2. marco

    3 Jul 2018 Administrator User since 2016

    Hmm... seems like a bug to me... let us investigate more...

  3. apt

    3 Jul 2018 User since 2018

    @marco I should have reported this prior to 1.0.3 release :)

  4. marco

    4 Jul 2018 Administrator User since 2016

    Yep... the issue has been fixed in our internal build.
    We'll release a new version soon.

  5. apt

    7 Jul 2018 User since 2018

    Are we waiting for the new Creoplayer test flight version to fix this issue in there? I tested this with current test flight and issue still showing.

  6. marco

    7 Jul 2018 Administrator User since 2016

    @apt right, we already submitted the new CreoPlayer and we are now waiting for the review... unfortunately this step is not under our control.

  7. apt

    7 Jul 2018 User since 2018

    Totally understand @marco no issues from me regarding Apple wait times, just interested to see if this local html issue is also fixed in new Creoplayer as current Creoplayer (1.1.2) it’s still not working as expected.

    As a side note, are we able to target JavaScript within webviews? I want to be able to trigger Hype animations from within code.

  8. marco

    8 Jul 2018 Administrator User since 2016

    Hi @apt we just exposed the runJavaScript method to the WebView, so you'll be able to execute JS starting form the next version:

    var onSuccess = func (result) {Console.write("RESULT: \(result)");}
    var onError = func (error) {Console.write("ERROR: \(error)");}
    
    WebView1.runJavaScript("var foo = 1; foo + 1;", onSuccess, onError);
  9. apt

    8 Jul 2018 User since 2018

    That’s fantastic @marco

or Sign Up to reply!