Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Javascript errors on search page

5 views
Skip to first unread message

gover

unread,
Mar 19, 2007, 1:48:10 PM3/19/07
to
On a Office Sharepoint Server installation w're getting javascrip errors on
all the search pages. The line vausing the error is

document.getElementById('ctl00_m_g_86e592c8_c6ec_4f6b_95aa_1cc24ba751e3_SDAFE3F94_InputKeywords').name = 'InputKeywords';
its throwing a null reference error because
ctl00_m_g_86e592c8_c6ec_4f6b_95aa_1cc24ba751e3_SDAFE3F94_InputKeywords does
not exist. The Input keywords textbox has an ID of
ctl00$m$g_86e592c8_c6ec_4f6b_95aa_1cc24ba751e3$SDAFE3F94_InputKeywords. Does
anyone have an idea what might be causing this.

John

unread,
May 17, 2007, 2:21:36 PM5/17/07
to
On Mar 19, 12:48 pm, gover <g...@discussions.microsoft.com> wrote:
> On a OfficeSharepointServer installation w're getting javascrip errors on

> all the search pages. The line vausing the error is
>
> document.getElementById('ctl00_m_g_86e592c8_c6ec_4f6b_95aa_1cc24ba751e3_SDA­FE3F94_InputKeywords').name = 'InputKeywords';

> its throwing a null reference error because
> ctl00_m_g_86e592c8_c6ec_4f6b_95aa_1cc24ba751e3_SDAFE3F94_InputKeywords does
> not exist. The Input keywords textbox has an ID of
> ctl00$m$g_86e592c8_c6ec_4f6b_95aa_1cc24ba751e3$SDAFE3F94_InputKeywords. Does
> anyone have an idea what might be causing this.

I get this also. If you view source, the function looks like this:

function S79CC372B_Submit()
{GoSearch(null,'ctl00_m_g_6fd2d9ea_c36b_4757_96b4_8511b2a0a8ea_S79CC372B_InputKeywords',null,true,false,null,null,null,null,'\u002fsearchcenter
\u002fPages\u002fpeopleresults.aspx', 'This Site','This List', 'This
Folder', 'Related Sites', '\u002f_layouts
\u002fOSSSearchResults.aspx');}
// -->
</script><script type="text/javascript" language="JavaScript" >
// append an onload event handler
var S79CC372B__onload= document.body.onload;
if(typeof document.body.onload == 'function')
{
document.body.onload = function()
{
S79CC372B__onload();

document.getElementById('ctl00_m_g_6fd2d9ea_c36b_4757_96b4_8511b2a0a8ea_S79CC372B_InputKeywords').name
= 'InputKeywords';
}
}
else
{
document.body.onload = function()
{
eval(S79CC372B__onload);

document.getElementById('ctl00_m_g_6fd2d9ea_c36b_4757_96b4_8511b2a0a8ea_S79CC372B_InputKeywords').name
= 'InputKeywords';
}
}

Thoughts?

gover

unread,
May 22, 2007, 8:42:01 AM5/22/07
to
John,
I could not make the esisting page work. I ended up rebuilding the page in
SPDesigner. Dragging the appropriate controls onto a fresh page. That was
much quicker than trying to determine the issue with the existing page.
Russ

raghavendranlv

unread,
Nov 18, 2009, 9:19:05 AM11/18/09
to
I've the exact problem in the exact line. Does anyone have any idea on this?

Thank you.
Regards
NLV

gove wrote:

John, I could not make the esisting page work.

22-May-07

John,
I could not make the esisting page work. I ended up rebuilding the page in
SPDesigner. Dragging the appropriate controls onto a fresh page. That was
much quicker than trying to determine the issue with the existing page.
Russ


"John" wrote:

Previous Posts In This Thread:

On Monday, March 19, 2007 12:48 PM
gove wrote:

Javascript errors on search page
On a Office Sharepoint Server installation w're getting javascrip errors on

all the search pages. The line vausing the error is

document.getElementById('ctl00_m_g_86e592c8_c6ec_4f6b_95aa_1cc24ba751e3_SDAFE3F94_InputKeywords').name = 'InputKeywords';


its throwing a null reference error because
ctl00_m_g_86e592c8_c6ec_4f6b_95aa_1cc24ba751e3_SDAFE3F94_InputKeywords does
not exist. The Input keywords textbox has an ID of
ctl00$m$g_86e592c8_c6ec_4f6b_95aa_1cc24ba751e3$SDAFE3F94_InputKeywords. Does
anyone have an idea what might be causing this.

On Thursday, May 17, 2007 2:21 PM
John wrote:

Re: Javascript errors on search page


On Mar 19, 12:48 pm, gover <g...@discussions.microsoft.com> wrote:

DA=ADFE3F94_InputKeywords').name =3D 'InputKeywords';
es
oes

I get this also. If you view source, the function looks like this:

function S79CC372B_Submit()
{GoSearch(null,'ctl00_m_g_6fd2d9ea_c36b_4757_96b4_8511b2a0a8ea_S79CC372B_In=


putKeywords',null,true,false,null,null,null,null,'\u002fsearchcenter
\u002fPages\u002fpeopleresults.aspx', 'This Site','This List', 'This
Folder', 'Related Sites', '\u002f_layouts
\u002fOSSSearchResults.aspx');}
// -->

</script><script type=3D"text/javascript" language=3D"JavaScript" >


// append an onload event handler

var S79CC372B__onload=3D document.body.onload;
if(typeof document.body.onload =3D=3D 'function')
{
document.body.onload =3D function()
{
S79CC372B__onload();
=20
document.getElementById('ctl00_m_g_6fd2d9ea_c36b_4757_96b4_8511b2a0a8ea_S79=
CC372B_InputKeywords').name
=3D 'InputKeywords';
}
}
else
{
document.body.onload =3D function()
{
eval(S79CC372B__onload);
=20
document.getElementById('ctl00_m_g_6fd2d9ea_c36b_4757_96b4_8511b2a0a8ea_S79=
CC372B_InputKeywords').name
=3D 'InputKeywords';
}
}

Thoughts?

On Tuesday, May 22, 2007 8:42 AM
gove wrote:

John, I could not make the esisting page work.
John,
I could not make the esisting page work. I ended up rebuilding the page in
SPDesigner. Dragging the appropriate controls onto a fresh page. That was
much quicker than trying to determine the issue with the existing page.
Russ


"John" wrote:

EggHeadCafe - Software Developer Portal of Choice
Build a Reverse Phone Number Lookup App for your Smartphone
http://www.eggheadcafe.com/tutorials/aspnet/f36fd957-00c7-4e0a-a5c6-2ebdc8a247d9/build-a-reverse-phone-num.aspx

0 new messages