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

Beatriz Martín replied to Dan Porter's discussion Multiple Group Hubs
"Hello.
I would like to know how this feature is done or which creator could help me.
Thx!!"
3 hours ago
Bizz ( John ) replied to Yana Ning Support's discussion Video Feature on Ning 3.0 is now available!
"Thanks Pat :-)
Yes it is a nice addition but I do wish a little more QA was done before releasing f…"
4 hours ago
Bizz ( John ) replied to Yana Ning Support's discussion Video Feature on Ning 3.0 is now available!
"I have re-uploaded this video so you can see it showing the green screen in the list page and also…"
4 hours ago
Bizz ( John ) replied to Yana Ning Support's discussion Video Feature on Ning 3.0 is now available!
"Thanks for the reply Kyryl. I have addressed all the issues in a single post for you to look at her…"
4 hours ago
Danny Lynn replied to Ian's discussion Side Backgound Image keeps shrinking and orienting left & animated gif header isn't working
""
5 hours ago
Danny Lynn replied to Ian's discussion Side Backgound Image keeps shrinking and orienting left & animated gif header isn't working
"Thank you ning team,  I Am not a owner at Media Center just member 4 years, i do link that page to…"
5 hours ago
Pat Howlett replied to Yana Ning Support's discussion Video Feature on Ning 3.0 is now available!
"Great addition Ning Team and I appreciate Bizz John taking the time to jump in and assist in findin…"
6 hours ago
Kyryl_Ning_Support replied to Ian's discussion Side Backgound Image keeps shrinking and orienting left & animated gif header isn't working
"Hi Daniel,
We do apologise for the inconveniences at this moment developers are working under the i…"
9 hours ago
Kyryl_Ning_Support replied to Yana Ning Support's discussion Video Feature on Ning 3.0 is now available!
"Hi John,
Regarding the video resolution, after the video has been uploaded, all of them are convert…"
9 hours ago
Kyryl_Ning_Support replied to Yana Ning Support's discussion Video Feature on Ning 3.0 is now available!
"XDD"
10 hours ago
Kyryl_Ning_Support replied to Yana Ning Support's discussion Video Feature on Ning 3.0 is now available!
"Hi there,
Sorry for delayed reply, it was necessary to take a hold of developers to find out the an…"
10 hours ago
Kyryl_Ning_Support replied to Yana Ning Support's discussion Video Feature on Ning 3.0 is now available!
"Hi John,
About the video that had only green screen background instead of the video itself. we have…"
11 hours ago
Irvin Carrero, Alison Pert and Shanelle Reed-Keahi joined Ning Creators Network
12 hours ago
Ian replied to Ian's discussion Side Backgound Image keeps shrinking and orienting left & animated gif header isn't working
"And now our 'space invaders' top nav bar gif crapped out!  Here's the original:"
14 hours ago
Ian replied to Ian's discussion Side Backgound Image keeps shrinking and orienting left & animated gif header isn't working
"For some reason, our 'Wolf Blitzer' gif hasn't re-animated yet. Here's the page where it exists: ht…"
14 hours ago
Ian replied to Ian's discussion Side Backgound Image keeps shrinking and orienting left & animated gif header isn't working
"Thanks for working on this.  Whatever you guys did to fix the Gifs today, I hope it stays like this…"
16 hours ago
Kos replied to Yana Ning Support's discussion Video Feature on Ning 3.0 is now available!
"BUWAHAHAHAHA! "
18 hours ago
CZG replied to CZG's discussion Logging into ning site using Firefox not secure message
"Thank you Kos. I really appreciate the feedback."
21 hours ago
Anthony Reardon replied to David Carr's discussion Being a Ning Network could ruin the deal
"Got to say I concur with this, sadly."
22 hours ago
More…