Click here to Skip to main content
15,921,548 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Popup page not loading Pin
RichardGrimmer23-Apr-07 5:52
RichardGrimmer23-Apr-07 5:52 
QuestionAJAX Problem adding OnClick JavaScript Even To Row... Pin
michaelastewartmas18-Apr-07 11:59
michaelastewartmas18-Apr-07 11:59 
I have modal window that is displayed with a initial set of data in a GridView. The user enters Filter Criteria into TextBoxs and presses a Filter button. I use some AJAX to query the DB. When I get the response I Programmatically remove all the rows of the GridView, then repopulate them with the return XML formatted data. That part works fine.

What I would like to do is add a OnClick event to each Row after I have rebuilt the GridView with data. I used the code below to loop through rows of the rebuilt GridView HTML. When the line "row.OnClick = RowAction('gv_BaseUOMLookUp', this, 'OnClick');" is encountered then the loop just stops. When I comment the line out the loop runs. I have no clue what to do now. It is almost as if the event is fired whn the function is added and that ends the loop???

Anyone please help. Thanks for your time

////////// CODE BELOW ///////////////////////////
function AddRowAction(GvName)
{ //alert("AddRowAction")
var tbl = window.document.getElementById(GvName);
var rows = tbl.getElementsByTagName('tr');
for(var i = 0; i < rows.length; i++)
{ alert(i)
var row = rows[i];
row.OnClick = RowAction('gv_BaseUOMLookUp', this, 'OnClick');

}
}
AnswerRe: AJAX Problem adding OnClick JavaScript Even To Row... Pin
Steve Echols18-Apr-07 17:53
Steve Echols18-Apr-07 17:53 
GeneralRe: AJAX Problem adding OnClick JavaScript Even To Row... Pin
michaelastewartmas19-Apr-07 10:47
michaelastewartmas19-Apr-07 10:47 
AnswerRe: AJAX Problem adding OnClick JavaScript Even To Row... Pin
RichardGrimmer20-Apr-07 5:27
RichardGrimmer20-Apr-07 5:27 
GeneralRe: AJAX Problem adding OnClick JavaScript Even To Row... Pin
michaelastewartmas20-Apr-07 14:03
michaelastewartmas20-Apr-07 14:03 
QuestionEmbedding Binary Data Pin
Hedonism17-Apr-07 23:36
Hedonism17-Apr-07 23:36 
QuestionHow much shall I charge for this project? Pin
Spirytus17-Apr-07 22:48
Spirytus17-Apr-07 22:48 
AnswerRe: How much shall I charge for this project? Pin
Bradml17-Apr-07 23:08
Bradml17-Apr-07 23:08 
GeneralRe: How much shall I charge for this project? Pin
Spirytus17-Apr-07 23:53
Spirytus17-Apr-07 23:53 
AnswerRe: How much shall I charge for this project? Pin
Paddy Boyd18-Apr-07 0:21
Paddy Boyd18-Apr-07 0:21 
AnswerRe: How much shall I charge for this project? Pin
Pete O'Hanlon18-Apr-07 2:34
mvePete O'Hanlon18-Apr-07 2:34 
GeneralRe: How much shall I charge for this project? Pin
Bradml18-Apr-07 5:50
Bradml18-Apr-07 5:50 
GeneralRe: How much shall I charge for this project? Pin
Pete O'Hanlon18-Apr-07 22:22
mvePete O'Hanlon18-Apr-07 22:22 
Answerthx everyone! Pin
Spirytus18-Apr-07 10:20
Spirytus18-Apr-07 10:20 
GeneralRe: thx everyone! Pin
L Viljoen19-Apr-07 0:19
professionalL Viljoen19-Apr-07 0:19 
QuestionUpload Entire Folder (with Sub Folders) Pin
mavrikkk17-Apr-07 22:44
mavrikkk17-Apr-07 22:44 
AnswerRe: Upload Entire Folder (with Sub Folders) Pin
Bradml17-Apr-07 23:06
Bradml17-Apr-07 23:06 
QuestionReceive SMS from mobile to computer Pin
cb mehta17-Apr-07 22:14
cb mehta17-Apr-07 22:14 
QuestionJavascript Codebehind Pin
L Viljoen17-Apr-07 21:51
professionalL Viljoen17-Apr-07 21:51 
AnswerRe: Javascript Codebehind Pin
Bradml17-Apr-07 23:04
Bradml17-Apr-07 23:04 
AnswerRe: Javascript Codebehind Pin
Guffa18-Apr-07 8:19
Guffa18-Apr-07 8:19 
QuestionAbt AJAX Pin
A.Muthunagai17-Apr-07 18:51
A.Muthunagai17-Apr-07 18:51 
AnswerRe: Abt AJAX Pin
Sathesh Sakthivel17-Apr-07 19:55
Sathesh Sakthivel17-Apr-07 19:55 
QuestionChat application in FLASH Pin
A.Muthunagai17-Apr-07 18:49
A.Muthunagai17-Apr-07 18:49 

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.