[Fiware-tech-help] MASHUP PLATFORM NOT FOUND IN WIRECLOUD WIDGET WITH TWO HTML FILES

antonio.dantoni1993 at libero.it antonio.dantoni1993 at libero.it
Thu Mar 10 16:30:38 CET 2016


Good evening,I am a developer of startup Fiware , I have this problem:

“MASHUP PLATFORM NOT FOUND IN WIRECLOUD WIDGET WITH TWO HTML FILES”

The widget wirecloud doesn't load the API Mashup Platform  when these are recalled from a html file which it is different from the html file specified in the widget configuration (config.xml).How do I specify a second html file in the widget configuration ??

In my widget:
The file specified in the widget configuration is index.html.Index.html calls a Javascript function that uses the MashupPlatform.wiring.pushEvent, and it's all ok!When the file index.html calls a second htm file (add.html) and this callsa Javascript function that uses the  MashupPlatform.wiring.pushEvent,the Javascript console gives me this error: Uncaught ReferenceError: MashupPlatform is not defined.
I think this error could be generated because in config.xml I specified only index.html and not add.html. as source. I didn’t find actually in wirecloud guide how to configure a widget with more than one html, neither a widget example with more that one html

How can I fix this ?
Best regards,
Antonio D'Antoni
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20160310/88bded9c/attachment.html>


More information about the Fiware-tech-help mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy