Click here to Skip to main content
15,914,071 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: I AM JUST GETTING STARTED Pin
tech60318-Mar-09 15:58
tech60318-Mar-09 15:58 
AnswerRe: I AM JUST GETTING STARTED Pin
Marc Firth15-Mar-09 23:28
Marc Firth15-Mar-09 23:28 
Questioncreate a nested table with javascript Pin
emilio_ts14-Mar-09 5:17
emilio_ts14-Mar-09 5:17 
AnswerRe: create a nested table with javascript Pin
tech60318-Mar-09 16:10
tech60318-Mar-09 16:10 
GeneralRe: create a nested table with javascript Pin
emilio_ts19-Mar-09 0:52
emilio_ts19-Mar-09 0:52 
AnswerRe: create a nested table with javascript Pin
Naruki23-Mar-09 20:20
Naruki23-Mar-09 20:20 
QuestionType Incompatible When Calling ActiveXObejct's Method in Web Page Pin
Xiaoming Qian12-Mar-09 17:20
Xiaoming Qian12-Mar-09 17:20 
QuestionObject cannot be extended in IE - Object does not support this property or method Pin
Jayapal Chandran11-Mar-09 22:22
Jayapal Chandran11-Mar-09 22:22 
 :(( <script>
	onerror = function(a,b,c) { alert(a+c) }
</script>

<script type="text/javascript">
	function _isEmail() 
	{
	   var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
	   if( reg.test(this.value) )
	   	alert("yes")
	else
		alert("no")
	}

	Object.prototype.isEmail = _isEmail

</script>

<input type="text" name="email" id="email" value="sdf@sdf.com" />

<script>
	document.getElementById('email').isEmail()
</script>



the above code works well in firefox but not in IE6 or IE7 and i didn't check it in IE8...

i am trying to extend the Object type to add this isEmail method

so that i can call this function on any object like input elements...
since all the elements are basically of the type Object it should work and it works in FF... is there any frame work to do this... what about prototype.org... ??? Cry | :((

Today's Beautiful Moments are
Tomorrow's Beautiful Memories

QuestionAdd/Edit in ModalPopupExtender Pin
VikashGohil11-Mar-09 20:56
VikashGohil11-Mar-09 20:56 
AnswerRe: Add/Edit in ModalPopupExtender Pin
StianSandberg12-Mar-09 2:50
StianSandberg12-Mar-09 2:50 
Questionhtml source code Pin
patrice pilgrim11-Mar-09 9:48
patrice pilgrim11-Mar-09 9:48 
AnswerRe: html source code Pin
Ashfield12-Mar-09 2:38
Ashfield12-Mar-09 2:38 
AnswerRe: html source code Pin
Mohammad Dayyan13-Mar-09 3:53
Mohammad Dayyan13-Mar-09 3:53 
AnswerRe: html source code Pin
Marc Firth15-Mar-09 23:30
Marc Firth15-Mar-09 23:30 
Questionquestion Pin
mohprog11-Mar-09 6:42
mohprog11-Mar-09 6:42 
AnswerRe: question Pin
fly90411-Mar-09 11:43
fly90411-Mar-09 11:43 
GeneralRe: question Pin
Naruki23-Mar-09 20:21
Naruki23-Mar-09 20:21 
QuestionPadding in dropdown Pin
Brendan Vogt11-Mar-09 6:29
Brendan Vogt11-Mar-09 6:29 
AnswerRe: Padding in dropdown Pin
Marc Firth15-Mar-09 23:31
Marc Firth15-Mar-09 23:31 
GeneralRe: Padding in dropdown Pin
Brendan Vogt16-Mar-09 5:41
Brendan Vogt16-Mar-09 5:41 
GeneralRe: Padding in dropdown Pin
Marc Firth16-Mar-09 5:55
Marc Firth16-Mar-09 5:55 
GeneralRe: Padding in dropdown Pin
Brendan Vogt16-Mar-09 5:58
Brendan Vogt16-Mar-09 5:58 
GeneralRe: Padding in dropdown Pin
Marc Firth16-Mar-09 6:02
Marc Firth16-Mar-09 6:02 
QuestionVertical Alignment in divs Pin
Brendan Vogt11-Mar-09 6:26
Brendan Vogt11-Mar-09 6:26 
AnswerRe: Vertical Alignment in divs Pin
Riaan Booyzen12-Mar-09 1:14
Riaan Booyzen12-Mar-09 1:14 

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.