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 
Javascript 2

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



Joined: 04 Sep 2006
Posts: 15

PostPosted: Tue Sep 05, 2006 11:35 am    Post subject: Javascript 2 Reply with quote

Is there any function called getCustomXML??

I have this code in js for a IE toolbar:

If (tool.CustomXML("nameOfCustomXML") == null)
//do something

How can I translate this code to work in Firefox??
Back to top
Admin
Site Admin


Joined: 22 Aug 2006
Posts: 1055

PostPosted: Wed Sep 06, 2006 8:33 am    Post subject: Reply with quote

Use tool.setCustomXML('nameOfCustomXML'," <TOOLBAR><COMBO name='Example' kind='noneditable' hint='Select name' id='ph_cmb'
dwidth='230'><VALUE display='Test 1'>Show 1</VALUE> <VALUE display='Test 2'>Show 2</VALUE> </COMBO></TOOLBAR> ");

If "nameOfCustomXML" doesn't exist, then nothing happens.
Back to top
spakinz



Joined: 04 Sep 2006
Posts: 15

PostPosted: Wed Sep 06, 2006 8:42 am    Post subject: Reply with quote

But what happens if tool.CustomXML("nameOfCustomXML") is not null? I don't want to replace the value of CustomXML if it is not null, I only want to replace it when is null.
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