WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You

WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1get Ids from another page Empty get Ids from another page Wed Sep 26, 2012 2:25 pm

Hossam


Registered Member
Registered Member
Is it possible to get these two numbers from profile? and move them to another place.

Code:
Positive votes received : 0 <---
Negative votes received : 0
Positive votes given : 0 <---
Negative votes given : 0

I use this code to get the "profile-advanced-details" id

Code:
    $(document).ready(function(){
    $('#reputation').load('/profile.forum?mode=viewprofile&u={USERNAME*}&page_profil=stats #profile-advanced-details .stats-field ul');
    });

There are about 6 blocks:

Code:
    <fieldset class="stats-field genmed"></fieldset>
    <fieldset class="stats-field genmed"></fieldset>
    <fieldset class="stats-field genmed"></fieldset>
    <fieldset class="stats-field genmed"></fieldset>
    <fieldset class="stats-field genmed"></fieldset>
    <fieldset class="stats-field genmed"></fieldset>


i want get just the second block, as i said above, this one:

Code:
    Reputation
    Reputation : 0
    Positive votes received : 0
    Negative votes received : 0
    Positive votes given : 0
    Negative votes given : 0

and then get the first and third lines:

Code:
Positive votes received : 0 <---
Positive votes given : 0 <---

any ideas?

2get Ids from another page Empty Re: get Ids from another page Wed Sep 26, 2012 4:07 pm

Mr.Joker

Mr.Joker
Mr. WebArtz
Mr. WebArtz
Change this :
Code:
.stats-field ul
To:
Code:
.stats-field ul li:eq(2,3)

3get Ids from another page Empty Re: get Ids from another page Thu Sep 27, 2012 1:44 am

Hossam


Registered Member
Registered Member
It doesn't work.

4get Ids from another page Empty Re: get Ids from another page Thu Sep 27, 2012 2:59 am

Mr.Joker

Mr.Joker
Mr. WebArtz
Mr. WebArtz
Change number to 3,4?

5get Ids from another page Empty Re: get Ids from another page Thu Sep 27, 2012 10:54 am

Hossam


Registered Member
Registered Member
Doesn't work too.

6get Ids from another page Empty Re: get Ids from another page Wed Oct 03, 2012 4:26 pm

Hossam


Registered Member
Registered Member
for the first and third lines:

Positive votes received : 0 <---
Positive votes given : 0 <---

This code posted in don-designs,

Code:
    function setpvote() {
        var p_rec = $('#reputation .stats-field').eq(1).find('li')[1].childNodes[1].nodeValue;
        var p_giv = $('#reputation .stats-field').eq(1).find('li')[3].childNodes[1].nodeValue;
    }
    $(function(){
        $('#reputation').load('/profile.forum?mode=viewprofile&u={USERNAME*}&page_profil=stats #profile-advanced-details fieldset',function(){setpvote();});
    });

but doesn't work, any ideas?

7get Ids from another page Empty Re: get Ids from another page Sun Oct 07, 2012 7:05 pm

Hossam


Registered Member
Registered Member
No members here?

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum