Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 01-10-2006, 07:14 PM   #1
Member (7 bit)
 
Join Date: Dec 2005
Posts: 87
Javascript \ escape problems

I have the following code to change pictures when a javascript button is pressed:

piccontainerobj.innerHTML=''

The only problem is that the \ don't appear. The image isn't found, and when I click on properties I get the address as uploadedImagesproductspic28.jpg

I want to use \ vs. / to save on bandwidth. If I use / than everything is read remotely instead of locally.
hartken is offline   Reply With Quote
Old 01-12-2006, 03:45 PM   #2
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
I'm not quite sure what you're asking. If you're trying to get something using an address in javascript, you need to start from the location of your page, then navigate to whichever folder the item is in using .. and /

for example, if your html page is in the main directory, and your images are in a folder called "images" you'll have to use something like this:

images/myimage.jpg

But, if in your main folder you have two seperate folders--one for images and one for your html pages, you'll have to use something like this:

../images/myimage.jpg
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
Force Flow is offline   Reply With Quote
Old 01-17-2006, 02:21 PM   #3
Member (7 bit)
 
Join Date: Dec 2005
Posts: 87
Yeah sorry. I just got mixed up. I have my testing server as windows and I was uploading to a unix machine.

The moral of this story kids is to not work projects late at night when you are drinking.
hartken is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:03 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2