Link to home
Start Free TrialLog in
Avatar of maqskywalker
maqskywalker

asked on

absolute path to image in jquery code

I'm using the jQuery UI DatePicker in my asp.net web forms application.


In my application directory folder which is called Application1 I have a folder called images where I put all my image files.

So the direct path through the web browser would be something like this:

http://www.mywebsite.com/images/CalendarIcon.jpg

In my jquery code I'm setting the path like this:

buttonImage: "images/CalendarIcon.jpg"

this works fine in my development server but for some reason when I deploy it to production the image doesn't show up.

This also worked fine.
buttonImage: "http://www.mywebsite.com/images/CalendarIcon.jpg"


anyone know why this path is not working on production iis7 server             buttonImage: "images/CalendarIcon.jpg"

anyone know how to write absolute path to this image?
ASKER CERTIFIED SOLUTION
Avatar of Prakash Samariya
Prakash Samariya
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial