Ross Will it not work with just www.yourURL.com/images/pic.gif.?
Alfie ----- Original Message ----- From: "Ross Clutterbuck" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 13, 2002 8:27 PM Subject: [wdvltalk] Re: Need help with javascript command. > > That's the ticket! The http://.../ was throwing everything out of wack. > > Yeah but the problem now is that you can't link to other URLs with the > reference like that. > > If I understand you correctly, you want other sites (i.e. different URLs) to > access your script so you're going to need to add the http:// bit at the > beginning. As this *should* still be valid syntax when addressing external > JS functions, the problem you might be having with the script is that you're > providing relative addresses in your script that only apply to the way your > site works, not how others are set up. > > Example: > > Accessing an image file within your site can be done using a relative > address, i.e. "src = "../images/pic.gif", but this is gonna cause problems > on other URLs because they're not gonna have that file and that specific > directory tree. > > You should be able to get around this by using absolute addresses in your JS > file, so regardless of who is running your script, they're always gonna > point to the same file if your script says "src = > http://www.yourURL.com/images/pic.gif. > > Hope this is clear (I'm not very good at explaining things) and helps... > > MOU > > P.S. If you're getting the error icon in your browser (and by the sounds of > it you're using IE), double-click it and it will tell you what the problem > is. Within netscape/Mozilla type "javascript:" into the address bar and the > Javascript console will pop up showing you what the problem is. > > __________________________________________________ > > Do You Yahoo!? > > Everything you'll ever need on one web page > > from News and Sport to Email and Music Charts > > http://uk.my.yahoo.com > > > ____ . The WDVL Discussion List from WDVL.COM . ____ > To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] > Send Your Posts To: [EMAIL PROTECTED] > To change subscription settings to the wdvltalk digest version: > http://wdvl.internet.com/WDVL/Forum/#sub > > ________________ http://www.wdvl.com _______________________ > > You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] > To unsubscribe send a blank email to %%email.unsub%% ____ � The WDVL Discussion List from WDVL.COM � ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED]
