Kaz Raad
2008-Jun-27 17:53 UTC
prototype livesearch target to an iframe in parent document
hi there - trying to use the wildly available and popular livesearch. the script is called from an iframe, and works fine in the iframe. but i want the results to appear in a 2nd iframe, in the parent document. ie : <iframe id=''searchform'' src='' the actual php with the form here''></ iframe> <iframe id=''results'' src='' the results go here''></iframe> the livesearch class i use has a couple extra modifiers than the standard one, but still easy to read : initialize: function(searchItem,resultsItem,activityItem,searchCat,searchFilters) { resultsItem and activityItem need to be targeted from one iframe to another... LS = new LiveSearch(''keywords'',''can_search_results'',''searchwait'', ''catsel'', ''geo''); what do i have to type in here to call these ? window.frames[''results''] ? parent.location.searchwait ?? any help appreciated. thanks, kr --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---