Closed (fixed)
Project:
Drupal core
Version:
6.14
Component:
forms system
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
31 Mar 2010 at 05:19 UTC
Updated:
28 Apr 2010 at 00:50 UTC
In my module I am trying to use a JSON service along with javascript on the client side and php on the server side to set up a Ajax set up in Drupal. I have a callback menu path regisetered to pass JSON information to from the server side to the client side but I cannot figure out how I pass information some form variables without user hitting submit to the server?
so what I would like to know is:
In a Ajax set up in drupal how do I pass information from the client side (javascript) to the server to use to process and send information different information back to the client.
Thanks in advance for the help:
Naresh Kosgi
Comments
Comment #1
nareshkosgi commentedsorry I just reread what I wrote and it may not make much sense so here is a clearer version:
In my module I am trying to use javascript on the client side and php on the server side to set up a Ajax connection for my Drupal module. I have a callback menu path regisetered to pass JSON information from the server side to the client side but I cannot figure out how to pass information form the client side to the server side. The information I would like to pass is in a form and I would like to send it to the server before the user hits submit. How do I do this without the user hitting submit.
so what I would like to know is:
In a Ajax set up in drupal how do I pass information from the client side (javascript) to the server which will use the information passed by the client to make different information send back to the client.
Comment #2
nareshkosgi commentedsolved the problem you can pass information to the server in the URL