You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by lt <li...@gmail.com> on 2008/10/02 23:52:40 UTC

Ajax Response in IE with HTML Entities (4.1.6)

In rendering a response from an async request, my html comes back valid.  All
browsers work but IE.  I have narrowed it down to special characters such as
&reg;.  Without those IE works.  With characters like that, the component
doesn't update.  There has to be a fix for this.  My page has a valid dtd.
(transitional)

Pleas let me know what I can do to fix this.

Thanks.
L


-- 
View this message in context: http://www.nabble.com/Ajax-Response-in-IE-with-HTML-Entities-%284.1.6%29-tp19788294p19788294.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5 Override 404 Page

Posted by Ulrich Stärk <ul...@spielviel.de>.
Ahh OK, that's because I am using an Index page instead of Start.

If I'm not mistaken, than the error page you see should be the ErrorReport
page in o.a.t.corelib.pages. You can override that with your own one. An
example is in the wiki. There are also some alternatives to handle 404s,
search the mailing list archives.

Uli

Am Di, 14.10.2008, 16:49, schrieb Ulrich Stärk:
> I don't know which 404 page you are seeing. If I want to navigate to a
> non-existing page I just get the Index page...
>
> Uli
>
> Am Di, 14.10.2008, 16:37, schrieb Mike Leonardo:
>> Hello,
>>
>> I'm looking to override the 404 page with my own custom one. I've
>> scanned
>> around the wiki how-to pages and can't find much. Can anyone point me to
>> any resources or documentation that would help?
>> Thanks!
>>
>> - Mike Leonardo
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5 Override 404 Page

Posted by Ulrich Stärk <ul...@spielviel.de>.
I don't know which 404 page you are seeing. If I want to navigate to a
non-existing page I just get the Index page...

Uli

Am Di, 14.10.2008, 16:37, schrieb Mike Leonardo:
> Hello,
>
> I'm looking to override the 404 page with my own custom one. I've scanned
> around the wiki how-to pages and can't find much. Can anyone point me to
> any resources or documentation that would help?
> Thanks!
>
> - Mike Leonardo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5 Override 404 Page

Posted by Tobias Wehrum <Le...@dragonlab.de>.
Maybe this, for example?
http://www.nabble.com/t5%3A-a-default-page-for-non-exist-path-tp18980767p18980767.html

- Tobias

Ulrich Stärk schrieb:
> There has been some discussions about this in the past. I can't give you a
> link without searching myself so I suggest you search nabble or markmail
> for 404 and/or index.
>
> Uli
>
> Am Di, 14.10.2008, 17:22, schrieb Mike Leonardo:
>   
>> Hey,
>>
>> Thanks for the responses, I've given this a go and I am having a bit of
>> trouble.
>> When I add the:
>> <error-page>
>>    <error-code>404</error-code>
>>    <location>/error404.jsp</location>
>> </error-page>
>>
>> to the web.xml and restart - my application will still redirect all fake
>> urls to my Index page.
>> I'm running Jetty. Any thoughts?
>>
>> - Mike Leonardo
>>
>>
>> ----- Original Message -----
>> From: "Peter Stavrinides" <P....@albourne.com>
>> To: "Tapestry users" <us...@tapestry.apache.org>
>> Sent: Tuesday, October 14, 2008 10:50:24 AM (GMT-0500) America/New_York
>> Subject: Re: T5 Override 404 Page
>>
>> Adding a small article to the wiki for this may be a good idea since this
>> question pops up from time to time:
>>
>> Add a directive like this to your web.xml:
>> <error-page>
>>    <error-code>404</error-code>
>>    <location>/error404.jsp</location>
>> </error-page>
>>
>> One thing to remember is that a 404 page overrides the servers error page
>> so is outside of your application context, so you add the overridden page
>> in the root of the webapp directory. Then add this directive to the head
>> of error404.jsp: <%@ page isErrorPage="true" %>, and thats it.
>>
>>
>> ----- Original Message -----
>> From: "Mike Leonardo" <mi...@ifactory.com>
>> To: "Tapestry users" <us...@tapestry.apache.org>
>> Sent: Tuesday, 14 October, 2008 5:37:55 PM GMT +02:00 Athens, Beirut,
>> Bucharest, Istanbul
>> Subject: T5 Override 404 Page
>>
>> Hello,
>>
>> I'm looking to override the 404 page with my own custom one. I've scanned
>> around the wiki how-to pages and can't find much. Can anyone point me to
>> any resources or documentation that would help?
>> Thanks!
>>
>> - Mike Leonardo
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>     
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5 Override 404 Page

