Forums / Cotonti / Support / Ajax hash address

Hodges
#1 2013-04-21 20:06

After following the documentation here: http://www.cotonti.com/docs/devel/ajax_helpers and including these lines into my plugin:

$plugin_body .= "<div id=\"ajaxBlock\"></div>";
$plugin_body .= "<a href=\"#get;page.php;al=mhodges\" class=\"ajax\">get ajax</a>";

It only loads the index.php regardless of the value of href attribute. Help!

Dayver
#2 2013-04-23 01:49

Try?

$plugin_body .= "<div id=\"ajaxBlock\"></div>";
$plugin_body .= "<a href=\"page.php?al=mhodges\" class=\"ajax\" rel=\"get-ajaxBlock;page.php;al=mhodges\">get ajax</a>";

 

Pavlo Tkachenko aka Dayver
Hodges
#3 2013-04-23 06:30

Yep that did it. Thanks!