[jQuery] Re: $.ajax({..}) throws syntax error in IE7

2009-06-08 Thread Gary Pearman
Hi all, Seems Ricardo was correct, and IE doesn't like the btoa function. I've implemented replacements from http://phpjs.org/ and all is now well. I take it IE just doesn't implement the btoa function, or handles it differently. Cheers, Gaz. On Jun 8, 11:44 am, Gary Pearman wrote: > Thanks f

[jQuery] Re: $.ajax({..}) throws syntax error in IE7

2009-06-08 Thread Gary Pearman
Thanks for all the suggestions. I'll look into the issue further. Cheers, Gaz.

[jQuery] Re: $.ajax({..}) throws syntax error in IE7

2009-06-07 Thread waseem sabjee
yeah. it really is best to keep function simple. ensure they work in their simplest form before making them complex. On Sun, Jun 7, 2009 at 10:38 PM, MorningZ wrote: > > And to diagnose what Ricardo suggests (btoa issue), ** start simpler > ** > > as an example, does: > > var url = app_config.ba

[jQuery] Re: $.ajax({..}) throws syntax error in IE7

2009-06-07 Thread MorningZ
And to diagnose what Ricardo suggests (btoa issue), ** start simpler ** as an example, does: var url = app_config.base_url + "/client/ajax/get_book_details_html/" + btoa(title); $.get(url, function(data){ alert("Get Loaded: " + data); }); work? this will help determine if IE is having troubl

[jQuery] Re: $.ajax({..}) throws syntax error in IE7

2009-06-07 Thread Ricardo
IE's debugger points to the wrong lines often, maybe there's something wrong before that call, or it could be your btoa() function. On Jun 7, 5:05 am, Gaz wrote: > Hi all, > > This is my first post to the group, so please be gentle :) > > For some unknown (to me at least) reason I'm getting a sy

[jQuery] Re: $.ajax({..}) throws syntax error in IE7

2009-06-07 Thread Gary Pearman
Yes, the line before is terminated with a semi-colon :) As I said, the code works fine in all the other browsers I've tested it in. It's just IE that throws an error. Cheers, Gaz. On Jun 7, 4:26 pm, waseem sabjee wrote: > I tested the $.ajax working fine on my end. > > do you may be have a li

[jQuery] Re: $.ajax({..}) throws syntax error in IE7

2009-06-07 Thread waseem sabjee
I tested the $.ajax working fine on my end. do you may be have a line before $.ajax({ ... that is not terminated with the ; On Sun, Jun 7, 2009 at 2:05 PM, Gaz wrote: > > Hi all, > > This is my first post to the group, so please be gentle :) > > For some unknown (to me at least) reason I'm get