Posted by Ulrich Stärk <ul...@spielviel.de>.
There has been some discussions about this in the past. I can't give you a
link without searching myself so I suggest you search nabble or markmail
for 404 and/or index.

Uli

Am Di, 14.10.2008, 17:22, schrieb Mike Leonardo:
> Hey,
>
> Thanks for the responses, I've given this a go and I am having a bit of
> trouble.
> When I add the:
> <error-page>
>    <error-code>404</error-code>
>    <location>/error404.jsp</location>
> </error-page>
>
> to the web.xml and restart - my application will still redirect all fake
> urls to my Index page.
> I'm running Jetty. Any thoughts?
>
> - Mike Leonardo
>
>
> ----- Original Message -----
> From: "Peter Stavrinides" <P....@albourne.com>
> To: "Tapestry users" <us...@tapestry.apache.org>
> Sent: Tuesday, October 14, 2008 10:50:24 AM (GMT-0500) America/New_York
> Subject: Re: T5 Override 404 Page
>
> Adding a small article to the wiki for this may be a good idea since this
> question pops up from time to time:
>
> Add a directive like this to your web.xml:
> <error-page>
>    <error-code>404</error-code>
>    <location>/error404.jsp</location>
> </error-page>
>
> One thing to remember is that a 404 page overrides the servers error page
> so is outside of your application context, so you add the overridden page
> in the root of the webapp directory. Then add this directive to the head
> of error404.jsp: <%@ page isErrorPage="true" %>, and thats it.
>
>
> ----- Original Message -----
> From: "Mike Leonardo" <mi...@ifactory.com>
> To: "Tapestry users" <us...@tapestry.apache.org>
> Sent: Tuesday, 14 October, 2008 5:37:55 PM GMT +02:00 Athens, Beirut,
> Bucharest, Istanbul
> Subject: T5 Override 404 Page
>
> Hello,
>
> I'm looking to override the 404 page with my own custom one. I've scanned
> around the wiki how-to pages and can't find much. Can anyone point me to
> any resources or documentation that would help?
> Thanks!
>
> - Mike Leonardo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5 Override 404 Page

Posted by Mike Leonardo <mi...@ifactory.com>.
Hey,

Thanks for the responses, I've given this a go and I am having a bit of trouble.
When I add the:
<error-page>
   <error-code>404</error-code>
   <location>/error404.jsp</location> 
</error-page>

to the web.xml and restart - my application will still redirect all fake urls to my Index page.
I'm running Jetty. Any thoughts?

- Mike Leonardo


----- Original Message -----
From: "Peter Stavrinides" <P....@albourne.com>
To: "Tapestry users" <us...@tapestry.apache.org>
Sent: Tuesday, October 14, 2008 10:50:24 AM (GMT-0500) America/New_York
Subject: Re: T5 Override 404 Page

Adding a small article to the wiki for this may be a good idea since this question pops up from time to time:

Add a directive like this to your web.xml:
<error-page> 
   <error-code>404</error-code>
   <location>/error404.jsp</location>  
</error-page>

One thing to remember is that a 404 page overrides the servers error page so is outside of your application context, so you add the overridden page in the root of the webapp directory. Then add this directive to the head of error404.jsp: <%@ page isErrorPage="true" %>, and thats it.


