• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

jQuery In Action Chapter 8 - use a php data file for ajax call.  RSS feed

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jQuery In Action:
Re: Chapter 8
I could not get the POST var syntax to work for the script calling the data file with the .load() method.

You can use a php page for the data file, in place of the getDetails.jsp.
The code for my version of getDetails.php is :



******************************************************
remember to use echo - not return!
******************************************************

The calling page, boot.closet.1.html, needs a mod in the javascript:

This call, using GET var syntax in the 7th line works:


- - - - - - - - - - - - - - - - - - - - - - - - - - -

This call, using POST var syntax, does NOT work.
(Maybe someone can enlighten me.)



The web page for the .load() method at jQuery.com has a glitch. I need another good lead on where I have gone wrong with the POST var syntax. Anyone have an idea?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!