HTML/JS widget - Code in widget, or use iFrame?
I'm developing an HTML widget that will also use jQuery for functionality...
My main question is: Should I code the widget on my server, and then use an iframe to pull it in on the widgetbox server? Or is it better to have all the code live on the widget box server (in the code window).
Second question: Should I be concerned about using jQuery in my widget? Will it possibly conflict with other JS libraries when my widget gets embeded?
Thanks,
-Simon
My main question is: Should I code the widget on my server, and then use an iframe to pull it in on the widgetbox server? Or is it better to have all the code live on the widget box server (in the code window).
Second question: Should I be concerned about using jQuery in my widget? Will it possibly conflict with other JS libraries when my widget gets embeded?
Thanks,
-Simon
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?Hey Simon,
We'll display your HTML/JS widget in an iframe no matter what, so it's really just a question of whether the iframe points to our page running your code or to your own (in which case you'd want to use a REMOTE widget). There shouldn't be any issues with either implementation.
Additionally, there shouldn't be any issues with jquery. If you run into anything, just let me know.
-
Inappropriate?Are there advantages and disadvantages of each method?
If changes are made to the widget on a remote server, I assume this will update all instances of the widget?.. And if the code is on your server, it is as simple as hitting 'publish changes'?
-Simon -
The only advantage to HTML/JS is that we host the code. Other than that, it's the same. And yes, as you mentioned it's just a matter of having to publish changes for the HTML/JS widgets, which is a benefit since you get a Sandbox to make your changes in before pushing them out to users.
Loading Profile...



