yoshi a écrit :
> is this a known bug on safari?
> 
> if yes is there anyway to get around it?

I ran into string length issues with regex's on Firefox as well.  As my
regex was fairly simple, I ended up doing a manual global replacement,
which certainly isn't quite the golden road.

I would be tempted to say you're not quite supposed to send 10+K of data
in an AJAX response; that's not quite what AJAX was designed for, I
mean, 10K feels like a whole, content-rich page, not a page fragment or
JSON data!  But then, Real Life Is Different, I'm sure you'll say :-)

In the end, though, your issue remains.  Since Prototype runs
stripScripts (not extractScripts or evalScripts, BTW) on your String,
you do have a regex matching.  It will occur both in evalScripts: true
and evalScripts: false contexts (in Elt.update or A.U.updateContent,
respectively).  So you're grilled.

The only workaround I see out of my hat just now is, if you *don't* have
script blocks, use Ajax.Request and manually write to the target
element's innerHTML in your own onSuccess callback.  Yewh, I know.

-- 
Christophe Porteneuve a.k.a. TDD
"[They] did not know it was impossible, so they did it." --Mark Twain
Email: [EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to