378 reputation
15
bio website sharepointhillbilly.com
location
age
visits member for 5 years, 2 months
seen Feb 20 '12 at 19:01

Apr
10
awarded  Yearling
Nov
16
awarded  Nice Answer
Jan
26
awarded  Critic
Jan
26
answered How do you hide a hidden list?
Dec
18
comment What is the best method to retrieve the value of “Sum = ####” from List View using jQuery?
See.. that's what i'm talking about.. I may be able to make jQuery do whatever I want it to, but sometimes I do it in 4 lines when it can be done in one. I tried using contains to narrow down what I wanted, but was obviously not using it correctly... Love it when I get an aha moment from something simple. :)
Dec
18
awarded  Student
Dec
17
comment What is the best method to retrieve the value of “Sum = ####” from List View using jQuery?
thanks for the feedback Christophe. Not only am I looking for performance, I'm also looking for the most maintable code possible. I know it's hard to believe, but sometimes I hack stuff to get it to work, and every now and then I like to see how the other experts do it ;)
Dec
16
awarded  Supporter
Dec
16
comment What is the best method to retrieve the value of “Sum = ####” from List View using jQuery?
thanks Marc... a little more simple than what I was doing, so I'll take it... And the exact code needed to get just the number is: $("#WebPartWPDnn").find("nobr:contains('Sum = ')").html().split(" = ")[1].replace(",","").replace("</B>",""); and Just because it happens fast, doesn't mean you should not improve performance where you can. :)
Dec
16
comment What is the best method to retrieve the value of “Sum = ####” from List View using jQuery?
additionally, ".text()" strips off all the html tags so it's not 100% possible to determine where the last digit of the number of "SUM = ###,###" is becase the very next character could conceivably be a number that relates to something else. by using .html() I can check for the trailing </B> to know that I'm at the end of the number.
Dec
16
comment What is the best method to retrieve the value of “Sum = ####” from List View using jQuery?
Thank DeChrist, that's essenstially what I was doing before. Also, from my playing, I believe "contains" returns the html for the element, so it has the same value as $("#WebPartWPDnn").html() which has me parsing a very long string. If this is the best approach, I'll stick with it. Thanks again for the help!
Dec
16
asked What is the best method to retrieve the value of “Sum = ####” from List View using jQuery?
May
27
awarded  Teacher
Jan
26
answered Unable to hide LoginAsDifferentUser menu in SP2010
Oct
8
answered List of SharePoint development tools