The error is generated when trying to run the code from the Active Link. I 
can't really tell if it is the active link Javascript call or the JS file 
itself.

Tomcat, Windows, 7.6.03 







-----Original Message-----
From: Grooms, Frederick W <frederick.w.gro...@xo.com>
To: arslist <arslist@ARSLIST.ORG>
Sent: Wed, Jan 19, 2011 1:05 pm
Subject: Re: Get Client Info created by Axton Grams


** 
One question is what are you using for a Web server and JSP engine (and on what 
OS)?
 
We are using Apache/Tomcat on Solaris and the functions work correctly for 
Mid-Tier 7.6.03.
 
Fred
 
 

From: Action Request System discussion list(ARSList) 
[mailto:arslist@ARSLIST.ORG] On Behalf Of Roger Justice
Sent: Wednesday, January 19, 2011 6:56 AM
To: arslist@ARSLIST.ORG
Subject: Get Client Info created by Axton Grams

 
** We are testing this on 7.6.03 and got an error Caught Exception:Object 
Expected. Since this was posted in 2007 do you have any updates.

 Subject: Re: How to capture a user's computer name in the mid-tier? 

> 

> Depending on your mid-tier server config, this can be a little

> trickier.  If you have a load balancer, you will get the ip of the

> load balancer, not the client.  Some load balancers allow you to send

> the ip through as an http header, so the js would have to be modified

> to account for that if this is the case.

> 

> Axton Grams

> 

> On 9/21/07, Kaiser Norm E CIV USAF 96 CS/SCCE <[EMAIL PROTECTED]>

> wrote:

> > Gary:

> >

> > Copy the following text into your mouse buffer and paste it into

> > Notepad:

> >

> >     function env_ip_var()

> >     {

> >        var return_value = "<%=request.getRemoteAddr()%>";

> >        return (return_value)

> >     }

> >     function env_hostname()

> >     {

> >        var return_value = "<%=request.getRemoteHost()%>";

> >        return (return_value)

> >     }

> >

> > Save the file as get_client_info.jsp.

> >

> > Then copy that file into your SHARED folder on your Midtier.

> >

> > Then open your form in the Admin tool.  Go to VIEW PROPERTIES, click

> the

> > APPEARANCE tab, and click EDIT WEB HEADER CONTENT.  Paste the

> following

> > into the field:

> >

> > <SCRIPT src="/arsys/shared/get_client_info.jsp"

> > language="Javascript"></SCRIPT>

> >

> > Save the form.

> >

> > Then create an active link that runs on SUBMIT or WINDOW OPEN or

> > whatever that does a RUN PROCESS.  The run process should be this:

> >

> > javascript.window.F(xxxfield idxxx).DoSet(env_hostname());

> >

> > Replace "xxxfield idxxx" with the field ID of the field you want to

> > capture the hostname.  Just put the number--no dollar signs or quotes

> or

> > anything else.

> >

> > Save the AL.  Give it a run.  Should work like a champ.

> >

> > Let me know if you have any trouble.  I have it working here on every

> > ticket that's submitted.

_attend WWRUG11 www.wwrug.com ARSlist: "Where the Answers Are"_
_attend WWRUG11 www.wwrug.com ARSlist: "Where the Answers Are"_ 

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
attend wwrug11 www.wwrug.com ARSList: "Where the Answers Are"

Reply via email to