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

nareshkosgi’s picture

sorry 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.

nareshkosgi’s picture

Status: Active » Fixed

solved the problem you can pass information to the server in the URL

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.