I'm positive that finishNote is running.  I put in an alert before the
parseNote, and even inside parseNote, and those run.  I get the alert
right before the return in parseNote even.

I have tested in FireFox with Firebug, and I haven't seen any errors
as of yet.

Here is a copy of the data I got back in FF.  (if it's not the same in
IE, I have bigger issues...)

{"notecount":1,"notes":[{"note":"this is a new
note","dateadded":"2007-05-31 09:01:36"}]}

On May 31, 4:36 am, "Rob Desbois" <[EMAIL PROTECTED]> wrote:
> Can you / have you tested it with Firefox & Firebug?
> Can you provide an example of the JSON data?
> Are you certain that the finishNote function is being executed?
>
> I'm just thinking that it may be that the JSON data is malformed in some way
> and that jQuery is failing before it gets called. One thing you could try is
> setting up an AJAX error handler:
>
> $(document).ready(function() {
>
> >    $.ajaxSetup({error: on_ajax_error});
> > });
>
> > function on_ajax_error(xhr, error, exception) {
> >    alert('AJAX error');
> > }
>
> Bung that in if you haven't got one already and see what happens.
> --rob
>
> On 5/30/07, Brian Ronk <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > At first I thought it was a problem with the forms plugin, but I don't
> > think so.  In IE (6&7) I have an issue related to forms.  The data
> > that I'm getting back (JSON) isn't being displayed.  Here is the
> > success function that I have setup for adding a note in my system:
>
> > function finishNote(json, statusText) {
> >         notes = noteParse(json.notes);
>
> >         try {
> >                 $('#notes').append(notes);
> >                 $('#notecount').val(json.notecount);
> >         }
> >         catch(err) {
> >                 alert("error");
> >                 //alert(err);
> >         }
> > }
>
> > I've been putting in alerts to see where it's going, and what's
> > happening, and it looks like the noteParse function works correctly,
> > but nothing happens after that.  I use noteParse in another area, and
> > it works correctly, so I would guess that it must be something in this
> > one.  I just added the try/catch today, and I don't get any alerts
> > from that.  Also, if I put in an alert right after noteParse, that one
> > doesn't run either.
> > I really wish that IE had something like FireBug to tell me what
> > errors popped up...  Does anyone see anything in that function that
> > might cause problems?
>
> --
> Rob Desbois
> Eml: [EMAIL PROTECTED]
> Tel: 01452 760631
> Mob: 07946 705987
> "There's a whale there's a whale there's a whale fish" he cried, and the
> whale was in full view.
> ...Then ooh welcome. Ahhh. Ooh mug welcome.

Reply via email to