I know you said that JavaScript wasn't your stong suite, but this sound like a great use of com_ajax. Take a look at http://docs.joomla.org/Using_Joomla_Ajax_Interface and see what you think.
Best,
Matt Thomas
Founder betweenbrain™
Lead Developer Construct Template Development Framework
Phone: 203.632.9322
Twitter: @betweenbrain
Github: https://github.com/betweenbrain
Sent from mobile. Please excuse any typos and brevity.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send an email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
?option=com_ajax&module=session should I use ?option=com_ajax&component=mycomponent. To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsubscribe@googlegroups.com.
To post to this group, send an email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/groups/opt_out.
?option=com_mycomponent&event_id=foo&user_id=bar
$(document).on('click','.icon-attending', function (){$.ajax({url: "option=com_mycomponent&action=cancel&event_id=123&user_id=456",cache: false,success: function(){alert('Cancelled!');},})});
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
$data = $app->input->get('jform', array(), 'array');
$data['event_id'] = $app->input->get('event_id');
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.