Details
-
Type: extRequest
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:None
-
Sender Email:
-
HD-Chapter:Apps
-
HD-Enabler:Wirecloud
Description
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
Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost.
Please, send your messages using the new domain (Fiware-tech-help@lists.fiware.org) instead of the old one.
_______________________________________________
Fiware-tech-help mailing list
Fiware-tech-help@lists.fiware.org
https://lists.fiware.org/listinfo/fiware-tech-help
[Created via e-mail received from: "antonio.dantoni1993@libero.it" <antonio.dantoni1993@libero.it>]
Dear Antonio,
currently WireCloud only supports widgets using only one html file. You can use any frameworks using html files as templates (e.g. AngularJS) but in that case the main html document doesn't change, so it will work with WireCloud.
We can add support for widgets with more than one html file, but it won't be a simple change and we have to evaluate if the change worth the effort (e.g. if others can benefit it) so, Could you elaborate why do you need two html files?
Best regards,
Álvaro (WireCloud's lead developer)