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?
jQuery

Avatar of undefined
Last Comment
Prakash Samariya

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Prakash Samariya

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck