By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,178 Members | 2,144 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,178 IT Pros & Developers. It's quick & easy.

ebay not allowing this javascript

P: n/a
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();ret urn 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,resiza ble=

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>
Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"j-marvin" <cu******@service.boy> wrote:
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
Jul 23 '05 #2

P: n/a
Steve van Dongen <st*****@hotmail.com> wrote in
news:h3********************************@4ax.com:

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
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.