J
Jeremy
Hi,
Hope someone can help
I have a datalist and in each <TD> i have an image which is based off a
Field Value. What I require is when the user clicks the <TD> the images
cycle through a predefined set.
I cannot have this postback as there would be approx 80 <TD> on the page and
they need to be able to fill the sheet out quickly.
So I tried the following (Delphi .NET Code)
procedure TMark.OnItemDataBound(Sender : TObject;E: DataListItemEventArgs);
begin
e.Item.Attributes.Add('onclick','cycleImages("id of the image to be
cycled")');
end;
Two Problems.
1. No javascript appears in the output
2. How do I get the uniqueID of the Image so the javascript can find it.
Any Ideas on how to accomplish this. Basically I need a user to fill out the
sheet by clicking on the cells and once finished hit a save button that will
postback and update the database.
Thanks
Jeremy
Hope someone can help
I have a datalist and in each <TD> i have an image which is based off a
Field Value. What I require is when the user clicks the <TD> the images
cycle through a predefined set.
I cannot have this postback as there would be approx 80 <TD> on the page and
they need to be able to fill the sheet out quickly.
So I tried the following (Delphi .NET Code)
procedure TMark.OnItemDataBound(Sender : TObject;E: DataListItemEventArgs);
begin
e.Item.Attributes.Add('onclick','cycleImages("id of the image to be
cycled")');
end;
Two Problems.
1. No javascript appears in the output
2. How do I get the uniqueID of the Image so the javascript can find it.
Any Ideas on how to accomplish this. Basically I need a user to fill out the
sheet by clicking on the cells and once finished hit a save button that will
postback and update the database.
Thanks
Jeremy