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.
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.
Thanks for your help but I can't find the javascript that contains this info. If possible could you point me to it?
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
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).