Submit Your Article Forum Rules

Results 1 to 3 of 3

Thread: Ajax/jQuery script needed

  1. #1
    Senior Member
    Join Date
    Jan 2008
    Posts
    304

    Ajax/jQuery script needed

    I am working on a project that will include links to several CAD files. Upon hovering over each link I need to have an image (jpg) of the CAD file appear within a specific DIV. Clicking on the link (and maybe the image hover) will lead to a zipped download of the actual CAD file.
    I use Hidden Content as added security for my networks and servers.

  2. #2
    WebProWorld MVP DaveSawers's Avatar
    Join Date
    Dec 2006
    Location
    Lunenburg, Nova Scotia, Canada
    Posts
    704
    You don't need AJAX to do that. Just preload the images and switch between them in an onMouseOver function.

    The only reason you might want to use AJAX for this is if the information you want to display in the div is likely to change frequently (so frequently that the information may have changed since the user first loaded the page).

    Since AJAX has to go back to the server to process the request and then download the image file to display in the div then performance will be compromised and those on slower internet connections will be faced with a probably unacceptable delay and loss of functionality.
    Dynamic Software Development
    Hidden Content

  3. #3
    Member
    Join Date
    Jan 2012
    Posts
    46
    http://james.padolsey.com/demos/imgPreview/full/
    this is basically what you need, adapt it a little bit so it would fit your needs

Posting Permissions

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