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
PHP / Jquery Help
Started by tridiantgames, Aug 30 2010 05:08 PM
2 replies to this topic
#1
Posted 30 August 2010 - 05:08 PM
|
|
|
#2
Posted 31 August 2010 - 12:44 PM
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
I study Information Systems at Karlstad University when I'm not on CodeCall
#3
Posted 31 August 2010 - 08:40 PM
Yes it works fine. But when jquery calls the image back - it kills it. :-P


Sign In
Create Account

Back to top









