[Rails-spinoffs] Scriptaculous Sortable Demo

2006-06-21 Thread John Wang
In case anyone is interested, I just put together a demo using Sortable to preview Typo themes:http://www.dev411.com/typothemes/Nice to see it in action. John ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.or

[Rails-spinoffs] Prototype Array object extension causing problems

2006-06-07 Thread John Wang
I heard that, as of 1.5.x, prototype is no longer extending object prototypes or causing object bleeding, making it more compatible with 3rd-party _javascript_s such as Dojo Toolkit. I tested this by running prototype 1.5.0 rc0 and Dojo 0.3.0 together and Firefox's _javascript_ Console produced the

Re: [Rails-spinoffs] Re: IE header max length (for X-JSON)

2006-06-03 Thread John Wang
On 6/3/06, Will Merrell <[EMAIL PROTECTED]> wrote: My take, and the way I will be using it, is that the header is for theMeta Data *about* the Ajax transaction, and the response body is for theactual data that is the point of the transaction. Thus I use the header for success/failure info and error

Re: [Rails-spinoffs] Prototype/Scriptaculous beginer question

2006-06-02 Thread John Wang
On 6/2/06, Jean-Philippe Encausse <[EMAIL PROTECTED]> wrote: - Do you know a good SDA or RSA _javascript_ library other thatthis one: http://pajhome.org.uk/crypt/sda/index.html ? Take a look at Tom Wu's jsbn library: http://www-cs-students.stanford.edu/~tjw/jsbn/ HTH, John

[Rails-spinoffs] Re: IE header max length (for X-JSON)

2006-06-02 Thread John Wang
On 6/1/06, John Wang <[EMAIL PROTECTED]> wrote: Does anyone know what the max length for a header in IE is? When my X-JSON value is 138 bytes, it works fine but when it's 1659 it fails. Is this documented anywhere? I put up a blog entry on this. For now I'm just going to put the JS

[Rails-spinoffs] IE header max length (for X-JSON)

2006-06-01 Thread John Wang
Does anyone know what the max length for a header in IE is? When my X-JSON value is 138 bytes, it works fine but when it's 1659 it fails. Is this documented anywhere? Thanks, John ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http:

Re: [Rails-spinoffs] JSON not auto-evaluated

2006-05-28 Thread John Wang
On 5/28/06, Brice Burgess <[EMAIL PROTECTED]> wrote: Also note that from my experience, the X-JSON header is CASE SENSITIVE-- and must all be lowercase. What configuration do you run that causes X-JSON in all caps to fail? I find this interesting because: (a) X-JSON in all caps works fine for m

Re: [Rails-spinoffs] JSON not auto-evaluated

2006-05-28 Thread John Wang
On 5/28/06, Chris Chabot <[EMAIL PROTECTED]> wrote: Personally i loved the 'json in header' feature, it allowed me to havelarge quantities of html in the responce body, and some params, or otherdivs to update, etc in the x-json header .. I assume by large quantities of HTML you mean just 1 large qu

Re: [Rails-spinoffs] JSON not auto-evaluated

2006-05-28 Thread John Wang
X-JSON is the name of the custom header, not a content-type so header("Content-Type: X-JSON") won't work. You need the X-JSON header set to the JSON string. In PHP, do the following:     header("X-JSON: $json"); I use Catalyst with the following. It's pretty similar to the PHP code so I expect th

Re: [Rails-spinoffs] JSON not auto-evaluated

2006-05-28 Thread John Wang
On 5/28/06, Dirk Eschler <[EMAIL PROTECTED]> wrote: According to http://www.sergiopereira.com/articles/prototype.js.html, thesecond param is supposed to be the evaluated json object IF the X-JSON header is send in the response. I send the header in my script. However, the jsonvar is always undefine