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, 07: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, 15:19
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,335
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.
__________________

During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence?
 
 

Recent GIDBlogToyota - 2009 May Promotion by Nihal

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
A very good sitemap script jrobbio MySQL / PHP Forum 4 11-Sep-2009 09:17
Where can I find web statistics script / software? rhino1616 Web Design Forum 2 02-Jan-2004 21:31
Redirect multiple URLs to one script, masking true URL Maccaday Apache Web Server Forum 1 10-Dec-2003 09:34
JavaScript Tutorial Part 1 pcxgamer Web Design Forum 2 01-Dec-2003 10:16
VALIDATING file types on an PHP upload script? JdS MySQL / PHP Forum 0 02-Jan-2003 08:58

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

All times are GMT -6. The time now is 22:11.


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