Results 1 to 3 of 3

Thread: Problem with Image Magnify

  1. #1
    Join Date
    Aug 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problem with Image Magnify

    Script: :: jQuery Image Magnify v1.11
    http://www.dynamicdrive.com/dynamici...agemagnify.htm

    I am not sure if this is the right place to put this; problem may be in JScript, XML CSS... But here goes:

    Image magnifier works fine when put straight onto HTML page.
    i.e. This is fine:
    <img src="POW.jpg" class="magnify" style="width:200px; height:150px">

    But when I embed this in XML string, like so:
    &lt;img src="POW.jpg" class="magnify" style="width:200px; height:150px" &gt;
    the image appears, and the style is applied, but "magnify" is ignored.

    The XML is data to the Simile Timeline JS library.


    I have put all the relevant files into the same directory in an attempt to remove some variables!

    Any help for this poor benighted newbie would be much appreciated!


    Andrew McGurk

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    I reckon the contents shown inside Simile Timeline are all dynamically generated, which would explain why the Image Magnify script doesn't work in it. Basically, the later script is initialized when the page first loads- if an image with
    Code:
    class="magnify"
    is injected into the page afterwards, the script is unable to pick up on that. There are ways to rectify that of course, but exactly how depends on familiarity with Simile Timeline as well (which I'm not). If I have time and if this is very important, I'll try and take a look at the Timeline script in the next couple of days.
    DD Admin

  3. #3
    Join Date
    Aug 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you for your quick response. What you say rings a bell with what I have read elsewhere; and I think you are right.

    Meanwhile I have tried the CSS Smart Image Enlarger, and it worked straight away. However, it pops up the image inside the window which Simile has generated for the XML code.
    As I should have expected! I guess I will have to go back to basic principals and launch a window with my enlarged image.

    I think I tried this before with mixed success. But I should be able to do it.

    Thank you, again.

    Amdrew McG

Similar Threads

  1. Image Magnify v1.1 Problem
    By BorderTerroir in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 12-30-2010, 09:27 AM
  2. Problem with Image Magnify
    By DJCyrus81 in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 08-10-2010, 12:45 PM
  3. Image Magnify v1.1 problem with FF
    By free3yourmind in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 03-18-2010, 07:02 PM
  4. JQuery Image Magnify - image rendering problem
    By caleb22 in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 01-05-2010, 06:38 PM
  5. Jquery image magnify, magnify onmouseover
    By azoomer in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 10-15-2009, 09:27 PM

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
  •