Results 1 to 3 of 3

Thread: Pop it Menu - Contain Forms ?

  1. #1
    Join Date
    Sep 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Pop it Menu - Contain Forms ?

    1) Script Title: Pop it

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/popit.htm

    3) Describe problem: I'm trying to add a Form to the menu that 'pops' but not having much luck as it throws a javascript error, and the menu goes away when you try and type in the box.

    is this just not possible, or is there a easy fix?

  2. #2
    Join Date
    Jun 2008
    Posts
    589
    Thanks
    13
    Thanked 54 Times in 54 Posts
    Blog Entries
    1

    Default

    Please provide the code or URL of your site so that we can see what needs to be done.

    -magicyte

  3. #3
    Join Date
    Sep 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •