Results 1 to 10 of 7098

Hybrid View

  1. #1
    Join Date
    Mar 2007
    Location
    Lakeland, FL, US
    Posts
    44
    Plugin Contributions
    2

    bug Image Handler 2 Javascript Bug

    I installed the IH2 mod in our test site running 1.3.8a and everything seemed fine until we tried to mouseover an image near the bottom of the page. Doing so resulted in "'pageY' is null or not an object"

    We had no problem with images higher up in the page running the exact same JS code. Then we shrunk our browser window and caused the same error on every image that was "too close" to the bottom of the visible portion of the page before scrolling down further. After scrolling down to allow enough room for the image to display, the error is avoided, but cannot be avoided for images naturally placed right above the footer.

    I have not had time to debug the js used for this mod, but has anyone else encountered this problem? If so, is there a fix and can you provide the details?

  2. #2
    Join Date
    Oct 2004
    Location
    Houston, TX
    Posts
    782
    Plugin Contributions
    4

    Default Re: Image Handler 2 Javascript Bug

    Quote Originally Posted by ebspromo View Post
    I installed the IH2 mod in our test site running 1.3.8a and everything seemed fine until we tried to mouseover an image near the bottom of the page. Doing so resulted in "'pageY' is null or not an object"

    We had no problem with images higher up in the page running the exact same JS code. Then we shrunk our browser window and caused the same error on every image that was "too close" to the bottom of the visible portion of the page before scrolling down further. After scrolling down to allow enough room for the image to display, the error is avoided, but cannot be avoided for images naturally placed right above the footer.

    I have not had time to debug the js used for this mod, but has anyone else encountered this problem? If so, is there a fix and can you provide the details?
    Hmm ... have a link to replicate the problem?

  3. #3
    Join Date
    May 2005
    Posts
    23
    Plugin Contributions
    0

    Default Image Handler 2 Support -Missing Index Page

    Just Installed Image Handler2, and works great in Admin. Problem is, that I can't see the front end of my site. It just come up with a white screen instead of the shop.

    Any ideas?

    Ky

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Image Handler 2 Support -Missing Index Page

    Quote Originally Posted by kyates View Post
    Just Installed Image Handler2, and works great in Admin. Problem is, that I can't see the front end of my site. It just come up with a white screen instead of the shop.

    Any ideas?

    Ky
    Appropriate FAQ Entry. Using the debug facility should tell you precisely where the error is occurring.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Mar 2007
    Location
    Lakeland, FL, US
    Posts
    44
    Plugin Contributions
    2

    application error Re: Image Handler 2 Javascript Bug

    Quote Originally Posted by testuser View Post
    Hmm ... have a link to replicate the problem?
    http://www.servemysite.com/index.php...ndex&cPath=1_2

    Make sure you hover an image that is close to the bottom of the browser window. If your screen size is very large, you may need to shrink the window.

    Bug located using IE 7.0.6000.16643

    FF 2.0.0.12 is mostly fine except it shifts the layout slightly when hovering an image near the bottom, but is still displays as expected.

  6. #6
    Join Date
    Mar 2007
    Location
    Lakeland, FL, US
    Posts
    44
    Plugin Contributions
    2

    Default Re: Image Handler 2 Javascript Bug

    Note: The problem appears to be on line 124...

    ycoord += event.clientY - Math.max(0,(0 + zoomimg_h + (5 * padding) + e.pageY - docheight - truebody().scrollTop));

    For some reason, pageY is not being included as an attribute of the event being passed to the function. I am at a loss for why this would not be present under the circumstances.

  7. #7
    Join Date
    Mar 2007
    Location
    Lakeland, FL, US
    Posts
    44
    Plugin Contributions
    2

    Idea or Suggestion Re: Image Handler 2 Javascript Bug

    Here is how we bypassed the problem temporarily until someone can help determine how to fix the pageY issue in IE7...

    Code:
    /* BYPASS IE7 pageY BUG
        if (docwidth - event.clientX < zoomimg_w + (3 * padding)) {
          xcoord = event.clientX - xcoord - zoomimg_w - (2 * offsetfrommouse[0]);
        } else {
          xcoord += truebody().scrollLeft+event.clientX;
        }
        if (docheight - event.clientY < zoomimg_h + (2 * padding)){
          ycoord += event.clientY - Math.max(0,(0 + zoomimg_h + (5 * padding) + e.pageY - docheight - truebody().scrollTop));
        } else {
          ycoord += truebody().scrollTop + event.clientY;
        }
    */
        xcoord += truebody().scrollLeft+event.clientX;
        ycoord += truebody().scrollTop + event.clientY;

  8. #8
    Join Date
    May 2006
    Posts
    321
    Plugin Contributions
    0

    Default Re: Image Handler 2 Javascript Bug

    ebspromo, I thought we were experiencing the same thing, but when I used your code, my hovers stopped altogether .

  9. #9
    Join Date
    Mar 2008
    Posts
    54
    Plugin Contributions
    0

    Default Re: Image Handler 2 Support

    I have a clean install of v.1.3.8a to which I've added custom templates using the template override system. I then tried installing IH2. I copied all the directories and files as instructed but do not get an IH2 menu item in Admin>Tools. Does anyone have any ideas on things to check for?

    All help is greatly appreciated.

    jim :)
    James D Ballotti
    [email protected]

 

 

Similar Threads

  1. v150 Image Handler 4 (for v1.5.x) Support Thread
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1687
    Last Post: 17 Nov 2024, 07:26 PM
  2. v139h Image Handler 3 Support Thread (for ZC v1.3.9)
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1095
    Last Post: 2 Oct 2017, 12:42 PM
  3. Image Handler Support Please
    By nadinesky in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 30 Sep 2013, 03:47 PM
  4. Image handler only covers part of screen
    By shaneburton in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 14 May 2009, 07:15 PM
  5. Is Image Handler the only way to go?
    By wwwursa in forum Installing on a Windows Server
    Replies: 2
    Last Post: 23 Dec 2007, 09:22 PM

Posting Permissions

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