FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Javascript getting text from a page.

 


Diablosblizz
I need Javascript to get a word from a page, and the page will only contain one word, probably just "yes" or "no." I need this to check if a username is already existant, and if it is then show a image in the text box. I can do the image, I just know how I can get the word from a page.

Does anybody know how to do this? Thanks!
badai
is that page local? can you access that page using only directory without supplying http:/domain.name?

then just access it using windows/document DOM innerhtml (you have to traverse the document to reach that word)

otherwise, if the pagfe is not local, then you can't do it with javascript. even if you use cross-site scripting, most browser will block it. use any server side script like php.
Diablosblizz
I just need something to check (in the background) a variable. So basically, I want to check if a username has been registered already. I know this is possible because IPB does it without anything special.
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.