Board Logo

IE7 oddity
markemms - 11/3/2006 at 04:33 AM

Hints works fine for me in IE6, FF and Opera. When I upgraded to IE7 I get an error.

Grateful for ideas/suggestions!


jcjenk - 11/5/2006 at 03:00 PM

I have the same problem. Once I ugpraded to IE 7, my Tigra Hints just quit working. Now I can an "Error on Page" in the bottom left status bar of IE. Double clicking that shows:

Line: 137
Char: 2
Error: Invalid argument
Code: 0
URL: (myurl)

When I view source, here are lines 122-139

122 function TTipMove (id) {
123 var n_x = this.x + this.left, n_y = this.y + this.top;
124 if (this.b_wise) {
125 var n_w = this.getSize(id), n_h = this.getSize(id, true),
126 n_win_w = this.getWinSz(), n_win_h = this.getWinSz(true),
127 n_win_l = this.getWinSc(), n_win_t = this.getWinSc(true);
128 if (n_x + n_w > n_win_w + n_win_l) n_x = n_win_w + n_win_l - n_w;
129 if (n_x < n_win_l) n_x = n_win_l;
130 if (n_y + n_h > n_win_h + n_win_t) n_y = n_win_h + n_win_t - n_h;
131 if (n_y < n_win_t) n_y = n_win_t;
132 }
133 this.divs[id].o_css.left = n_x;
134 this.divs[id].o_css.top = n_y;
135 this.iframes[id].o_css.left = n_x;
136 this.iframes[id].o_css.top = n_y;
137 this.iframes[id].o_css.height = n_h-this.top;
138 this.iframes[id].o_css.width = this.getSize(id, false)-this.left;
139 }


Any ideas? I really enjoy the functionality and would love to get it back.

Thanks!


Levanter30 - 12/23/2006 at 02:36 PM

Here is the fix to get things working again:

if(this.top < n_h)
this.iframes[id].o_css.height = (n_h-this.top) + 'px';

if(this.left < this.getSize(id, false))
this.iframes[id].o_css.width = (this.getSize(id, false)-this.left) + 'px';

If the equation equates to a negative figure it doesnt work in IE7, this is a work around, but now the popups could appear off the window

:-)


markemms - 12/24/2006 at 04:29 AM

Thanks for that - where do I put the code exactly?


drhansenjr - 1/6/2007 at 10:28 AM

The code goes in hints.js and replaces these lines:

this.iframes[id].o_css.height = (n_h-this.top) + 'px';
this.iframes[id].o_css.width = (this.getSize(id, false)-this.left) + 'px';

(HEY TIGRA FOLKS -- IS THERE A PERMANENT FIX FOR THIS IN THE WORKS??)


markemms - 1/6/2007 at 10:40 AM

Excellent - many thanks!


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/