CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 5/9/2005 8:13:43 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 13 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
ungawunga
Asp.Net User
Client side Forms contol callback to Javascript?5/9/2005 8:13:43 PM

0/0

I found this article:

http://msdn.microsoft.com/msdnmag/issues/02/01/UserCtrl/default.aspx

that covers exactly what I want to do, have my windows.forms client side control (running in IE) call back to the Javascript. Except I can't get it to work.

It seems that browser is never registering for the event callback. I'm no COM expert (hate the stuff), and would appreciate any help in sorting this out.

Here's a snippet of my code from the control.

 

[ClassInterface( ClassInterfaceType.None ), ComSourceInterfaces( typeof( IPieWrapperCOMEvents ))]

public class PieWrapper : System.Windows.Forms.Panel, IPieWrapperCOMIncoming {

public delegate void PieClickedHandler( );

public event PieClickedHandler PieClicked;

public void DoPieClicked( string url )

{

   if( PieClicked != null ){

      PieClicked( );

   }

}

}

 

And in the html....

< SCRIPT FOR="pieChart" EVENT="PieClicked" >

window.alert("test");

</script> window.status = "uploading files...please wait"; window.status = "uploading files...please wait";

<object id="pieChart" classid=.....

 

 

BTW: this new forum stinks for posting code snippets...

 

ungawunga
Asp.Net User
Re: Client side Forms contol callback to Javascript?5/10/2005 12:50:01 PM

0/0

What is the proper way to get an event back to the browser that contains the client-side forms control? There has got to be a proper way of doing this.

Is anyone using microsoft's version of the java applet? Should I take this as a sign that these should not be used, not only because they're only supported in IE, but that no one else is using them?

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro ASP. Net 3. 5 Server Controls and AJAX Components Authors: Rob Cameron, Dale Michalk, Pages: 740, Published: 2008
Microsoft Visual C# 2005 Unleashed Authors: Kevin Hoffman, Pages: 692, Published: 2006
Mastering Web Development with Microsoft Visual Studio 2005 Authors: John Paul Mueller, Pages: 822, Published: 2005
ASP.NET 2.0 All-In-One Desk Reference For Dummies: all-in-one desk reference for dummies Authors: Doug Lowe, Jeff Cogswell, Ken Cox, Pages: 910, Published: 2006
Pro Sharepoint 2007 Development Techniques Authors: Margriet Bruggeman, Nikander Bruggeman, Pages: 484, Published: 2007
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008
ASP.NET 2.0 MVP Hacks and Tips Authors: David Yack, Joe Mayo, Scott Hanselman, Fredrik Normén, Dan Wahlin, J. Ambrose Little, Jonathan Goodyear, Pages: 400, Published: 2006
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Professional PHP5 Authors: Ed Lecky-Thompson, Steven D. Nowicki, Heow Eide-Goodman, Alec Cove, Pages: 639, Published: 2004

Web:
Client Side Callbacks in ASP.NET 2.0 The final thing to include in the page is the client-side JavaScript functions to take care of the callback to the server-side functions. ...
Steve C. Orr - Use AJAX client side callbacks in ASP.NET 2.0. The new TreeView control also implements the client-side callback functionality. .... Figure 4: This code attaches JavaScript functions to the client-side ...
ASP.NET 2.0's Client Callback Feature The request is then handled on the server side by a Web control that implements ..... On the client side, the OnFolderClick JavaScript method will be called ...
Cutting Edge: Custom Script Callbacks in ASP.NET Paging and sorting callbacks are not 100 percent client-side solutions (if ..... The CallbackValidator control must ensure that the JavaScript callback is ...
Javascript Page Control - KCallback AJAX Enabled .NET Callback ... Use CodeThatTab to create a multiple page form within the same window. .... JavaScript API to full control the component on client side. ...
WorldofASP.NET: Callback and Manually control rendering | ASP.NET ... Callback client side code.




Search This Site:










windows authentication

sql server does not exist or access denied

can't find project template with vwd after starter kit install.

find control from inherited master page

process or progress bar

problems publishing from vs2005

how to create template designer page in asp.net 2.0

problem passing variables between pages

new weather module using accuweather.com

custom control deployment problem

master page design time render issue - am i going mad?

skinning contest?

problem with cryptographic service provider (csp) implementation (rc2cryptoserviceprovider class)

alternative login

language changer

how not to install dnn 3.0.10

dnn2 module creation issue

need recommendations/advice on mods

site map

how to bring a login form, when trying to access the page

help! null reference exception

navigation not showing, using site map

is there any gallery with cart?

dotnetnuke "integration" work - $$$

cannot get pws and msde to play together!

one more time.. login control & lingering old user names in ddl... help

web.config , login.aspx and default.aspx

on session end, redirect user to login.aspx page

any skin + module designers for hire?

adding catalog parts to catalog zone programmatically

 
All Times Are GMT