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

Web Development

 
GeneralRe: Simple table question coding in HTML Pin
jmfekete29-Mar-06 6:41
jmfekete29-Mar-06 6:41 
GeneralRe: Simple table question coding in HTML Pin
Guffa29-Mar-06 7:02
Guffa29-Mar-06 7:02 
QuestionRe: Simple table question coding in HTML Pin
Scott Harper29-Mar-06 9:24
Scott Harper29-Mar-06 9:24 
AnswerRe: Simple table question coding in HTML Pin
Guffa29-Mar-06 11:32
Guffa29-Mar-06 11:32 
Questionhelp needed!!... Pin
zybernau28-Mar-06 6:15
zybernau28-Mar-06 6:15 
AnswerRe: help needed!!... Pin
CWIZO28-Mar-06 8:54
CWIZO28-Mar-06 8:54 
QuestionRegular Expression Troubles Pin
Brendan Vogt28-Mar-06 3:23
Brendan Vogt28-Mar-06 3:23 
QuestionPassing an integer argument into a javascript function Pin
KaKa'27-Mar-06 21:01
KaKa'27-Mar-06 21:01 
Hi,

How do we pass an integer argument from C# into a javascript function?
I declare an integer variable first, then I pass it into the javascript function.
But the javascript code didnt execute correctly.

//First, an integer variable is declared
int numofItems;

// Returns the Javascript code to attach the context menu to a HTML element
public string GetMenuReference()
{
return String.Format("return __showContextMenu({0},numofItems);", Controls[0].ClientID);
}

//Then the Javascript is called when the oncontextmenu event happens
ctl1.Attributes["oncontextmenu"] = GetMenuReference();

Initially the javascript function has the {0} argument only and it worked fine. But when I added one more integer argument, it doesnt work. What is the correct way to pass an int argument ?

AnswerRe: Passing an integer argument into a javascript function Pin
Guffa27-Mar-06 22:07
Guffa27-Mar-06 22:07 
GeneralRe: Passing an integer argument into a javascript function Pin
KaKa'28-Mar-06 14:18
KaKa'28-Mar-06 14:18 
AnswerRe: Passing an integer argument into a javascript function Pin
Guffa30-Mar-06 0:38
Guffa30-Mar-06 0:38 
QuestionWeb Service Pin
Illegal Operation27-Mar-06 17:57
Illegal Operation27-Mar-06 17:57 
QuestionCentering a flash object Pin
hint_5427-Mar-06 9:40
hint_5427-Mar-06 9:40 
AnswerRe: Centering a flash object Pin
-C-?-M-27-Mar-06 14:58
-C-?-M-27-Mar-06 14:58 
Questionsearching a datagrid Pin
Illegal Operation27-Mar-06 1:14
Illegal Operation27-Mar-06 1:14 
AnswerRe: searching a datagrid Pin
-C-?-M-27-Mar-06 16:41
-C-?-M-27-Mar-06 16:41 
QuestionStyling Issues Pin
Brendan Vogt26-Mar-06 23:14
Brendan Vogt26-Mar-06 23:14 
AnswerRe: Styling Issues Pin
George L. Jackson27-Mar-06 11:53
George L. Jackson27-Mar-06 11:53 
QuestionIE7 breaking your app? Pin
Sidney Chong26-Mar-06 22:53
Sidney Chong26-Mar-06 22:53 
Generalservlet vs server Pin
xilefxilef26-Mar-06 19:03
xilefxilef26-Mar-06 19:03 
GeneralRe: servlet vs server Pin
Brendan Vogt26-Mar-06 23:01
Brendan Vogt26-Mar-06 23:01 
QuestionDesign Question Pin
gmhanna26-Mar-06 9:48
gmhanna26-Mar-06 9:48 
QuestionHow can i disable viewsource in internet explorer using javascript Pin
Phanindra Kumar25-Mar-06 0:54
Phanindra Kumar25-Mar-06 0:54 
AnswerRe: How can i disable viewsource in internet explorer using javascript Pin
-C-?-M-26-Mar-06 19:24
-C-?-M-26-Mar-06 19:24 
QuestionQuestion time... Pin
HakunaMatada25-Mar-06 0:04
HakunaMatada25-Mar-06 0:04 

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.