Hello =)
I am making a website for a client currently and ran across an issue. I am currently using a mysql database to store images for easy access to image management and item management from one single database.
Everything was working great until I tried to implement JQuery. I am using a free code (FancyBox) to make the images pop up and give a caption. Unfortunately, when the image loads, it's not the image. Instead it's that 10,000 character code an image gets if you were to view it in a text document.
EXAMPLE:
1. Image is uploaded to 'database'.
2. Image is shown at /image.php?id=3
3. When jquery fetches that for the preview section, it demolishes the image.
4. The direct image /image.php?id=3 will present you with a png/jpeg/gif image and not a php file.
I have a feeling that .php has something to do with it... Any ideas?
Thank you in advance,
Matthew
can you see the image if you direct your web browser directly to /image.php?id=3 ? if so, I'd bet your jquery is the guilty part.
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall
Yes it works fine. But when jquery calls the image back - it kills it.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks