Pass a value to a Module?? - Joomla! Forum - community, help and support
hi there guys!
i'm updating module wrote , need help.
for starters current version o module makes query database , outputs results on page.
the new version i'm tryin make needs recieve value (id).
this time module needs have selectable items (maybe html list) send value can adjust query accordingly , display result. without loading page (ajax).
i have no idea how pass value module... believe thru url works components...
i'm guessing "menu" items have onclick execute javascript code pass value , reload module (ajax) new results database...
any suggestions? maybe link or 2 read on topic.
thanks!
update:
i'm updating module wrote , need help.
for starters current version o module makes query database , outputs results on page.
the new version i'm tryin make needs recieve value (id).
this time module needs have selectable items (maybe html list) send value can adjust query accordingly , display result. without loading page (ajax).
i have no idea how pass value module... believe thru url works components...
i'm guessing "menu" items have onclick execute javascript code pass value , reload module (ajax) new results database...
any suggestions? maybe link or 2 read on topic.
thanks!
update:
- so far found how load javascript file within module , have menu item this:
<a onclick="javascript: testmenu();">click me!</a>
to execute function.. simple alert message!
Comments
Post a Comment