Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Syntax for calling a javascript function

Reply
Thread Tools

Syntax for calling a javascript function

 
 
Renuka
Guest
Posts: n/a
 
      11-17-2003
I am getting an error in the Action line, where I am trying to send
the ID(retreived from the database) to a javascript function. Please
help me with the exact syntax as I am new to C#.

case "CR":
sSql = "SELECT DISTINCT "

//Error
+ "'Action' = '<center><a
href='+char(34)+'char(34)javascript:NewWindow('+ca st(ChangeRequest.ChangeRequest_ID
as nvarchar))" '+CHAR(34)+)'>Open</a></center>',"//PSH sorting

+ "'Number' = ChangeRequest.ChangeRequest_ID,"+"'Title' =
ChangeRequest.Title,";
if(bAssignedTo)
{
sSql += "'Status' = CRAssignments.CRcStatus ";
}
else
{
sSql += "'Status' = ChangeRequest.Status ";
}
sSql += "FROM ChangeRequest LEFT JOIN CRAssignments on
ChangeRequest.ChangeRequest_ID=CRAssignments.CRnCR _ID ";

break;
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Crazy what-if idea for function/method calling syntax ÔÆÙÔÆÉÏÕ Python 5 07-18-2011 08:34 PM
IS CONSTRUCTOR A SPECIAL MEMBER FUNCTION? OR SOMETHING ELSE HAVING THE SYNTAX OF FUNCTION? infinity@mail2dreamer.com C++ 3 11-17-2005 07:42 PM
write a function such that when ever i call this function in some other function .it should give me tha data type and value of calling function parameter komal C++ 6 01-25-2005 11:13 AM
calling virtual function results in calling function of base class... Andreas Lagemann C++ 8 01-10-2005 11:03 PM
calling virtual function results in calling function of base class ... tiwy C++ 0 01-09-2005 11:17 PM



Advertisments