Click to See Complete Forum and Search --> : about variables


archer9134
12-30-2009, 07:44 AM
hi i am very new at html just started and i have a project to do. My question is if i can access with my html program the source code of another web page so i can read some of its variables.
thanks for your time

ryanbutler
12-30-2009, 09:58 AM
Not without a server-side scripting language.

archer9134
12-30-2009, 10:50 AM
i am using java servlet but still i am a begginer, can you please tell me how to do that?
thanks for the reply btw

Samwho?
12-31-2009, 01:11 PM
Uhm, if you want to see the HTML behind a website you can find the "View Source" option in your web browser. The location of this is different per browser so you'll need to do a bit of looking.

As for "looking at the variables" I imagine you mean their PHP (or similar) code, in which case I don't believe that's possible without directly asking them :)

archer9134
12-31-2009, 06:37 PM
not actually the answer i was hoping for but thanks for answering

Charles
12-31-2009, 06:41 PM
Well, your question wasn't exactly clear. HTML does have variables but they're kind of a secret and not really supported. So, What exactly are these variables that you seek grass hopper?

archer9134
12-31-2009, 06:46 PM
ok let me try to explain. i have a school project in which i have to make a website where a user can insert a title of a book or article and the website has to return the results of two famous search engines but after they have been filtered. the names of the search engines will appear above the results. anw i only know that the filtering is supposed to happen in my java servlet program but i have no idea how. so i guess i must know the variables so i can filter the results somehow. if you can pls help

Charles
12-31-2009, 06:54 PM
Ah, no. You can't know those but you don't need to. You need to request the HTML with the results and then monkey around with that. I've been know to do that sort of thing myself with several different languages but never Java. Best to post your question over in the Java forum.

archer9134
12-31-2009, 06:55 PM
ok, charles. Thanks for the help, i will do that