----- Original Message -----
From: "Mike Leonardo" <mi...@ifactory.com>
To: "Tapestry users" <us...@tapestry.apache.org>
Sent: Tuesday, 14 October, 2008 5:37:55 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul
Subject: T5 Override 404 Page

Hello,

I'm looking to override the 404 page with my own custom one. I've scanned around the wiki how-to pages and can't find much. Can anyone point me to any resources or documentation that would help?
Thanks!

- Mike Leonardo


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5 Override 404 Page

Posted by Peter Stavrinides <P....@albourne.com>.
Adding a small article to the wiki for this may be a good idea since this question pops up from time to time:

Add a directive like this to your web.xml:
<error-page> 
   <error-code>404</error-code>
   <location>/error404.jsp</location>  
</error-page>

One thing to remember is that a 404 page overrides the servers error page so is outside of your application context, so you add the overridden page in the root of the webapp directory. Then add this directive to the head of error404.jsp: <%@ page isErrorPage="true" %>, and thats it.


----- Original Message -----
From: "Mike Leonardo" <mi...@ifactory.com>
To: "Tapestry users" <us...@tapestry.apache.org>
Sent: Tuesday, 14 October, 2008 5:37:55 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul
Subject: T5 Override 404 Page

Hello,

I'm looking to override the 404 page with my own custom one. I've scanned around the wiki how-to pages and can't find much. Can anyone point me to any resources or documentation that would help?
Thanks!

- Mike Leonardo


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


T5 Override 404 Page

Posted by Mike Leonardo <mi...@ifactory.com>.
Hello,

I'm looking to override the 404 page with my own custom one. I've scanned around the wiki how-to pages and can't find much. Can anyone point me to any resources or documentation that would help?
Thanks!

- Mike Leonardo


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Ajax Response in IE with HTML Entities (4.1.6)

Posted by lt <li...@gmail.com>.
For those interested in getting around IE async updates (via
updateComponents) this is what worked for me.  Again the issue was html
entities getting passed that were not allowed by IE's dom parser when
parsing the async request xml. (& reg; or & raquo; for example).

I had to extend the DojoAjaxResponseContributorImpl and the
DojoAjaxResponseBuilder.java.  After extending it into my own source base I
overrode the hivemind definition.  As done below:

<implementation service-id="tapestry.services.DojoAjaxResponseContributor">
    	<invoke-factory>
            <construct
class="com.my.tapestry.services.impl.DojoAjaxResponseContributorImpl" >
                <set-service property="localeManager"
service-id="tapestry.request.RequestLocaleManager"/>
                <set-object property="markupWriterSource" 
value="infrastructure:markupWriterSource"/>
                <set-object property="webResponse"
value="infrastructure:response"/>
                <set-object property="webRequest"
value="infrastructure:request"/>
                <set-object property="exceptionPageName"
value="infrastructure:exceptionPageName"/>
                <set-object property="staleSessionPageName"
value="infrastructure:staleSessionPageName" />
                <set-object property="staleLinkPageName"
value="infrastructure:staleLinkPageName" />
                <set-object property="assetFactory"
value="infrastructure:assetFactory" />
                <set-service property="pageService"
service-id="tapestry.services.Page" />
            </construct>
        </invoke-factory>
</implementation>

