FBJS Quick Jump Menu for a FBML Facebook Platform App

Tags: | |

In a FBML Facebook App, your quick jump menu will require a little tweak to work in FBJS properly.
Just change your standard js jump menu from:

<select onchange="goto(this.options[this.selectedIndex].value)">
    <option value="page.php?id=1">Page1</option>
    <option value="page.php?id=2">Page2</option>
    <option value="page.php?id=3">Page3</option>
</select>

To this:

<select onchange="document.setLocation(this.getValue());">
   <option value="page.php?id=1">Page1</option>
   <option value="page.php?id=2">Page2</option>
   <option value="page.php?id=3">Page3</option>
</select>

Cheers.

Related posts:

  1. Redirect Users from Old Facebook App to other FB Application URL using FBML
  2. Facebook Platform – Secure Page Tab URL will be required on October 1, 2011.
  3. Fix Facebook Application Error in FBML Canvas Apps: Empty Response Received
  4. Resolve Facebook “App temporarily unavailable Runtime errors” & FBJS Errors
  5. What is Facebook Third Party ID and How to Get it using Graph API