Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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
 
Old June 11th, 2003, 07:29 AM
Registered User
 
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to amatheso
Default ASP / ActiveX Crashes Browser

HI,

I have created a web page that has som date text boxes on it, with a calendar button to bring up a calendar on user click. On my PC the code works fine. When i click on the calendar icon the calendar comes up and i press a date and then click the update button. The date in the text box on the page below the modal calendar window than updates to reflect the date chosen

I have also got my friend to try it on his pcs, and when i press the update button on the calendar, instead of the just the modal calendar window closing, it closes all other open IE Windows. All ActiveX controls have been enabled and security setting is on low.

I have included the code below.

If anyone could help, i would appreciate it.

cheers

Matho


<SCRIPT LANGUAGE=VBSCRIPT>
Sub window_onunload
 window.returnvalue = formatdatetime(document.all.calendar1.value,2)
end sub
</SCRIPT>
<OBJECT id=Calendar1 style="LEFT: 0px; WIDTH: 289px; TOP: 0px; HEIGHT: 198px"
classid=clsid:8E27C92B-1264-101C-8A2F-040224009C02 width=289 height=198 VIEWASTEXT class=Calendar>
<PARAM NAME="_Version" VALUE="524288">
<PARAM NAME="_ExtentX" VALUE="7646">
<PARAM NAME="_ExtentY" VALUE="5239">
<PARAM NAME="_StockProps" VALUE="1">
<PARAM NAME="BackColor" VALUE="-2147483633">
<PARAM NAME="Year" VALUE="<%=year(now())%>">
<PARAM NAME="Month" VALUE="<%=month(now())%>">
<PARAM NAME="Day" VALUE="<%=day(now())%>">
<PARAM NAME="DayLength" VALUE="1">
<PARAM NAME="MonthLength" VALUE="2">
<PARAM NAME="DayFontColor" VALUE="0">
<PARAM NAME="FirstDay" VALUE="1">
<PARAM NAME="GridCellEffect" VALUE="1">
<PARAM NAME="GridFontColor" VALUE="10485760">
<PARAM NAME="GridLinesColor" VALUE="-2147483632">
<PARAM NAME="ShowDateSelectors" VALUE="-1">
<PARAM NAME="ShowDays" VALUE="-1">
<PARAM NAME="ShowHorizontalGrid" VALUE="-1">
<PARAM NAME="ShowTitle" VALUE="-1">
<PARAM NAME="ShowVerticalGrid" VALUE="-1">
<PARAM NAME="TitleFontColor" VALUE="10485760">
<PARAM NAME="ValueIsNull" VALUE="0">
</OBJECT>
<BR>
<center><INPUT type=button value="Update Date" onClick=window.close>





Similar Threads
Thread Thread Starter Forum Replies Last Post
AJAX w/ ASP.NET Crashes IE?? dparsons ASP.NET 2.0 Professional 2 December 7th, 2007 02:38 PM
Web Browser Activex Control gdelucchi Access 0 February 20th, 2006 02:18 PM
View Source from ActiveX Browser Object echovue Access 4 November 1st, 2005 01:13 PM
Using ActiveX in asp. rupen Classic ASP Basics 0 August 11th, 2005 07:54 AM
Pop Up Window crashes browser higgsy Javascript How-To 1 August 18th, 2003 03:32 AM





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