This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Need Help with Jquery Selector logic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Need Help with Jquery Selector logic" Watch "Need Help with Jquery Selector logic" New topic
Author

Need Help with Jquery Selector logic

Michael Hubele
Ranch Hand

Joined: Dec 17, 2005
Posts: 182
Hi

First I will explain what I am doing.

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



thanks

-edit

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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need Help with Jquery Selector logic