Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old May 17th, 2007, 04:38 AM
Registered User
 
Join Date: Apr 2006
Location: Bangalore, Karnataka, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to rajeshmoorthy
Default Problem with Javascript on MasterPage

I have a javascript which runs fine on a normal aspx page. I am trying to use this control with master pages but the calendar image is not showing up. I have posted the script below which returns the date to ehc control specified.
<script language=JavaScript>
var mycal1 = new calendar1(document.forms[0].elements['txtPurchDt']);
cal1.year_scroll = true;
cal1.time_comp = false;
</script>

Note: I have tried replacing the forms[0] tag to forms['aspnetForm'] which still does not work.
I read in some forum that I need to replace the Unique Id, which I am not sure how. I use C# for coding.
Can somebody HELP...
Thanks in advance

Rajesh M


Similar Threads
Thread Thread Starter Forum Replies Last Post
MasterPage grstad ASP.NET 2.0 Basics 0 June 7th, 2008 04:30 AM
TreeView in MasterPage - ExpandDepth problem Colonel Angus Visual Studio 2005 1 December 28th, 2007 12:45 PM
Problem with Images in the MasterPage when .... kalchev ASP.NET 2.0 Basics 20 August 1st, 2007 03:58 PM
Problem in Javascript -Masterpage ratheesh_param ASP.NET 2.0 Professional 0 December 4th, 2006 06:51 AM
how 2 use ActiveX in JavaScript with MasterPage ? quyps ASP.NET 2.0 Professional 0 November 14th, 2006 03:58 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.