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 Social Network to add comments!

Join Ning Creators Social 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

Kevin Acosta replied to Kevin Acosta's discussion Photo uploads being auto resized
"Well, even the FULL SIZE 38.5" x 36" poster that I attache was scaled down, so now that doesn't eve…"
48 minutes ago
Kyryl_Ning_Support replied to Aubrey Williams's discussion Paid Access 2017
"Hi there,
We plan to initially release the PaidAccess for Ning 3.0 with PayPal and credit card supp…"
8 hours ago
Kyryl_Ning_Support replied to Aubrey Williams's discussion Blank Space / Columns On Home Page
"Hi there!
Could you please share the screenshot with us and mark the blank spaces you are talking a…"
12 hours ago
Kyryl_Ning_Support replied to Naveen Jain's discussion Wiki like functionality in Ning
"Hi there!
Unfortunately, we don't have the module on our platform that would be working in the way…"
13 hours ago
Kyryl_Ning_Support replied to Anastasiia_NING support's discussion Ning 2Q 2017 plan!
"Hi there!
Thanks for the question.
No, you don't have to create the new network each time the new f…"
13 hours ago
Matt replied to Aubrey Williams's discussion Paid Access 2017
"Good point, Stripe is awesome. "
13 hours ago
ASDKFljflkj is now a member of Ning Creators Social Network
13 hours ago
Alliance replied to Alliance's discussion Profile members on MY Page
"Thanks so much for this help things look sooooo much better now."
14 hours ago
Bizz ( John ) replied to Alliance's discussion Profile members on MY Page
"You could also try this which I have on my site just now for testing. This will adjust the avatar s…"
yesterday
Bizz ( John ) replied to Alliance's discussion Profile members on MY Page
"As matrix items are shared with other parts of the network if you add that then this would affect t…"
yesterday
Stanislav replied to Anastasiia_NING support's discussion Ning 2Q 2017 plan!
"Hi, I'm waiting you to implement all new features to the Network in Q2 and want to start my network…"
yesterday
Alliance replied to Alliance's discussion Profile members on MY Page
"Thank you 
Right now I have a big space between each item. Following that same logic, the container…"
yesterday
Bizz ( John ) replied to Alliance's discussion Profile members on MY Page
"You can adjust the avatar sizes with this, just change the width to the size required.
.section-mem…"
Saturday
⚡JFarrow⌁ replied to Aubrey Williams's discussion Blank Space / Columns On Home Page
"You're welcome"
Saturday
Alliance replied to Alliance's discussion Profile members on MY Page
"I cant believe no one has this issue but me and have not solved this."
Saturday
George Swann replied to Naveen Jain's discussion Security error when accessing Ning network
"Everyone still has to wait until Ning updates their platform to be https/ssl compatible.  IMHO shou…"
Saturday
Aubrey Williams replied to Aubrey Williams's discussion Blank Space / Columns On Home Page
"Due diligence doesn't = nervous. Paid Access has not been a workaround for over three years because…"
Saturday
Naveen Jain replied to Aubrey Williams's discussion Paid Access 2017
"I just added stripe payment using formget.com."
Saturday
⚡JFarrow⌁ replied to Aubrey Williams's discussion Blank Space / Columns On Home Page
"Quite frankly you are nervous about the wrong things of what you say is true. Blank space can be re…"
Saturday
Aubrey Williams replied to Aubrey Williams's discussion Blank Space / Columns On Home Page
"I don't have a Ning network. I had one about eight years ago and I also remember the same blank spa…"
Saturday
More…