Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > How to Submit a "Smart Search Dialog with Results" from javascript (an "extra"/"custom" button) View modes: 
User avatar
Certified Developer 12
Certified Developer 12
mschmidt-bizstream - 8/20/2010 10:16:23 AM
   
How to Submit a "Smart Search Dialog with Results" from javascript (an "extra"/"custom" button)
I created a button on a page (so there are now 2 buttons). One button is part of the Search Dialog and it just works, and then there is my custom button. I have some javascript on the custom button, but I cannot figure out how to make it submit. I am sure I am missing something very simple.

Please let me know the best way to submit/click/postback the button (or the form).
Here are some of my failed attempts :)

//document.getElementById($searchBoxSubmit.attr("id")).click();
//$searchBoxSubmit.trigger('click');
//document.form1.submit();
//document.forms['form1'].submit();
//$("form:first").trigger('submit');
//theForm.submit();
//theForm.onsubmit();

//WebForm_DoPostBackWithOptions({validation:false,trackFocus:true})
//WebForm_DoPostBackWithOptions({});
//WebForm_OnSubmit();


Thanks in advance!
- Mark

User avatar
Certified Developer 12
Certified Developer 12
mschmidt-bizstream - 8/20/2010 12:29:56 PM
   
RE:How to Submit a "Smart Search Dialog with Results" from javascript (an "extra"/"custom" button)
Please ignore....

I had $searchBoxSubmit referencing an element that did not exist (wrong jquery selector).