User 77bcbbb206
21-03-2005 17:19:36
Moderators,
Please find below a description of my problem and our conversation to date. I apologize for not using this forum yet.
---------------------------------------------------------------------
My Current Question:
I've removed the try catch blocks from the JavaScript and I still get the same problem of my browser freezing. I'm using the same page I sent you in my previous email. Any other ideas?
Here is the code used for the Marvin View applet:
<script LANGUAGE="JavaScript1.1">
<!--
mview_name="Struc_2";
mview_begin("marvin/", "125", "125");
mview_param("rows", "1");
mview_param("cols", "1");
mview_param("bgcolor", "#FFFFFF");
mview_param("cell0", "|[C-]#[N+]Cc1ccccc1");
mview_param("preload", "MolExport,SmilesExport,GraphInvariants,Parity");
mview_end();
//-->
</script>
Thanks in advance,
Jim
---------------------------------------------------------------
My Original Question:
I'm developing a web application reagent management system and I've run into some intermittent problems using both applets. I'm using marvin 3.5.4, java runtime 1.4.2_06-b03. Internet Explorer 6.0.2800, smiles, and ASP.NET (C#). The first and probably the most important problem is that when you open a web page with either applet on it, and the page loses focus (you check your email quickly or look at another web page) while the applets are loading, they freeze the browser. The browser never recovers from this and you have to close and re-open it. In all other instances (if the page load is not interrupted) the applets load perfectly. Hopefully I'm doing something wrong. Upon further investigation, it looks like the java runtime is freezing. If I try to open the java console (in the windows taskbar) after the web page stops responding, it won't open. ??? I've read over the FAQ's in the marvin source I downloaded from the web site and tried a few things but nothing seemed to help. Are there common mistakes you could point me to or advice as to what to look out for? The page cause the most problems has 5 separate applets loading (list page for reagent browsing). Here is the javascript from one of the applets. Attached please find the whole page. It does work (unless interrupted).
<script LANGUAGE="JavaScript1.1" SRC="marvin/marvin.js"></script>
<script LANGUAGE="JavaScript1.1">
<!--
try
{
mview_name="Struc_2";
mview_begin("marvin/", "125", "125");
mview_param("rows", "1");
mview_param("cols", "1");
mview_param("bgcolor", "#FFFFFF");
mview_param("cell0", "|[C-]#[N+]Cc1ccccc1");
mview_param("preload", "MolExport,SmilesExport,GraphInvariants,Parity");
mview_end();
}
catch(er)
{
alert(er.message);
}
//-->
</script>
Your Original Answer:
Dear Jim,
You should delete the try - catch blocks from your JavaScript code. It
seems that try - catch blocks does not permit displaying signed applet
certification window if the applet's window is not in the focus.
Normally, the certification window should pop-up. It hangs on the
browser running until you submit it.
When I removed try - catch blocks from your code, the example works fine.
Best regards,
Tamas
Please find below a description of my problem and our conversation to date. I apologize for not using this forum yet.
---------------------------------------------------------------------
My Current Question:
I've removed the try catch blocks from the JavaScript and I still get the same problem of my browser freezing. I'm using the same page I sent you in my previous email. Any other ideas?
Here is the code used for the Marvin View applet:
<script LANGUAGE="JavaScript1.1">
<!--
mview_name="Struc_2";
mview_begin("marvin/", "125", "125");
mview_param("rows", "1");
mview_param("cols", "1");
mview_param("bgcolor", "#FFFFFF");
mview_param("cell0", "|[C-]#[N+]Cc1ccccc1");
mview_param("preload", "MolExport,SmilesExport,GraphInvariants,Parity");
mview_end();
//-->
</script>
Thanks in advance,
Jim
---------------------------------------------------------------
My Original Question:
I'm developing a web application reagent management system and I've run into some intermittent problems using both applets. I'm using marvin 3.5.4, java runtime 1.4.2_06-b03. Internet Explorer 6.0.2800, smiles, and ASP.NET (C#). The first and probably the most important problem is that when you open a web page with either applet on it, and the page loses focus (you check your email quickly or look at another web page) while the applets are loading, they freeze the browser. The browser never recovers from this and you have to close and re-open it. In all other instances (if the page load is not interrupted) the applets load perfectly. Hopefully I'm doing something wrong. Upon further investigation, it looks like the java runtime is freezing. If I try to open the java console (in the windows taskbar) after the web page stops responding, it won't open. ??? I've read over the FAQ's in the marvin source I downloaded from the web site and tried a few things but nothing seemed to help. Are there common mistakes you could point me to or advice as to what to look out for? The page cause the most problems has 5 separate applets loading (list page for reagent browsing). Here is the javascript from one of the applets. Attached please find the whole page. It does work (unless interrupted).
<script LANGUAGE="JavaScript1.1" SRC="marvin/marvin.js"></script>
<script LANGUAGE="JavaScript1.1">
<!--
try
{
mview_name="Struc_2";
mview_begin("marvin/", "125", "125");
mview_param("rows", "1");
mview_param("cols", "1");
mview_param("bgcolor", "#FFFFFF");
mview_param("cell0", "|[C-]#[N+]Cc1ccccc1");
mview_param("preload", "MolExport,SmilesExport,GraphInvariants,Parity");
mview_end();
}
catch(er)
{
alert(er.message);
}
//-->
</script>
Your Original Answer:
Dear Jim,
You should delete the try - catch blocks from your JavaScript code. It
seems that try - catch blocks does not permit displaying signed applet
certification window if the applet's window is not in the focus.
Normally, the certification window should pop-up. It hangs on the
browser running until you submit it.
When I removed try - catch blocks from your code, the example works fine.
Best regards,
Tamas