GIDForums  

Go Back   GIDForums > Webmaster Forums > Web Design Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 28-Mar-2004, 06:59
dsmith's Avatar
dsmith dsmith is offline
Senior Member
 
Join Date: Jan 2004
Location: Utah, USA
Posts: 1,351
dsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of light

Onchange script


Hi all.

I have a question about using the ONCHANGE attribute for an INPUT field of a web form.

HTML Code:
<INPUT TYPE="file" NAME="in_file" ONCHANGE=doscript()>

If I understand this correctly, this should call "doscript()" if the value is changed and then looses focus. What type of script does this have to be? Is there any possible way that it can call an external compiled C program?

What I want to do is form a value hint for another field based upon what is entered in this field, where string in the below example would be the created value.

HTML Code:
<INPUT TYPE="text" NAME="in_filename" VALUE=string>

Does anyone have any suggestions on how to do this?

Thanks,
d
  #2  
Old 28-Mar-2004, 14:19
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,234
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all
Quote:
Originally Posted by dsmith
Hi all.

I have a question about using the ONCHANGE attribute for an INPUT field of a web form.

HTML Code:
<INPUT TYPE="file" NAME="in_file" ONCHANGE=doscript()>

If I understand this correctly, this should call "doscript()" if the value is changed and then looses focus. What type of script does this have to be? Is there any possible way that it can call an external compiled C program?

What I want to do is form a value hint for another field based upon what is entered in this field, where string in the below example would be the created value.

HTML Code:
<INPUT TYPE="text" NAME="in_filename" VALUE=string>

Does anyone have any suggestions on how to do this?

Thanks,
d

From my limited knowledge of this area, in the form you have it, it's generally javascript. You may be able to call a CGI using
HTML Code:
<INPUT TYPE="file" NAME="in_file" ONCHANGE='doscript.cgi'>
but I'm not certain. Bus JS may be the way to go to accomplish what you want to do.
__________________

Cow: You're a lawyer too?
Mooseblood (mosquito): Ma'am, I was already a bloodsucking parasite. All I needed was a briefcase!
 

Recent GIDBlog2nd Week of IA Training by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where can I find web statistics script / software? rhino1616 Web Design Forum 2 02-Jan-2004 20:31
Redirect multiple URLs to one script, masking true URL Maccaday Apache Web Server Forum 1 10-Dec-2003 08:34
JavaScript Tutorial Part 1 pcxgamer Web Design Forum 2 01-Dec-2003 09:16
A very good sitemap script jrobbio MySQL / PHP Forum 3 03-Mar-2003 01:07
VALIDATING file types on an PHP upload script? JdS MySQL / PHP Forum 0 02-Jan-2003 07:58

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 19:35.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.