RE: code question? (2) (fwd)

2002-09-12 Thread greeniize

Hi,

Thought I'd forward this message to this list, in case someone here had a
helpful suggestion?

Thanks!

David

-- Forwarded message --
Date: Wed, 11 Sep 2002 21:53:38 -0700 (Pacific Daylight Time)
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: code question? (2)

Hi,

Well, thanks to all who submitted some very great sounding suggestions-

But unfortunately, none of them worked.  :-( BUT, I did learn a lot more
about how this script is working.

First, here is the code line again-

type=radio name=item value=\$urlname/$filename\
onClick=selectIndexItem(\$urlname/$filename\)filenameSelected(\$filename\)

And what I'm trying to do is, send two variables to the java lines with
the onClick command.  The two variables follow the onClick command in
the above line.

Next, I learned today, that the above line sends the variable
(\$urlname/$filename\) to the following javascript- (yes, I know this is
not a javascript list, but until now I wasn't aware of the involvement of
the java code, so could ask that you please bear with me?)

SCRIPT LANGUAGE=JavaScript
!--

var indexItemSelected = ;

function selectIndexItem(item) {
  indexItemSelected = item;
}

/script

The java lines are using the name=item and
value=\$urlname/$filename\ to get the variable, the variable doesn't
come from the onClick=selectIndexItem(\$urlname/$filename\), like I
first thought.  I even tested the java line this way-

SCRIPT LANGUAGE=JavaScript
!--

var indexItemSelected = ;

function selectIndexItem() {
  indexItemSelected = item;
}

/script

And it still worked, but with the same results.

I also tested the java lines this way-

SCRIPT LANGUAGE=JavaScript
!--

var indexItemSelected = ;

function selectIndexItem() {
indexItemSelected = \$urlname/filename\;
filenameSelected = \$filename\;
}

/script

And the script crashed (the browser gets a server error).  In fact, it
crashes with a $ or @ anywhere in the java lines.

So . . . with this new information, can anyone help?  It would be much
appreciated . . .

Thanks!

David





___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: code question? (2) P.S. (fwd)

2002-09-12 Thread greeniize

Hi,

This is my follow up message . . .

Thanks,

David

-- Forwarded message --
Date: Wed, 11 Sep 2002 23:32:07 -0700 (Pacific Daylight Time)
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: code question? (2) P.S.

Hi,

Oops . . . the test I listed in my previous message

SCRIPT LANGUAGE=JavaScript
!--

var indexItemSelected = ;

function selectIndexItem() {
  indexItemSelected = item;
}

/script

Should have been

type=radio name=item value=\$urlname/$filename\ onClick=selectIndexItem()

I copied and pasted the wrong test lines.  Does this help?

Thanks . . .

David

-- Forwarded message --
Date: Wed, 11 Sep 2002 21:53:38 -0700 (Pacific Daylight Time)
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: code question? (2)

Hi,

Well, thanks to all who submitted some very great sounding suggestions-

But unfortunately, none of them worked.  :-( BUT, I did learn a lot more
about how this script is working.

First, here is the code line again-

type=radio name=item value=\$urlname/$filename\
onClick=selectIndexItem(\$urlname/$filename\)filenameSelected(\$filename\)

And what I'm trying to do is, send two variables to the java lines with
the onClick command.  The two variables follow the onClick command in
the above line.

Next, I learned today, that the above line sends the variable
(\$urlname/$filename\) to the following javascript- (yes, I know this is
not a javascript list, but until now I wasn't aware of the involvement of
the java code, so could ask that you please bear with me?)

SCRIPT LANGUAGE=JavaScript
!--

var indexItemSelected = ;

function selectIndexItem(item) {
  indexItemSelected = item;
}

/script

The java lines are using the name=item and
value=\$urlname/$filename\ to get the variable, the variable doesn't
come from the onClick=selectIndexItem(\$urlname/$filename\), like I
first thought.  I even tested the java line this way-

SCRIPT LANGUAGE=JavaScript
!--

var indexItemSelected = ;

function selectIndexItem() {
  indexItemSelected = item;
}

/script

And it still worked, but with the same results.

I also tested the java lines this way-

SCRIPT LANGUAGE=JavaScript
!--

var indexItemSelected = ;

function selectIndexItem() {
indexItemSelected = \$urlname/filename\;
filenameSelected = \$filename\;
}

/script

And the script crashed (the browser gets a server error).  In fact, it
crashes with a $ or @ anywhere in the java lines.

So . . . with this new information, can anyone help?  It would be much
appreciated . . .

Thanks!

David





___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




code question

2002-09-10 Thread greeniize

Hi,

I'm using a cgi script which creates an html form, using a radio button
and a submit button, and I'm trying to find a way for the cgi code to
return two variables under one onClick command.

Here's the line-

input type=radio name=item value=\$urlname/$filename\
onClick=selectIndexItem(\$urlname/filename\)filenameSelected(\$filename\)

As you can see, when the user clicks on the submit button, after making
the radio button selection, the onClick  command sets the java variable
selectIndexItem to (\$urlname/filename\) and sends it to the
javascript section of the script.  This works fine if I stop the line at
that point, and use only one variable.

However, I'd also like to send the second variable filenameSelected, set
to the value (\$filename\), and, at the same time.  As you can see, I
tried doing this by separating the two variables with an ampersand.
However, that doesn't work.

Can anyone help?

Thanks,

David




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




cgi put script?

2002-07-16 Thread greeniize

Hi,

Thanks to everyone for the suggestions- I have not tried many of them.
There does not seem to be much documentation, for this function.

I need some time for further experimenting, and will let you know the
results.

Thanks!

Steve



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




cgi put script?

2002-07-15 Thread greeniize

Hi,

I'm trying to get the put function from Netscape, to work with Apache.

I have a windows OS (NT server), and I'm using the windows version of perl
as a cgi script interpreter.  The problem is, the put script won't work
with perl.  I just get server error messages, because perl doesn't like
the commands, or the syntax, in the scripts.

I found the scripts from a web site, and a book on Apache.  I'd like to
first try just finding another put script that will work with perl, in
windows.  Are there any sources for cgi scripts, I might look at? Failing
that, can someone point me to some resources to show me how to write my
own put scripts?

Thanks,

Steve






-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]