I am trying to make something where you can post, and with jQuery it submits (no refresh or parsing via another page) and inserts the data into the DB. The code I am using for the jQuery is in my <head> and this is the code:
Like yourself Steven P I have watched it from the days of William Hartnell, It was good when we had the Darlek's and the Cybermen. Sad to see one of the longest running shows in the world die a sad death.
My problem with FF is I have to jump through hoops to get at least somewhat close to what Vivaldi gives me out of the box, with no real advantage that would make it worth my while. (But hey, apparently there's now at least experimental support for HDR in FF. I mean it's about a decade too late, but still...finally!)
Brave I was never the least interested in, never saw the point, not to mention there's been quite a bit of drama surrounding them over the years.
But I've been a faithful and very happy Opera user all the way back to 2001(ish), so once Vivaldi showed up following that awkward period of time after the key people left Opera and the company was sold, I never really looked back. And they never once made me question my choices.
I see it has more memory, more storage, a better CPU, and a stylus, as you said.
Might be a good alternative. I see some refurbished for $150-200.
I'm not scared of refurnbished, as a lot of parts in my house are refurbished/used. All are working atm.
Question
Shazer2
I am trying to make something where you can post, and with jQuery it submits (no refresh or parsing via another page) and inserts the data into the DB. The code I am using for the jQuery is in my <head> and this is the code:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"></script> <script type="text/javascript" > $(function() { $(".submit").click(function() { var np = $("#np").val(); $.ajax({ type: "POST", url: "inc/ajax.php", data: np, success: function(){ $('.success').fadeIn(200).show(); $('.error').fadeOut(200).hide(); } }); } return false; }); </script>I then have the following in ajax.php and I am 100% certain it's in the correct directory.
<?php /** * @author Shannon * @copyright 2011 */ session_start(); include ("connect.php"); $user = $_SESSION['username']; $np = $_POST['np']; $np = mysql_real_escape_string($np); mysql_query("INSERT INTO `posts` (user, np) VALUES ('$user', '$np')") or die(mysql_error()); ?>That is all correct too, but it just doesn't seem to insert into the database. If anyone has an idea why, please post a reply.
Link to comment
https://www.neowin.net/forum/topic/990268-jquery-submitting-a-form/Share on other sites
17 answers to this question
Recommended Posts