Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIDotNetNuke.UI.Utilities.ClientAPI.GetClientVariableDotNetNuke.UI.Utilities.ClientAPI.GetClientVariable
Previous
 
Next
New Post
9/18/2006 12:25 PM
 

Jon,

I found my error (I think) you referenced this

mybutton.attributes.add("onclick", GetCallbackEventReference(Page, "'test'", "successFunc", "this", "errorFunc", DotNetNuke.UI.Utilities.ClientAPI.DNNVARIABLE_CONTROLID)

 

However the actual overload for this (overload 5 i think) shows strClientStatusCallBack - could this be a problem?

Public Shared Function GetCallbackEventReference(ByVal objControl As System.Web.UI.Control, ByVal strArgument As String, ByVal strClientCallBack As String, ByVal strContext As String, ByVal srtClientErrorCallBack As String, ByVal strClientStatusCallBack As String, ByVal objPostChildrenOf As System.Web.UI.Control) As String

Member of: DotNetNuke.UI.Utilities.ClientAPI


Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
New Post
9/18/2006 12:38 PM
 

Jon - everytime I add something after the strClientErrorCallCallBack I get errors could you look at it and see if I am totally wrong in my programming

 

on pageload i do this

If DotNetNuke.UI.Utilities.ClientAPI.BrowserSupportsFunctionality(DotNetNuke.UI.Utilities.ClientAPI.ClientFunctionality.XMLHTTP) AndAlso DotNetNuke.UI.Utilities.ClientAPI.BrowserSupportsFunctionality(DotNetNuke.UI.Utilities.ClientAPI.ClientFunctionality.XML) Then

DotNetNuke.UI.Utilities.ClientAPI.RegisterClientReference(Me.Page, DotNetNuke.UI.Utilities.ClientAPI.ClientNamespaceReferences.dnn)

DotNetNuke.UI.Utilities.ClientAPI.RegisterClientReference(Me.Page, DotNetNuke.UI.Utilities.ClientAPI.ClientNamespaceReferences.dnn_xml)

DotNetNuke.UI.Utilities.ClientAPI.RegisterClientReference(Me.Page, DotNetNuke.UI.Utilities.ClientAPI.ClientNamespaceReferences.dnn_xmlhttp)

End If

DotNetNuke.UI.Utilities.ClientAPI.RegisterClientVariable(Me.Page, "ListNumber", "15", False)

DotNetNuke.UI.Utilities.ClientAPI.RegisterClientVariable(Me.Page, "LoggedOutRedirect", NavigateURL, False)

Me.lbImg.Attributes.Add("onclick", DotNetNuke.UI.Utilities.ClientAPI.GetCallbackEventReference(Me, "'subscribe'", "successFunc", Me.lbImg.ClientID.ToString, "errorFunc", DotNetNuke.UI.Utilities.ClientAPI.DNNVARIABLE_CONTROLID))

on

RaiseClientAPICallbackEvent I do this

Return "Testing"

If I remove the DotNetNuke.UI.Utilities.ClientAPI.DNNVARIABLE_CONTROLID and only do overload 1 then the clientcallback works fine anything else seems to have problems


Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
New Post
9/18/2006 2:05 PM
 

If I replace this

Me.lbImg.Attributes.Add("onclick", DotNetNuke.UI.Utilities.ClientAPI.GetCallbackEventReference(Me, "'subscribe'", "successFunc", Me.lbImg.ClientID.ToString, "errorFunc", DotNetNuke.UI.Utilities.ClientAPI.DNNVARIABLE_CONTROLID))

with this

Me.lbImg.Attributes.Add("onclick", DotNetNuke.UI.Utilities.ClientAPI.GetCallbackEventReference(Me, "'subscribe'", "successFunc", Me.lbImg.ClientID.ToString, "errorFunc", "Form"))

I can get the callback to work but the registered client side variables are not available


Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
New Post
9/18/2006 2:06 PM
 

Let me suggest downloading this sample app for the webcontrols.  Inside it you will find the a sample in the ClientAPI folder called CallbackWithElements that is doing what I believe you are trying to accomplish.

You can see the live sample here.

Sorry I don't have more time at the moment to find what your exact issue is... hopefully the sample is enough for now.


 
New Post
9/18/2006 9:51 PM
 
I finally figured it out I was passing in a string and not a reference to a control - I was looking at what the documentation had rather than paying attention to what the intellisense was saying - only thing is this seems to work in IE and not FIrefox. Any new ideas

Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIDotNetNuke.UI.Utilities.ClientAPI.GetClientVariableDotNetNuke.UI.Utilities.ClientAPI.GetClientVariable


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out