Has anyone developed widget app in wix.com?

Discussion in 'Programming' started by HussainMHB, May 5, 2013.

  1. #1
    If did, please guide me i don't really know how to get started. I want to develop my own.
    I'll so grateful.
    Thanks.
     
    HussainMHB, May 5, 2013 IP
  2. David Schwartz

    David Schwartz Greenhorn

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #2
    Hi HussainMHB
    I am actually from Wix, I saw you already visited dev.wic.com and been talking to our developers support. Please let us know if we can help you further.

    Cheers

    David
     
    David Schwartz, May 9, 2013 IP
  3. HussainMHB

    HussainMHB Member

    Messages:
    62
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #3
    Thanks for the reply.
    I've seen the documentation and took a hello world sample test in my localhost server.
    But i don't know how to continue my app further (Video player but not hello world).
    And another thing is that i already created video player in html5 and now i want to create a widget app in wix.com (that video player). Can i get that video player into the widget app?
    Am i need to submit my app in GAE if even i developed app in my localhost server.
    Finally i'd appreciate if you give coding for some sample test but not for hello world.
    Thanks again for helping me...
     
    HussainMHB, May 9, 2013 IP
  4. annaharris

    annaharris Active Member

    Messages:
    119
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    51
    #4
    Check out given link to get brief information regarding development of widget app in wix. http://dev.wix.com/docs/display/DRAF/Developing+a+Widget+App
     
    annaharris, May 10, 2013 IP
  5. HussainMHB

    HussainMHB Member

    Messages:
    62
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #5
    Widget iframe and Setting iframe. What are they?
    I think that they are two separate html files for Widget and Settings
    Am i right or wrong? If wrong provide me correct answer.
    And hello world sample program looks very easy to do. But i can't understand the whole process through that simple one.
    Through this, i just created simple gallery but not editable we can't edit it in wix site and at the same time we can edit it in my localhost server.
    I don't have any idea about how can i get the instance of particular user like instance id, orgin id and signDate.
    Do i need to install GAE, maven and sdk even if i develop my app in my localhost server?
    I've been asking these kind of questions repeatedly for the past few days but didn't get any appropriate answer.
    You're the only person helping me thanks friend...
     
    HussainMHB, May 10, 2013 IP
  6. MichalBi

    MichalBi Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #6
    The Widget iframe and the Settings iframe are indeed two separate HTML pages. The App iframe URLs are called App endpoints. When an app iframe is created, the Wix platform adds a set of query parameters to the endpoint call. The instance is one of those parameter. The instance id, signDate, uid, permission and vendorProductId are properties of that instance. Visit our documentation center to read all about the instance and the instance id.
    The SDK java script should be loaded in each of the iframe endpoint so that your iframe will be able to communicate with the Wix platform, site and editor.
    You don't have to use GAE, but your widget and settings iframes should be hosted on a server.
    Other than the hello world example, there is a step to step tutorial that will guide you through the key steps for developing an app for the Wix platform.
    Please feel free to contact our developers support through Wix developer forum.
     
    MichalBi, May 12, 2013 IP
  7. anulikGyumri

    anulikGyumri Greenhorn

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #7
    Hi there, as HussainMHB, i am new in Wix, and i don't understand how can i pass parameters to widget from Settings, and get it in widget, i know that there is a function Wix.Settings.refreshApp() i can use it and pass params Wix.Settings.refreshApp({param1: "value1", param2: "value2"}) but how can i get it in widget and do something with it to update my widget
    I don't know is there anything about it in documentation , but i couldn't find it, and actually Wix documentation is a little bit confused for beginners
     
    anulikGyumri, Aug 14, 2013 IP
  8. MichalBi

    MichalBi Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #8
    Hi,
    After you use the Wix.Settings.refreshApp({param1: "value1", param2: "value2"}) your app iframe will be refreshed with custom query parameters as specified in the object argument - [APP_ENDPOINT]?[WIX-QUERY-PARAMETERS]&param1=value1&param2=value2.
    There are two more ways to update the app iframe according to the app settings ifrmae:
    1. you should save the new settings on your DB/backend server. After updating your server you can call the Wix.Settings.refreshApp() function from the App settings iframe to refresh the widget iframe that will reload with the new settings from you server.
    2. You can use the triggerSettingsUpdatedEvent method that should be used from the Settings iframe to trigger a Wix.Events.SETTINGS_UPDATED event in a WIdget/Page iframe. It should be used in an editing session when a developer wants to reflect editing changes but avoid refresh/reload on the Widget/Page iframe.
     
    MichalBi, Aug 15, 2013 IP