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

JavaScript

 
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 
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 
I am a little confused as to what you are after, but here are a few samples that may demonstrate what you are looking for:
JavaScript
var create_handler = function (context, methodName, parameter) {
  create_handler[methodName](context, parameter);
};
create_handler.AcceptDialog = function (context, parameter) {
  alert("Accepting...");
};
create_handler.Close = function (context, parameter) {
  alert("Closing...");
};
create_handler.DoPostBack = function (context, parameter) {
  alert("Posting...");
};

// Test.
create_handler(this, "AcceptDialog", "a parameter");
create_handler(this, "Close", "a parameter");
create_handler(this, "DoPostBack", "a parameter");

And another:
JavaScript
var create_handler = function (context, method, parameter) {
  method(context, parameter);
};
create_handler.AcceptDialog = function (context, parameter) {
  alert("Accepting...");
};
create_handler.Close = function (context, parameter) {
  alert("Closing...");
};
create_handler.DoPostBack = function (context, parameter) {
  alert("Posting...");
};

// Test.
create_handler(this, create_handler.AcceptDialog, "a parameter");
create_handler(this, create_handler.Close, "a parameter");
create_handler(this, create_handler.DoPostBack, "a parameter");

And another:
JavaScript
var myContext = "hello";
var create_handler = function (context, method, parameter) {
  method.call(context, parameter);
};
create_handler.AcceptDialog = function (parameter) {
  alert("Accepting..." + this);
};
create_handler.Close = function (parameter) {
  alert("Closing..." + this);
};
create_handler.DoPostBack = function (parameter) {
  alert("Posting..." + this);
};

// Test.
create_handler(myContext, create_handler.AcceptDialog, "a parameter");
create_handler(myContext, create_handler.Close, "a parameter");
create_handler(myContext, create_handler.DoPostBack, "a parameter");


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 
GeneralRe: URL Decodind in javascript Pin
sivaguru theerthamalai25-May-11 20:45
sivaguru theerthamalai25-May-11 20:45 
GeneralRe: URL Decodind in javascript [modified] Pin
Ali Al Omairi(Abu AlHassan)25-May-11 21:24
professionalAli Al Omairi(Abu AlHassan)25-May-11 21:24 
GeneralRe: URL Decodind in javascript Pin
sivaguru theerthamalai25-May-11 22:22
sivaguru theerthamalai25-May-11 22:22 

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.