Click here to Skip to main content
15,881,516 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: Javascript print with out pop up Pin
Alex Manolescu11-Jun-11 12:13
Alex Manolescu11-Jun-11 12:13 
AnswerRe: Javascript print with out pop up Pin
Atulkryadav16-Jun-11 8:25
Atulkryadav16-Jun-11 8:25 
Questionjquery and html encoding Pin
fififlowertot10-Jun-11 0:26
fififlowertot10-Jun-11 0:26 
AnswerRe: jquery and html encoding Pin
Gerben Jongerius10-Jun-11 1:46
Gerben Jongerius10-Jun-11 1:46 
Questiononclick event isn't fired Pin
Ali Al Omairi(Abu AlHassan)3-Jun-11 9:59
professionalAli Al Omairi(Abu AlHassan)3-Jun-11 9:59 
AnswerRe: onclick event isn't fired Pin
AspDotNetDev3-Jun-11 18:41
protectorAspDotNetDev3-Jun-11 18:41 
GeneralRe: onclick event isn't fired Pin
Ali Al Omairi(Abu AlHassan)4-Jun-11 2:38
professionalAli Al Omairi(Abu AlHassan)4-Jun-11 2:38 
AnswerRe: onclick event isn't fired Pin
AspDotNetDev4-Jun-11 9:20
protectorAspDotNetDev4-Jun-11 9:20 
Is there a reason you want to do it another way? Here is one small trick that can make your code look a little cleaner:
JavaScript
function create_handleOkClick (boxId, dialogResult) {
  return function() {$find(boxId).AcceptDialog(dialogResult); };
}
// In another area of code...
okButton.onclick = create_handleOkClick(this.messageboxid, this.dialogResult);

You could also do this:
JavaScript
function create_handleOkClick (instance) {
  return function() {$find(instace.messageboxid).AcceptDialog(instance.dialogResult); };
}
// In another area of code...
okButton.onclick = create_handleOkClick(this);


GeneralRe: onclick event isn't fired Pin
Ali Al Omairi(Abu AlHassan)4-Jun-11 20:23
professionalAli Al Omairi(Abu AlHassan)4-Jun-11 20:23 
GeneralRe: onclick event isn't fired Pin
Ali Al Omairi(Abu AlHassan)5-Jun-11 4:58
professionalAli Al Omairi(Abu AlHassan)5-Jun-11 4:58 
GeneralRe: onclick event isn't fired Pin
AspDotNetDev6-Jun-11 8:35
protectorAspDotNetDev6-Jun-11 8:35 
GeneralRe: onclick event isn't fired Pin
Ali Al Omairi(Abu AlHassan)7-Jun-11 0:36
professionalAli Al Omairi(Abu AlHassan)7-Jun-11 0:36 
QuestionRegarding JQueryCurrency Pin
dayakar_dn31-May-11 0:33
dayakar_dn31-May-11 0:33 
AnswerRe: Regarding JQueryCurrency Pin
thatraja3-Jun-11 18:19
professionalthatraja3-Jun-11 18:19 
QuestionPopulating a textbox inside usercontrol thru jquery. Pin
fififlowertot30-May-11 1:09
fififlowertot30-May-11 1:09 
AnswerRe: Populating a textbox inside usercontrol thru jquery. Pin
AspDotNetDev30-May-11 1:52
protectorAspDotNetDev30-May-11 1:52 
GeneralRe: Populating a textbox inside usercontrol thru jquery. Pin
fififlowertot30-May-11 3:49
fififlowertot30-May-11 3:49 
QuestionTooltip(true,escape('Benito's Taco Shop'),event) Pin
smraj150325-May-11 19:03
smraj150325-May-11 19:03 
AnswerRe: Tooltip(true,escape('Benito's Taco Shop'),event) Pin
Graham Breach25-May-11 20:39
Graham Breach25-May-11 20:39 
QuestionIcon on the left of the fieldLable of a textField Pin
Pierre besquent25-May-11 0:13
Pierre besquent25-May-11 0:13 
QuestionURL Decodind in javascript Pin
Ali Al Omairi(Abu AlHassan)24-May-11 2:09
professionalAli Al Omairi(Abu AlHassan)24-May-11 2:09 
AnswerRe: URL Decodind in javascript Pin
Not Active24-May-11 2:36
mentorNot Active24-May-11 2:36 
GeneralRe: URL Decodind in javascript Pin
Ali Al Omairi(Abu AlHassan)25-May-11 0:21
professionalAli Al Omairi(Abu AlHassan)25-May-11 0:21 
AnswerRe: URL Decodind in javascript Pin
Pete O'Hanlon24-May-11 3:01
mvePete O'Hanlon24-May-11 3:01 
GeneralRe: URL Decodind in javascript Pin
Ali Al Omairi(Abu AlHassan)25-May-11 0:17
professionalAli Al Omairi(Abu AlHassan)25-May-11 0:17 

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.