hi,
on my development machine the url to the common images is following:
I have two pages:
&
both of the above pages have a image element who's CSS class is 'ProductImage':
.ProductImage
{
background-image: url(CommonImages/NoPicture.gif);
}
---
However, the above doesn't work. since CommonImages/NoPicture.gif is evaluated differently for different pages. I don't want to specifiy the full path like '/Prototype/StoreFront/CommonImages/NoPicture.gif' since this part (/Prototype/StoreFront) will be different for differnt clients. Any way to get this accomplished.
In ASP.net my application resides under and under asp.net i can simply say "~/CommonImages/NoPicture.gif" regardless of the directory i am at and it evaluates it to:
'/Prototype/StoreFront/CommonImages/NoPicture.gif'
Is there such an alternative to '~' of ASP.net in html or javascript. May be a combination of "./../" something...
on my development machine the url to the common images is following:
I have two pages:
&
both of the above pages have a image element who's CSS class is 'ProductImage':
.ProductImage
{
background-image: url(CommonImages/NoPicture.gif);
}
---
However, the above doesn't work. since CommonImages/NoPicture.gif is evaluated differently for different pages. I don't want to specifiy the full path like '/Prototype/StoreFront/CommonImages/NoPicture.gif' since this part (/Prototype/StoreFront) will be different for differnt clients. Any way to get this accomplished.
In ASP.net my application resides under and under asp.net i can simply say "~/CommonImages/NoPicture.gif" regardless of the directory i am at and it evaluates it to:
'/Prototype/StoreFront/CommonImages/NoPicture.gif'
Is there such an alternative to '~' of ASP.net in html or javascript. May be a combination of "./../" something...