Click here to Skip to main content
16,020,298 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: Automation server can't create object Pin
Pravin Patil, Mumbai25-Feb-11 3:14
Pravin Patil, Mumbai25-Feb-11 3:14 
GeneralRe: Automation server can't create object Pin
Ali Al Omairi(Abu AlHassan)25-Feb-11 7:43
professionalAli Al Omairi(Abu AlHassan)25-Feb-11 7:43 
GeneralRe: Automation server can't create object Pin
Xandip7-Apr-11 3:11
Xandip7-Apr-11 3:11 
GeneralRe: Automation server can't create object Pin
Ali Al Omairi(Abu AlHassan)7-Apr-11 5:20
professionalAli Al Omairi(Abu AlHassan)7-Apr-11 5:20 
Questionformular-Database save Pin
Pierre besquent7-Feb-11 3:50
Pierre besquent7-Feb-11 3:50 
AnswerRe: formular-Database save Pin
Sunasara Imdadhusen16-Feb-11 23:06
professionalSunasara Imdadhusen16-Feb-11 23:06 
QuestionValidating the input type "file" data. - Is this the right forum? please Pin
Douglas Kirk4-Feb-11 11:23
Douglas Kirk4-Feb-11 11:23 
AnswerRe: Validating the input type "file" data. - Is this the right forum? please Pin
Manfred Rudolf Bihy6-Feb-11 8:06
professionalManfred Rudolf Bihy6-Feb-11 8:06 
I'm not quite sure where your issues are. I put this sample code together and it works great in IE8:

HTML
<html>
<body>
<form enctype="multipart/form-data" name="Software" action="SoftwareUpdate.php" method="post" onSubmit="return Validate(this);">
<input type="file" name="sFileName" value=""/>
<input type="text" name="sSoftwareType"/>
<input type="text" name="sSoftwareName"/> 
<br/> 
<input type="submit" name="Hello" value="Go!">
</form>
<script type="text/javascript">
function Validate(f)
{
    alert(f.sFileName.value == "");
	return false;
}

function Validate(f)
{
	if (f.sSoftwareType.value == "")
	{
		f.sSoftwareType.focus();
		return false;
	}
	if (f.sSoftwareName.value == "")
	{
		f.sSoftwareName.focus();
		return false;
	}
	if (f.sFileName.value == "")
	{
		f.sFileName.focus();
		return false;	
	}
}
</script>
</body>
</html>


Works like a charm!
GeneralRe: Validating the input type "file" data. - Is this the right forum? please Pin
Douglas Kirk6-Feb-11 8:34
Douglas Kirk6-Feb-11 8:34 
GeneralRe: Validating the input type "file" data. - Is this the right forum? please Pin
Manfred Rudolf Bihy6-Feb-11 9:00
professionalManfred Rudolf Bihy6-Feb-11 9:00 
GeneralRe: Validating the input type "file" data. - Is this the right forum? please Pin
Douglas Kirk6-Feb-11 9:23
Douglas Kirk6-Feb-11 9:23 
GeneralRe: Validating the input type "file" data. - Is this the right forum? please Pin
Manfred Rudolf Bihy6-Feb-11 21:33
professionalManfred Rudolf Bihy6-Feb-11 21:33 
QuestionThoughts on a Javascript playground? Pin
Jerry Evans4-Feb-11 6:10
Jerry Evans4-Feb-11 6:10 
AnswerRe: Thoughts on a Javascript playground? Pin
DaveAuld4-Feb-11 8:03
professionalDaveAuld4-Feb-11 8:03 
GeneralRe: Thoughts on a Javascript playground? Pin
Manfred Rudolf Bihy6-Feb-11 7:40
professionalManfred Rudolf Bihy6-Feb-11 7:40 
AnswerRe: Thoughts on a Javascript playground? Pin
cjoki4-Feb-11 9:59
cjoki4-Feb-11 9:59 
AnswerRe: Thoughts on a Javascript playground? Pin
Monjurul Habib1-Mar-11 8:23
professionalMonjurul Habib1-Mar-11 8:23 
QuestionNavigation from a PHP form Pin
MacRaider44-Feb-11 3:33
MacRaider44-Feb-11 3:33 
AnswerRe: Navigation from a PHP form Pin
cjoki4-Feb-11 10:04
cjoki4-Feb-11 10:04 
GeneralRe: Navigation from a PHP form Pin
MacRaider44-Feb-11 11:43
MacRaider44-Feb-11 11:43 
GeneralRe: Navigation from a PHP form Pin
cjoki4-Feb-11 18:26
cjoki4-Feb-11 18:26 
GeneralRe: Navigation from a PHP form Pin
MacRaider48-Feb-11 6:58
MacRaider48-Feb-11 6:58 
GeneralRe: Navigation from a PHP form Pin
MacRaider48-Feb-11 7:25
MacRaider48-Feb-11 7:25 
GeneralRe: Navigation from a PHP form Pin
cjoki8-Feb-11 13:26
cjoki8-Feb-11 13:26 
QuestionSlow Animation Pin
Ali Al Omairi(Abu AlHassan)2-Feb-11 20:10
professionalAli Al Omairi(Abu AlHassan)2-Feb-11 20:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.