Search Error when putting Search on a new page

Search Error when putting Search on a new page

Post by Susa » Sat, 24 Aug 2002 04:02:27



I striped out the search code form default.htm and put it on a new
page.  It gives me an object error (line 1 Char 1 Code 0).
Also does anyone know what the LocID tag does?
Here is the code that is generating an error:
<html>
<HEAD>
<Title>Search</Title>
</HEAD>
<body>
         <SCRIPT>
         function SearchPage()
         {
             f = document.frmSearch;
             f.elements["SearchPage"].value = "1";
             if (!browseris.nav)
                 f.elements["SearchString"].value = "redirect";
             f.submit();
         }
         </SCRIPT>
         <FORM Name="frmSearch" ACTION="_vti_script/search.idq"
METHOD="GET" OnSubmit="SubmitSearch();return false;">
          <INPUT TYPE=HIDDEN ID="search200" NAME=CiCodePage
VALUE="windows-1252">
          <INPUT TYPE=HIDDEN NAME=Template VALUE="search">
          <INPUT TYPE=HIDDEN NAME=HighChar VALUE="0">
          <INPUT TYPE=HIDDEN NAME=DocLibDir VALUE="">
          <INPUT TYPE=HIDDEN NAME=SearchPage VALUE="0">
          <table border=0 cellpadding=2 cellspacing=0 width=100%>
           <tr>
            <td>
              <table cellpadding=0 cellspacing=0 border=0 width=100%>
              <TR><TD ID=onetidSearch>Search Documents</TD></TR>
              <tr><td><INPUT Type=TEXT NAME="SearchString" size=9
maxlength=255></td></tr>
              <tr><td align=right><a target="_self"
href="javascript:SubmitSearch()"><LocID
ID="onetIDGoSearch">Go</LocID></a>
              </td>
             </tr>
             </table>
            <a target="_self" href="javascript:SearchPage()"
ID=onetIDGoSearch><LocID ID="tpweb031">&#013;</LocID></a>
            </TD>
           </TR>
          </TABLE>
         </FORM> </body>
</html>

Any help would be appreciated....Susan

 
 
 

Search Error when putting Search on a new page

Post by James Muelle » Sat, 24 Aug 2002 22:22:36


Susan,

The easiest way I found to add searching was through FrontPage Web
Components.  I also had a tough time moving my code from the default page.
If you have just created a new document library then the search should
already be included.

--
Thanks,

James Mueller
SharePoint Consultant

http://www.berghell.com
http://community.digidocsolutions.com

Have SharePoint Technical Questions that aren't being answered?
Visit http://community.digidocsolutions.com for the answers and a way to
contact someone who does.


Quote:> I striped out the search code form default.htm and put it on a new
> page.  It gives me an object error (line 1 Char 1 Code 0).
> Also does anyone know what the LocID tag does?
> Here is the code that is generating an error:
> <html>
> <HEAD>
> <Title>Search</Title>
> </HEAD>
> <body>
> <SCRIPT>
> function SearchPage()
> {
>              f = document.frmSearch;
>              f.elements["SearchPage"].value = "1";
>              if (!browseris.nav)
>          f.elements["SearchString"].value = "redirect";
>      f.submit();
> }
> </SCRIPT>
>          <FORM Name="frmSearch" ACTION="_vti_script/search.idq"
> METHOD="GET" OnSubmit="SubmitSearch();return false;">
>           <INPUT TYPE=HIDDEN ID="search200" NAME=CiCodePage
> VALUE="windows-1252">
>           <INPUT TYPE=HIDDEN NAME=Template VALUE="search">
>           <INPUT TYPE=HIDDEN NAME=HighChar VALUE="0">
>           <INPUT TYPE=HIDDEN NAME=DocLibDir VALUE="">
>           <INPUT TYPE=HIDDEN NAME=SearchPage VALUE="0">
>           <table border=0 cellpadding=2 cellspacing=0 width=100%>
>            <tr>
>             <td>
>               <table cellpadding=0 cellspacing=0 border=0 width=100%>
>               <TR><TD ID=onetidSearch>Search Documents</TD></TR>
>               <tr><td><INPUT Type=TEXT NAME="SearchString" size=9
> maxlength=255></td></tr>
>               <tr><td align=right><a target="_self"
> href="javascript:SubmitSearch()"><LocID
> ID="onetIDGoSearch">Go</LocID></a>
>               </td>
>              </tr>
>              </table>
>             <a target="_self" href="javascript:SearchPage()"
> ID=onetIDGoSearch><LocID ID="tpweb031">&#013;</LocID></a>
>             </TD>
>            </TR>
>           </TABLE>
>          </FORM> </body>
> </html>