Once this was done I updated beginResponse in DojoAjaxResponseBuilder.java
to this.

 void beginResponse()
    { 
        _responseStarted = true;

        _writer.printRaw("<?xml version=\"1.0\" encoding=\"" +
_cycle.getInfrastructure().getOutputEncoding() + "\"?>");
        if (isIE()) {
            _writer.printRaw("<!DOCTYPE html "
                    + "PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" "
                    +
"\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\" [" + NEWLINE
                    + "<!ENTITY nbsp '& #160;' >" + NEWLINE
                    + "<!ENTITY iexcl  '& #161;' >" + NEWLINE
                    + "<!ENTITY cent  '& #162;' >" + NEWLINE
                    + "<!ENTITY pound  '& #163;' >" + NEWLINE
                    + "<!ENTITY curren  '& #164;' >" + NEWLINE
                    + "<!ENTITY yen  '& #165;' >" + NEWLINE
                    + "<!ENTITY brvbar  '& #166;' >" + NEWLINE
                    + "<!ENTITY sect  '& #167;' >" + NEWLINE
                    + "<!ENTITY uml  '& #168;' >" + NEWLINE
                    + "<!ENTITY copy  '& #169;' >" + NEWLINE
                    + "<!ENTITY ordf  '& #170;' >" + NEWLINE
                    + "<!ENTITY laquo  '& #171;' >" + NEWLINE
                    + "<!ENTITY not  '& #172;' >" + NEWLINE
                    + "<!ENTITY shy  '& #173;' >" + NEWLINE
                    + "<!ENTITY reg  '& #174;' >" + NEWLINE
                    + "<!ENTITY macr  '& #175;' >" + NEWLINE
                    + "<!ENTITY deg  '& #176;' >" + NEWLINE
                    + "<!ENTITY plusmn  '& #177;' >" + NEWLINE
                    + "<!ENTITY sup2  '& #178;' >" + NEWLINE
                    + "<!ENTITY sup3  '& #179;' >" + NEWLINE
                    + "<!ENTITY acute  '& #180;' >" + NEWLINE
                    + "<!ENTITY micro  '& #181;' >" + NEWLINE
                    + "<!ENTITY para  '& #182;' >" + NEWLINE
                    + "<!ENTITY middot  '& #183;' >" + NEWLINE
                    + "<!ENTITY cedil  '& #184;' >" + NEWLINE
                    + "<!ENTITY sup1  '& #185;' >" + NEWLINE
                    + "<!ENTITY ordm  '& #186;' >" + NEWLINE
                    + "<!ENTITY raquo  '& #187;' >" + NEWLINE
                    + "<!ENTITY frac14  '& #188;' >" + NEWLINE
                    + "<!ENTITY frac12  '& #189;' >" + NEWLINE
                    + "<!ENTITY frac34  '& #190;' >" + NEWLINE
                    + "<!ENTITY iquest  '& #191;' >" + NEWLINE
                    + "<!ENTITY times  '& #215;' >" + NEWLINE
                    + "<!ENTITY divide  '& #247;' >" + NEWLINE
                    + "<!ENTITY Agrave  '& #192;' >" + NEWLINE
                    + "<!ENTITY Aacute  '& #193;' >" + NEWLINE
                    + "<!ENTITY Acirc  '& #194;' >" + NEWLINE
                    + "<!ENTITY Atilde  '& #195;' >" + NEWLINE
                    + "<!ENTITY Auml  '& #196;' >" + NEWLINE
                    + "<!ENTITY Aring  '& #197;' >" + NEWLINE
                    + "<!ENTITY AElig  '& #198;' >" + NEWLINE
                    + "<!ENTITY Ccedil  '& #199;' >" + NEWLINE
                    + "<!ENTITY Egrave  '& #200;' >" + NEWLINE
                    + "<!ENTITY Eacute  '& #201;' >" + NEWLINE
                    + "<!ENTITY Ecirc  '& #202;' >" + NEWLINE
                    + "<!ENTITY Euml  '& #203;' >" + NEWLINE
                    + "<!ENTITY Igrave  '& #204;' >" + NEWLINE
                    + "<!ENTITY Iacute  '& #205;' >" + NEWLINE
                    + "<!ENTITY Icirc  '& #206;' >" + NEWLINE
                    + "<!ENTITY Iuml  '& #207;' >" + NEWLINE
                    + "<!ENTITY ETH  '& #208;' >" + NEWLINE
                    + "<!ENTITY Ntilde  '& #209;' >" + NEWLINE
                    + "<!ENTITY Ograve  '& #210;' >" + NEWLINE
                    + "<!ENTITY Oacute  '& #211;' >" + NEWLINE
                    + "<!ENTITY Ocirc  '& #212;' >" + NEWLINE
                    + "<!ENTITY Otilde  '& #213;' >" + NEWLINE
                    + "<!ENTITY Ouml  '& #214;' >" + NEWLINE
                    + "<!ENTITY Oslash  '& #216;' >" + NEWLINE
                    + "<!ENTITY Ugrave  '& #217;' >" + NEWLINE
                    + "<!ENTITY Uacute  '& #218;' >" + NEWLINE
                    + "<!ENTITY Ucirc  '& #219;' >" + NEWLINE
                    + "<!ENTITY Uuml  '& #220;' >" + NEWLINE
                    + "<!ENTITY Yacute  '& #221;' >" + NEWLINE
                    + "<!ENTITY THORN  '& #222;' >" + NEWLINE
                    + "<!ENTITY szlig  '& #223;' >" + NEWLINE
                    + "<!ENTITY agrave  '& #224;' >" + NEWLINE
                    + "<!ENTITY aacute  '& #225;' >" + NEWLINE
                    + "<!ENTITY acirc  '& #226;' >" + NEWLINE
                    + "<!ENTITY atilde  '& #227;' >" + NEWLINE
                    + "<!ENTITY auml  '& #228;' >" + NEWLINE
                    + "<!ENTITY aring  '& #229;' >" + NEWLINE
                    + "<!ENTITY aelig  '& #230;' >" + NEWLINE
                    + "<!ENTITY ccedil  '& #231;' >" + NEWLINE
                    + "<!ENTITY egrave  '& #232;' >" + NEWLINE
                    + "<!ENTITY eacute  '& #233;' >" + NEWLINE
                    + "<!ENTITY ecirc  '& #234;' >" + NEWLINE
                    + "<!ENTITY euml  '& #235;' >" + NEWLINE
                    + "<!ENTITY igrave  '& #236;' >" + NEWLINE
                    + "<!ENTITY iacute  '& #237;' >" + NEWLINE
                    + "<!ENTITY icirc  '& #238;' >" + NEWLINE
                    + "<!ENTITY iuml  '& #239;' >" + NEWLINE
                    + "<!ENTITY eth  '& #240;' >" + NEWLINE
                    + "<!ENTITY ntilde  '& #241;' >" + NEWLINE
                    + "<!ENTITY ograve  '& #242;' >" + NEWLINE
                    + "<!ENTITY oacute  '& #243;' >" + NEWLINE
                    + "<!ENTITY ocirc  '& #244;' >" + NEWLINE
                    + "<!ENTITY otilde  '& #245;' >" + NEWLINE
                    + "<!ENTITY ouml  '& #246;' >" + NEWLINE
                    + "<!ENTITY oslash  '& #248;' >" + NEWLINE
                    + "<!ENTITY ugrave  '& #249;' >" + NEWLINE
                    + "<!ENTITY uacute  '& #250;' >" + NEWLINE
                    + "<!ENTITY ucirc  '& #251;' >" + NEWLINE
                    + "<!ENTITY uuml  '& #252;' >" + NEWLINE
                    + "<!ENTITY yacute  '& #253;' >" + NEWLINE
                    + "<!ENTITY thorn  '& #254;' >" + NEWLINE
                    + "<!ENTITY yuml  '& #255;' >" + NEWLINE               
                    + "]>" + NEWLINE);
        } else 
        _writer.printRaw("<!DOCTYPE html "
                         + "PUBLIC \"-//W3C//DTD XHTML 1.0
Transitional//EN\" "
                         +
"\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\" [" + NEWLINE
                         + "<!ENTITY nbsp '&#160;'>" + NEWLINE
                         + "]>" + NEWLINE);
        
        _writer.printRaw("<ajax-response>");
    }
    
    private boolean isIE() {
        return
_cycle.getInfrastructure().getRequest().getHeader("user-agent").indexOf("MSIE")
> 0;
    }

