[CLOSED] Problem with ajaxmethod on masterpage

  1. #1

    [CLOSED] Problem with ajaxmethod on masterpage

    Hi,

    I have a coolite ajaxmethod on my masterpage.

    From reading the following thread http://forums.ext.net/showthread.php...6281-16-1.aspx, I modified the javascript call from Coolite.AjaxMethods.ShowLanguages() to Coolite.AjaxMethods.<%=this.ClientID%>.ShowLanguag es().

    However the Invoke method method fails within Coolite.Ext.Web.AjaxMethod if i invoke the method from more then 2 places on the masterpage. The only way to solve the problem was to hardcode the ClientId eg Coolite.AjaxMethods.ctl00.ShowLanguages().

    Any ideas as to why this is happening?

    Kind Regards

    Lee
  2. #2

    RE: [CLOSED] Problem with ajaxmethod on masterpage

    Hi Lee,

    Thanks for problem reporting. I'll investigate it.
    You can try to use AjaxMethodProxyID attribute for master page class


    [AjaxMethodProxyID(IDMode = AjaxMethodProxyIDMode.None)]


    Then you can call ajax methods from master page as
    Coolite.AjaxMethods.ShowLanguages().



    The description of AjaxMethodProxyID:
    http://forums.ext.net/showthread.php?postid=6319.aspx



Similar Threads

  1. Problem With ScriptManager on MasterPage
    By reiben in forum 1.x Help
    Replies: 1
    Last Post: Jun 12, 2010, 8:53 PM
  2. Problem with AjaxMethod and prototype
    By glenh in forum 1.x Help
    Replies: 4
    Last Post: Aug 24, 2009, 11:13 AM
  3. A problem AjaxMethod and AjaxEvent
    By heysol in forum 1.x Help
    Replies: 2
    Last Post: Mar 23, 2009, 12:54 PM
  4. [CLOSED] AjaxMethod problem
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Jan 30, 2009, 7:06 AM
  5. Store in MasterPage problem
    By MrMp3 in forum 1.x Help
    Replies: 3
    Last Post: Nov 29, 2008, 11:45 PM

Posting Permissions