Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-6099

FIWARE.Request.Tech.Apps.ApplicationMashup.ComponentDevelopment.WidgetWith2HTMLFiles

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-TECH-HELP
    • Labels:
      None

      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>]

        Activity

        Hide
        aarranz Álvaro Arranz added a comment -

        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)

        Show
        aarranz Álvaro Arranz added a comment - 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)
        Hide
        aarranz Álvaro Arranz added a comment -

        The issue has been emailed:

        • Time sent: 23/Mar/16 12:48 PM
        • To: antonio.dantoni1993@libero.it
        • with subject: *(HELP-6099) [Fiware-tech-help] MASHUP PLATFORM NOT FOUND IN WIRECLOUD WIDGET WITH TWO HTML FILES *

        Dear Antonio,

        any argument for adding support for more than one html files? I will close this ticket in the following days without adding such feature if you don't provide us any argument.

        Best regards,
        Álvaro

        Show
        aarranz Álvaro Arranz added a comment - The issue has been emailed: Time sent: 23/Mar/16 12:48 PM To: antonio.dantoni1993@libero.it with subject: *( HELP-6099 ) [Fiware-tech-help] MASHUP PLATFORM NOT FOUND IN WIRECLOUD WIDGET WITH TWO HTML FILES * Dear Antonio, any argument for adding support for more than one html files? I will close this ticket in the following days without adding such feature if you don't provide us any argument. Best regards, Álvaro

          People

          • Assignee:
            aarranz Álvaro Arranz
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: