PDA

View Full Version : Newbie help URL



mrmrsg
23 Apr 2009, 9:41 PM
I have been searching for hours, but have been unable for find the answer.

How do I format the following url lin in the following .js code to pass variable on.

The following line works



formEdit.getForm().load({url:'simplegrid2.php?act=get&event_id='+ m[0].get('cust_id'), waitMsg:'Loading'});



I am stumped if I want to add the addtional variables &year=('year),&month=('month),&day=('day) to the url line

Thanks for any guidence you can give!

Mike

mankz
23 Apr 2009, 10:46 PM
Try something like this:


formEdit.getForm().load({
url:'simplegrid2.php'
params : {
act : 'get',
event_id : m[0].get('cust_id')
},
waitMsg:'Loading'
});