Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 5.2.0, 5.1.0.7, 5.0.20
    • Component/s: None
    • Labels:
      None
    • Environment:
      ie8

      Description

      First of all,forgive my poor english.
      I want to write a custom component which can update it by itself,the javascript code like this,
      T5ZK.update = function(ops) {
      var zone = $(ops.id);

      if (!zone)

      { Tapestry.warn("update zone:" + ops.id + "not find!"); return; }

      new Ajax.Request(ops.url, {
      method: 'post',
      parameters :

      {clientid : ops.id}

      ,
      onSuccess : function(transport)

      { var reply = transport.responseJSON; zone.update(reply.content); //here will update the content of the element }

      });
      }

      the rendered element will be like this:
      <div id="selfupdatezone">
      <a href="#" onclick="T5ZK.update(

      {'url':'/selfzonetest.selfupdatezone:go/false','id':'selfupdatezone'}

      );return false;">gbagba1249956540593</a>
      </div>
      the ajax response is like this:
      {"scripts":["/assets/app/d420eea879c2a23e/components/T5ZK.js"],"script":"Tapestry.init(

      {\"zone\":[\"selfupdatezone\"]}

      );\n","content":"<div id='selfupdatezone'><a onclick='T5ZK.update(

      {'url':'/selfzonetest.selfupdatezone:go/false','id':'selfupdatezone'}

      );return false;' href='#'>gbagba1249956540593<\/a><\/div>"}

      all this is work fine in firefox,but in ie8 it broken.
      I view the page source and find that the result is :
      <DIV id=selfupdatezone><DIV id=selfupdatezone><A onclick="T5ZK.update(

      {&apos;url&apos;:&apos;/selfzonetest.selfupdatezone:go/false&apos;,&apos;id&apos;:&apos;selfupdatezone&apos;}

      );return false;" href="#">gbagba718</A></DIV></DIV>

      as you see:the update method do not decode the html string such as & apos;
      I think this is the bug of prototype,I update the prototype to the vertion of 1.6.1-rc,and the problem is still exists.
      Now how can I resolve this problem?
      or anybody show me any other easy way to write a self-ajax-update component?

      at here I have some word to say about tapestry5:
      I don't like the javascript it support,I like it pure ,and I will hold the javascript by myself.But I like the support of asset such as include javascript,append javascript to the client.
      I eagerlly want to new a component in java code,but t5 do not allow me do this,do any one find the beaform editor is so complex?I can create a customer beanform editor in asp.net so easy but I find in T5,wicket,struts2,jsf is so hard.I want it just simple,and more simple...

        Activity

        careprad created issue -
        careprad made changes -
        Field Original Value New Value
        Description First of all,forgive my poor english. :)
        I want to write a custom component which can update it by itself,the javascript code like this,
        T5ZK.update = function(ops) {
        var zone = $(ops.id);

        if (!zone) {
        Tapestry.warn("update zone:" + ops.id + "not find!");

        return;
        }

        new Ajax.Request(ops.url, {
        method: 'post',
        parameters : {clientid : ops.id},
        onSuccess : function(transport) {
        var reply = transport.responseJSON;
        zone.update(reply.content); //here will update the content of the element
        }
        });
        }

        the rendered element will be like this:
        <div id="selfupdatezone">
               <a href="#" onclick="T5ZK.update({'url':'/selfzonetest.selfupdatezone:go/false','id':'selfupdatezone'});return false;">gbagba1249956540593</a>
        </div>
        the ajax response is like this:
        {"scripts":["/assets/app/d420eea879c2a23e/components/T5ZK.js"],"script":"Tapestry.init({\"zone\":[\"selfupdatezone\"]});\n","content":"<div id='selfupdatezone'><a onclick='T5ZK.update({&apos;url&apos;:&apos;/selfzonetest.selfupdatezone:go/false&apos;,&apos;id&apos;:&apos;selfupdatezone&apos;});return false;' href='#'>gbagba1249956540593<\/a><\/div>"}

        all this is work fine in firefox,but in ie8 it broken.
        I view the page source and find that the result is :
        <DIV id=selfupdatezone><DIV id=selfupdatezone><A onclick="T5ZK.update({&amp;apos;url&amp;apos;:&amp;apos;/selfzonetest.selfupdatezone:go/false&amp;apos;,&amp;apos;id&amp;apos;:&amp;apos;selfupdatezone&amp;apos;});return false;" href="file:///C:/Documents%20and%20Settings/zhouka/Desktop/SelfUpdateZone.htm#">gbagba718</A></DIV></DIV>

        as you see:the update method do not decode the html string such as &amp; apos;
        I think this is the bug of prototype,I update the prototype to the vertion of 1.6.1-rc,and the problem is still exists.
        Now how can I resolve this problem?
        or anybody show me any other easy way to write a self-ajax-update component?

        at here I have some word to say about tapestry5:
        I don't like the javascript it support,I like it pure ,and I will hold the javascript by myself.But I like the support of asset such as include javascript,append javascript to the client.
        I eagerlly want to new a component in java code,but t5 do not allow me do this,do any one find the beaform editor is so complex?I can create a customer beanform editor in asp.net but I find in T5,wicket,struts2,jsf is so hard.I want it just simple,and more simple...
        First of all,forgive my poor english. :)
        I want to write a custom component which can update it by itself,the javascript code like this,
        T5ZK.update = function(ops) {
        var zone = $(ops.id);

        if (!zone) {
        Tapestry.warn("update zone:" + ops.id + "not find!");

        return;
        }

        new Ajax.Request(ops.url, {
        method: 'post',
        parameters : {clientid : ops.id},
        onSuccess : function(transport) {
        var reply = transport.responseJSON;
        zone.update(reply.content); //here will update the content of the element
        }
        });
        }

        the rendered element will be like this:
        <div id="selfupdatezone">
               <a href="#" onclick="T5ZK.update({'url':'/selfzonetest.selfupdatezone:go/false','id':'selfupdatezone'});return false;">gbagba1249956540593</a>
        </div>
        the ajax response is like this:
        {"scripts":["/assets/app/d420eea879c2a23e/components/T5ZK.js"],"script":"Tapestry.init({\"zone\":[\"selfupdatezone\"]});\n","content":"<div id='selfupdatezone'><a onclick='T5ZK.update({&apos;url&apos;:&apos;/selfzonetest.selfupdatezone:go/false&apos;,&apos;id&apos;:&apos;selfupdatezone&apos;});return false;' href='#'>gbagba1249956540593<\/a><\/div>"}

        all this is work fine in firefox,but in ie8 it broken.
        I view the page source and find that the result is :
        <DIV id=selfupdatezone><DIV id=selfupdatezone><A onclick="T5ZK.update({&amp;apos;url&amp;apos;:&amp;apos;/selfzonetest.selfupdatezone:go/false&amp;apos;,&amp;apos;id&amp;apos;:&amp;apos;selfupdatezone&amp;apos;});return false;" href="#">gbagba718</A></DIV></DIV>

        as you see:the update method do not decode the html string such as &amp; apos;
        I think this is the bug of prototype,I update the prototype to the vertion of 1.6.1-rc,and the problem is still exists.
        Now how can I resolve this problem?
        or anybody show me any other easy way to write a self-ajax-update component?

        at here I have some word to say about tapestry5:
        I don't like the javascript it support,I like it pure ,and I will hold the javascript by myself.But I like the support of asset such as include javascript,append javascript to the client.
        I eagerlly want to new a component in java code,but t5 do not allow me do this,do any one find the beaform editor is so complex?I can create a customer beanform editor in asp.net but I find in T5,wicket,struts2,jsf is so hard.I want it just simple,and more simple...
        careprad made changes -
        Description First of all,forgive my poor english. :)
        I want to write a custom component which can update it by itself,the javascript code like this,
        T5ZK.update = function(ops) {
        var zone = $(ops.id);

        if (!zone) {
        Tapestry.warn("update zone:" + ops.id + "not find!");

        return;
        }

        new Ajax.Request(ops.url, {
        method: 'post',
        parameters : {clientid : ops.id},
        onSuccess : function(transport) {
        var reply = transport.responseJSON;
        zone.update(reply.content); //here will update the content of the element
        }
        });
        }

        the rendered element will be like this:
        <div id="selfupdatezone">
               <a href="#" onclick="T5ZK.update({'url':'/selfzonetest.selfupdatezone:go/false','id':'selfupdatezone'});return false;">gbagba1249956540593</a>
        </div>
        the ajax response is like this:
        {"scripts":["/assets/app/d420eea879c2a23e/components/T5ZK.js"],"script":"Tapestry.init({\"zone\":[\"selfupdatezone\"]});\n","content":"<div id='selfupdatezone'><a onclick='T5ZK.update({&apos;url&apos;:&apos;/selfzonetest.selfupdatezone:go/false&apos;,&apos;id&apos;:&apos;selfupdatezone&apos;});return false;' href='#'>gbagba1249956540593<\/a><\/div>"}

        all this is work fine in firefox,but in ie8 it broken.
        I view the page source and find that the result is :
        <DIV id=selfupdatezone><DIV id=selfupdatezone><A onclick="T5ZK.update({&amp;apos;url&amp;apos;:&amp;apos;/selfzonetest.selfupdatezone:go/false&amp;apos;,&amp;apos;id&amp;apos;:&amp;apos;selfupdatezone&amp;apos;});return false;" href="#">gbagba718</A></DIV></DIV>

        as you see:the update method do not decode the html string such as &amp; apos;
        I think this is the bug of prototype,I update the prototype to the vertion of 1.6.1-rc,and the problem is still exists.
        Now how can I resolve this problem?
        or anybody show me any other easy way to write a self-ajax-update component?

        at here I have some word to say about tapestry5:
        I don't like the javascript it support,I like it pure ,and I will hold the javascript by myself.But I like the support of asset such as include javascript,append javascript to the client.
        I eagerlly want to new a component in java code,but t5 do not allow me do this,do any one find the beaform editor is so complex?I can create a customer beanform editor in asp.net but I find in T5,wicket,struts2,jsf is so hard.I want it just simple,and more simple...
        First of all,forgive my poor english. :)
        I want to write a custom component which can update it by itself,the javascript code like this,
        T5ZK.update = function(ops) {
        var zone = $(ops.id);

        if (!zone) {
        Tapestry.warn("update zone:" + ops.id + "not find!");

        return;
        }

        new Ajax.Request(ops.url, {
        method: 'post',
        parameters : {clientid : ops.id},
        onSuccess : function(transport) {
        var reply = transport.responseJSON;
        zone.update(reply.content); //here will update the content of the element
        }
        });
        }

        the rendered element will be like this:
        <div id="selfupdatezone">
               <a href="#" onclick="T5ZK.update({'url':'/selfzonetest.selfupdatezone:go/false','id':'selfupdatezone'});return false;">gbagba1249956540593</a>
        </div>
        the ajax response is like this:
        {"scripts":["/assets/app/d420eea879c2a23e/components/T5ZK.js"],"script":"Tapestry.init({\"zone\":[\"selfupdatezone\"]});\n","content":"<div id='selfupdatezone'><a onclick='T5ZK.update({&apos;url&apos;:&apos;/selfzonetest.selfupdatezone:go/false&apos;,&apos;id&apos;:&apos;selfupdatezone&apos;});return false;' href='#'>gbagba1249956540593<\/a><\/div>"}

        all this is work fine in firefox,but in ie8 it broken.
        I view the page source and find that the result is :
        <DIV id=selfupdatezone><DIV id=selfupdatezone><A onclick="T5ZK.update({&amp;apos;url&amp;apos;:&amp;apos;/selfzonetest.selfupdatezone:go/false&amp;apos;,&amp;apos;id&amp;apos;:&amp;apos;selfupdatezone&amp;apos;});return false;" href="#">gbagba718</A></DIV></DIV>

        as you see:the update method do not decode the html string such as &amp; apos;
        I think this is the bug of prototype,I update the prototype to the vertion of 1.6.1-rc,and the problem is still exists.
        Now how can I resolve this problem?
        or anybody show me any other easy way to write a self-ajax-update component?

        at here I have some word to say about tapestry5:
        I don't like the javascript it support,I like it pure ,and I will hold the javascript by myself.But I like the support of asset such as include javascript,append javascript to the client.
        I eagerlly want to new a component in java code,but t5 do not allow me do this,do any one find the beaform editor is so complex?I can create a customer beanform editor in asp.net so easy but I find in T5,wicket,struts2,jsf is so hard.I want it just simple,and more simple...
        careprad made changes -
        Attachment SelfUpdateZone.zip [ 12416153 ]
        Howard M. Lewis Ship made changes -
        Project Tapestry [ 10573 ] Tapestry 5 [ 12310833 ]
        Key TAPESTRY-2745 TAP5-837
        Affects Version/s 5.0.15 [ 12313350 ]
        Component/s JavaScript [ 12311181 ]
        Ulrich Stärk made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Assignee Ulrich Stärk [ ulrich.staerk ]
        Fix Version/s 5.2.0 [ 12314122 ]
        Fix Version/s 5.1.0.7 [ 12314494 ]
        Fix Version/s 5.0.20 [ 12314490 ]
        Resolution Fixed [ 1 ]
        Howard M. Lewis Ship made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Howard M. Lewis Ship made changes -
        Status Reopened [ 4 ] Closed [ 6 ]
        Resolution Duplicate [ 3 ]

          People

          • Assignee:
            Ulrich Stärk
            Reporter:
            careprad
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development