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

Parsing a file with Javascript?

 


Diablosblizz
Hey, if you've read my post in PHP saying that I need to set something as 1 before the template loads. My question is how would I parse a PHP file (pmc.php?page=markunread&id=id) with Javascript?

Also, I need to have a variable for id. So it would have to make the url above but replace the last ID with a number.

Does anybody know? Kind regards.
AOP Web Development
i don't know if i understand what you mean but i guess the only way to parse the file is to use via ajax. xmlhttprequest
Stubru Freak
You can't parse it, but you can indeed load it so the web server will parse it, using for example XMLHttpRequest.
oliveiraw
Its two diferent worlds javascript => client side / php => server side, you can handle only files xml/xml using javascript.
Here you can find greats examples!
Agent ME
Why would you need javascript to parse a php file?
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.