Forum  General Visual ...  How do I...?  Communicate from a wrapped Control with VWG
Previous Previous
 
Next Next
New Post 4/25/2012 5:21 AM
  neobender
26 posts
No Ranking


Communicate from a wrapped Control with VWG 

I found an example for communicating with VWG from a WebForm here. I had a wrapped ASP.NET Control (Janus) its wrapped like this expample.

The wrapped control I use, supports javascript and I defined an easy clientscript with an alert-Box. Is it possible instead of an alertbox to send an event to my VGW Form and handle a VWG-MessageBox like the first example?

 
New Post 4/28/2012 7:08 AM
  neobender
26 posts
No Ranking


Re: Communicate from a wrapped Control with VWG 

hey,

is ist that difficult? should I post more examples?

    var strMessage = document.getElementById("TextBox1").value;
    var objEvent = VWG.Events.CreateEvent("
<%= PageContext.ID %>", "message");

Maybe we can discuss about this line. What does this "createevent" mean. Can I get "IDs" from other VWG Controls?

 
New Post 5/5/2012 1:55 PM
  palli
14304 posts
1st Level Poster




Re: Communicate from a wrapped Control with VWG 

 Hi Neobender,

Please view the "About the WebForm code" section of the article you used as it explains the purpose the CreateEvent. 

And yes, all the rendered Visual WebGui controls have IDs, but in order for me to help you here, you need to ask a more specific question about what you need to do. For more information, you can take a look at the samples and discussions you can find on the HtmlBox and AspPageBox pages. 

Hope this helps,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 5/11/2012 3:04 PM
  neobender
26 posts
No Ranking


Re: Communicate from a wrapped Control with VWG 

 

 

Hello,

this codes work only if i use an apspagebox. What if I have a control wrapped with the asp.net control wrapper derived from:

 Gizmox.WebGUI.Forms.Hosts.AspControlBoxBase

The Reason why is, that I use an apsp .net control. It is a list-control with an server-side event "selectionchanged" everytime this event is thrown, this list starts to update. This control also supports javascript events "selectionchanged". So if I execute the JS-Script I want to create a event to my Mainform and check whats selected.

If i want to use the VGW Namespace i get an error, that this namespace is not available. how can i throw an event from a wrapped control via javascript to my VWG.-Form?

 

 
New Post 5/16/2012 4:30 PM
  palli
14304 posts
1st Level Poster




Re: Communicate from a wrapped Control with VWG 

 Hi Neobender,

Did you include the Interfaces.js in your wrapped control's Html, like in the article's Html sample code. This should define the VWG namespace on that page and make VWG.Events acessible.

Hope this helps,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  General Visual ...  How do I...?  Communicate from a wrapped Control with VWG
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS