Click here to Skip to main content
15,886,873 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: Local data Pin
rrrado23-Nov-10 5:31
rrrado23-Nov-10 5:31 
GeneralRe: Local data Pin
fjdiewornncalwe23-Nov-10 4:39
professionalfjdiewornncalwe23-Nov-10 4:39 
GeneralRe: Local data Pin
rrrado23-Nov-10 5:16
rrrado23-Nov-10 5:16 
GeneralRe: Local data Pin
fjdiewornncalwe23-Nov-10 5:46
professionalfjdiewornncalwe23-Nov-10 5:46 
GeneralRe: Local data Pin
Not Active23-Nov-10 5:49
mentorNot Active23-Nov-10 5:49 
QuestionAsp.net Textbox Editing Problem due to the following Javascript Pin
Vimalsoft(Pty) Ltd22-Nov-10 4:35
professionalVimalsoft(Pty) Ltd22-Nov-10 4:35 
AnswerRe: Asp.net Textbox Editing Problem due to the following Javascript Pin
thatraja28-Nov-10 0:15
professionalthatraja28-Nov-10 0:15 
Questioninput type=button && Extjs Pin
luiz sync17-Nov-10 12:38
luiz sync17-Nov-10 12:38 
hello everyone.

Inside my form I have a field like this:
<input type="text" id="UserEmail" name="UserEmail" />


If I set the Id in my Ext source it works fine:
var txt_email = new Ext.form.TextField
({
   applyTo: 'UserEmail' ,
   allowBlank: false,
   x:10, // It will work in a Panel. The layout is 'absolute'
   y:50
});



But if I set one button, it doesn't work.
I don't wanna override the attributes in my widgets.
Where are my mistakes?

the example:

<html><head><title>Hello World</title>
<link rel="stylesheet" type="text/css" href="ext/resources/css/ext-all.css" />
<script type="text/javascript" src="ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="ext/ext-all.js"></script>

<script type="text/javascript">
Ext.onReady(function()
{
	Ext.QuickTips.init();

	var txt_email = new Ext.form.TextField
	({
	   applyTo: 'UserEmail' ,
	   allowBlank: false,
	   x:110, // It will work in a Panel. The layout is 'absolute'
	   y:50
	});

	var btn_submit = new Ext.Button
	({
	   applyTo: 'submit' ,
	   x:280, // It will work in a Panel. The layout is 'absolute'
	   y:50
	});


	var viewport = new Ext.Viewport
	({ 
		renderTo: document.body,
		frame:true, layout:'fit',
		items:[{
			xtype:'panel',
			layout:'absolute',
			items:[txt_email, btn_submit]
		}]
	});
	viewport.show();
});

</script>
</head>
<body>
<form id="anyname">

<input type="text" id="UserEmail" name="UserEmail" />
<input type="button" id="submit" name="submit" onclick="alert('hello')" />

</form>
</body>    
</html>




Thanks!
AnswerRe: input type=button && Extjs Pin
luiz sync18-Nov-10 1:49
luiz sync18-Nov-10 1:49 
QuestionTracking down functions in javascript. Pin
R-tsumami17-Nov-10 1:22
R-tsumami17-Nov-10 1:22 
AnswerRe: Tracking down functions in javascript. Pin
Nagy Vilmos17-Nov-10 1:50
professionalNagy Vilmos17-Nov-10 1:50 
AnswerRe: Tracking down functions in javascript. Pin
Pete O'Hanlon17-Nov-10 2:51
mvePete O'Hanlon17-Nov-10 2:51 
GeneralRe: Tracking down functions in javascript. Pin
fjdiewornncalwe17-Nov-10 3:42
professionalfjdiewornncalwe17-Nov-10 3:42 
GeneralRe: Tracking down functions in javascript. Pin
thatraja18-Nov-10 20:29
professionalthatraja18-Nov-10 20:29 
GeneralRe: Tracking down functions in javascript. Pin
Zhenjie Fu18-Nov-10 20:33
Zhenjie Fu18-Nov-10 20:33 
AnswerRe: Tracking down functions in javascript. Pin
Hiren solanki1-Dec-10 22:26
Hiren solanki1-Dec-10 22:26 
Questionprevent users from entering char in textbox after clicking submit button Pin
Tridip Bhattacharjee13-Nov-10 22:45
professionalTridip Bhattacharjee13-Nov-10 22:45 
AnswerRe: prevent users from entering char in textbox after clicking submit button Pin
jaypatel51214-Nov-10 8:00
jaypatel51214-Nov-10 8:00 
AnswerRe: prevent users from entering char in textbox after clicking submit button [modified] Pin
Zhenjie Fu18-Nov-10 20:10
Zhenjie Fu18-Nov-10 20:10 
AnswerRe: prevent users from entering char in textbox after clicking submit button Pin
Sunasara Imdadhusen4-Jan-11 22:21
professionalSunasara Imdadhusen4-Jan-11 22:21 
QuestionHelp - Horizontal dropdown menu Pin
Manmohan2910-Nov-10 23:15
Manmohan2910-Nov-10 23:15 
AnswerRe: Help - Horizontal dropdown menu Pin
Jules VDV12-Nov-10 9:39
Jules VDV12-Nov-10 9:39 
GeneralRe: Help - Horizontal dropdown menu Pin
Manmohan2913-Nov-10 16:15
Manmohan2913-Nov-10 16:15 
GeneralRe: Help - Horizontal dropdown menu Pin
Jules VDV18-Nov-10 4:32
Jules VDV18-Nov-10 4:32 
QuestionHow can i remove pipe character in string using regex Pin
grewin8-Nov-10 16:31
grewin8-Nov-10 16:31 

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.