icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old October 20th, 2003, 2:19 AM   #1 (permalink)
Registered User
Comfy Contributor
 
Joined in Oct 2003
Lives in midtown atlanta
Hosted on viva
174 posts
Gave thanks: 0
Thanked 1 Time in 1 Post
let's say that there is an image in the 'images' directory on my main site (ex: www.site.com/images/pic.jpg) to which i want to link from a subdomain (subdomain.site.com). if i give the path on the subdomain as "/images/pic.jpg", the browser looks in subdomain.site.com/images/pic.jpg, which, of course, is not where the image is.

is there a path that i can use to link/point to the main domain from the subdomain without using the entire url (ex: img src="http://www.site.com/images/pic.jpg")? thanks in advance.
__________________
pass8: www.sisyphean.com
saprus: www.postbaroque.com
saucemaster is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old October 20th, 2003, 5:22 AM   #2 (permalink)
the one who was
Super #1
 
patrickb's Avatar
 
Joined in Jul 2003
Lives in Memphis
1,967 posts
Gave thanks: 0
Thanked 3 times
Never tried this before, but try: ../images/picture.jpg
__________________
Patrick

Warnings: The program(s) might crash unexpectedly or behave otherwise strangely. (But of course, so do many commercial programs on Windows.) --www.gimp.org
patrickb is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old October 20th, 2003, 9:59 AM   #3 (permalink)
Registered User
Comfy Contributor
 
Joined in Oct 2003
Lives in midtown atlanta
Hosted on viva
174 posts
Gave thanks: 0
Thanked 1 Time in 1 Post
Quote:
Originally posted by patrickbOct 20 2003, 3.22 am
Never tried this before, but try: ../images/picture.jpg
no, i am afraid that that did not work. any other ideas? thanks.
__________________
pass8: www.sisyphean.com
saprus: www.postbaroque.com
saucemaster is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old October 20th, 2003, 3:37 PM   #4 (permalink)
the one who was
Super #1
 
patrickb's Avatar
 
Joined in Jul 2003
Lives in Memphis
1,967 posts
Gave thanks: 0
Thanked 3 times
Oh well. Browsers expect images to be in a /images/ directory of the domain, or in this case, subdomain. If they are, they cache them so they don't have to download the images again. Looks like your only option is to either copy the image into the subdomain's images folder, or use the full URL to link to the images.
__________________
Patrick

Warnings: The program(s) might crash unexpectedly or behave otherwise strangely. (But of course, so do many commercial programs on Windows.) --www.gimp.org
patrickb is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

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