Search

You searched for the word(s): userid:675566

Matching Posts

  • Re: Why no support for mousewheel event?

    Hi, I use this trick Sys.UI.DomEvent._itelios_addHandler = Sys.UI.DomEvent.addHandler; $addHandler = Sys.UI.DomEvent.addHandler = function(element, eventName, handler){ if (eventName.toLowerCase() == 'mousewheel' ){ var _handler = function(e){ if (e.rawEvent.wheelDelta){ e.wheelDelta = e.rawEvent.wheelDelta / 120 ; } else if (e.rawEvent.detail){ e.wheelDelta = -e.rawEvent.detail / 3; } // FF bug : http://extjs.com/forum/archive/index.php/t-20298.html if (Sys.Browser.agent == Sys.Browser.Firefox
    Posted to ASP.NET AJAX UI (Forum) by CyrilCS on 3/17/2008
  • Re: Atlas not using responseEncoding or requestEncoding

    I say Atlas because Microsoft ASP.net Ajax Extensions is very long but the problem still present in the RTM version of Microsoft ASP.net Ajax Extension
    Posted to ASP.NET AJAX UI (Forum) by CyrilCS on 6/11/2007
  • Re: Atlas not using responseEncoding or requestEncoding

    Hi guys, I encounter the same issue. I have done a dirty fix to resolve this. Atlas is using the encodeURIComponent to encode all the form element value. When we use non UTF-8 encoding, this methods is wrong. I overloads the original method and obtains this one. // corrige des bugs d'atlas lié à l'encoding non utf-8 et les caractères spéciaux var CS_encodeURIComponent = encodeURIComponent; var CS_decodeURIComponent = decodeURIComponent; encodeURIComponent = function(s){ s = escape(s); while
    Posted to ASP.NET AJAX UI (Forum) by CyrilCS on 6/10/2007
  • Re: RegisterStartupScript problem

    berkovitz: The reference you pass as the first paramter to the ScriptManager.RegisterXXX methods needs to be a reference to a control that is inside of the update panel if you want it to get registered during async postback. Yes, this is what I try to explain with my poor english (and you ave the chance to not hear my french accent ) berkovitz: Also, you should use typeof(TYPE) instead of this.GetType(). I don't remember the reason but I remember reading a MS post about it... The reason is this.GetType
  • Re: RegisterStartupScript problem

    Hi, My sample show that none of the RegisterStartupScript methods works (on the RC or beta2 version) when it is called during an async postback. I used Reflector to see why and how to Register script in partial phase and we must give a control inside the refreshing updatePanel or the updatePanel himself for the first argument. So if we use this code : ScriptManager.RegisterClientScriptBlock(Update1, this.GetType(), "test1", "alert('test 1');", true); it will works ! The real problem is how to get
  • Re: What good is __type being added by JavaScriptSerializer?

    I have exactly the same issue !!! let's see an example : I'm writing a control so I created a new client type that derives from Sys.UI.Control, everything is well, I can use the nice $create function like this var macon = new Itelios.Geo.Point( '04°49\'57" ' , '46°18\'26" ' ); var neoglobe = $create(Itelios.UI.Viewer, { centerPoint : macon, zoomLevel : 8, handlerImageUrl : 'ImageHandler.ashx' }, { beforeMoving : function (sender, e){ debug.trace( 'moving' ); debug.trace(e.get_centerPoint().toString
  • Re: how to get which UpdatePanel has posted

    Hi, you're right, my code works only for refreshed panel fired with a trigger. This code would work in many case : 96 public static UpdatePanel FindRefreshedUpdatePanel( ScriptManager sc) 97 { 98 Control control = sc.Page.FindControl(sc.AsyncPostBackSourceElementID); 99 while (control != null ) 100 { 101 if (control is UpdatePanel ) 102 return ( UpdatePanel )control; 103 104 control = control.NamingContainer; 105 } 106 107 return FindRefreshedUpdatePanelRecursive(control.Page, sc); 108 } 109 110
  • Re: how to get which UpdatePanel has posted

    Hi, I think this code would help you. 86 private static UpdatePanel FindRefreshedUpdatePanelRecursive( Control parent, ScriptManager sc) 87 { 88 foreach ( Control child in parent.Controls) 89 { 90 if (child is UpdatePanel ) 91 { 92 foreach ( UpdatePanelTrigger trigger in (( UpdatePanel )child).Triggers) 93 { 94 String ControlID; 95 if (trigger is AsyncPostBackTrigger ) 96 ControlID = (( AsyncPostBackTrigger )trigger).ControlID; 97 else if (trigger is PostBackTrigger ) 98 ControlID = (( PostBackTrigger
  • Re: Alert in Ajax

    This is normal, Response.Write is not a recommanded method you have to use the RegisterStartupScript method. But as I explain here ( http://forums.asp.net/thread/1501423.aspx ) the RegisterStartupScript doesn't work with the RC version of Atlas ...
  • Re: RegisterStartupScript problem

    I explain a bit more with a sample : <%@ Page Language="C#" %> < script type= "text/C#" runat= "server" > protected void Button1_Click(object sender, EventArgs e) { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "test1", "alert('test 1');", true); ScriptManager.RegisterStartupScript(this, this.GetType(), "test2", "alert('test 2');", true); Page.ClientScript.RegisterStartupScript(this.GetType(), "test3", "alert('test 3');", true); Page.ClientScript.RegisterClientScriptBlock
Page 1 of 3 (21 items) 1 2 3 Next >