Collaborama About Help Contact Anonymous [login] Source: site.view [edit] Function name: favoritePerson Arguments: personId Description: Remembers a favorite person Page type: html Render function: Module: skillsrank Page source: <webl> WubCall("skillsrank.incHeader", []); </webl> <webl> WubCall("skillsrank.incTop", ["search"]); </webl> <!-- content here ============================================================ --> <a name="content"></a> <h1>Save Favorite</h1> <webl> // just saves in memory for now, might want to persist var favorites = wubvars.favoritePeople ? { }; favorites = favorites + { personId }; wubvars.favoritePeople := favorites; ""; </webl> <h2>Favorite Saved.</h2> <table> <tr><td> </td></tr> <tr><td> </td></tr> <tr><td> </td></tr> <tr><td> </td></tr> <tr><td> </td></tr> <tr><td> </td></tr> <tr><td> </td></tr> <tr><td> </td></tr> <tr><td> </td></tr> <tr><td> </td></tr> <tr><td> </td></tr> <tr><td> </td></tr> <tr><td> </td></tr> <tr><td> </td></tr> </table> </div> <webl> WubCall("skillsrank.incBottom", []); </webl> <webl> WubCall("incSidemenuSearch", []); </webl> <webl> WubCall("skillsrank.incFooter", []); </webl>