Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. timcarr

    netscape problem

    It could be because of the language=&quot;JavaScript&quot; statement...since it isn't javascript. I'm not really sure. Here's the code to do the same thing with javascript, that's about all the help I can be: <html> <head> <script language=&quot;javascript&quot;> ref = document.referrer...
  2. timcarr

    redirect question ...

    Here is the code for something similar that I did... This code will only set the cookie though. <html> <head> <script language=&quot;javascript&quot;> function setCookie(NameOfCookie, value, expiredays) { var ExpireDate = new Date (); ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24...
  3. timcarr

    When Submitting a form in Netscape it returns a Save As window

    When I tested it this on our server it worked fine... The only time it didn't work (prompted me to save) was when I accidently left the document.SPSForm.action in the javascript function pointing to your server. Sorry I couldn't be more help, but that should help you narrow it down... tim
  4. timcarr

    When Submitting a form in Netscape it returns a Save As window

    Could you post the code you're using for the submit button? I've never had any problems with this...
  5. timcarr

    Cookies question

    I think the problem is that since you're not setting an expiration date, the cookie is not being saved. Change your code to the following and it should work: <head> <script language=&quot;javascript&quot;> function setcookie() { var name name=&quot;Test&quot...
  6. timcarr

    Simple question--hopefully

    Alright, thanks for all the help guys.
  7. timcarr

    Simple question--hopefully

    OK, so from what I understand the following code should work... <html> <head> <script> var myVar; function set() { myVar = 'blah'; } </script> </head> <body> <table width=&quot;100%&quot; border=&quot;1&quot; onLoad=&quot;set();&quot;> <tr> <td> <script>document.write(myVar)</script>...
  8. timcarr

    Simple question--hopefully

    Thanks for the quick response. Could you show me a simple example? The reason I ask is because this is precisely what I've been trying to do to test this out and I can't get it to work... When I don't set the variable in a function it works fine, otherwise I get nothing...
  9. timcarr

    Simple question--hopefully

    I'm still fairly new to javascript, so forgive my ignorance, but I need to know the following: I have a function in the heading of an html page that sets the value of a variable. I'd like to use this variable in the body of the page, but from what I can tell a variable set in a function is only...
  10. timcarr

    &lt;textarea&gt; tag does it have a value attribute

    You could probably do it with javascript. In the heading give the variable a value: <head> <script language=&quot;JavaScript&quot;> varname=&quot;value&quot; </script> </head> And then in the html, put something similar to this where you want the textarea to display: <script...
  11. timcarr

    CGI.pm vs. netscape cookies

    This isn't very likely, but do you have any meta tag redirect statements? (<meta http-equiv=refresh content=&quot;1; URL=http://mysite&quot;>) I've noticed that if the content is set to 0, the cookie will set in IE, but not Netscape...
  12. timcarr

    system command?

    This problem is solved, I believe. After not having any luck with the system command I played around a little more the the quote command in ftp and got it to work. After connecting throught ftp with perl I changed the working directory to the library the program was in and then put the following...
  13. timcarr

    system command?

    I put in the code that stillflame posted and at first I was getting a message that the system name was not in the correct syntax. I corrected this and now the script just hangs again... Any ideas? Mike- I think the ftp command you were referring to in an earlier post is the quote command...
  14. timcarr

    form validation

    That's exactly what I needed. Thanks.
  15. timcarr

    form validation

    Thanks for the reply, but since this is a password field I would like numbers to be allowed, just not at the beginning (our server doesn't allow this).
  16. timcarr

    form validation

    I need validate that a form field does not begin with a number. In Perl this would be something like: variable =~ /^\d/ The code will be similar to this: if ([field begins with number code]) { alert(&quot;Field cannot begin with a number.&quot;); theForm.field.focus(); return...
  17. timcarr

    system command?

    I'm running perl on Windows NT. I need to do a DOS command within one of my scripts. I thought the system command would work for this, but apparently I'm not using the correct syntax... The command I need to run is: rmtcmd call pgm(library/program) systemname /z I haven't gotten any errors so...
  18. timcarr

    AS/400 program

    I know the command to call the program from a dos prompt: rmtcmd call(library/program) //systemname /z Is there a way I could just call a batch file from the perl script? (I'm not having any luck finding out how to properly put this command in the script itself) Thanks, Tim
  19. timcarr

    AS/400 program

    I am already connecting to the 400 with ftp so that would be the way to go. But how can I tell a program to run once I'm connected?
  20. timcarr

    AS/400 program

    Does anyone know if there is a way to call an AS/400 program in a Perl script?

Part and Inventory Search

Back
Top