|
|
| Author |
Message |
spakinz
Joined: 04 Sep 2006
Posts: 15
|
Posted: Tue Sep 05, 2006 11:35 am Post subject: Javascript 2 |
|
|
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
|
Posted: Wed Sep 06, 2006 8:33 am Post subject: |
|
|
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
|
Posted: Wed Sep 06, 2006 8:42 am Post subject: |
|
|
| 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 |
|
 |
|