Announcement Announcement Module
Collapse

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions (http://www.springsource.org/extensions) project, this forum has been decommissioned in favour of Spring Extensions one at:
http://forum.springsource.org/forumdisplay.php?f=44

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Cheers,
Costin Leau
SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
http://twitter.com/costinl
See more
See less
ajax submit, forward if successful, show errors on fail Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    Hi Sergio - still issue with responseXML in IE 6/7

    I have not been able to find out why the responseXML is not accepted in IE 6/7 wheras FF is ok. Below is the XML in question:

    <?xml version="1.0"?>
    <taconite-root xml:space="preserve">
    <taconite-replace-children contextNodeID="transactionTable" multipleMatch="false" parseInBrowser="true">
    <tr>
    <td nowrap="nowrap" class="merchantIdCol">30644</td>
    <td nowrap="nowrap" class="clientCol" id="client">6140</td>
    <td nowrap="nowrap" class="statusCol" id="status">Successful</td>
    <td nowrap="nowrap" class="dateCol" id="date">17/07/07 09:34</td>
    <td nowrap="nowrap" class="authIdCol" id="authid">32525365</td>
    <td nowrap="nowrap" class="typeCol" id="type">S</td>
    <td nowrap="nowrap" class="cardTypeCol" id="cardtype">Visa</td>
    <td nowrap="nowrap" class="amountCol" id="amount">62,475.00</td>
    <td nowrap="nowrap" class="currencyCol" id="currency">HUF</td>
    <td nowrap="nowrap" class="clientRefCol" id="clientref">4809db99-86dc-4470-96a1-a16f4e9a4e96</td>
    <td nowrap="nowrap" align="left" class="cardNumberCol" id="cardnumber">XXXXXXXXXXX89626</td>
    <td nowrap="nowrap" class="cardNameCol" id="cardname"> Kepecs Tamás</td>
    <td nowrap="nowrap" class="clientNameCol" id="clientName">E HUF</td>
    <td nowrap="nowrap" class="refundIdCol" id="refundid">null</td>
    </tr>
    </taconite-replace-children>
    <taconite-replace-children contextNodeID="transactionsCount" multipleMatch="false" parseInBrowser="true">1</taconite-replace-children>
    <taconite-replace-children contextNodeID="countSales" multipleMatch="false" parseInBrowser="true">1</taconite-replace-children>
    <taconite-replace-children contextNodeID="countRefunds" multipleMatch="false" parseInBrowser="true">0</taconite-replace-children>
    <taconite-replace-children contextNodeID="countSuccessful" multipleMatch="false" parseInBrowser="true">1</taconite-replace-children>
    <taconite-replace-children contextNodeID="countDenied" multipleMatch="false" parseInBrowser="true">0</taconite-replace-children>
    <taconite-replace-children contextNodeID="countFailed" multipleMatch="false" parseInBrowser="true">0</taconite-replace-children>
    <taconite-replace-children contextNodeID="amountsPerCurrency" multipleMatch="false" parseInBrowser="true"><tr><td>Total HUF</td><td width="10px"> </td>
    <td align="right">62,475.00</td></tr></taconite-replace-children><taconite-replace-children contextNodeID="cardTypeSelect" multipleMatch="false" parseInBrowser="true">
    <option value="" selected="true">All</option><option value="Delta">Delta</option><option value="MasterCard">MasterCard</option><option value="Amex">Amex</option><option value="Visa">Visa</option>
    <option value="UK Electron">UK Electron</option><option value="Duet">Duet</option><option value="Solo">Solo</option><option value="JCB">JCB</option><option value="Maestro">Maestro</option>
    <option value="Switch">Switch</option></taconite-replace-children><taconite-replace-children contextNodeID="currencySelect" multipleMatch="false" parseInBrowser="true">
    <option value="" selected="true">All</option><option value="EUR">EUR</option><option value="PLN">PLN</option><option value="ZAR">ZAR</option><option value="SKK">SKK</option>
    <option value="SEK">SEK</option><option value="GBP">GBP</option><option value="HUF">HUF</option><option value="CZK">CZK</option><option value="CYP">CYP</option><option value="DKK">DKK</option>
    <option value="CHF">CHF</option><option value="CAD">CAD</option><option value="USD">USD</option></taconite-replace-children><taconite-replace-children contextNodeID="pageNumber" multipleMatch="false" parseInBrowser="true">1/1</taconite-replace-children>
    <taconite-replace-children contextNodeID="navigation" multipleMatch="false" parseInBrowser="true"> </taconite-replace-children><taconite-execute-javascript parseInBrowser="true">
    <script type="text/javascript">traverseTable();</script></taconite-execute-javascript><taconite-replace-children contextNodeID="error.all" multipleMatch="false" parseInBrowser="true"></taconite-replace-children><taconite-execute-javascript parseInBrowser="true">
    <script type="text/javascript">Element.hide('loading');</script></taconite-execute-javascript><taconite-execute-javascript parseInBrowser="true"><script type="text/javascript">Element.show('pageResultsContainer');</script></taconite-execute-javascript> </taconite-root>




    Your help is very much appreciated - Thanks

    Comment


    • #32
      I noticed that there is no: encoding=&quot;ISO-8859-1&quot;

      Hi Sergio,

      Would it make any difference to add encoding="ISO-8859-1" to the main parent xml tag? If so how would I do this? Where is the base of the xml created?

      Regards - Buster

      Comment


      • #33
        Originally posted by buster View Post
        I have not been able to find out why the responseXML is not accepted in IE 6/7 wheras FF is ok. Below is the XML in question:
        [CUT]
        What error message do you get?

        Comment


        • #34
          Originally posted by buster View Post
          Would it make any difference to add encoding="ISO-8859-1" to the main parent xml tag? If so how would I do this? Where is the base of the xml created?
          Please refer to this recent post: http://forum.springframework.org/sho...44&postcount=5

          You have to act on the org.springmodules.xt.ajax.AjaxResponseImpl class.

          Let us know.
          Thanks,
          Cheers,

          Sergio B.

          Comment


          • #35
            Ajax Validations: IE - Google Chrome - Firefox

            Hello,

            I am facing similar issue...
            I have following code in validator:

            errors.rejectValue("firstName", "messagediv.user", "First Name is >> John !!");

            My JSP code has:

            <div align="center" id="messagediv.user" name="messagediv.user"/>

            On XT.doAjaxSubmit, java code is executed properly, but I get javascript error
            on IE 7 / 8 browser.

            However same code works on Google chrome and FireFox.

            Any suggestions are appreciated.

            Thanks,
            Mandar

            Comment

            Working...
            X