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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

syntax error, and nonfunctioning onchange call

Status
Not open for further replies.

webscripter

Programmer
Jul 29, 2002
266
0
0
US
Hi everyone,

update pages -> other pages

This page is giving me just a little trouble. It says there is a syntax error. But I don't see it. It might be because I've been programming all night.

The other thing I wanted to learn is how to get only the filename to show in the textbox after a file is selected.

Can someone check out my eval statement. I'm not really sure what the eval statement does, or how to pass a string name of the form then use it to refer to it's elements. Thanks
Tricia
yorkeylady@earthlink.net
 
Hi yorkeylady,
Please try this
if (formname != null)
eval(formname + ".filename.value = " + namefile );
instead of
eval(formname+".filename.value = namefile;");

Hope it will help [bigcheeks] Experience teaches slowly and at the cost of mistakes [pipe]
 
duh, why didn't I see that? Thanks
Tricia
yorkeylady@earthlink.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top