ebay not allowing this javascript

J

j-marvin

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="docWindow=window.open
('http://209.61.216.212/upload/gungadin/sunset.jpg

','myWindow1','toolbar=no,width=325,height=250, left=30,top=30
directories=no,status=yes,scrollbars=

no,resizable=no,menubar=no');docWindow.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="docWindow=window.open
(''http://209.61.216.212/upload/gungadin/winter.jpg

,'myWindow2','toolbar=no,width=325,height=
250,directories=no,status=yes,scrollbars=no,resizable=

no,menubar=no');docWindow.focus();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>
 
S

Steve van Dongen

j-marvin said:
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.

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.
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???

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

Regards,
Steve
 
J

j-marvin

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top