Hi Ira and Yael

> the questions are: 
> 1. when pressing C3H4 button, the MMMMMMM button is created in new HTML page, 
> how can we make it appear on the same page where the C3H4 button is? 

> 2. before the jmolHtml we've created jmolButton("load JmolFolder/C3H4.mol; 
> draw 
> jmolButton(jjj)", "C3H4"); 
> but inside jmolHtml it does not recognize it, and just create another new 
> button called C3H4, 
> how can we make it recognize the jmolButton that was created before? 

2. I am guessing, but I think ypur problem is related to this: the jmolButton() 
functin is 
designed to insert content into the web page while this is loading, not after 
it. You can 
probably do what you want by using 
        jmolSetDocument(false)
see file:///F:/webs/eclipse/Jmol-trunk/Jmol-
web/build/html/jslibrary/index.es.html#jmolSetDocument

And that's probably also why the button is created in a new window (your point 
1.)

3. On the other hand, I don't think it is a good idea that you name your 
butttons like  
'jmolButton0' , since these are the names created by Jmol.js and you may have 
duplicates. 
Maybe that's the reason why you don't get your button recognized. Give 
different names to 
the buttons you create manually, if you even need them to have a name.

4. The input tag does not use a closing tag </input>

5. It should work the same, but I think it's cleaner if you create your button 
outside Jmol.js. 
That is, don't use
        jmolHtml("<input TYPE=BUTTON etc
but just put
<input TYPE="BUTTON" value = 'C3H4' name = 'myjmolButton0' 
onClick='addButtons()'> 
");
outside the script tag.

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to