Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Error when Enter is pressed for Search in IE8

Avatar of MikeMCSD
MikeMCSDFlag for United States of America asked on
7 Comments1 Solution352 ViewsLast Modified:
After typing in  a search word and pressing Enter:
Message: 'document.getElementById(...)' is null or not an object
Line: 118  (below)    /default.aspx

<input name="ctl00$wpm$HomePage$ctl00$SearchPhrase" type="text"
onkeydown="if(event.which || event.keyCode){if ((event.which == 13) || (event.keyCode == 13)) {document.getElementById('ctl00$wpm$HomePage$ctl00$SearchButton').click();return false;}} else {return true}; " />

<input type="submit" name="ctl00$wpm$HomePage$ctl00$SearchButton"  
onclick="if(Page_ClientValidate('Search')){window.location='/Search.aspx?k='+encodeURIComponent(ctl00_wpm_HomePage_ctl00_SearchPhrase.value);}return false;WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$wpm$HomePage$ctl00$SearchButton&quot;, &quot;&quot;, true, &quot;Search&quot;, &quot;&quot;, false, false))"
id="ctl00_wpm_HomePage_ctl00_SearchButton"  />

Do the dollar signs have anything to do with it:

ctl00_wpm_HomePage_ctl00_SearchButton  << id of Search button
Avatar of Mangagm

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 7 Comments.
See Answers