Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Trouble loading page - env.js seems to stop?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
BA  
View profile  
 More options Mar 15 2012, 10:25 am
From: BA <brend...@gmail.com>
Date: Thu, 15 Mar 2012 07:25:00 -0700 (PDT)
Subject: Trouble loading page - env.js seems to stop?
Here is my javascript file that I'm loading from a standalone Java
program:

print("starting js");
try{

Packages.org.mozilla.javascript.Context.getCurrentContext().setOptimization Level(-1);

    load('C:\\projects\\xyz\\TestProject\\js\\env.rhino.1.2.js');
    Envjs.scriptTypes['text/javascript'] = true;
    Envjs.scriptTypes['text/envjs'] = true;
    Envjs.scriptTypes[''] = true;
    window.location = 'http://localhost:8080/';

}catch(e){
   print(e);
}

print("ending js");

I can see on my app server console that the various parts of the
application are being called including ajax calls that build dynamic
content on the page.  However, the program never exits.  I never see
the "ending js" line.  It seems to hang.  I would like to be able to
query for some information on the "screen", but it never gets any
further than the window.location line.  Any hints or tips?

I've tried both Rhino 1.7R2 and R3.  I'm on Java 1.6.

Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »