passing parameters from code to widgetbox widget config params
We need the inkubookbeta widget to show up on our site and have our code pass the config.xml param to the flash object in order for the user to see their own inkubook in the widget. Is this doable with javascript? Is the following document the only method of doing so? http://docs.widgetbox.com/developers/...
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?Are you trying to give them a live preview, or just make sure that they get the correct widget? If the latter, that doc that you linked is the one to work from.
If you're trying to update the widget on-the-fly in runtime, this is not possible at this time.
-
Inappropriate?I want the widget to show up with their project visible (e.g. set the config.xml parameter for them and refresh the preview for them) to allow them to see their project. From there they can do the normal "Get Widget" widgetbox functionality. I want to avoid having to tell them "Copy this "http://....b30.xml" string and paste it into the widget parameter to see your project".
I notice that when I update the parameter's value on http://widgetbox.com/widget/inkubookbeta it automatically refreshes. Updating the value of that customizable parameter is what I want to do via code for the user.
So I'm not updating the widget on the fly, but rather the value of the configxml parameter so they don't have to. They can easily mess up copying and pasting of a long URL and it isn't a good user experience. It looks like that is what the viral installer help doc is saying it can do, but I wanted to be clear.
I’m undecided
-
Inappropriate?Gotcha! ell try this doc:
http://docs.widgetbox.com/developers/...
This way, you can just give them a link to click and they'll show up on our site, with their widget already configured and displaying a preview.
-
Inappropriate?That looks like a good solution, but when I try using http://www.widgetbox.com/widget/inkub... it does not change the parameters. The default parameter should be changed to the extmlpath querystring value. Why isn't it working? Do I have to configure my widget to enable this functionality?
-
Inappropriate?Hey there,
Got it: since your config params are set to flashvars, for this case, the name actually needs to include "flasvhar."
Here's a modified link:
http://www.widgetbox.com/widget/inkub...
Or broken out...
http://www.widgetbox.com/widget/inkub...
?_wbx_external=1
&flashvar.extxmlpath=http://inkuthumbs.s3.amazonaws.com/xml/config924e995a-5ec9-454d-8c93-0d9412cc07f4.xml
&flashvar.startslideshow=true
1 person says
this answers the question
-
Thank you very much. That is the answer.
Loading Profile...



