[RESOLVED]WebMatrix And jQuery Forms

Hello,

http://www.mikesdotnetting.com/article/155/webmatrix-and-jquery-forms

I read the Mike’s tutorial which is in the old version of web matrix and I tried to do that web matrix v2, but I have the following error after clicking the Add Book button in the Model Dialog box.

[object Object]

What is this ?

You probably need to update the Methods/AddBook.cshtml file to use Database.Open instead of Database.OpenFile. I’ve uploaded a new version of the sample which you can get here: http://www.mikesdotnetting.com/downloads/BooksWithjQuery.zip

In the Ajax Post code is a datatype declaration

dataType: "text/plain",

If I remember correctly I got rid of that error message to changing it like this:

dataType: "text",

Thanks for the new version.

I tried to change the versions of jquery and JQuery-ui, but it does not work.

I think the problem in the following part:

$.ajax({
                            type: "POST",
                            url: $("#add-book-form").attr('action'),
                            data: $("#add-book-form").serialize(),
                            dataType: "text/plain",

Have you tried my suggestion?

Hello wavemaster,

I tried that but it does not work..

Leave a Reply