Coding For Online Success

Dynamically create eBay widgets from existing rover code


Today, I read about the eBay widget. At first I was super stoked on the concept, and they look great. Here is a working example of the widget:

No Flash? What’s wrong with you?

Now my issue is this, it seems like you might be missing out on cookies since visitors might be viewing all the auction info directly from the widget vs going to eBay, and you would missing out on the cookie and affliate tracking. My initial tests with FireFox and Live HTTP headers seem to stress that cookie generation only occurs when you click ‘View & Bid’ in the widget. The jury is still out on this, and hopefully people will share some of their success and failures to help others make good decisions when it comes to the widget. I’m going to try to post any useful results as they occur.

In the meantime, I thought I’d give up this simple little function that will convert inputted rover code into the widget. This could be useful if you have content stored in the database with rover code embedded. You’ll need to download the swfobject.js file to help with IE browsers display object/embed tags.

span class=”st0″>"PID", "123456790""(.**)"‘QQ’‘(^itemZ)’‘itemZ’‘<p id="widget’.$xid.‘" align="center">’.$out.‘</p>
                                                                <script type="text/javascript">
                                                                var s0 = new SWFObject("","single","355","300","7");
"text/javascript" src="swfobject.js"

It’s pretty simple, and you could easily expand this to auto generate widgets in a forum (hint, look at preg_replace_callback()). If you have any thoughts, please comment here. There is also a DigitalPoint thread here that has a dicussion about this now.

Leave a Reply

Required fields are marked *.

CommentLuv badge

This site uses Akismet to reduce spam. Learn how your comment data is processed.