Ready to get started?Download WordPress


Using javascript inside a text widget (7 posts)

  1. chingching
    Posted 7 years ago #

    Hi, is it possible to put a script inside a text widget.
    The script is an ebay link http://www.firzt.com/thaikickboxing/ there is the script working correctly. When i put this script inside a widget, it comes out with all funny small boxes that look like tables. Most of it does appear except for the boxes that fill empty spaces.

    the code is. <script language="JavaScript" src="http://lapi.ebay.com/ws/eBayISAPI.dll?EKServer&ai=duw.xs%60&bdrcolor=ffffff&cid=0&eksize=11&encode=ISO-8859-1&endcolor=FF0000&endtime=y&fbgcolor=FFFFFF&fntcolor=000000&fs=0&gallery=y&hdrcolor=ffffff&hdrimage=1&hdrsrch=n&img=y&lnkcolor=330033&logo=3&num=25&numbid=y&paypal=n&popup=y&prvd=1&query=coffee+beans&r0=4&shipcost=n&si=arcocoffee%2Cinvalsa%2Cjimmydeboca%2Cdmdever%2Cdbeck316&siteid=0&sort=MetaEndSort&sortby=endtime&sortdir=asc&srchdesc=y&tbgcolor=FFFFFF&tlecolor=330000&tlefs=0&tlfcolor=000000&track=2057682&width=570"></script>

    I also tried enclosing the whole thing inside html, but that changed nothing.

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    There's no trick to it. If you are the admin, you can paste scripts directly into text widgets. Works fine for me.

  3. shlinklincoln
    Posted 6 years ago #

    The same thing is happening to me when I paste ebay java script code. What code can I fix to prevent the boxes from showing?



  4. kmessinger
    Volunteer Moderator
    Posted 6 years ago #

    This works fine in my text widget.

    Make sure your encoding for reading and feeds under options, reading is set for UTF-8. I think that is why you see the small boxes.

  5. shlinklincoln
    Posted 6 years ago #

    Thanks for your reply.

    I do have UTF-8 under my reading options. Could it be a browser issue? I'm viewing in IE. Do you see the clear boxes on my Ebay sidebar widget?


  6. kmessinger
    Volunteer Moderator
    Posted 6 years ago #

    When I put your code on my blog it was fine in IE7. Perhaps it is the setting you have that outlines all your sidbar entries?

  7. shlinklincoln
    Posted 6 years ago #

    Thanks for checking. This is so weird. I can't figure out why it is showing boxes on my sidebar.

    Anyone else have this problem?

Topic Closed

This topic has been closed to new replies.

About this Topic