Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-20-2005, 12:36 PM   PM User | #1
crmpicco
Senior Coder

 
crmpicco's Avatar
 
Join Date: Jan 2005
Location: Mauchline, Scotland
Posts: 1,091
Thanks: 15
Thanked 1 Time in 1 Post
crmpicco has a little shameless behaviour in the past
Post show title without mouseover object

Code:
function alertUser(id)
{
	//alert("FUNCTION: alertUser");
	//alert("id = " + id);
	var df = document.forms["form"];
	var doc = document.form;
	
	if (df.elements[id].value != "")
	{
		df.elements[id].value = "";
		df.elements[id].focus();
		alert("The Seat must contain a letter for the row identifer\ne.g 22A");
		return false;
	}
	
}

seat_zelle.innerHTML = "<input type='text' id='specify"+s+"' name='specify"+s+"' "+
					   "title='Insert Seat Number for Pax: "+ passagier + " " + passNo + " / Segment "+ parseFloat(s+1) +"' "+
					   "class='selects' size='5' onBlur='if(!/^.*[a-z].*/i.test(this.value)){alertUser(this.id);}; 	concatSeats(this.value,"+passNo+",this.id,"+pass+");' "+
"onKeyUp='this.value=this.value.toUpperCase(); return IsNumeric(this.value,this.id);' />";
the alertUser function is called by the textbox onBlur.

Is there a way to show the title without mouseing over the textbox?

Just after the alert (alert("The Seat must contain a letter for the row identifer\ne.g 22A") has been shown?

Picco
crmpicco is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:57 AM.


Advertisement
Log in to turn off these ads.