Autos.Yahoo.com html

Discussion in 'HTML & Website Design' started by WatchMeFly, Feb 29, 2008.

  1. #1
    Hello,

    Can someone tell me what's going on here

    When I go to http://autos.yahoo.com you will see two drop lists in top left, one is for the car company (ex. ford) and the other is for models under that company (ex. f-150).

    The strange thing is when I view the page source I found the part in the code that shows all the car comanies (honda,ford,etc...) but I can't find the part that shows the models for each company within the html.

    If the code isn't in the source how is my browser able to show that honda has accord,civic,etc...

    Try it yourself, go to http://autos.yahoo.com and view source search for civic or accord.

    I'm scratching my head trying to find this out, any help would be appreciated.
     
    WatchMeFly, Feb 29, 2008 IP
  2. innovati

    innovati Peon

    Messages:
    948
    Likes Received:
    63
    Best Answers:
    1
    Trophy Points:
    0
    #2
    it looks like what you pick in that last calls up another javascript function that brings in the results if your selection, so it's not on the page you viewed, but in one of the linked or imported javascript files.
     
    innovati, Feb 29, 2008 IP
  3. WatchMeFly

    WatchMeFly Peon

    Messages:
    100
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for your help but I can't find the javascript that contains this info.

    If possible could you point me to it? :)
     
    WatchMeFly, Feb 29, 2008 IP
  4. johnade

    johnade Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    These values most likely are loaded dynamically from a database as soon as you select the company, you can actually see that model option is disabled and gets enabled as soon as you select the company...so if you are trying to capture value of model option then you would need to get it done dynamically..
    Are you using any programming language to do this?
    Regards
     
    johnade, Feb 29, 2008 IP
  5. WatchMeFly

    WatchMeFly Peon

    Messages:
    100
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I'm not using a automated method/programming language to grab that list.

    I thougth it would be a simple right click and view source.

    But the strange thing is when I select a company (ex. honda) I don't see my browser loading any new data. And if it grabs it via javascript what the file I need to put within my browser and view the source to see at least all the makes for Honda (or any other company).
     
    WatchMeFly, Feb 29, 2008 IP