IT Community - Software Programming, Web Development and Technical Support

ajax

This is a discussion on ajax within the PHP Programming forums, part of the Web Development category; Hi all how to pass and retrieve the variable in same page using ajax ?for examplexmlHttp.open("GET", ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 09-15-2007, 11:57 AM
ursklakshmanan ursklakshmanan is offline
D-Web Trainee
 
Join Date: Aug 2007
Posts: 14
ursklakshmanan is on a distinguished road
Default ajax

Hi all how to pass and retrieve the variable in same page using ajax ?for examplexmlHttp.open("GET", url , true); what should be the url?. Thanks in advance
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-18-2007, 08:08 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Wink Re: ajax

Hi friend,

Here is a sample for using AJAX in PHP....

check it out...
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-18-2007, 08:13 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Smile Re: ajax

Hi buddy,


check it out in the following coding...


Code:
function httpIntegration(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
}
var url="./test.php"
url=url+"?q="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChangedBro 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-17-2008, 02:21 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: ajax

Hi,

For more details for Ajax usage in PHP

Just click here
http://www.discussweb.com/php-progra...roduction.html
__________________
With,
J. Jeyaseelan

Everything Possible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to use ajax in asp.net and how to install ajax in my system vel.m8 ASP and ASP.NET Programming 5 04-08-2008 08:55 PM
Why my DB returning nothing when I use AJAX? S.Vinothkumar ASP and ASP.NET Programming 6 09-28-2007 11:52 PM
AJAX Menu from XML SaravananJ ASP and ASP.NET Programming 5 09-05-2007 10:50 AM
ASP.NET AJAX secrets a.deeban ASP and ASP.NET Programming 15 09-05-2007 07:11 AM
Ajax Popup SaravananJ C# Programming 10 08-28-2007 12:41 AM


All times are GMT -7. The time now is 05:38 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0