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 <morni...@gmail.com> wrote: > > 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 trouble evaluating your > dynamically built URL endpoint > > > On Jun 7, 4:29 pm, Ricardo <ricardob...@gmail.com> wrote: > > 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 <gpear...@gmail.com> 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 syntax error in > > > > IE from the following code > > > > > $.ajax({ > > > type: "POST", > > > url: app_config.base_url + "/client/ajax/ > > > get_book_details_html/" + btoa(title), > > > processData: false, > > > data: order, > > > async: false, > > > success: function(html) { > > > $('#related_books').append(html); > > > $('#add_book_title').val(''); > > > hide_loader(); > > > } > > > }); > > > > > The error is on the first line $.ajax({ > > > > > This code works perfectly well in all the other browsers I've tested > > > it on (FF Mac, FF Windows, Safari Mac). > > > > > Anybody got any ideas as to what the problem is? > > > > > Cheers, > > > Gaz. >