Giter Club home page Giter Club logo

Comments (3)

macek avatar macek commented on August 14, 2024

@kkarkos

I haven't specifically tested in IE8 before, but I recall some other people mentioning they've used it. Before I take this further, let's try one more thing.

Re:

$("#form").serializeJSON();

This only returns the JSON representation of your form. Unless you assign it to a variable, alert it, or make a GET/POST request with the result, you're not going to see much.

To help illustrate this a little better, consider this:

1 + 1;

It's a valid JavaScript expression, it evaluates to 2, but nothing happens; nothing is assigned, nothing is output. From a certain perspective, it's as if nothing happened.

Instead if we do this

var result = 1 + 1;
console.log(result);

Now we can see what's going on, and we also have the result stored in a variable that we can use later.

As for this plugin, try something like this:

var f = $("form");

f.submit(function(event) {
  alert(f.serializeJSON());
  event.preventDefault();
});

If you're still having trouble, please paste a complete block of code for me to review. I'll be happy to diagnose the issue further with a little more to work off of.

from jquery-serialize-object.

macek avatar macek commented on August 14, 2024

It looks like this may be realated to #22

from jquery-serialize-object.

macek avatar macek commented on August 14, 2024

Make sure to grab the latest 2.3.0 for use with IE8.

from jquery-serialize-object.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.