Posts by TN421

    Hi michel and Klaus,

    I've managed to create an example test-case for my problem. Sorry that it took so long time, but my implementation is a complex mixture of PHP, MySQL, Javascript, Flash and KRPano and using it wouldn't have been helpful at all.

    It seems the problem is with dynamically created hotspots by javascript and using the js()-function as onclick attribute. When I test it with Safari/Mac/ iPad or iPhone mode, it throws the error:

    Quote

    "TypeError: Result of expression 'J[a[_[106]]]' [undefined] is not an object."


    Can you michel show what I'm doing wrong or prove me correct with these two example files:

    • javascript4.html
    • javascript4.xml


    Insert them to the same folder as you javascript3.html and javascript3.xml were.

    Code for javascript4.html

    Code for javascript4.xml

    Thanks again! I hope we can solve this thing together soon :)

    Hi Michel,

    Thanks for the quick reply. I know the js-function's name is js_showtext, but if I understand correctly it has nothing to do with the krpano action called showtext. It also doesn't work with other javascript function's that have other names. I believe the problem is with the js()-action in krpanoJS. Actually I can't use any javascript function with or without parameters in onclick of hotspots for krpanoJS. They all throw the same error.

    BTW I'm only using it in the "demo mode" because I don't have the licence for it yet.

    I'm using Javascript Interface documented in here and I'm using:

    • the js-action
    • and image-hotspots created dynamically with javascript
    • and onclick function similar to js_showtext() shown here
    • but my js_showtext()-function requires parameters eq js_showtext(header, text)


    It seems that the krpanoJS isn't able to have a js-function in onclick if the javascript function has parameters. It throws an error on Safari's Error console:

    Quote

    TypeError: Result of expression 'J[a[_[106]]]' [undefined] is not an object.


    Regular Flash-version works fine. What should I try? Is this a bug or a feature not ready yet?