Results 1 to 8 of 8

Thread: Webpage, InputBox, onKeyUp, AJAX

  1. #1

    Thread Starter
    Fanatic Member Lasering's Avatar
    Join Date
    May 2006
    Location
    Lisboa
    Posts
    559

    Webpage, InputBox, onKeyUp, AJAX

    Hi!

    I want to extract some information from a web site (Bloomberg). This side has a search textbox with a onKeyUp event that, as far as I can understand, uses AJAX to create a table.

    Is it possible to insert some text in the textbox and then get the table created with AJAX? I know the former is possible, but the later I can't find a solution.

    PS: Given the source code of the page with the tabled already AJAXed (If you understand what I want to say here), I can easly retrieve the table. I just need to get the source code with the table already on it.

    Thanks a lot!
    Controls: XPCC|Quantum
    Windows API'sLINQ to XML SamplesRegex Tutorial

    Albert Einstein:
    "Imagination is more important than knowledge."
    "Everything should be made as simple as possible, but not simpler."
    "Great spirits have often encountered violent opposition from weak minds."

  2. #2
    Frenzied Member stateofidleness's Avatar
    Join Date
    Jan 2009
    Posts
    1,780

    Re: Webpage, InputBox, onKeyUp, AJAX

    Not without jumping through a lot of hoops.
    You could try this page: http://www.bloomberg.com/apps/data?p...tateofidleness
    which appears to produce the exact same results that would appear in the Ajaxed table. You could parse that much easier I would think, and as an added bonus, it's easy to specify the search criteria by manipulating the URL string as opposed to parsing the HTML for the input box.

  3. #3

    Thread Starter
    Fanatic Member Lasering's Avatar
    Join Date
    May 2006
    Location
    Lisboa
    Posts
    559

    Re: Webpage, InputBox, onKeyUp, AJAX

    Thats what I already did. But that "search" is not complete. Try to search "berk" there and in the search textbox. The results will be different: with the textbox you will have five results whereas with that search you will only have one result.
    Controls: XPCC|Quantum
    Windows API'sLINQ to XML SamplesRegex Tutorial

    Albert Einstein:
    "Imagination is more important than knowledge."
    "Everything should be made as simple as possible, but not simpler."
    "Great spirits have often encountered violent opposition from weak minds."

  4. #4

  5. #5

    Thread Starter
    Fanatic Member Lasering's Avatar
    Join Date
    May 2006
    Location
    Lisboa
    Posts
    559

    Re: Webpage, InputBox, onKeyUp, AJAX

    Now it gets me a lot of unwanted results.

    If I cant find another solution, I'll stick with this.
    Controls: XPCC|Quantum
    Windows API'sLINQ to XML SamplesRegex Tutorial

    Albert Einstein:
    "Imagination is more important than knowledge."
    "Everything should be made as simple as possible, but not simpler."
    "Great spirits have often encountered violent opposition from weak minds."

  6. #6

    Thread Starter
    Fanatic Member Lasering's Avatar
    Join Date
    May 2006
    Location
    Lisboa
    Posts
    559

    Re: Webpage, InputBox, onKeyUp, AJAX

    Do you know the hoops I've to jump? Or some way to get me started on a workaround?
    Controls: XPCC|Quantum
    Windows API'sLINQ to XML SamplesRegex Tutorial

    Albert Einstein:
    "Imagination is more important than knowledge."
    "Everything should be made as simple as possible, but not simpler."
    "Great spirits have often encountered violent opposition from weak minds."

  7. #7

  8. #8

    Thread Starter
    Fanatic Member Lasering's Avatar
    Join Date
    May 2006
    Location
    Lisboa
    Posts
    559

    Re: Webpage, InputBox, onKeyUp, AJAX

    How to retrieve a table that was created using AJAX after a onKeyUp event was triggered.
    Controls: XPCC|Quantum
    Windows API'sLINQ to XML SamplesRegex Tutorial

    Albert Einstein:
    "Imagination is more important than knowledge."
    "Everything should be made as simple as possible, but not simpler."
    "Great spirits have often encountered violent opposition from weak minds."

Posting Permissions

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



Click Here to Expand Forum to Full Width