need help for ajax star rating

Discussion in 'JavaScript' started by khan11, Sep 28, 2007.

  1. #1
    Hello all!


    ajax star rating script is working fine for me, but i need to modify it a bit but can't find solution.. i tried to edit rpc.php db.php

    neither of it helped me, what i want is:
    A star rating looks like:
    *****
    rating: 0/0 (0 votes cast)

    i want to show it like this:
    ***** rating: 0/0 ...


    i tried a lot to find any breaker or hr but couldn't.

    any solution?
     
    khan11, Sep 28, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    How do you expect us to help or spot the "breaker" without code?
     
    nico_swd, Sep 28, 2007 IP
  3. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #3
    Check if the stars are contained in a block element.
     
    krt, Sep 28, 2007 IP
  4. khan11

    khan11 Active Member

    Messages:
    615
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    58
    #4
    khan11, Sep 28, 2007 IP
  5. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #5
    Why not? Just use a display: inline property on the <ul>

    If not, I guess you could also try something nasty with floats.
     
    krt, Sep 28, 2007 IP
  6. khan11

    khan11 Active Member

    Messages:
    615
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    58
    #6
    thanks, it worked but now something more has happened, the text is shown beside the stars, mean both stars and rating:... thing comes at same place
    its looking messed
    like: *****(votes.. the rating thing gone backside of stars..
     
    khan11, Sep 28, 2007 IP
  7. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #7
    Any code to show as I am taking guesses at what you are doing at the moment.

    You didn't use absolute positioning (relative to parent element) by any chance right?
     
    krt, Sep 28, 2007 IP
  8. khan11

    khan11 Active Member

    Messages:
    615
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    58
    #8
    well it worked.

    actually i defined the rating li block float to left

    and didn't define for the voting text .

    so i defined, stars style float to left and vote style float to right.
    worked

    your suggestion was great for me.

    Thanks
     
    khan11, Sep 29, 2007 IP