Javascript Tooltips, Popups, Captions - BoxOver  

Go Back   Javascript Tooltips, Popups, Captions - BoxOver > BoxOver > Bugs
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 03-03-2006, 11:16 AM
David David is offline
Junior Member
 
Join Date: Mar 2006
Posts: 6
Default Patch for "Object does not support this property or method" problem

Hello,

Another patch. Sorry I can't remember which browsers this applied to, but I got the error "Object does not support this property or method" because the "title" propery of nodes is not always a string. The function checkElemBO does not verify that it is. I added the first line to checkElemBO :

function checkElemBO(txt) {
if (!txt || typeof(txt) != 'string') return false;
if ((txt.indexOf('header')>-1)&(txt.indexOf('body')>-1)&(txt.indexOf('[')>-1)&(txt.indexOf('[')>-1))
return true;
else
return false;
}

BTW Thanks for this great script.
Anselm.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 04:40 PM.