Jmol has been used successfully with jQuery. That should not be the problem.
Make sure your page is not trying to access the applet prior to its complete
initialization. If you have a live page we can look at, that would be
helpful. Also, for testing, you can try adding this to your URL and seeing
what happens.

?NOAPPLET

Bob

On Mon, Aug 31, 2009 at 9:50 AM, Tzontonel <[email protected]>wrote:

> Hello again,
> I have a new problem.
>
> This is my body <script type>
> ################################################
> $(function() {
>             $("#tree").treeview({
>                 collapsed: true,
>                 animated: "medium",
>                 control:"#sidetreecontrol",
>                 prerendered: true,
>                 persist: "location"
>             });
>             $(document).ready(function(){
>               $('div.panelMineral').toggleElements(
>              { fxAnimation:'slide', fxSpeed:'normal', className:'panel' }
> );
>             $('ul.panelMineral').toggleElements();
>             $("a[rel^='prettyPhoto']").prettyPhoto();
>             });
>             var mrefreshinterval = 500; // update display every 200ms
>              var lastmousex=-1;
>             var lastmousey=-1;
>                 var lastmousetime;
>                 var mousetravel = 0;
>             var mpoints = [];
>             var mpoints_max = 50;
>                 $('body').mousemove(function(e) {
>                 var mousex = e.pageX;
>                 var mousey = e.pageY;
>                 if (lastmousex > -1)
>                     mousetravel += Math.max( Math.abs(mousex-lastmousex),
> Math.abs(mousey-lastmousey) );
>                     lastmousex = mousex;
>                     lastmousey = mousey;
>             });
>             mdraw = function() {
>             var md = new Date();
>             var timenow = md.getTime();
>             if (lastmousetime && lastmousetime!=timenow) {
>                 var pps = Math.round(mousetravel / (timenow -
> lastmousetime) * 1000);
>                 mpoints.push(pps);
>                 if (mpoints.length > mpoints_max)
>                     mpoints.splice(0,1);
>                 mousetravel = 0;
>                 $('#mousespeed').sparkline(mpoints, { width:
> mpoints.length*2, height: '30px', lineColor: '#1A7400', fillColor: false,
> minSpotColor: false, maxSpotColor: '#A7332A', spotColor: '#A7332A',
> spotRadius: 1.5 });
>                 }
>            lastmousetime = timenow;
>            mtimer = setTimeout(mdraw, mrefreshinterval);
>             }
>             var mtimer = setTimeout(mdraw, mrefreshinterval);
>                 $.sparkline_display_visible();
>         })
> ################################################
> (some jquery scripts)
>
> I put this code ->
>
> jmolInitialize(".", "JmolApplet0.jar");
> jmolSetAppletColor("#ffffff");
>
> ... in the body/head
>
> and <table><tr>
>
> <td><form><script>jmolRadio("connect 2.25 2.5 hbond create", "connect Ca
> and O hbonds");</script></form></td>
>
> <td><script language="JavaScript" type="text/javascript">
>         jmolApplet([350,500],"load \"calcite.cif\" {1 1 1}; frank OFF;
> unitcell on; set axesUnitcell; axes on; set measurements angstroms; moveto 2
> -900 0 0 75; set perspectivedepth off;")</script></td>
>
> </tr></table>
>
>
> But when i refresh the page in Firefox 3.5 appear: "You do not have Java
> applets enabled in your web browser, or your browser is blocking this
> applet.
> Check the warning message from your browser and/or enable Java applets in
> your web browser preferences, or install the Java Runtime Environment from
> www.java.com" (in the applet <td>)
>
> If i refresh the page in IE 7, it's fine. The applet appear and <form>
> works good.
>
> I suspect the body <script type>(some jquery scripts suffer an interference
> with jmolInitialize), because when I remove them and I refresh the page in
> Firefox 3.5 - surprise! working good (applet appear).
>
> Help me!
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Jmol-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-developers
>
>


-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to