|
 |
aspdotnet_website_programming thread: CreateDirectory Function
Message #1 by "Sunit" <sjoshi@i...> on Fri, 11 Oct 2002 21:28:37
|
|
I can't seem to get the Javascript function to work. After I enter a name in the Prompt box, I get an
"Object expected" error. I have double-checked the script and it looks ok.
<HEAD>
<title>FileManager: Browse Files</title>
<LINK href="http://localhost/ThePhile/Styles/ThePhile.css" type="text/css" rel="stylesheet">
<meta name="CODE_LANGUAGE" Content="C#">
<script language="javascript">
function CreateDir()
{
var dirName = prompt('Type the name of the directory to create:');
if((dirName) && (dirName !=""))
{
document.forms['BrowseFiles'].elements['funcParam'].value = dirName;
_doPostBack('CreateDir', '');
}
}
</script>
</HEAD>
Any pointers are appreciated.
thanks
Sunit
sunitjoshi@n...
Message #2 by "Rachael Ross" <rross@e...> on Fri, 11 Oct 2002 13:31:43 -0700
|
|
Maybe this line?
_doPostBack('CreateDir', '');
Looks like you only have one underscore in front of doPostBack and it
needs 2 underscores.
Rachael Ross
Software Developer
eProject, Inc
83 King Street, Suite 300 | Seattle, WA 98104
d: xxx.xxx.xxxx | f: xxx xxx xxxx
www.eproject.com | rross@e...
Bringing people, information and ideas together.
-----Original Message-----
From: Sunit [mailto:sjoshi@i...]
Sent: Friday, October 11, 2002 2:29 PM
To: Website Programming with ASP.NET
Subject: [aspdotnet_website_programming] CreateDirectory Function
I can't seem to get the Javascript function to work. After I enter a
name in the Prompt box, I get an "Object expected" error. I have
double-checked the script and it looks ok.
<HEAD>
<title>FileManager: Browse Files</title>
<LINK
href=3D"http://localhost/ThePhile/Styles/ThePhile.css" type=3D"text/css"
rel=3D"stylesheet">
<meta name=3D"CODE_LANGUAGE" Content=3D"C#">
<script language=3D"javascript">
function CreateDir()
{
var dirName =3D prompt('Type the
name of the directory to create:');
if((dirName) && (dirName !=3D""))
{
=09
document.forms['BrowseFiles'].elements['funcParam'].value =3D dirName;
_doPostBack('CreateDir',
'');
}
}
</script>
</HEAD>
Any pointers are appreciated.
thanks
Sunit
sunitjoshi@n...
Message #3 by "Joshi, Sunit" <sjoshi@i...> on Fri, 11 Oct 2002 15:42:40 -0500
|
|
That was it thanks...
Sunit
-----Original Message-----
From: Rachael Ross [mailto:rross@e...]
Sent: Friday, October 11, 2002 3:32 PM
To: Website Programming with ASP.NET
Subject: [aspdotnet_website_programming] RE: CreateDirectory Function
Maybe this line?
_doPostBack('CreateDir', '');
Looks like you only have one underscore in front of doPostBack and it
needs 2 underscores.
Rachael Ross
Software Developer
eProject, Inc
83 King Street, Suite 300 | Seattle, WA 98104
d: xxx.xxx.xxxx | f: xxx xxx xxxx
www.eproject.com | rross@e...
Bringing people, information and ideas together.
-----Original Message-----
From: Sunit [mailto:sjoshi@i...]
Sent: Friday, October 11, 2002 2:29 PM
To: Website Programming with ASP.NET
Subject: [aspdotnet_website_programming] CreateDirectory Function
I can't seem to get the Javascript function to work. After I enter a
name in the Prompt box, I get an "Object expected" error. I have
double-checked the script and it looks ok.
<HEAD>
<title>FileManager: Browse Files</title>
<LINK
href="http://localhost/ThePhile/Styles/ThePhile.css" type="text/css"
rel="stylesheet">
<meta name="CODE_LANGUAGE" Content="C#">
<script language="javascript">
function CreateDir()
{
var dirName = prompt('Type the
name of the directory to create:');
if((dirName) && (dirName !=""))
{
document.forms['BrowseFiles'].elements['funcParam'].value = dirName;
_doPostBack('CreateDir',
'');
}
}
</script>
</HEAD>
Any pointers are appreciated.
thanks
Sunit
sunitjoshi@n...
|
|
 |