Well, I feel dumb now. I had a textbox in the form named "length". :doh: Thanks for all your help.
Infomine Liam
Posts
-
IE7 Javascript Problem -
IE7 Javascript ProblemThanks very much for the reply, but I guess my main question here is why $Form.elements.length is not returning a number. This has always worked before....
-
WYSIWYG HTML EditorThis might work for you: http://www.openwebware.com/products/openwysiwyg/[^]
-
IE7 Javascript ProblemI'm trying to do some form validation that involves looping through all elements in a form. It works perfectly in FireFox, but totally chokes in IE7. It seems to be that the $Form.elements.length value is not returning a number. I've written a little test function to simulate the error.
function validateForm() { alert(document.forms.length); var numElements = document.forms[0].elements.length; alert(numElements); }
First alert shows: 1 Second alert shows: [object] Anyone seen this happen before? Thanks a lot. :cool: -
ATLAS QuestionWhoops, ASPX code looks like this:
<asp:TextBox ID="txtSearch" runat="server"></asp:TextBox> <asp:AutoCompleteExtender
etc.... -- modified at 18:00 Monday 6th November, 2006 -
ATLAS QuestionHi All, I've got and ASP.NET ATLAS AutoCompleteExtender control on my page, along with a textbox. ASPX: Web Service Code:
[WebMethod] public string[] FetchCompanies(string prefixText, int count) { CompanyDataWrapper wrapper = new CompanyDataWrapper(m_connection); return wrapper.FetchCompaniesByPrefix(prefixText.ToUpper()); }
When I start typing in the textbox, nothing happens. No error message, nothing at all. I've tested the web service and it works fine. Any ideas? Thanks a lot. :)