Forums
This topic is locked
Object Required error....
Posted 23 Dec 2004 08:55:16
1
has voted
23 Dec 2004 08:55:16 Peter Kutuzov posted:
Greetings.Not sure if this is the correct forum, so feel free to kick this out any mods out there...
In the code below, I'm doing some simple javascript validation, in a simple function. And, it works quite simply in an asp .NET page.
In a classic asp page, however, I get an object 'required error'. This doesn't occur until the actual onChange() event is fired.
Any ideas as to why it's throwing this one up?
Cheers,
Pharbo.
<pre id=code><font face=courier size=2 id=code>
<script language="JavaScript" type="text/javascript"> function check() { var strID; strID = document.getElementById("txtUserID"



</font id=code></pre id=code>
And this is where it's called...
<pre id=code><font face=courier size=2 id=code>
<input type="text" class="fieldDataInput" value="" align="middle" style="width:135px;text-align:center;text-indent:0px;" name="txtUserID" id="txtUserID" onchange="javascript:check()">
</font id=code></pre id=code>
Replies
Replied 24 Dec 2004 04:42:02
24 Dec 2004 04:42:02 Peter Kutuzov replied:
Damn, sorry about that formatting guys, dunno why it did that...
Carriage returns dropped out... hmmm..
Well, problem solved, apologies for asking, it was kinda embaressing.
The div whose style I was changing was named differently in the live company than on my trial server.
Thusly, there were some issues when trying to make a non-existent div visible.
Carriage returns dropped out... hmmm..
Well, problem solved, apologies for asking, it was kinda embaressing.
The div whose style I was changing was named differently in the live company than on my trial server.
Thusly, there were some issues when trying to make a non-existent div visible.