On my page I have an area called quicklinks. This table has 5 rows(one row is the header). The rest of rows contain 3 cells. One cell for the quickLink Name(an asp.net hyperLink is used). One cell for the repetition number(an asp.label). One cell for the checkbox(an asp.net checkbox).
The table looks like this:
This generates find and dandy. Now when a user saves a new quickLink. I want the quicklink area to show the new saved results immediately.
So if they got the table looking like this
name1, 10, checkbox
and they save name2, 20,
the quicklink area will update itself and show
name1, 10, checkbox name2, 20, checkbox
So of course I can't do this server side because the saving just got saved with ajax.
So now I been working on it and it works but it does not work.
So this sort of work but like I said does not fully work. Like it updates the table immediately but the thing is the checkbox just disappears and I don't understand why.
Like my store stuff is just getting the rows that contain the names and repeitions. I am not even touching the checkbox table row.
Second sometimes(not always) I click on my save button(this is where all this ajax is located) and my screen just goes blank and it looks like I am stareing at a blank page. I am not sure why this is happening either.
Also I am wondering is their away I can shorten my store and store2 ones down. It seems like there kinda long and then on top of it I have to repeat almost all the save code since I am dealing with 2 different types of field(the name is all hyperlink enabled and the reps is all labels).
So I am not sure I could use end() and/or clone() to help me out in this case.
Here is different states of the table
*note asp.net labels get generated as span tags *
the full save button click event
on a side note it seems like the blank page is caused when I hit the save button time in a row really fast(I guess its not finished doing the ajax request).
Funny thing though if you look at the source code it has all the source code there.
I guess I will have to stop double click some how(disable save button during ajax request?) [ June 29, 2008: Message edited by: Michael Hubele ]