In the code below if I include <script type="text/javascript" src="Calendar.js" /> my theme does not get applied and Atlas stops working. As soon as I take this out the Ajax in my content page works great and the theme is applied just like normal. ????
When I have these code snippets
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="DesignProjects.master.cs" Inherits="DesignProjects" EnableTheming="true" EnableViewState="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server">
<title>Projects Database</title><script type="text/javascript" src="Calendar.js" /></head>
<body onunload="CheckWindow();" style="margin: 0px;">
<form id="form1" runat="server">
******* The Calendar.js looks like this
// JScript File
function GetDate(CtrlName) {
/**************************************************** Use Javascript method (window.open) to PopUp a new window which contain a Calendar Control. In the meantime, we'll pass the Parent Form Name and Request Control Name in the QueryString! *****************************************************/ ChildWindow = window.open('Calendar.aspx?FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName, "PopUpCalendar", "width=270,height=300,top=200,left=200,toolbars=yes,scrollbars=no,status=no,resizable=no"); }
function GetDateAutoFill(CtrlName, AutoFillCtrlName) {
/**************************************************** Use Javascript method (window.open) to PopUp a new window which contain a Calendar Control. In the meantime, we'll pass the Parent Form Name and Request Control Name in the QueryString! *****************************************************/ ChildWindow = window.open('CalendarAutoFill.aspx?FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName + '&AutoFillCtrlName=' + AutoFillCtrlName, "PopUpCalendar", "width=270,height=300,top=200,left=200,toolbars=yes,scrollbars=no,status=no,resizable=no"); }
function CheckWindow() {
ChildWindow.close();
ChildWindow1.close();
}
function ViewFeatureEnhancement(ID){
ChildWindow1 = window.open('ViewFeatureEnhancement.aspx?ID=' + ID, "ViewFeatureEnhancement", "width=700,height=400,top=200,left=200,toolbars=yes,scrollbars=yes,status=no,resizable=yes"); }
function GetHelpWindow(CtrlName) {
/**************************************************** Use Javascript method (window.open) to PopUp a new window which contain a TextBox Control. In the meantime, we'll pass the Parent Form Name and Request Control Name in the QueryString! *****************************************************/ ChildWindow1 = window.open('HelpWindow.aspx?FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName, "HelpWindow", "width=670,height=600,top=200,left=200,toolbars=yes,scrollbars=yes,status=no,resizable=yes"); }
function EditOwnerList() {
/**************************************************** Use Javascript method (window.open) to PopUp a new window which contain a TextBox Control. In the meantime, we'll pass the Parent Form Name and Request Control Name in the QueryString! *****************************************************/ ChildWindow1 = window.open('UpdateProjectOwner.aspx', "HelpWindow", "width=450,height=600,top=200,left=200,toolbars=yes,scrollbars=yes,status=no,resizable=yes"); }