View Full Version : Document Magnifier 2.0 not working

10-10-2006, 08:11 AM
1) Script Title: Document Magnifier 2.0

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex3/zoom.htm

3) Describe problem: For the life of me, I can't figure out what I am doing wrong.
I have all the magnifier images, .js file, and zoom.html files in a directory called "magnify"
I have the html page pointing to the .js script
I have the .js script pointing to the zoom.html file
I have var baseDir="http://www.sonboleh.com/portfolio/graphics/magnify/"
I have var iframeSrc = "http://www.sonboleh.com/portfolio/graphics/magnify/zoom.html";
You can see the magnifier but you can't see the magnified image inside of it. Just "Page Cannot be Found". This can't be this difficult. What am I doing wrong please?


Thank you.

10-10-2006, 08:20 AM
Are you using IE5+ to view it? This script specifically says it won't work in FF, opera, etc.
Aside from that, I'm not sure, sorry.

10-10-2006, 04:54 PM
But good thinking. Thanks.

12-24-2006, 05:57 PM
If it's worth anything, I came here with the exact same problem you are having...Ironically I even have my files in a directory named the same as you, /magnify/ and I can't get this thing to work either!

I've tried everything. The one thing I did find is that on my "Page Not Found" I have a link to my home page and I clicked it and now my zoom window is stuck on my home page, even if I refresh my page I am trying to zoom in on.

Did you ever find out anything?

I found this out:
baseDir="" is realitive to the web sites address, in this case baseDir="/magnify/";
var iframeSrc = ""; is where zoom.html is realitive to the baseDir, in this case var iframeSrc = "zoom.html";
if I put zoom in another directory then ../anotherdirectory/zoom.html

OK, It's working, but your gonna find this tough to understand. I did. I kept making changes and uploading, etc and refreshing, etc. etc. etc. and then finally I decided to remove the references from my html page and yet I would still get the zoom window, and upon checking the source the script code was still there.

So, I deleted the html page I was working on, re-uploaded it, closed the browser window, opened it again and went to my page, then added the script code to it and refreshed and viola! it's working fine.

Conclusion: Do the variables inside of zoom.js as I have above, then close the browser window and reopen the page to completely restart and refresh.

OK, but still after finding this out, I still can't get a zoom "picture" in the zoom box window. I just get a white blank page....