![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
|
queries page, recieves values...
Is there a command in JavaScript that can send a value to a php page, and then recieve a few values from that page? It can't be like a form submittal because it has to happen witout the page reloading.
I'm such a JS newb... |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Investigate asynchronous xml-http requests, sometimes referred to as AJAX.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#3 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
There's XMLHttpRequest, as DaWei mentions, but the PHP page has to be on the same domain as the PHP page. One could also use inline frames to achieve a similar effect.
If you can do it via XMLHttpRequest then I'd recommend checking out Prototype, a Javascript library that includes several Ajax classes. Last edited by Arevos; Dec 17th, 2006 at 9:54 AM. |
|
|
|
|
|
#4 |
|
Hobbyist Programmer
|
Thanks for the help... I'll look into that.
This is for a 2d text rpg... wanna make a map grid so that you can move around... |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HTML page to created which can be edited.... and same thing is retained in page . | anant_tickoo | HTML / XHTML / CSS | 10 | Nov 30th, 2006 12:10 PM |
| PHP sessions/ page refresh??? | ktsirig | PHP | 2 | Jun 1st, 2006 4:16 PM |
| PySite - Web Development Framework | Sane | Python | 15 | Mar 27th, 2006 7:39 PM |
| Center a page | Brokenkingpin | HTML / XHTML / CSS | 21 | Nov 28th, 2005 12:34 PM |
| Page Replacement Program (C++) | redhatter | Existing Project Development | 1 | Nov 20th, 2005 10:38 AM |