What is the advantage of using IScriptInterface control versus client code?

Last post 12-10-2009 1:15 PM by jacob_poly. 2 replies.

Sort Posts:

  • What is the advantage of using IScriptInterface control versus client code?

    21 hours, 31 minutes ago
    • Member
      1 point Member
    • jacob_poly
    • Member since 12-03-2009, 3:21 PM
    • Posts 4

    Sorry...just a newbee question....what is the benefit of creating a server side ajax control (custom or otherwise) that implements the IScriptInterface? The one thing you can do is to set js object values using tags, such as -
    <ctrl:ServerAjaxCtrl ID="Ctrl1" prop1="val1" prop2="val2" runat="server" /> 

    But you can do this using just client side javascript as well from what I am seeing....so I can do -
    $create(myControls.Ctrl1, {"prop1":"val1","prop2":"val2"}, null, null, $get("Div1"));

    So why would I do the former versus the latter? Is it because it gives me more dynamic control if I use a server side control for this?

    Thanks in advance,
    Jake.

     

  • Re: What is the advantage of using IScriptInterface control versus client code?

    11 hours, 28 minutes ago
    • Contributor
      2,227 point Contributor
    • guenavan
    • Member since 01-09-2004, 9:25 AM
    • Novossibirsk(S. Iberia)
    • Posts 1,090

    jacob_poly:
    Is it because it gives me more dynamic control if I use a server side control for this?

    What do you mean under "more dynamic control"? 

    Guennadi Vanine - Gennady Vanin - Геннадий Ванин (Novosibirsk)
  • Re: What is the advantage of using IScriptInterface control versus client code?

    1 hour, 42 minutes ago
    • Member
      1 point Member
    • jacob_poly
    • Member since 12-03-2009, 3:21 PM
    • Posts 4

    Well .... what I meant by dynamic control was having a little more control at runtime as to whether to create that component or not via server side code versus client side javascript. But that was just a product of my speculation and can be ignored. So the original question still remains...what is the benefit of doing it one way versus the other. Especially what is is the advantage of doing it via the IScriptInterface versus using the javascript version to achieve the same result.

    Thanks,
    Jacob.

Page 1 of 1 (3 items)