decoded html after ajaxmethod

Page 2 of 4 FirstFirst 1234 LastLast
  1. #11

    RE: decoded html after ajaxmethod

    i tried doing the following code but still have an error bad response

    
    <ext:Store ID="PageManagerStore" runat="server" AutoLoad="true" ShowWarningOnFailure="false">
                <Reader>
                    <ext:JsonReader>
                        <Fields>
                            <ext:RecordField Name="id" Type="Int" />
                            <ext:RecordField Name="title" Type="String" >
                                <Convert Handler="return Ext.util.Format.htmlEncode(value);" />
                            </ext:RecordField>
                            <ext:RecordField Name="author" Type="String" />
                            <ext:RecordField Name="content" Type="String" />
                            <ext:RecordField Name="dateCreated" Type="Date" />
                            <ext:RecordField Name="dateModified" Type="Date" />
                            <ext:RecordField Name="type" Type="String" />
                        </Fields>
                    </ext:JsonReader>
                </Reader>
                <Listeners>
                    <LoadException Handler="HRCA_ShowError('Load failed', e.message)" />
                </Listeners>
            </ext:Store>
  2. #12

    RE: decoded html after ajaxmethod

    Hi,

    Convert cannot help because ajax request perfoms through iframe. Try to set for the Store
    <AjaxEventConfig IsUpload="false"/>
  3. #13

    RE: decoded html after ajaxmethod

    no difference, still the same error if a column contains double quotes (bad response)
  4. #14

    RE: decoded html after ajaxmethod

    Hi,

    Can you create simple example for testing? If you create such example then I'll test it and try to give more detail suggestions
  5. #15

    RE: decoded html after ajaxmethod

    i would just like to confirm if indeed double quotes in a column when binded to a json store causes this bad response... is that also happening on your end?
  6. #16

    RE: decoded html after ajaxmethod

    Hi,

    No, for me double quotes don't break json. I need the test sample which reproduces the issue
  7. #17

    RE: decoded html after ajaxmethod

    even with a file upload field and loading data on ajax event it doesn't break?
  8. #18

    RE: decoded html after ajaxmethod

    Hi,

    Yes, I tested with the following example
    https://examples1.ext.net/#/GridPanel/ArrayGrid/ArrayWithPaging/


    1. Add FileUploadField
    2. Add double quotes to the data
    new object[] {"3m \"Co",....

    3. After page load click refresh button on the PagingToolbar.
  9. #19

    RE: decoded html after ajaxmethod

    but in DB does it get it \" or only "? (no backslash)
  10. #20

    RE: decoded html after ajaxmethod

    Hi,

    Backslash using in string literals only to define double quotes in string consr (or another service symbols) because without backslash you cannot define string const with double quotes
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Cant send html string as parameter to AjaxMethod
    By masudcseku in forum 1.x Help
    Replies: 9
    Last Post: Jul 19, 2011, 10:38 PM
  2. Can I send a string with html tag to Ajaxmethod?
    By masudcseku in forum 1.x Help
    Replies: 1
    Last Post: Jul 19, 2011, 10:31 PM
  3. Replies: 1
    Last Post: May 28, 2010, 1:13 PM
  4. Replies: 2
    Last Post: Jan 08, 2010, 2:47 AM
  5. 0.82 encoded html getting decoded on store
    By [WP]joju in forum 1.x Help
    Replies: 15
    Last Post: Dec 23, 2009, 6:40 AM

Posting Permissions