|
|
|
| Web Hosting |
![]() ![]() |
Updating Only One Thing In A Page? |
May 23 2008, 07:08 PM
Post
#1
|
|
|
Kinda N00B Group: Members Posts: 235 Joined: 13-January 08 From: Sweden Member No.: 27,579 |
Hey!
I just wanted to know: Is it possible to update only one thing on a page? Lets say I have an "About Us" page. Is it possible to have "links" or something, so that when I press on them (one of the links), text/information about the person I pressed on will appear on the page, but the whole page wont update? Something like flash, but I want to use PHP/HTML instead (or whatever language I need, but I think it is PHP). And OFC Thank You ^.^ //Feelay |
|
|
|
May 24 2008, 12:00 AM
Post
#2
|
|
|
Absolute Newbie Group: Admin Posts: 888 Joined: 20-February 05 From: Indianapolis, Indiana, USA (Midwest) Member No.: 2,714 myCENTs:35.43 |
AJAX - Asynchronous JavaScript And XML
Specifically, AJAX with PHP! JavaScript sends a request (asynchronously) to the PHP script. The PHP script uses the information and returns output usually in an XML format. The JavaScript reads the XML and updates the page. Google "AJAX with PHP tutorials" for more information. The PHP is rather easy, you do it like you were getting data from a for and then just format your output in XML. The JavaScript is a little more complicated. Just remember, the JS gets data from the page in the form of a link or form ans sends the data to the PHP script. The PHP does all of the work as far as database manipulation, data manipulation, and xml output. The JS then writes the data to the page in the manner in which you tell it to. This is the tricky part since different browsers handle different JavaScript differently. I love using the same word multiple time in a sentence! Good luck, vujsa |
|
|
|
May 24 2008, 04:21 AM
Post
#3
|
|
|
Super Member Group: [HOSTED] Posts: 818 Joined: 8-April 06 From: Lima - Peru Member No.: 12,579 myCENTs:3.57 |
You can do that with a combination of PHP and AJAX as vujsa says, there are some different ways for it, right now i'm not in my home machine so i can't post any example
The output generated by the PHP script not only would be in an XML format, also, it would be in a JSON format, that is an usually format used by javascript. Best regards, |
|
|
|
May 24 2008, 04:48 PM
Post
#4
|
|
|
Kinda N00B Group: Members Posts: 235 Joined: 13-January 08 From: Sweden Member No.: 27,579 |
bah.. everything have to be so hard
I don't know anything (not even how to start coding with it [like <?php ?> with php]) JS or XML xD Well Thanks guys //Feelay This post has been edited by Feelay: May 24 2008, 04:48 PM |
|
|
|
![]() ![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
1 | dhanesh | 742 | 6th January 2009 - 06:33 AM Last post by: iG-naryan |
|||
![]() |
4 | www.jbi.in | 370 | 12th December 2008 - 02:03 AM Last post by: quack |
|||
![]() |
39 | escobar5 | 4,429 | 3rd December 2008 - 10:52 PM Last post by: iG-Kathy |
|||
![]() |
6 | Jimmy89 | 1,315 | 26th November 2008 - 11:03 PM Last post by: magiccode9 |
|||
![]() |
9 | FirefoxRocks | 1,296 | 17th November 2008 - 07:25 AM Last post by: Atomic0 |
|||
![]() |
16 | Beefdip | 1,802 | 1st November 2008 - 04:25 AM Last post by: Guest |
|||
![]() |
14 | Feelay | 1,085 | 28th September 2008 - 10:05 PM Last post by: sozo33 |
|||
![]() |
1 | soleimanian | 1,595 | 18th September 2008 - 01:35 PM Last post by: FirefoxRocks |
|||
![]() |
20 | soleimanian | 4,098 | 27th August 2008 - 08:10 AM Last post by: Atomic0 |
|||
![]() |
5 | evought | 1,978 | 12th August 2008 - 06:58 AM Last post by: Guest |
|||
![]() |
1 | publicom | 185 | 6th August 2008 - 09:40 AM Last post by: toby |
|||
![]() |
11 | dipesh | 803 | 3rd August 2008 - 03:17 PM Last post by: xboxrulz |
|||
![]() |
11 | Feelay | 869 | 1st August 2008 - 02:41 AM Last post by: TavoxPeru |
|||
![]() |
1 | BHerath | 480 | 12th June 2008 - 10:29 AM Last post by: toby |
|||
![]() |
0 | TavoxPeru | 330 | 8th June 2008 - 12:54 AM Last post by: TavoxPeru |
|||
|
Lo-Fi Version | Time is now: 9th January 2009 - 08:59 AM |
© 2009 AstaHost: Free Web Hosting & Technical Discussion, Free Web Hosting. a member of xisto.
Powered by Invision Board. Skin: IPB Forum Skins
Expand / Collapse Navigation



May 23 2008, 07:08 PM





