Welcome to WebmasterWorld Guest from 54.205.75.60

Forum Moderators: open

Message Too Old, No Replies

JS/AJAX Widgets

   
8:54 am on Sep 14, 2006 (gmt 0)

10+ Year Member



How does one put together a "Myspace type widget" that are all the rage today among web 2.0 startups?

Basically i'd like to generate some javascript that when a user puts it on their blog will pull data off my server via a php script and output it on the user's blog (very similar to those little Flickr boxes you see around the web these days).

I'm 100% clueless as to the broad-strokes on something like this.

I was thinking just generate an iFrame code with the src url full of the necessary user variables, but I know there is a better way to do this.

Thanks!

5:11 am on Sep 29, 2006 (gmt 0)

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member



An iframe would work well. A regular JS might work too.

It all depends on what you want to do, and if you need the script to access anything on the target page. There are cross-domain security issues, ya know, which can make certain things like this difficult.

2:12 pm on Sep 29, 2006 (gmt 0)

WebmasterWorld Senior Member whoisgregg is a WebmasterWorld Top Contributor of All Time 10+ Year Member



If you are targeting the myspace crowd, you can't use Javascript... All the myspace "widgets" you see are Flash based.