This adds the entity definitions in the response.  Which makes IE happy. 
Might be overkill but it works.  If anyone has anything else that can be
used instead, im all ears.

Also, just passing a & #174; for example doesn't work in IE either.  You
must have the definitions for it to work.  

I also check to see if its IE.  If not, no sense in sending all this down
per request.

For the sake of not having the forum display the actual characters I added a
space to make them invalid.  

LT

lt wrote:
> 
> Jesse,
> 
> You seem to be the expert.  Im snagged yet again by IE.  The character
> this time is & raquo;  .  In the ajax response its a valid html entity.  I
> added the space here to make it clearer.  Again all browsers are fine with
> it except for IE.  All characters encoded in the 100's range fails too. 
> There has to be a way to let IE be more lenient or some trick im missing
> in tapestry.  This has to be a common error.  
> 
> Thanks in Advance.
> LT
> 
> For others having issues with Asyn Responses.  Here are some tips.
> Guidelines to doing tapestry ASYNC requests in IE and Firefox:
> 
>     * Repsonse must be valid xml (this means nowraps attributes have to be
> nowrap="nowrap" and br tags need to be xhtml compliant.  like < br /> (no
> spaces of course)
>     * Comment tags are not allowed (IE only)
>     * All characters must be encoded or escaped,  Check for &'s.  99.9
> percent  of the time there seems to be an & in some url thats not escaped.
> 
> If your not seeing the html updated after the response is received:
> 
>     * CHECK ALL ABOVE
>     * In IE you cannot update a ROW <TR> within the dom, this is Illegal. 
> You must update the table or a div or a td 
> 
> 
> 
> 
> 
> lt wrote:
>> 
>> In rendering a response from an async request, my html comes back valid. 
>> All browsers work but IE.  I have narrowed it down to special characters
>> such as & reg;.  Without those IE works.  With characters like that, the
>> component doesn't update.  There has to be a fix for this.  My page has a
>> valid dtd. (transitional)
>> 
>> Pleas let me know what I can do to fix this.
>> 
>> Thanks.
>> L
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Ajax-Response-in-IE-with-HTML-Entities-%284.1.6%29-tp19788294p19973641.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Ajax Response in IE with HTML Entities (4.1.6)

Posted by lt <li...@gmail.com>.
Jesse,

You seem to be the expert.  Im snagged yet again by IE.  The character this
time is & raquo;  .  In the ajax response its a valid html entity.  I added
the space here to make it clearer.  Again all browsers are fine with it
except for IE.  All characters encoded in the 100's range fails too.  There
has to be a way to let IE be more lenient or some trick im missing in
tapestry.  This has to be a common error.  

Thanks in Advance.
LT

For others having issues with Asyn Responses.  Here are some tips.
Guidelines to doing tapestry ASYNC requests in IE and Firefox:

    * Repsonse must be valid xml (this means nowraps attributes have to be
nowrap="nowrap" and br tags need to be xhtml compliant.  like < br /> (no
spaces of course)
    * Comment tags are not allowed (IE only)
    * All characters must be encoded or escaped,  Check for &'s.  99.9
percent  of the time there seems to be an & in some url thats not escaped.

If your not seeing the html updated after the response is received:

    * CHECK ALL ABOVE
    * In IE you cannot update a ROW <TR> within the dom, this is Illegal. 
You must update the table or a div or a td 





lt wrote:
> 
> In rendering a response from an async request, my html comes back valid. 
> All browsers work but IE.  I have narrowed it down to special characters
> such as & reg;.  Without those IE works.  With characters like that, the
> component doesn't update.  There has to be a fix for this.  My page has a
> valid dtd. (transitional)
> 
> Pleas let me know what I can do to fix this.
> 
> Thanks.
> L
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Ajax-Response-in-IE-with-HTML-Entities-%284.1.6%29-tp19788294p19957088.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org