[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


pop up calendar not showing up in IE

Posted on 2005-04-25
Medium Priority
Last Modified: 2006-11-18

need some help regarding my pop up calendar.  My pop up calendar does not show up at all on IE.  I am using ASP.Net (C#).  My IE version is IE 6.0.2800.  Works great on other people's browers just not mine.

below is the code that I put outside of my Page_Load Event.

btnCalendar.Attributes["onClick"]=@"javascript:calendar_window=window.open('Calendar.aspx?formname=frmAddOrders.txtDueOn', 'calendar_window', 'width=200, height=200'); calendar_window.moveTo(420, 285);   calendar_window.focus(); return true;";

Probably should note that I installed the script debugger.

thanks in advance
Question by:brdrok

Accepted Solution

fen2009 earned 1000 total points
ID: 13863266
Hi,.. i provide U with some codes that i have tried it out before.... it can work... (i find out through the web)

C# Code:
private void CalVivek_SelectionChanged(object sender, System.EventArgs e)
   if (Request.QueryString["textbox"] != "")
      string strScript = "<SCRIPT>window.opener.document.forms(0)." +
                    Request.QueryString["textbox"].ToString() + ".value = '";
      strScript += CalVivek.SelectedDate.ToString("MM/dd/yyyy");
      strScript += "';self.close()";
      strScript += "</" + "script>";
      RegisterClientScriptBlock("Calendar_ChangeDate", strScript);

JScript Code:

var popUp;

function OpenCalendar(idname, postBack)
   popUp = window.open('Calendar.aspx?formname=' +
                                     document.forms[0].name +
                                     '&id=' + idname + '&selected=' +
                                      document.forms[0].elements[idname].value +
                                      '&postBack=' + postBack, 'popupcal',
function SetDate(formName, id, newDate, postBack)
 eval('var theform = document.' + formName + ';');
theform.elements[id].value = newDate;
if (postBack) __doPostBack(id,'');

Hope that the above codes can help U...

Author Comment

ID: 13876611
heya...thanks for all the effort....turned out OS crashed...so had to re-install IE anyways...and works now... =)

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question