www.webdeveloper.com
Results 1 to 12 of 12

Thread: How to download selected parts of text.

  1. #1
    Join Date
    Nov 2010
    Posts
    6

    How to download selected parts of text.

    Hi I wanted to download selected parts of text from list like showed here:
    But I want to take only nick and last points. And later I will put result in table. This text repeating to id 100 or more.
    Help, I dont have an idea how to make it. Im newbie

    1 - id
    nick - need it
    [tag]
    2002 - points
    647 - points
    489 - points
    2 - points
    3138 - points - need it
    2 - id
    nick
    [tag]
    2393 - points
    270 - points
    335 - points
    3 - points
    2998 - points

  2. #2
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    Quote Originally Posted by kicha93 View Post
    Hi I wanted to download
    Download? How's that? Can you detail your aim, please?

  3. #3
    Join Date
    Nov 2010
    Posts
    6
    I want to take part of text (nick and last points) from this all text, and put like this:
    nick points
    nick points
    nick points

  4. #4
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    You should post exactly how and where your text is within the DOM tree. Give as an HTML example of how your data is written and where.

  5. #5
    Join Date
    Nov 2010
    Posts
    6
    But, I wanted to make something for my site, that:
    player will take this text from site, only copy this and paste to window with this script. I dont want to see any html in this text.

  6. #6
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    I am afraid I can't understand what you want, as you use the terms in bizarre ways. What do you mean by "paste to window"?
    I dont want to see any html in this text
    You, maybe not. But I want to see that HTML in order to show you, for the moment, how to split that text and isolate those words.

    Look what: as a first rule - if you have a javascript problem, we expect you to post some codes, JavaScript and HTML. We have no magic bowl to guess what happens on your site.

  7. #7
    Join Date
    Nov 2010
    Posts
    6
    ok
    Code:
    <div class="bg_1">
    							<div class="id">1</div>
    				<div class="name">
    					<div><a href="./p_player.php?id=196">nick</a></div>
    					<div>[#<a href="./tag.php?id=82">tag</a>]</div>
    				</div>
    				<div class="first-points">2003</div>
    				<div class="second-points">647</div>
    				<div class="third-points">505</div>
    				<div class="fourth-points">2</div>
    				<div class="last-points">3155</div>
    				<div class="spacer"></div>
    			</div>
    This is only one div from id 1. All others ids have the same

  8. #8
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    Quote Originally Posted by kicha93 View Post
    ok
    Code:
    <div class="bg_1">
    							<div class="id">1</div>
    				<div class="name">
    					<div><a href="./p_player.php?id=196">nick</a></div>
    					<div>[#<a href="./tag.php?id=82">tag</a>]</div>
    				</div>
    				<div class="first-points">2003</div>
    				<div class="second-points">647</div>
    				<div class="third-points">505</div>
    				<div class="fourth-points">2</div>
    				<div class="last-points">3155</div>
    				<div class="spacer"></div>
    			</div>
    This is only one div from id 1. All others ids have the same
    So you need the blue values, right? When? I mean: what the user must do to grab those values?

  9. #9
    Join Date
    Nov 2010
    Posts
    6
    I want to make separate software, which will did what I said.
    Player need to go to statistics, copy all statistics, starting from id 1 ending on last points in id100.
    and paste it in my software which will made table from this.
    yes this blue...
    Last edited by kicha93; 11-23-2010 at 11:15 AM.

  10. #10
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    So you need the user to use his mouse to select some text from a web document, copy it, and paste it, but you need him, somehow, to copy only some words, not all of them in order to be pasted, right?

    [... man, it is so hard to pull off some clear and accurate information from you ]

  11. #11
    Join Date
    Nov 2010
    Posts
    6
    I wanted to make it this way because not everybody can copy html, and also html code is so long in this way...
    He need to select all players,
    I dont know how to explain it
    I dont said that I need his mouse etc
    This will be helpfull software which will did for you for example: alphabetical statistic only with important things.
    Just copy, paste, and script will take care.

  12. #12
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    Quote Originally Posted by kicha93 View Post
    I dont know how to explain it
    Try. We need to understand what you need. Maybe English is not your native language (nor it is mine), but try to describe what you want in more than 2 sentences, can you. Describe with your words what you need. Detailed.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles