Closed Thread
Results 1 to 3 of 3

Thread: PHP / Jquery Help

  1. #1
    tridiantgames is offline Newbie
    Join Date
    Aug 2010
    Posts
    2
    Rep Power
    0

    PHP / Jquery Help

    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

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Sep 2007
    Location
    Karlstad, Sweden
    Posts
    3,087
    Blog Entries
    7
    Rep Power
    42

    Re: PHP / Jquery Help

    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

  4. #3
    tridiantgames is offline Newbie
    Join Date
    Aug 2010
    Posts
    2
    Rep Power
    0

    Re: PHP / Jquery Help

    Yes it works fine. But when jquery calls the image back - it kills it.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Jquery help
    By ahmed in forum JavaScript and CSS
    Replies: 1
    Last Post: 06-12-2011, 11:48 AM
  2. Replies: 1
    Last Post: 04-22-2011, 11:18 AM
  3. New to jQuery... need help
    By Anicho in forum JavaScript and CSS
    Replies: 1
    Last Post: 11-30-2009, 01:23 AM
  4. jQuery help
    By Jaan in forum JavaScript and CSS
    Replies: 7
    Last Post: 03-31-2009, 06:59 AM
  5. jquery kid
    By amrosama in forum The Lounge
    Replies: 11
    Last Post: 02-27-2009, 01:45 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts