Handling ActiveX events with Javascript inside BSPs
Hi,
Has anyone any experience with handling events from ActiveX objects (using the <object> tag) with Javascript, inside BSPs?
I'm developing solely for the IE browser. Reading other threads, I know that the usual way this is done is via the below code excerpt:
<i><script type="text/javascript" for="MyObject" event="Object_Event">
js_function();
</script></i>
I create a HTML page, with the <object>, <script..for..event> tags, etc. Everything works fine when the page is run from my local system. However, when the code is run from WebAS (Activate then Test (F8)), the ActiveX object loads fine. But the javascript does not respond to events thrown by the ActiveX object.
I wonder if anyone can share their experiences on this issue.
Thank you.
Amos
It's the Skype4COM (v1.0.0.17) wrapper for the SkypeAPI, available at https://developer.skype.com/Download
(Note: NOT the v1.0.0.16, which comes with the Skype ActiveX Tools package).
I'm trying to use javascript to handle the event "CallStatus", thrown by Skype4COM, as shown in the code excerpt below.
<i><script language="javascript" type="text/javascript" for="Skype" event="CallStatus(Call, Status)">
handleCallStatus (Call, Status);
</script></i>
It works locally, but not when in a BSP.
It's rather interesting to mess with Skype calls from a webpage. Do let us know how your experience goes
Amos
Similar Messages
-
Hi,
I have created a BSP Application that is used for a registration page. User enters information, register, an e-mail is send to the user with a confirmation link, user clicks the link, and the confirmation page loads in a new window.
Now starts the problem.
For some reason, eventing does not work. I have a button on the page, which I want to execute some code in the DO_HANDLE_EVENT when clicked, but for some reason, the eventing is never triggered and the page just reloads itself. The page does not seem to load the javascript files that all other BSP pages and applications have automatically included when loaded. When I launch the registration page, the javascript files are included, but not when the confirmation page is loaded.
I believe that the javascript includes come from the class interface CL_HTTP_EXT_BSP_HTMLB.
I am using CL_HRRCF_CONTROLLER as my superclass for the class interface.
Anyone have any ideas? Any help would be golden!!
Thanks and regards,
KevinThanks Craig... that's perfect... BUT (I hate that word) I have another problem now.
I'm trying to launch a page after I'm done executing my code in the DO_HANDLE_EVENT method. I think that I have the wrong superclass associated with it, but I'm going to try some other ideas that I have and see what happens.
Kevin -
Mouse event with Javascript API
Hi,
Is it possible to register for mouseclick with the javascript API as with the normal API reference ?
What I have done in javascript is :
Add button and menu item to draw circle annotations.
When you click on a button or a menu item its draws a circle annot on the current page of the doc, but the coordinates are hard coded.
What I want to do, is click a button to say I want to draw my annot(kind of activate an event listener), then click in the doc where I want the annot to be drawn. So I need to capture the mouse position : I found mouseX and mouseY properties for the doc.
ThanksNo, you can only register for mouseclicks from a plugin.
Leonard -
OT: Remind me, please, how to fire an onload event with javascript!
How do I do this without screwing with the body tag?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================I just want to add a post in clarification -
1. I was using EasyFaq (a very nice extension from
ValleyWebDesigns) in a
non-standard way. Had I used it out of the box, so to speak,
I would not
have had these problems.
2. To reiterate, the problems I were trying to solve were, in
no way,
related to standard use of EasyFAQ.
3. My problems were solved both by following the suggestions
of Al Sparber,
and with help from E. Michael Brandt.
4. Indeed, I had some invalid code on the page, and it was
the presence of
that code that made things get a little cockeyed.
The page, if you care to see it, is here -
http://66.165.96.228/t_faq.php
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Murray *ACE*" <[email protected]> wrote
in message
news:enheq7$po6$[email protected]..
> You should know by now that I practice safe diddling.
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
>
http://www.dreamweavermx-templates.com
- Template Triage!
>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
> ==================
>
>
> "Gary White" <[email protected]> wrote in message
> news:[email protected]..
>> On Wed, 3 Jan 2007 11:56:22 -0500, "Murray *ACE*"
>> <[email protected]> wrote:
>>
>>>But I'm still diddling.... 8)
>>
>>
>> Be sure to use protection!
>>
>> Gary
>
> -
C# control event handling with javascript
How can I get javascript to execute for "onchange" / "OnSelectedIndexChanged" event instead of a CodeBehind method? I think "OnSelectedIndexChanged" event has to be handled by CodeBehind; but how can I replace that (or onchange) with
a javascript event handler?
I have the following in my xyz.ascx file:
<asp:DropDownList ID="ddlTypeCar" CssClass="BatsRefAddressTypes" runat="server"
onchange="javascript: testAlert();"
OnSelectedIndexChanged="ddlTypeCar_SelectedIndexChanged"
AutoPostBack="True" />
I could not get the javascript to execute, even though I removed OnSelectedIndexChanged="ddlTypeCar_SelectedIndexChanged" and/or set AutoPostBack="false".
Additionally, I tried added the following in xyz.ascx.cs Page_Load() method.
ddlTypeOfAddress.Attributes.Add("onchange", "javascript: testAlert();");
which didn't help.
Thanks for your help in advance.Hi,
you can control client events instead of server events with javascript
look this url for more information
http://www.w3schools.com/js/js_events.asp
Regards -
Handling events in javascript which are generated by embedded applet
I am having an tipical requirement , In my HTML page there is an embedded applet . This applet is going to generate custom events . I would like to handle that events in javascript which are generated from applet . I mean that javascript has to get a notification of the event that is generated from applet . I would appreciate if some one can send me the code .
Hi look at my post further down about 5-6 posts. It's called: "For your information. Very interesting." It talks about Netscapes Live Wire.
-
ActiveX event queue in Labview 7.0
I've acquired an Ortec toolkit with ActiveX controls and am trying to
follow the procedures shown in the manual for handling ActiveX
events. The manual tells me to add 'Create ActiveX Event Queue
node', "Wait on ActiveX Event Node' and 'Destroy ActiveX Event Queue
node' to my vi. The problem is, the manual was written for
Labview 5.1, and I have Labview 7.0, which no longer uses these
nodes. Instead, LV 7 uses the 'Register Event Callback Node'. Can anyone tell me how to alter the attached vi to use the Register Event Callback Node instead of event queueing?
Attachments:
EventsExample.vi 80 KBhi there
see attachment for an example (because i don't had your control i used one of MSCOMCTL)
best regards
chris
Best regards
chris
CL(A)Dly bending G-Force with LabVIEW
famous last words: "oh my god, it is full of stars!"
Attachments:
AX Events 7.0.zip 13 KB -
Fireworks events with CSXS 2.0
How to register listeners for fireworks events within CSXS 2.0 environment
this method (described here: http://www.adobe.com/devnet/fireworks/articles/fw_events_as3.html):
ExternalInterface.addCallback('IsFwCallbackInstalled', onFwCallbacksCheck);
that worked with old SDK, when panels was placed in
...\Program Files\Adobe\Adobe Fireworks CS5\Configuration\Command Panels\
don't work if I'm putting my panel to the
...\Common Files\Adobe\CS5ServiceManager\extensions\
I haven't managed to find any documentation about that
all I founded is about creative suite 4.0 or earlier versions
could you please explain how to handle fireworks events with CREATIVE SUITE 5.5 SDK
ThanksI have no problems syncing both ways - but...
Are you giving your Mac enough time to sync to the cloud? The mac does not "push", it syncs. If you have the MobileMe sync icon in the main menu on your mac, you can open the preferences and there you can set the time interval between syncs. Your default may be set to 1 hour or 1 day. I'm not sure what the "automatically" setting means, I know that for me it can take a number of minutes. Is it 15 as a minimum? -
Help with Javascript error in event handler slowing animation down.
Hi all--
I did an animated book cover for my publisher, Baen Books, but an error keeps coming up in my animation. The actual animating can be viewed here:
http://baen.com/310x204/A_CallToDuty.html
As you can see, when the error pops up, the animation grinds to a halt, an it has to recover. I am not well enough versed in javascript to know what is going on. The error code below repeats over and over again as it plays.
6Javascript error in event handler! Event Type = timeline edge.3.0.0.min.js:171
3
<error> VM26:184
Javascript error in event handler! Event Type = timeline edge.3.0.0.min.js:1714Javascript error in event handler! Event Type = timeline edge.3.0.0.min.js:1713
<error>
If anyone has an idea what is causing this, I would be extremely grateful for any help.
David MattinglyHi Hemanth--
I put it in a dropbox folder for you here:
Dropbox - EdgeAnimation
This contains 2 versions--a small one for the preview, and then a larger one when people click on the cover preview. Thanks in advance for your help.\
David Mattingly -
Handling LabView events in ActiveX
Hi all,
I know most ActiveX discussion here is about getting ActiveX to work inside of LabView, but I'm trying to go the other way around.
General Question:
How to I catch or listen to events generated by LabView (in VB or whatever)? And is there some kind of library of LabView ActiveX events?
More specific:
If anyone has ever used the Jacob libraries for using ActiveX from Java, how would I create a LabView event listener from within Java? I can create a VI ActiveXComponent, but I don't know how to use it to listen to events.
Any help on either part of the question will be most appreciated!
Thanks,
Sam"SamF" <[email protected]> wrote in message news:[email protected]..
Thanks for both of your replies, I'm pretty certain that it is possible to generate ActiveX events from LabView, but unfortunately those links don't deal with events. Those are what I used to get to where I am -- opening and running a VI from ActiveX -- but I can't find anything on generating events.If it really seems as though there is no way for LabView to generate ActiveX events (or just catch those that are automatically generated), then I have another question: Is it possible to use LabView to catch its events internally (using it's own events methods), and write to, say, an excel file everytime an event is generated?My thinking is that even if LabView doesn't throw events, other programs such as Excel do, and so if the events were routed through Excel I could catch *those* events.(BTW, I know there are examples of writing to Excel, but I'm looking for something that is *event* driven).Any help either on catching LabView events or using LabView events to write to an MS program will be much appreciated, as always!Thanks,Sam
Sure it's possible to build an activex server. No doubt about that.
If I where to communicate events between the LabVIEW code and another language, I'd think about occurrences or windows events.
There is documentation available about occurrence communication between dll's, cin's and LabVIEW. Never used it, so I can't help you much further.
The windows events are well documented in the msdn. They should be available in any language, though relatively simple api calls.
And you can always use window messages. If you have a window handler of the main program available in LabVIEW, you can use sendmessage or postmessage to communicate to it. The other way around is more difficult, but seems not necessary.
Hope it helps,
Wiebe. -
I'm doing a little edge project (now in beta version) for my girlfriend (she hates the code), with examples of the animate() method and other functions like setInteval(), but when I run I get the following error in Chrome console:
Javascript error in event handler! Event Type = element [edge.2.0.0.min.js:162]
But this library is global for all projects, how is possible that trigger an error?
Example here:
https://app.box.com/s/m7nof4al6597gfn47jlu
Thanks.you dont need to import java ease !!
it's already included in edge animate, remove that yepnope completely your problem will gone
Zaxist -
Associating two events with submit button using javascript in jsp
Hi
How can i Associate two events with submit button using javascript in jsp. Firstly it should insert the data to database and secondly it should close the same pop-up windowHave something like :
<input type="submit" name="submitbtn" value="Click me" onClick="function1(); function2(); " />
You just call both functions sequentially, it's that simple. Although using javascript to work with a database, that seems a bit tricky. -
Handling User Events in sub panel vis and main vis with same Event reference Number.
Hi All, Iam trying to work to handle events in both subpanel vi and main vi.
I have a main program, and 2 sub vi. I will load the sub VI in 2 sub panels in main vi. Each sub pael vi has controls on it.
I have created 2 User events for 2 sub panels vi. One user event consits of a Cluster with 2 Booleans (x & Y) and Other User Event consists of cluster of 2 unsigned 8 Numbers (a & b). These are created and registered in the main Vi and event register refnum is passed to the subpanel vi from the main panel vi.
I have Event structure in main panel and sub panel vis.
In one sub panel vi, When the value of one boolean(i.e. X) in the clusters changes, the Events structure in sub panel vi should perform some operation in sub panel vi only. When the value of other boolean (i.e. Y) changes it should perform some operation in main vi. I will try to Generate user event with the x value and Y value changed based on the control clicks in the sub panel vi.
The OTher panel vi should behave in the smae way when the a & b value changes.
The "Generate User Event" is working fine some times and sometimes there in no event triggered in the sub panel vi or main vi.
Please let me know what is the problem Ramesh.There is a lot of talking, but not much understanding. It'd be better if you posted some example VI's of what you are trying to do so that the words will make sense.
One thing I can tell you is that you don't want to have two event structures handle the same event reference number. You want to have two event registrations with each one going to its own event structure. -
Handling HTMLB events in BSPs???
Hi all,
can anybody tell me the how to handel events in BSPs??Hi Aravind,
Follow the link /people/brian.mckellar/blog/2004/07/28/bsp-programming-handling-htmlb-events u can understand. -
Events with Scrpts and JavaScript in ADOBE forms
Hello All,
On an Adobe form I have field for sub totals. I am trying to choose 'Events with Scripts' on the SHOW pull down values and choose JavaScript in the language. I was able to do this some time ago but now, I am able to choose Events with Scripts but not being able to choose JavaScript for language.
I do not have much exp. with Adobe or JavaScript but I checked whatever I could think of but could not figure out. Any body ran into this issue before? Any ideas?
Please post and Thank you ...By trial and error, what I did is, chose 'Calculate' in the Show menu then chose JavaScript in the Language pull down menu. Then added my JavaScript code. Then went back and change 'Calculate' in the Show menu to Events with Scripts. Saved and executed it . It worked.
Maybe you are looking for
-
How to set default view for preview?
Every time I open a PDF using Preview I have to set the view to 'thumbnails', then 'two pages up', then adjust the zoom. Complete waste of time. Anyone know how to set defaults so that it opens in a predictable way? thanks,
-
Reset ipod touch (2nd gen) and now safari is missing. What now?
Reset ipod touch (2nd gen) and now Safari is missing. What now?
-
HI all, Getting error on table commit operations. 11.6 PK1 PK2 PK3 ----composite primary key attributes in table 10 10 1 10 12 1 10 10 2 23 12 1 23 12 2 Based on the first and second attributes , pk3 will genrating dynamically and stetting to table a
-
Why wont my programs download it says i have another installer open
i need my software tonight but everytime i try to download it says another installer is open and stops at 43%
-
Recropping Smart Object leaves transparent borders
I cropped in ACR ( CS3 ) and opened in Photoshop as Smart Object. I went back to ACR to recrop a bit smaller. Returning to Photoshop I have borders of the transparent cross-hatching. When displayed in Bridge, the borders show as white. How can I get