Board index   FAQ   Search  
Register  Login
Board index PHP PHP Scripts

Ajax

Links for php scripts

Moderators: macek, egami, gesf

Ajax

Postby Arun » Wed Feb 22, 2012 9:47 pm

hi friends,
Im new to ajax... i just want to take a text box value from php page to ajax page and add 2 values and want to update in the same text box in php page. Pls give me some working code as example
Thank you....
Arun
New php-forum User
New php-forum User
 
Posts: 4
Joined: Sun Feb 19, 2012 9:05 pm

Re: Ajax

Postby Arun » Fri Feb 24, 2012 8:29 pm

is anybody there to give me a very simple example....
Arun
New php-forum User
New php-forum User
 
Posts: 4
Joined: Sun Feb 19, 2012 9:05 pm

Re: Ajax

Postby anuradha » Tue Feb 28, 2012 1:03 am

hi
you can try out::::

step1. give an id to the text box in php codes.
step2. in the ajax fun create a variable and assign the value of the text box to it.
eg:
(php code)
<?php
<input type="text" id="m"/>
?>

(ajax fun)
var e=document.getElementbyId("m").value;


---------------------------
this will make the value of text box be assigned to var e.
anuradha
New php-forum User
New php-forum User
 
Posts: 10
Joined: Thu Dec 29, 2011 10:25 pm


Return to PHP Scripts

Who is online

Users browsing this forum: Google [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron