I have installed xampp and in the htdocs folder I have a folder called drupaldev. I need to give reference to a image in javascript but my images doesn't display. my image is in C:\xampp\htdocs\drupaldv\sites\all\modules\finder\images folder and I refered it in javascript as /drupaldv/sites/all/modules/finder/images... What could be the reason for this... Please can someone explain... Thanks a lot!
-
More information, please. What is the full local path of the image? What is the current output rendered to the page?Greg– Greg2011-04-04 05:27:15 +00:00Commented Apr 4, 2011 at 5:27
-
localhost/drupaldv/sites/all/modules/finder/images/check.jpg when I use this in my browser it displays the image... Image is in C:\xampp\htdocs\drupaldv\sites\all\modules\finder\images\check.jpgPavithra Gunasekara– Pavithra Gunasekara2011-04-04 05:36:57 +00:00Commented Apr 4, 2011 at 5:36
-
Can you post your JavaScript?Blender– Blender2011-04-04 05:49:03 +00:00Commented Apr 4, 2011 at 5:49
-
finally I found the reason, it's an issue of having 2 window.addEvent('domready', function()..... Thanks a lot for the concern everyone :-)))))Pavithra Gunasekara– Pavithra Gunasekara2011-04-04 10:30:33 +00:00Commented Apr 4, 2011 at 10:30
Add a comment
|