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.

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

Reply via email to