Hi
Its a bit complex, as I'm using it inside a ajax/php script, everything works well except the form.
I'm looping and building a table, each one has the menu but its unique to the value of the data being pulled in the loop for that users table.
Inject the javascript
PHP Code:
$objResponse->script('
linkset['.$user.']="<a href=\"/&userid='.$user.'\" title=\"Edit '.$first.'s settings\">Edit '.$first.'</a>"
linkset['.$user.']+="<form id=\"searchPOI\" name=\"searchPOI\" onsubmit=\"xajax_searchPOI(xajax.getFormValues(searchPOI));return false;\"><input type=\"text\" name=\"POISearch\" onfocus=\"select();\" id=\"POISearch\" value=\"Search POI\"><input type=\"submit\" value=\"Search\"></input></form>"
');
Build the $
PHP Code:
$menu="<a href=\"#\" onMouseover=\"showmenu(event,linkset[$user])\" onMouseout=\"delayhidemenu()\">$first</a>";
Build the output.
PHP Code:
$output.="
...
<td align='center'>$menu</td>
...
";
Render ...
PHP Code:
$objResponse->assign('updateMyDIV', 'innerHTML', $output);
Bookmarks