frm.root[c].value =="current" ? searchFrom ="http://"+%host%+%folder%: searchFrom = "http://"+%host%;
I had to change the above code slightly to get the Search to work in HFS Live Local 2. Without the following change, when you clicked on the Search button, nothing happened.
New code is:
frm.root[c].value =="current" ? searchFrom ="http://"+'%host%'+'%folder%': searchFrom = "http://"+'%host%';
And, to take it one step further, I use both http: and https: to connect. To get the Search feature to work with both http: and https: connections I changed the code again to read as follows:
frm.root[c].value =="current" ? searchFrom ="//"+'%host%'+'%folder%': searchFrom = "//"+'%host%';
That way the search feature automatically uses either http: or https:, dependent upon which connection method you are using. I don't know if this is correct coding or not, but it has always worked for me and doesn't seem to have any adverse effects.
JEFF