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 
SetPropertiesById work or no? IE or FF? I Am loosing my mind

 
Post new topic   Reply to topic    BestToolbars.Net Forum Index -> General questions
Author Message
kadas99



Joined: 06 Dec 2010
Posts: 10

PostPosted: Tue Jan 04, 2011 11:30 am    Post subject: SetPropertiesById work or no? IE or FF? I Am loosing my mind Reply with quote

Hello, again me, i have this code, i want (Looking first which navigator is) hide and show 2 diferents buttons, 1 for IE and 1 for FF. Ie button have a run .exe action, opening IE in a new window in private mode, and FF button do the same but open FF private mode, i tried to do this whit callcmd, but like i say in another post, http://www.besttoolbars.net/forum/viewtopic.php?t=1046 dont work, so i take this way, but dosn`t work too. Some one can helpme? this is my code:


Code:
MainWindow.document.parentWindow.alert ("Javascript Work");

var browser=0;
try{ if (navigator) browser=1; }catch(e){}
if (browser==1) //Javascript code for FireFox version
{


alert("firefox");



SetPropertiesById("IE","visibility","0");
tool.Reload();
MainWindow.document.parentWindow.alert ("FF2");
tool.Reload();



}
else //Javascript code for IE version
{

SetPropertiesById("IE","visibility","1");
tool.Reload();
SetPropertiesById("FF","visibility","0");
tool.Reload();
MainWindow.document.parentWindow.alert ("IE2");
tool.Reload();

}



So muchs thanks![url][/url]
Back to top
Admin
Site Admin


Joined: 22 Aug 2006
Posts: 1055

PostPosted: Mon Jan 10, 2011 8:17 am    Post subject: Reply with quote

SetPropertiesById - is not a correct name. You should use
SetPropertyById
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BestToolbars.Net Forum Index -> General questions 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