I'm adding is a flag to indicate that a post was sent via ajax. Is there a better way to do this so that I don't have to add the flag every time an ajax form is posted?
var param = $("#"+frmId).serializeArray(); param.push({"name":"isajax","value":1}); $("#shoppingcart").load("/catalog/shoppingcart.php", param);
I'm using the latest version of jquery, and tablednd onDrop, a form is submitted with 1 hidden value in each row of the table. I check for the hidden value in the row that was dragged and dropped, and it is present. Then I serialize the form and the serialization has all the hidden values except for the 1 in the row that got dragged and dropped. why?
I have a form. Upon submit, the data is sent to the server. Under certain conditions, the form is replaced via ajax with a set of radio buttons that offer the user a a choice. I need to access the radio buttons before I submit the form again. Normally I could just access the buttons with getelementbyid but it is not available, presumably because they were generated via ajax. I could submit the form just to access the radio buttons and then submit it again, but I'd like to avoid that. How do I do this?
Hello, This page has a simple example of a slidedown area with 2 links, each with different methods of sliding http://reenie.org/test/jquery/t2.php method1 is $("#slidewrapper").slideToggle("slow"); method2 is $("#slidewrapper").toggle("slide", { direction: "up" }, 1000); using jquery-ui In the first effect, the entire box is always visible while it is sqeezed or expanded. In the second effect, the box maintains its size as it slides in and out of view. The first effect works well in Firefox and IE, The second works well in FF, but has problems in IE and Safari. In IE and Safari, before the box starts to slide up or down, it suddenly snaps to position left:0px, ignoring the position of right:80px; Then when it is done sliding, it snaps back to right:80px; How do I get this to stop snapping out of position in these 2 browsers? Red
This page: http://reenie.org/jquery/ is linked to 1.js which has this code: $(document).ready(function(){ $('#myForm').livequery(function(){ alert('why is this happening?'); return false; }); }); When the page is first loaded, it triggers the alert. It doesn't seem like it would because it is in the livequery function. Why does it do that?
Can I use livequery on ajaxForm? or is there another way to add event listeners to ajax produced form? This page redirects to the example http://reenie.org/test/hffc.php If you click "Login" and add any name, the form submits and shows you logged in. If you don't add a name the form submits and mimics the situation where the user is not found. It displays an error message and displays the login form again The "close" button works before and after the form is rewritten because it uses livequery to bind it to the click function. $("#loginclose") .livequery('click', function(event) { //closes login box } However, after the form is submitted, the form's event listeners are missing.and the form is will not be submitted via ajax again. I'm using this code to bind the form to the options function. $('#loginform').ajaxForm(options); How do I bind the form again without reloading the page?
http://reenie.org/test/jquerytest.html This uses $('#container').load('content.html'); to load content from an html file http://reenie.org/test/jquerytest.html This uses $('#container').load('content.php'); to load from a php file. Why doesn' t the second one work? They are the same except for the files being loaded. If I change the second one to load the html file, it works fine.