> Any help would be appreciated....Susan


 
 
 

Search Error when putting Search on a new page

Post by Susa » Tue, 27 Aug 2002 11:40:50


James, I've tried that, but it doesn't give you the summary
information like the search done through the default page.  After you
click OK on the error, the results do show.
I would still like to find out more information about the LocID tag as
well.

Thanks for your help......Susan


> Susan,

> The easiest way I found to add searching was through FrontPage Web
> Components.  I also had a tough time moving my code from the default page.
> If you have just created a new document library then the search should
> already be included.

> --
> Thanks,

> James Mueller
> SharePoint Consultant

> http://www.berghell.com
> http://community.digidocsolutions.com

> Have SharePoint Technical Questions that aren't being answered?
> Visit http://community.digidocsolutions.com for the answers and a way to
> contact someone who does.



> > I striped out the search code form default.htm and put it on a new
> > page.  It gives me an object error (line 1 Char 1 Code 0).
> > Also does anyone know what the LocID tag does?
> > Here is the code that is generating an error:
> > <html>
> > <HEAD>
> > <Title>Search</Title>
> > </HEAD>
> > <body>
> > <SCRIPT>
> > function SearchPage()
> > {
> >              f = document.frmSearch;
> >              f.elements["SearchPage"].value = "1";
> >              if (!browseris.nav)
> >          f.elements["SearchString"].value = "redirect";
> >      f.submit();
> > }
> > </SCRIPT>
> >          <FORM Name="frmSearch" ACTION="_vti_script/search.idq"
> > METHOD="GET" OnSubmit="SubmitSearch();return false;">
> >           <INPUT TYPE=HIDDEN ID="search200" NAME=CiCodePage
> > VALUE="windows-1252">
> >           <INPUT TYPE=HIDDEN NAME=Template VALUE="search">
> >           <INPUT TYPE=HIDDEN NAME=HighChar VALUE="0">
> >           <INPUT TYPE=HIDDEN NAME=DocLibDir VALUE="">
> >           <INPUT TYPE=HIDDEN NAME=SearchPage VALUE="0">
> >           <table border=0 cellpadding=2 cellspacing=0 width=100%>
> >            <tr>
> >             <td>
> >               <table cellpadding=0 cellspacing=0 border=0 width=100%>
> >               <TR><TD ID=onetidSearch>Search Documents</TD></TR>
> >               <tr><td><INPUT Type=TEXT NAME="SearchString" size=9
> > maxlength=255></td></tr>
> >               <tr><td align=right><a target="_self"
> > href="javascript:SubmitSearch()"><LocID
> > ID="onetIDGoSearch">Go</LocID></a>
> >               </td>
> >              </tr>
> >              </table>
> >             <a target="_self" href="javascript:SearchPage()"
> > ID=onetIDGoSearch><LocID ID="tpweb031">&#013;</LocID></a>
> >             </TD>
> >            </TR>
> >           </TABLE>
> >          </FORM> </body>
> > </html>

> > Any help would be appreciated....Susan

 
 
 

Search Error when putting Search on a new page

Post by Dustin Mille » Tue, 27 Aug 2002 12:06:37



> Also does anyone know what the LocID tag does?

Nothing.  It's there as a placeholder so that those who choose to translate
(or "localize") a copy of STS can easily find the items that need to be
translated.

--
Dustin Miller, President, SharePoint Experts (a division of FuseWerx LTD)
SharePoint Team Services, .NET, ColdFusion and ASP Consulting/Integration
"Home of the SharePoint Code Repository and The Experts Lounge forums"
http://www.sharepointexperts.com/ - http://www.fusewerx.com/
--
STS FAQ, by Mike Walsh: http://www.collutions.com/Lists/FAQ/
--
Please reply in the newsgroups so everyone can benefit from the exchange!
--