Current status of the Ning Platform is always available on the Ning Status Blog.

Forum

Hello all!

I found something tonight when researching why jQuery code that ran fine on the first page of "All Members" would not run on the 2nd, 3rd, etc page of "All Members".  It probably won't affect anyone ever, but I thought I'd mention it in case someone comes looking for info on this issue.

Check any Ning network; this one for example!  Go to All Members:

http://creators.ning.com/profiles/members/

(When Saved, I noticed my Bold of members broke the link, it is http://creators.ning.com/profiles/members/ )

Scroll to the bottom of the page and you'll see links to subsequent pages: 2, 3, ... 1032, Next.

Click the 2 and you go to

http://creators.ning.com/profiles/friend/list?page=2

(Link is http://creators.ning.com/profiles/friend/list?page=2 )

Now its not that there isn't a page 2 of Members because there is:

http://creators.ning.com/profiles/members?page=2  or

http://creators.ning.com/profiles/members/?page=2

It looks the same whether it's members/?page=2 or friend/list?page=2 so who cares, right?

Well jQuery and CSS people might care.

The main div on members/?page=2 is

<div id="xg" class="xg_theme xj_list_container xg_widget_profiles xg_widget_profiles_members xg_widget_profiles_members_index" data-layout-pack="classic">

It has the class of xg_widget_profiles_members_index as you would expect, since the first page of All Members also has that class.

Well the main div on friend/list?page=2 has this as the main div:

<div id="xg" class="xg_theme xj_list_container xg_widget_profiles xg_widget_profiles_friend xg_widget_profiles_friend_list" data-layout-pack="classic">

Note the different classes!

 

How I found this:

Read the discussion from here on, if interested:

http://jqueryhelp.ning.com/forum/topics/how-to-highlight-a-certain?commentId=2818000%3AComment%3A39704

See the bug in action:

Go here, after page loads, notice a member is highlighted in yellow:

http://jqueryhelp.ning.com/profiles/members/

Scroll to bottom and click 2.  Then scroll to bottom and click 1.  You are back to the same page where member was highlighted, but is not longer highlighted!  This is because the numbered navigation links at the page bottom take you to a page that looks the same as the first Members page but which actually has a slightly different set of classes for the main div with id of "xg".

 

I really don't know if this is a bug or there's a reason for it.  But it took me over an hour to find this, so I hope I can save someone else some time if they run into the same thing - where a piece of code works fine on the first page of "All Members" but breaks on subsequent pages.

Best wishes!

"TJ"

 

You need to be a member of Ning Creators Network to add comments!

Join Ning Creators Network

Email me when people reply –

Replies

  • This is beautiful
    Thank you
    Do you do I put for pictures?

     
     

This reply was deleted.

Search the Creators Network

Latest Activity

Constantine is now a member of Ning Creators Network
2 hours ago
Kyryl_Ning_Support replied to Yana Ning Support's discussion CAPTCHA - NO BOTS AND SPAMMY CONTENT
"Hi Philip,
We have replied to you in private message, as the reply contain some personal informatio…"
3 hours ago
Kyryl_Ning_Support replied to Hugh's discussion Support Tickets Closed Even if Error not Fixed
"Hi Hugh,
We do apologise for the inconveniences, the system could close your ticket automatically.…"
3 hours ago
Kyryl_Ning_Support replied to Maureen Jansen's discussion Message group members
"Hi there,
To send the message to all members of the group please go to the Group and Press the Butt…"
4 hours ago
Saurabh replied to Saurabh's discussion Home page showing error
"The error again started"
12 hours ago
Jungla replied to Yana Ning Support's discussion CAPTCHA - NO BOTS AND SPAMMY CONTENT
"How can you do new stuff, when you can't even fix old errors? My website, today gives all day Our a…"
13 hours ago
Philip Voice replied to Yana Ning Support's discussion CAPTCHA - NO BOTS AND SPAMMY CONTENT
"Has this update affected networks?

Can you please check landscapejuicenetwork.com as it's been dow…"
15 hours ago
Kos replied to Anna Ning Support's discussion Announcing Events for Ning 3.0
"Moi?  *lol*  Yeah, once I'm 'in' something, I tend to stick around forever 'til you show me the exi…"
15 hours ago
Pat Howlett replied to Anna Ning Support's discussion Announcing Events for Ning 3.0
"Kos, you are certainly one who kept me coming back :]
I hope to have something worth sharing soon. "
15 hours ago
Kos replied to Anna Ning Support's discussion Announcing Events for Ning 3.0
"Great to see an old face return!  Welcome back Pat :)"
15 hours ago
⚡JFarrow⌁ replied to shironala's discussion Hi can somone help me with the css problem ?
"i see that you have your x_body padding set at  padding-top: 154px; which may be the reason for you…"
16 hours ago
Thisisbully replied to Bizz ( John )'s discussion My New Events Notification Messages
"Nice"
17 hours ago
shironala replied to shironala's discussion Hi can somone help me with the css problem ?
""
17 hours ago
Pat Howlett replied to Anna Ning Support's discussion Announcing Events for Ning 3.0
"I'm back :]
Backstory...I became an NC back in 2006 and ran multiple local business networks (at on…"
18 hours ago
Kyryl_Ning_Support replied to Yana Ning Support's discussion CAPTCHA - NO BOTS AND SPAMMY CONTENT
"Hi there,
Unfortunately, the CAPTCHA could prevent sign ups from bots only, that is making the life…"
19 hours ago
Traddie replied to Yana Ning Support's discussion CAPTCHA - NO BOTS AND SPAMMY CONTENT
"Hi Guys. Sorry to disappoint you but I have the CAPTCHA enabled and keep changing the quiz question…"
20 hours ago
Ning via Facebook

CAPTCHA - No bots and spammy content As of now you can easily prevent spammy and bots’…

Mike Collins replied to Anna Ning Support's discussion Announcing Events for Ning 3.0
"Sorry John been away and just catching up - the link says page cannot be found "
yesterday
Naveen Jain, Susana, JORGE AVALOS SORIA and 3 more joined Ning Creators Network
yesterday
Thisisbully replied to Kos's discussion Ning Get Your Servers Back Up
"on mobile"
yesterday
More…