I take back what I said about Protaculous. Currently, Freeway 5.4.2 Pro (and earlier) currently has a problem whereby the pages get dirtied when using Protaculous for Safari searching. So I ended up having to dump a block of code into HTML markup, in the “Before ” section:
<style type="text/css">
input.safari, input.safari_focus {
width: 152px;
font: 11px MS Serif, Sans-serif;
border: none;
padding: 6px 20px 6px 24px;
background: url(http://www.xxx.com/Resources/safari_search.gif) no-repeat left top;
height: 14px;
}
input.safari_focus {
overflow: visible;
background: url(http://www.xxx.com/Resources/safari_search.gif) 0 -26px;
}
#fwNav1 .fwNavItem {min-width:120px}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/prototype/1/prototype.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">//<![CDATA[
document.observe('dom:loaded', function(evt){
$$('input.search').each(function(elm){
var def = 'Site Search...';
if(!Prototype.Browser.WebKit){
elm.addClassName('safari');
if($F(elm).empty()) elm.setStyle({'color':'#888'}).value = def;
elm.observe('focus',function(evt){
if($F(elm) == def) elm.setStyle({'color':'#000'}).clear().focus();
elm.removeClassName('safari');
elm.addClassName('safari_focus');
});
elm.observe('blur',function(evt){
if($F(elm).empty()) elm.setStyle({'color':'#888'}).value = def;
elm.removeClassName('safari_focus');
elm.addClassName('safari');
});
}else{
elm.setAttribute('type','search');
elm.setAttribute('autosave','saved.data');
elm.setAttribute('results','5');
elm.setAttribute('placeholder',def);
}
});
});
//]]></script>
In the code above, all the code after “<![CDATA[” loses the carriage returns. Or I should say, FreewayTalk.net is stripping them out, which is terribly unfortunate. I guess it won’t affect the code from running properly though.
IMPORTANT! In two separate places in the code above, you need to change “xxx.com” to your website URL (otherwise the code won’t work right, obviously). I put the xxx there so no one would hotlink to my site. Download the graphic that is referenced in that URL, here:
Now draw a field on your page in Freeway, then open the Inspector and type sp_q in the Name field (if you are using Atomz). Leave the Value field blank, Maximum Length = 0, Size = whatever you like (I use 25). Then go to the Page menu and choose Form Setup, then fill that out in accordance with your Atomz account. There is a Freeway Knowledgebase article available on how to do it.
As to how I got the field to vertically center in my footer, that was a table cell trick. Just draw a 1x1 table cell, set it to vertically center, then paste in your field.
Please let me know if this helps.
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options