Forum: Ruby on Rails Display widget on remote sites

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
91308e9bc88cb069fd1bcf88e910d042?d=identicon&s=25 Nick Snels (nicksnels)
on 2007-03-31 14:31

I would like to make a "widget" that gets placed on websites that I
don't control. And I want to make it as simple as possible for people to
(a maximum of 2-3 lines of code) place the widget on their website. So
it should be html or javascript code only.

Another requirement is that the requested widget resides on my
webserver. In case I want to make a change to its design, it should be
visible immediately on all the websites the widget is placed on. The
widget should also request data from the database based on some params,
the site owner can specify.

I have already looked at Flash, but since I'm new to Flash it seemed to
complicated. IFrames looks like a solution, but not one I want to use.
Is there a possibility to do this with Ajax? Any pointers are welcome.

Kind regards,

Compare Rails hosting companies
18749481b646fa566c08df4a909e2e6a?d=identicon&s=25 dirs (Guest)
on 2007-04-01 19:48
(Received via mailing list)
I think this is possible in JavaScript with some functions:
- document.write
- innerHTML
- appendElement

Search about these methods and you will find the best way to do your

On Mar 31, 9:31 am, Nick Snels <>
This topic is locked and can not be replied to.