Re: [Jmol-users] Jmol and Google Web Toolkit
On Mon, Dec 15, 2008 at 3:18 PM, Robert Hanson wrote: > first let's find out what's breaking the GWT. It's probably something simple. I think you are completely right. The problem is that I am not savvy in javascript debugging. Plus the GWT does some funny things (crosscompiling etc) that lead to a crash of the JVM (due to non native function) if i try to initialize the Jmol applet in a GWT page. This "crash" makes it relatively hard to debug... I circumvented the whole problem by using a non-GWT jsp page that displays my files. The other solution is - as I already said - not to use the Jmol.js and it's functions, but to embed Jmol as . At least in the latest versions of IE and Firefox this imho works. But Angel is right - the complete Browser abstraction layer gets lost + the nice Jmol.js functions (buttons etc) get lost too. Another question is, if anybody out there managed to get Jmol.js up and running in a AJAX DOM changing application. At least for prototype I know it does not work either... I'll make that a separate thread... Thanks for your help! Raphael > > On Mon, Dec 15, 2008 at 6:03 AM, Angel Herraez wrote: >> El 15 Dec 2008 a las 11:46, Raphael André Bauer escribió: >>> it seems that your observation is right and using the jmol.js breaks >>> the GWT. However it is easily possible to use jmol without jmol.js and >>> thus avoiding this problem. An idea is to use the Firebug plugin for >>> Firefox that gives you the "real" html generated by jmol.js. A simple >>> copy and paste into the GWT application solves that issue and GWT and >>> Jmol work nicely together... >> >> It will likely work without any trouble, but note that Jmol.js >> renders different code depending on the browser (at least for >> insertion of the applet). So it's not that simple. >> That's one of the reasons why using Jmol.js is the recommended >> method. >> The best would be to find the exact confilct between GWT code and >> Jmol.js code. >> >> >> >> -- >> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. >> The future of the web can't happen without you. Join us at MIX09 to help >> pave the way to the Next Web now. Learn more and register at >> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ >> ___ >> Jmol-users mailing list >> Jmol-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jmol-users >> > > > > -- > 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 > > -- > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > ___ > Jmol-users mailing list > Jmol-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jmol-users > -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] AJAX applications and Jmol and Jmol.js
I did that a couple years ago on a project involving prototype mixed with jmol.js without any trouble. http://librairiedemolecules.education.fr/outils/xtal0/xtal.htm# It's beta and not working anymore as it should, due to changes in the back-end database. You can still click on the "Fichier" link and make a search. A message alerting that no file has been found should be displayed. I don't know if that would help as this page uses versions of theses libraries dating from 2 years ago... Paul Le 17 déc. 08 à 10:50, Raphael André Bauer a écrit : > Hey list, > > > I am curious if anybody managed to get Jmol up and running in a AJAX > application that replaces the DOM. In another thread I discussed an > issue where I had severe problems using the GWT (well, the GWT is > somehow special as well). My experience is, that the applet (using the > object tag) works fine, but the Jmol.js (providing very useful > functionality) breaks "something" (Hard to debug in the GWT for me). I > know that Jmol.js does not play together well with the prototype AJAX > library as well. > > So - is anybody using Jmol in such a AJAX scenario? If yes - with what > AJAX library? > > > Thanks! > > Raphael > > -- > > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, > Nevada. > The future of the web can't happen without you. Join us at MIX09 > to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http:// > 2009.visitmix.com/ > ___ > Jmol-users mailing list > Jmol-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jmol-users -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
[Jmol-users] AJAX applications and Jmol and Jmol.js
Hey list, I am curious if anybody managed to get Jmol up and running in a AJAX application that replaces the DOM. In another thread I discussed an issue where I had severe problems using the GWT (well, the GWT is somehow special as well). My experience is, that the applet (using the object tag) works fine, but the Jmol.js (providing very useful functionality) breaks "something" (Hard to debug in the GWT for me). I know that Jmol.js does not play together well with the prototype AJAX library as well. So - is anybody using Jmol in such a AJAX scenario? If yes - with what AJAX library? Thanks! Raphael -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] AJAX applications and Jmol and Jmol.js
Raphael, the key is to track down the error messages involved in that incompatibility. It's probably something very simple. Please help us by: explaining what you mean by "an AJAX application that replaces the DOM" telling us more about your experience -- what sort of errors are you getting telling us more about how the GWT works. Bob On Wed, Dec 17, 2008 at 3:50 AM, Raphael André Bauer wrote: > Hey list, > > > I am curious if anybody managed to get Jmol up and running in a AJAX > application that replaces the DOM. In another thread I discussed an > issue where I had severe problems using the GWT (well, the GWT is > somehow special as well). My experience is, that the applet (using the > object tag) works fine, but the Jmol.js (providing very useful > functionality) breaks "something" (Hard to debug in the GWT for me). I > know that Jmol.js does not play together well with the prototype AJAX > library as well. > > So - is anybody using Jmol in such a AJAX scenario? If yes - with what > AJAX library? > > > Thanks! > > Raphael > > -- > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > ___ > Jmol-users mailing list > Jmol-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jmol-users > -- 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 -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] AJAX applications and Jmol and Jmol.js
I've used the Prototype.js library pretty extensively in my pages ( http://symmetry.otterbein.edu). I store my structures as JSON files which I can read and evaluate using the AJAX functionality in the prototype library. I also do some select DOM replacement to generate tables of checkboxes and other controls. I haven't had any difficulty getting the Jmol.js functions to work with what I've written. Dean On Wed, Dec 17, 2008 at 1:24 PM, Paul Pillot < paul.pil...@ac-orleans-tours.fr> wrote: > I did that a couple years ago on a project involving prototype mixed > with jmol.js without any trouble. > http://librairiedemolecules.education.fr/outils/xtal0/xtal.htm# > It's beta and not working anymore as it should, due to changes in the > back-end database. You can still click on the "Fichier" link and make > a search. A message alerting that no file has been found should be > displayed. > I don't know if that would help as this page uses versions of theses > libraries dating from 2 years ago... > Paul > > > Le 17 déc. 08 à 10:50, Raphael André Bauer a écrit : > > > Hey list, > > > > > > I am curious if anybody managed to get Jmol up and running in a AJAX > > application that replaces the DOM. In another thread I discussed an > > issue where I had severe problems using the GWT (well, the GWT is > > somehow special as well). My experience is, that the applet (using the > > object tag) works fine, but the Jmol.js (providing very useful > > functionality) breaks "something" (Hard to debug in the GWT for me). I > > know that Jmol.js does not play together well with the prototype AJAX > > library as well. > > > > So - is anybody using Jmol in such a AJAX scenario? If yes - with what > > AJAX library? > > > > > > Thanks! > > > > Raphael > > > > -- > > > > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, > > Nevada. > > The future of the web can't happen without you. Join us at MIX09 > > to help > > pave the way to the Next Web now. Learn more and register at > > http://ad.doubleclick.net/clk;208669438;13503038;i?http:// > > 2009.visitmix.com/ > > ___ > > Jmol-users mailing list > > Jmol-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/jmol-users > > > > -- > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > ___ > Jmol-users mailing list > Jmol-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jmol-users > -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users