#1 (permalink)  
Old 02-16-2006, 09:22 AM
Registered User
 
Join Date: Feb 2006
Posts: 1
Post Java Script error - Object Expected

Getting runtime Error
Line : 34
Error : Object Expected

Plz anyone can help me.........





Code:
<html>
<head>
<title> Travelocity </title>
<script language="javascript" type="text/javascript" src="calendar.js"></script>
</head>
<TABLE HEIGHT=100% WIDTH=100% BORDER="0">

	<TR>
		<TH COLSPAN=2 bgcolor="BLUE"> <FONT SIZE="30" COLOR="WHITE"> WEEKLY STATUS REPORT </FONT> </TH>
		


	</TR>

	<TR HEIGHT=80%>
		
		<TD align="center" WIDTH=15% BORDER="0" bgcolor="YELLOW">
			<A HREF="login.jsp" TARGET="_parent">Create WSR</A></p>
			<A HREF="Registration.jsp" TARGET="_parent">Edit WSR</A></p>
			<A HREF="Registration.jsp" TARGET="_parent">View WSR</A></p>
			<A HREF="Thanks.jsp" TARGET="_parent">LogOut</A>
		</TD>

		<TD align="center">

			<h1>WSR</h1><br/>
			
			
			<form ACTION="http://localhost/vijay/QAWsrServlet" METHOD=POST NAME="QAForm">

			<p>
			Start:
			<INPUT type="text" name="DateField1" size="9" value="mm/dd/yyyy">
			<A  HREF="javascript:void(0)" onClick="showCalendar(QAForm.DateField1,'mm/dd/yyyy','Choose date')">
			<IMG SRC="CAL-icon.gif" BORDER="0" width="16" height="16" alt="Click Here to use a calendar"></A>
			&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
			End:
			<INPUT type="text" name="DateField2" size="9" value="mm/dd/yyyy">
			<A  HREF="javascript:void(0)" onClick="showCalendar(QAForm.DateField2,'mm/dd/yyyy','Choose date')">
			<IMG SRC="CAL-icon.gif" BORDER="0" width="16" height="16" alt="Click Here to use a calendar"></A>
			</p>

			</br></br></br>
			<p> Work Done during the Week :&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp  
			<textarea name="WDW" rows="3" cols="30" type="hidden"></textarea>

			</p>
			<p> Accomplishments in this week:&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp  
			<textarea name="Acc" rows="3" cols="30"></textarea>
			</p>
			<p> Work planned for next week:&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
			<textarea name="WPN" rows="3" cols="30"></textarea>
			</p>
			<p>	Forthcoming milestones:&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
			<textarea name="FM" rows="3" cols="30"></textarea>
			</p>
			<p> Issues / Concerns:&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
			<textarea name="IC" rows="3" cols="30"></textarea>
			</p>
			</p>
			</br><input type="submit" value="submit">
			</form>

		</TD>
	
	</TR>
		
</TABLE>


</html>
Reply With Quote

  #2 (permalink)  
Old 02-16-2006, 09:27 AM
curtiss's Avatar
Moderator
 
Join Date: May 2003
Posts: 1,445
First of all, we would need to see the javascript file that you've linked to the page.

Secondly, I recommend downloading a Mozilla browser (Mozilla, Firefox, Netscape, etc.) and using the javascript debugger that's built into that. It will usually give you a lot better information than the one in IE.

Finally, I would recommend adding a semi-colon to the end of each code snippet on that line. It's never a good idea to leave your javscript code-lines open-ended. The semi-colon is what closes the line.

Code:
<A  HREF="javascript:void(0);" onClick="showCalendar(QAForm.DateField1,'mm/dd/yyyy','Choose date');">
__________________
I hate Internet Explorer! Anyone with me?
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: Object Expected zypher_lab Programming and Scripting 3 03-28-2006 06:58 AM
HELP! Safari Glitch With Java Target Frames SurfMe69 Programming and Scripting 0 01-11-2006 12:05 AM
Image rotation script Bryan G Programming and Scripting 9 12-21-2005 05:33 PM
Looking For Upload Script Recommendations curtiss Programming and Scripting 3 11-02-2005 07:57 PM
domain vs script bg4m3r Programming and Scripting 4 01-19-2005 05:48 PM


All times are GMT -5. The time now is 05:12 PM.

 
Bitrix
Clicky Web Analytics
CloudContacts
Maxtango


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter