Support was unable to answer this question so I'm hoping someone here can.
I'm trying to set up a simple javascript search on my add-on domain site basicsofwindows.com but I don't think I know the right path to put in for the search. For my main site, stephiesmith.com it is simply the below (which works fine on either of these domains, i.e., the script searches stephiesmith.com and comes up with results):
var searchdomain = "stephiesmith.com"
For my add-on basicsofwindows.com domain, I've tried the 3 below and each one gives me a google page that says no results found. Does anyone have a clue which one (if any) is correct? Am I getting no results because I just uploaded this site today and search engines haven't cached anything (I don't know if these searches go by cached content or not as I am pretty much clueless about this stuff:-(
var searchdomain = "basicsofwindows.com"
var searchdomain = "stephiesmith.com/basicsofwindows"
var searchdomain = "stephiesmith.com/public_html/basicsofwindows"
The folder for this add-on is called basicsofwindows and is inside my public_html folder for my site StephieSmith.com.
Any help would be appreciated. I have other scripts to change where I might need to know this info too.
Here is the entire script:
<!-- Begin
// NOTE: If you use a ' add a slash before it like this \'
var searchdomain = "basicsofwindows.com" // DOMAIN TO SEARCH
// SIMPLE GOOGLE SITE SEARCH
// COPYRIGHT 2007 © Allwebco Design Corporation
// Unauthorized use or sale of this script is strictly prohibited by law
document.write('<form method="get" action="
http://www.google.com/search" class="formmargin" target="_top">');
document.write('<input type="hidden" name="ie" value="UTF-8">');
document.write('<input type="hidden" name="oe" value="UTF-8">');
document.write('<input type="hidden" name="domains" value="'+searchdomain+'">');
document.write('<table cellpadding="0" cellspacing="0" border="0" class="sidebartext"><tr><td valign="top">');
document.write('<INPUT type="text" name="q" size="15" maxlength="255" value="" class="searchsiteform"><br>');
document.write('</td><td valign="top">');
document.write('<INPUT TYPE="image" SRC="picts/search-off.gif" border="0" onmouseover="this.src=\'picts/search-on.gif\'" onmouseout="this.src=\'picts/search-off.gif\'" alt="Search"><br>')
document.write('</td></tr><tr><td colspan="2">');
document.write('<input type="radio" name="sitesearch" value="">Google <input type="radio" name="sitesearch" value="'+searchdomain+'" checked>Site <br>');
document.write('</td></tr></TABLE>');
document.write('</form>');
// End -->