Besttoolbars Development network

Back to Besttoolbars main site

 

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Firefox SetVariable Bug in tb.js

 
Post new topic   Reply to topic    BestToolbars.Net Forum Index -> Mozilla/Firefox conversion
Author Message
taw



Joined: 18 Jun 2007
Posts: 41
Location: Munich, Germany

PostPosted: Mon Jul 02, 2007 12:36 pm    Post subject: Firefox SetVariable Bug in tb.js Reply with quote

When I call SetVariable with val containing "\n", the eval()-function fails.


Code in your tb.js Version 3.5.0.1 Line 138 :
Code:

function <toolbarname>_SetVariable(name, val)
{
try{
    name=name.replace(/[\#\\.]/g,'');
   eval('<toolbarname>_tool.variable'+name+'=\''+val+'\';');
    <toolbarname>_pref("<toolbarname>_tool.variable"+name, val.toString() );
}catch(e){if (debugmode) alert(e);}
}
Back to top
Admin
Site Admin


Joined: 22 Aug 2006
Posts: 1055

PostPosted: Mon Jul 09, 2007 7:53 am    Post subject: Reply with quote

Set.Variable features was not implemented yet in our Firefox converter, will be done in a week.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BestToolbars.Net Forum Index -> Mozilla/Firefox conversion All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group

Copyright c Softomate, 2010. All Rights Reserved
Terms of Service | Privacy Policy