ebay not allowing this javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • j-marvin

    ebay not allowing this javascript

    hi-

    according to ebay policy on javascript i cant
    eBay does not permit the use of the following types of JavaScript
    functions in your item listing:

    Scripts used to drop or read a cookie on any eBay page
    Scripts that redirect the user from eBay to another page (such as the
    "replace" script)
    JavaScript Include and iframe

    so in this case i believe it thinks i am redirecting to another page.
    the offending javascript is after <td> <A HREF="#" ----from onclick to
    ----->

    my pictures are at pongo image hosting. what this code does is make
    small pictures behave like thumbnails and when you click on the
    thumbnail opens up a larger image of the picture (which is really
    another picture).

    when i preview it in the ebay html editor it works fine but i think
    the security is zapping me.

    any tips on what i can do???

    thanks,
    jim


    <table border="0" align="center" cellpadding="0" cellspacing="0" >
    <!-- 1 -->
    <tr>
    <td><A HREF="#" onClick="docWin dow=window.open
    ('http://209.61.216.212/upload/gungadin/sunset.jpg

    ','myWindow1',' toolbar=no,widt h=325,height=25 0, left=30,top=30
    directories=no, status=yes,scro llbars=

    no,resizable=no ,menubar=no');d ocWindow.focus( );return false">
    <img src="http://209.61.216.212/upload/gungadin/thumb1.jpg "
    width="75" height="56" border="0" target="

    _top"></a></td>
    <!-- 2 -->
    <td><A HREF="#" onClick="docWin dow=window.open
    (''http://209.61.216.212/upload/gungadin/winter.jpg

    ,'myWindow2','t oolbar=no,width =325,height=
    250,directories =no,status=yes, scrollbars=no,r esizable=

    no,menubar=no') ;docWindow.focu s();return false">
    <img src="http://209.61.216.212/upload/gungadin/thumb2.jpg "
    width="75" height="56" border="0" target

    ="_top"></a></td>
    <!-- 3 -->
    </tr>
    </table>
  • Steve van Dongen

    #2
    Re: ebay not allowing this javascript

    "j-marvin" <customer@servi ce.boy> wrote:
    [color=blue]
    >hi-
    >
    >according to ebay policy on javascript i cant
    >eBay does not permit the use of the following types of JavaScript
    >functions in your item listing:
    >
    >Scripts used to drop or read a cookie on any eBay page
    >Scripts that redirect the user from eBay to another page (such as the
    >"replace" script)
    >JavaScript Include and iframe
    >
    >so in this case i believe it thinks i am redirecting to another page.[/color]

    Probably. That's effectively what window.open does if you give the
    current window the same name as the second parameter in your
    window.open call.
    [color=blue]
    >the offending javascript is after <td> <A HREF="#" ----from onclick to
    >----->
    >
    >my pictures are at pongo image hosting. what this code does is make
    >small pictures behave like thumbnails and when you click on the
    >thumbnail opens up a larger image of the picture (which is really
    >another picture).
    >
    >when i preview it in the ebay html editor it works fine but i think
    >the security is zapping me.
    >
    >any tips on what i can do???[/color]

    That's easy. Use a regular link.
    <A HREF="http://209.61.216.212/upload/gungadin/sunset.jpg"> ...

    Regards,
    Steve

    Comment

    • j-marvin

      #3
      Re: ebay not allowing this javascript

      Steve van Dongen <stevevd@hotmai l.com> wrote in
      news:h3ujg09tsc pruqard8j0no32c f7scnren3@4ax.c om:

      thanks steve.
      you my friend are a genius.
      it was so simple. you can tell i do VERY little xhtml code at the moment.
      they were using window.open in an example i found and i thought i "had" to
      have it. guess not. i was working on this for a co-worker who asked me.
      the old example i had worked fine not on ebay but because of the java
      script with window.open it gave the ebay java security system a fit.
      this is another example of always test test and test again in a real
      setting.

      greatly appreciated :-)
      jim


      Comment

      Working...