Debt Consolidation - Debt Consolidation - Christmas Ecards - Wordpress Themes - Debt Consolidation

PDA

View Full Version : Why does IE say there is an error?


mark_s
Dec 18th 2008, 2:31 am
Can someone explain why IE7/8 say there is an error on my home page (http://www.murraysworld.com/)?

I have very little javascript but apparently there is an issue with it.

Webpage Script Errors

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; MS-RTC LM 8)
Timestamp: Thu, 18 Dec 2008 10:30:14 UTC


Message: Object required
Line: 37
Char: 2
Code: 0
URI: http://www.murraysworld.com/mw.js

astupidname
Dec 18th 2008, 6:34 am
In your script, in the prepareSearchFields function there are these lines of code that look to be wrong:

var searchField = document.getElementById("user"); //I was not able to locate an element on your page with an id of "user"
//find the default value of the search field
var defaultValue = searchField.defaultValue; //This I don't believe will work either as it is asking for searchField.defaultValue when defaultValue has just now been defined, so then searchField.defaultValue will be undefined

mark_s
Dec 18th 2008, 7:57 am
Thanks...

Do you know of any decent script that can have it so that the user and pass fields have a value in them but when you click on it, they disappear and when you click away, they reappear?

astupidname
Dec 21st 2008, 8:07 pm
http://www.dynamicsitesolutions.com/javascript/change-input-type-dynamically/