Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OCX and Frames
Message
 
To
22/07/2004 14:30:45
General information
Forum:
ASP.NET
Category:
Web forms
Title:
Miscellaneous
Thread ID:
00926743
Message ID:
00927135
Views:
21
Yes.
It allowed me to have a web app and display one "web page" on the top section of the screen... like the icon bar here at UT, and this page contains the OCX that I want to use.
In the other section I display the rest of my app which is a web page that reloads reflecting changes made by the user...
now these changes have no impact on my OCX, because that page displayed in the frame along the top, never changes.

Now I'm on to my next puzzle... wanta help?
The OCX I'm using is an alarm. When the alarm fires I'm trying to display a message in a new page, displayed in a new browse window.
My alarm function is currently displaying a msgbox. I've looked at the msgbox and it looks like it supports a variety of buttons. I'd like to display a message with Yes/No buttons... but every time I try I get an error message.
... what I really need is to display a new page with radiobuttons and other such stuff... but I don't know how to open that page in it's own browse window.
How would you change this function to do that?
Sub ctAlarm1_Alarm(ByVal cKeyID, ByVal cAlarmData)
  ' Show that the Alarm event has been raised
  dim cMessage
  dim nStyle
  dim cTitle
  dim myHour
  dim myMinute
  dim mySecond
	
  DIM TestDate
  TestDate = DateDiff("d",#01/01/1900#,Now)
  
  cMessage = "Reminder: " & cKeyID & CHR(10) & CHR(13) & " Snooze?"
  msgbox(cMessage)
  
  'nStyle = 4 'YesNo buttons
  'cTitle = "Reminder"
  'msgbox(cMessage, nStyle, cTitle)
  'If response = MsgBoxResult.Yes Then   ' User chose Yes.
  '  ' Perform some action.
  '  myHour = hour(Now)
  '  myMinute = minute(Now)
  '  mySecond = second(Now)+15
  '  Call ctAlarm1.SetKeyTimeAlarm(TestDate, myHour, myMinute, mySecond, cKeyID, False, 0, 0, 0)
  'Else
  '  ' Perform some other action.
  'End If
End Sub
>>I found out that I can add "path" info to function calls and variable references. This means if I have 2 frames, Heading and Main, I can be in Main and reference stuff in Heading by specifying the "path"
>
>OK ... and that solved your problem? Hope so, cuz now you're talking about stuff above my head. <g>
>
>~~Bonnie
>
>
>>
>>
>>Dim MyTest 'variable in Main Frame
>>MyTest = parent.heading.MyFunction()
>>
>>'or I could say
>>MyTest = top.heading.MyFunction()
>>
>>-------------------------
>>>Rick,
>>>
>>>I am not a web expert at all, only played with it. I don't know if this applies to your problem, since you're using an ActiveX control on your page, but this article may still help you. It couldn't hurt to read it anyway. <s> It's called "Maintaining State With Dynamic Controls" and I have successfully implemented the ideas presented here, so I know it works. Just don't know if it'll work in your situation:
>>>
>>>http://www.fawcette.com/vsm/2003_04/magazine/columns/aspnet/
>>>
>>>~~Bonnie
>>>
>>>
>>>>I'm not really good at web page stuff, so don't laugh/groan too loud if I post a silly question...
>>>>
>>>>I have a web app I'm tring to make - contact management - and we're loading a client side ActiveX alarm to pop-up reminders. The app is designed to come back to the same page many times. What I want to do is load the ActiveX control and have it available for the duration. What's happening is that it's either loading every time I come back to this page, and apparently wiping out my previously set alarms... or it's loading on the first visit to the page and later when I try to set an alarm I get a message indicating the object isn't available.
>>>>
>>>>I've been told by TS for the control, that this is the way it is... OCX, HTML, stateless and what not...
>>>>
>>>>Someone suggested that I try it in a frameset... setting one frame up as static, and the rest of the app in another frame.
>>>>
>>>>TS said they hadn't tried that and didn't know what the result would be.
>>>>
>>>>So.....
>>>>
>>>>I've created the app with frames.
>>>>I put a static frame along the top and my OCX alarm is in there.
>>>>Now I'm trying to figure out where the scripts go... in the static frame or the dynamic frame...
>>>>I would think the scripts that access the alarm control need to be in the static frame with the alarm...
>>>>
>>>>If that's the case, how do I get a button on the dynamic frame, to access the scripts in the static frame?
>>>>
>>>>TIA,
>>>>Rick
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform