It could be because of the language="JavaScript" 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="javascript">
ref = document.referrer...
Here is the code for something similar that I did... This code will only set the cookie though.
<html>
<head>
<script language="javascript">
function setCookie(NameOfCookie, value, expiredays)
{ var ExpireDate = new Date ();
ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24...
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
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="javascript">
function setcookie() {
var name
name="Test"...
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="100%" border="1" onLoad="set();">
<tr>
<td>
<script>document.write(myVar)</script>...
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...
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...
You could probably do it with javascript.
In the heading give the variable a value:
<head>
<script language="JavaScript">
varname="value"
</script>
</head>
And then in the html, put something similar to this where you want the textarea to display:
<script...
This isn't very likely, but do you have any meta tag redirect statements?
(<meta http-equiv=refresh content="1; URL=http://mysite">)
I've noticed that if the content is set to 0, the cookie will set in IE, but not Netscape...
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...
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...
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).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.