JQuery :: $.post And Data With $( Selector ) Does Not Work Since 1.4?
Jan 28, 2010
since jQuery 1.4 I've a problem using $( selector ) in data for $.post My code:
settings = $.extend( {
attachTo: $( '.top h1' )
}, settings );
$.post( url, settings, function( str )
[Code]....
it working also fine with jQuery 1.4.*. I can't find changes in the changelog for jQuery 1.4 that could explain this behavior.
View 2 Replies
ADVERTISEMENT
Aug 9, 2011
I'm running into a really strange AJAX problem which I haven't encountered yet in Internet Explorer.
The following code works:
Code JavaScript:
$.post("home.php", function(data){
console.log('success');
});
[Code]....
View 6 Replies
View Related
Aug 21, 2009
I wonder if i can make the variable data which is [data] in jQuery.post( url, [data], [callback], [type] ) dynamic. for instance, this is the form i want to send,
PHP Code:
<form action="send_xml.php" method="post" enctype="multipart/form-data" id="form_send"><input type="checkbox" id="var_1" class="checkbox"/><input type="checkbox" id="var_2" class="checkbox"/></form>
[Code]...
View 2 Replies
View Related
Jul 22, 2011
I am writing a small data entry screen that will post the form data to a page and return a message. But i cannot get the Success or Error functions working properly.
Here's the code where strData is the posted querystring of:
I'm not sure whether it should be in a form and using the onsubmit or click of a button.
View 2 Replies
View Related
Jan 8, 2011
Let's say I have the following HTML:
<span id="more">
Did you know?
<span>The milky way is round.</span>
</span>
Using
$("#more span").css("border", "1px solid black");
will place a black border around "The milky way is round." If I change the <span> tags in the HTML to <div> tags and issue $("#more div").css("border", "1px solid black"); The same will happen. "The milky way is round" will be framed. However, if I change the <span> tags to <p> tags, as in
[Code]...
View 4 Replies
View Related
Dec 9, 2010
I've take an example from the docomentation and changed the names. I allready have written some nice functions
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
[Code]....
View 4 Replies
View Related
Sep 13, 2010
I have a problem with a jQuery selector that works in both Firefox and Chrome but refuses to in Internet Explorer.
The jQuery line looks like
$('a[id*="show_ingredients_link"]').click(function(){
var id = this.id.replace("show_ingredients_link", "");
(".ingredient_row" + id).toggle(); return false;
});
Which is trying to select a click on the following bit of HTML (this is a Django template)
<a href="#" id="show_ingredients_link{{ i.id }}">
(Customise)
</a>
The intent is to toggle the visibility of some table rows that exist just below the (Customise) link.
I can tell this is a selector problem by adding an alert(); in the click function which isn't fired in IE.
View 2 Replies
View Related
Feb 15, 2010
<div class="c"></div>
I do $(".c:not(:last)").css({borderColor:"#0f0"}) This is OK in Firefox, but in IE all columns get this color. The :not selector doesn't work in IE. Why not?
View 1 Replies
View Related
Sep 9, 2009
This selector does not work with Jquery 1.3.2 and Firfox 3.5.3
Using version 1.2.6 it works with out issues. Older versions of FIrefox work with no issue and the same with IE it works!
View 2 Replies
View Related
Aug 30, 2010
Does not work in IE6, but FF, SAF works only. any better way to solve this issue?[code]...
View 2 Replies
View Related
Nov 6, 2010
So I've been trying to create a Spry table using SpryData pulling it from XML and then adding jQuery zebra stripe to the dynamic table.
Zebra Striping tutorial :[URR]
So far I have beenunsuccessfulat achieving thestripedtable :(, however, I did get the Spry to work and it builds the table perfectly.
SpryData tutorial: [URL]
Heres my sample page: [URL]
I am thinking I am either not using the selector correctly.
Or there is a conflict with jQuery and the Spry.
View 2 Replies
View Related
Nov 2, 2011
I'm wondering why I cannot use multiple input types in the same selector...
$("input[type!='radio'],input[type!='submit'],textarea","#mycontext")
with only one input[type..] works
View 6 Replies
View Related
Aug 3, 2010
I'm using jQuery with Google jsapi and some strange problem occurs:
google.load("jquery", "1.4.2");
google.setOnLoadCallback(function() {
test();
});
[Code]...
When I run this code, alert returns null, not array. The same with any element, f.e. "#element". Why it doesn't work?
View 4 Replies
View Related
Jul 28, 2010
I'm new to jquery as you will soon find out. I have a number of divs with the same class applied to them and I want to be able to animate them separately as each one is clicked - right now clicking on one, affects the entire family of like-tagged. I think I might be going about this the wrong way or missing something.
View 1 Replies
View Related
Sep 3, 2010
I am simply reposting my question from StackOverflow, in order for more eyeballs to see it.
[URL]
View 2 Replies
View Related
Sep 2, 2010
I am trying to work live method work but could not if id/name has . (dot) character.jQuery1.4.2Example:
<html>
<head>
<script type="text/javascript" src="../scripts/jquery-1.4.2.js"></script>
[code]....
View 9 Replies
View Related
Dec 5, 2011
I have seen in many places, including jQuery in Action book attribute values in quotes.
$("input[type='checkbox']) works in IE, but in Firefox it needs to be
$("input[type=checkbox]) // no quotes
View 5 Replies
View Related
May 4, 2011
i'm unable to do this with jQuery 1.6 but it works fine with jQuery 1.5.2 :
$('#comment-content')
.delegate('#chkb-status-review,#chkb-status-validate','change',function(){
$('#chkb-status-review,#chkb-status-validate').attr('checked',false);
$(this).attr('checked',true);
})
No error, just not working. Maybe i'm doing something wrong
View 3 Replies
View Related
Jul 28, 2009
I am trying to make an ajax POST request but its not working. Code below:
var _HOMEDIR = "http://localhost/personal/index.php/home/";
$(document).ready(function() {
$("form").submit(function() {
var str = $("form").serialize();
[Code]....
View 9 Replies
View Related
May 31, 2011
I'm attempting to make a simple hover image gallery with a static large image which swaps with a thumb on hover. However, on hover what happens is the new image comes up as the large image and if I then hover over another thumb it replaces that thumb with the original bigpic image source.
View 2 Replies
View Related
Jul 30, 2010
I'm a total JS/jQuery newbie, and I'm having a problem using jQuery's load() to POST data to a remote PHP script and rewrite a DIV with whatever the server sent back.
Using a proxy in between, I can see that the JS script isn't sending anything, so I guess there's something wrong in the JS code I send to the browser [code]...
View 1 Replies
View Related
May 17, 2011
i want to send data(inputdata) using jQuery to a php script, the displaying the returned data(returndata) in a div but what happened that the (inputdata) don't get send this is my code it will explain it self better:
HTMLfile.HTML
<HTML>
<head>
<script type="text/javascript" src="jquery.js"></script>
<SCRIPT language="JavaScript">
function swapContent(inputdata){
[Code]...
View 5 Replies
View Related
Mar 28, 2010
I have some radio buttons and do a jquery post on click. Something like this: $.post("method", { value: value }, function(data) { alert(data); }); the value data does have the correct result, but my problem is the page doesn't refresh to that data.
View 2 Replies
View Related
Aug 1, 2010
the follwing script works fine on xampp at home:
$(".SFV_I").live('click',function(event)
{
whereVal=$(this).attr("whereVal");
[code]....
View 2 Replies
View Related
Mar 22, 2010
I am new to all this but making good progress and having fun in the process. I have written quite a bit over recent weeks (including a few $.post / $.ajax calls) for various sites/applications but this one is really puzzling me. Here is a snippet of code that is causing me problems.
[Code]....
The problem is that execution jumps from line 2 to line 6 ... ignoring the function(data) and I am not sure why. I get the correct value of "team" arriving at the perl script .... and the perl writes the correct json back. I just can't think where else I need to look to debug this - as I said, I have done something similar 5-6 times over the last few weeks - all without a problem. So I am sure I am doing something stupid here.
View 3 Replies
View Related
Aug 23, 2011
I want to POST data to my personal website[code]...
If i run the code from my localhost it doesn't return anything
View 1 Replies
View Related