× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I know exactly what you mean, i had a the same
problem, so what i did is changed my URL to be
http://mysite/popdf?abc=123S=123
and in my popdf servlet i scan for "s=" and then
substring to get the rest of the value

i guess you will need to do same in javascript

hope this helps

Ashish
--- Jack Williams <bcijack@xxxxxxxxxxxxx> wrote:

> 
> Thanks for the tips.
> 
> I have tried the STRPCO STRPCCMD but it fails. 
> Example url
> 
>
http://login.yahoo.com/config/login?.done=http://finance.yahoo.com&.src=quot
> e&.intl=us   
> 
> What gets sent to the browser is
> 
>
http://login.yahoo.com/config/login?.done=http://finance.yahoo.com
> 
> 
> Everything starting with the first & gets dropped. 
> At first I thought it
> may be a length issue, but varying the data before
> the first & it always
> seems to get sent to the browser up to the &.
> 
> If anyone know how to solve this, it would be the
> simplest.
> 
> Pete pointed out that I need a client side solution
> so I don't think the
> other tip will help.
> 
> Thanks for the input guys.
> 
> Jack
> 
> 
> -----Original Message-----
> From: java400-l-bounces@xxxxxxxxxxxx
> [mailto:java400-l-bounces@xxxxxxxxxxxx]
> On Behalf Of Ashish Kulkarni
> Sent: Friday, September 16, 2005 10:00 AM
> To: Java Programming on and around the iSeries /
> AS400
> Subject: Re: Moving javascript to .java
> 
> There are 2 ways to acheive this,
> you can use JSObject in your java program to call
> java
> script function(I am not sure if this will work from
> AS400, i use it in applet)
> other way is to use 
> STRPCCMD
> from you CL to open HTML page or website in java
> script, I use this to open HTML from AS400,
> 
> DCL        VAR(&COMMAND) TYPE(*CHAR) LEN(30)
> VALUE('cmd.exe /c start
> www.venkateshwaramusicals.com/
> ')                                 
> STRPCO                            
> MONMSG     MSGID(CPF0000 MCH0000) 
> 
> STRPCCMD   PCCMD(&COMMAND) PAUSE(*NO)
> 
> 
> --- Jack Williams <bcijack@xxxxxxxxxxxxx> wrote:
> 
> > I am very new to JAVA.  I have a java script that
> > accepts a parameter that
> > is a url and does an window.open with many
> > parameters.  The script works
> > fine inside a html document.  I'd like to call
> this
> > 'function' from an RPGLE
> > program.  This will allow me to open a url in
> > internet explorer from a green
> > screen application controlling the window.  I
> don't
> > know of any way to call
> > a javascript.  I've tried to move it to a .java
> > object on the 400 and
> > compile it.  While I can compile and execute the
> > 'helloworld' example on the
> > 400, I can't get the syntax right for this small
> > function.
> > 
> >  
> > 
> > ANY HELP would be appreciated.
> > 
> >  
> > 
> > Here is the html source with the javascript in it.
> > 
> >  
> > 
> > <html>
> > 
> > <head>
> > 
> > <script type="text/javascript">
> > 
> > function open_win(theurl)
> > 
> > {
> > 
> > window.open(theurl,"_blank","toolbar=no,
> > location=no, directories=no,
> > status=no, menubar=no, scrollbars=no,
> resizable=no,
> > copyhistory=yes,
> > left=10, width=760, height=360");
> > 
> > }
> > 
> > </script>
> > 
> > </head>
> > 
> > <body>
> > 
> > <form>
> > 
> > <input type="button" 
> > 
> > onclick="open_win('http://www.google.com')"
> > 
> > value="Open url">
> > 
> > </form>
> > 
> > </body>
> > 
> > </html>
> > 
> >  
> > 
> >  
> > 
> >  
> > 
> > Jack  
> > 
> >  
> > 
> >  
> > 
> >  
> > 
> > -- 
> > This is the Java Programming on and around the
> > iSeries / AS400 (JAVA400-L) mailing list
> > To post a message email: JAVA400-L@xxxxxxxxxxxx
> > To subscribe, unsubscribe, or change list options,
> > visit:
> >
> http://lists.midrange.com/mailman/listinfo/java400-l
> > or email: JAVA400-L-request@xxxxxxxxxxxx
> > Before posting, please take a moment to review the
> > archives
> > at http://archive.midrange.com/java400-l.
> > 
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> -- 
> This is the Java Programming on and around the
> iSeries / AS400 (JAVA400-L)
> mailing list
> To post a message email: JAVA400-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit:
> http://lists.midrange.com/mailman/listinfo/java400-l
> or email: JAVA400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the
> archives
> at http://archive.midrange.com/java400-l.
> 
> 
> 
> -- 
> This is the Java Programming on and around the
> iSeries / AS400 (JAVA400-L) mailing list
> To post a message email: JAVA400-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit:
> http://lists.midrange.com/mailman/listinfo/java400-l
> or email: JAVA400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the
> archives
> at http://archive.midrange.com/java400-l.
> 
> 



                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.