Difference between revisions of "Ajax Lookup Signup Page"
From SmartWiki
Line 2: | Line 2: | ||
− | <div id="resultdiv" style="position:absolute;left:0;top:0;z-index:109;display:none;background:#FFFFFF" onClick="this.style.display='none'"></div> | + | <pre style="white-space: pre-wrap; |
+ | white-space: -moz-pre-wrap; | ||
+ | white-space: -pre-wrap; | ||
+ | white-space: -o-pre-wrap; | ||
+ | word-wrap: break-word;"><div id="resultdiv" style="position:absolute;left:0;top:0;z-index:109;display:none;background:#FFFFFF" onClick="this.style.display='none'"></div> | ||
<input class='large' type=text id="cname" name="cname" value="" onBlur="setDynamicSearchValue(dynsearch_highlight_row);clearDynamicSearch(false);" | <input class='large' type=text id="cname" name="cname" value="" onBlur="setDynamicSearchValue(dynsearch_highlight_row);clearDynamicSearch(false);" | ||
autocomplete="off" onKeyUp="dyn_companysearch(event,this.value,document.getElementById('resultdiv'),document.getElementById('lookupdiv'),this.form.dummyid,this,1,0,'1637',false,0,1)"> | autocomplete="off" onKeyUp="dyn_companysearch(event,this.value,document.getElementById('resultdiv'),document.getElementById('lookupdiv'),this.form.dummyid,this,1,0,'1637',false,0,1)"> | ||
− | </div> | + | </div></pre> |
− | <input type=hidden name="dummyid" value=""> | + | <pre style="white-space: pre-wrap; |
+ | white-space: -moz-pre-wrap; | ||
+ | white-space: -pre-wrap; | ||
+ | white-space: -o-pre-wrap; | ||
+ | word-wrap: break-word;"><input type=hidden name="dummyid" value=""></pre> | ||
− | <SCRIPT type="text/javascript" language=JavaScript src="/dynamic_search.js"></SCRIPT> | + | <pre style="white-space: pre-wrap; |
+ | white-space: -moz-pre-wrap; | ||
+ | white-space: -pre-wrap; | ||
+ | white-space: -o-pre-wrap; | ||
+ | word-wrap: break-word;"><SCRIPT type="text/javascript" language=JavaScript src="/dynamic_search.js"></SCRIPT></pre> | ||
==See Also== | ==See Also== |
Revision as of 08:49, 6 November 2013
On a Hybrid signup page, you can have an Ajax Organization name lookup. To do that, make sure to have the following on the page and make sure "company name" is selected as the matching field on the organization sign-up page settings.
<div id="resultdiv" style="position:absolute;left:0;top:0;z-index:109;display:none;background:#FFFFFF" onClick="this.style.display='none'"></div> <input class='large' type=text id="cname" name="cname" value="" onBlur="setDynamicSearchValue(dynsearch_highlight_row);clearDynamicSearch(false);" autocomplete="off" onKeyUp="dyn_companysearch(event,this.value,document.getElementById('resultdiv'),document.getElementById('lookupdiv'),this.form.dummyid,this,1,0,'1637',false,0,1)"> </div>
<input type=hidden name="dummyid" value="">
<SCRIPT type="text/javascript" language=JavaScript src="/dynamic_search.js"></SCRIPT>