I have read that it is better performance to have jquery use a DIV's ID instead of a CLASS This code below uses a div class instead of ID, can you make it use the ID instead?
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" >
$(docu...
If you view the jquery code below you will see the famous $(document).ready(function(){ that starts the script off. I see this on pretty much all jquery code examples on the net and I am wanting to know, if I am running 5 different code functions in a single file do I need to use $(document).ready(function(){ at the beginning of all of...
Hi. I am trying to use jquery's ajax $.get(...) function to send a request to my server and have it return some data. I am using the following code:
$.get("php/getRocks.php", { name: "John", time: "2pm" },
function(data){
alert("Data Loaded: " + data);
});
Instead of getting the the data back, it just returns the entire php fi...
I cannot understand why the code below is giving me this error in firebug
$ is not defined
Can someone explain?
<script type="text/javascript" >
$(document).ready(function(){
setTimeout2(function(){
$("#errormsg4").fadeOut("slow", function () {
$("#errormsg4").remove();
}); }, 5000);
});
</script>
<div id="errormsg4">te...
I am trying to do something similar to the alert box that we get here on SO when we get new comments and answers, the orange box that sticks to the top of the screen, I have something similar but I am trying to get an X close link on it, to close it on click
Here is what I have but it is giving me errors saying the close_error_click() i...
I am having an issue with ajax sending values to my PHP script for processing.
Here is the simplified ajax I am using;
$.post("register_user.php", { lastname: "gather", username: "johnny" } );
This is the PHP Code:
$lastname = $_POST['lastname'];
$username = $_POST['username'];
**** Mysql Insert into DB code Here *****
My situati...
Is there a way to make the jQuery UI's Selectable interaction go into 'multiple selects' (select via left click, click again to unselect) behavoir, rather than the click-to-exclusively-select-and-unselect-everything-else behavior?
...
First, I'm not totally sure what is causing this behavior. JQuery, Ajax, default browser behavior (happens in IE, FF & Chrome).
But, I have a tab control with 5 tabs on a web page. Each tab is loaded via a jquery ajax call. Four of the tabs load without any issue. The fifth tab, the only one that contains a textbox input control scrol...
I'm working on a site and using JQuery for essentially the first time. I've mostly used MooTools for previous projects, and I have a few widget classes I've written using the MooTools Class structure. I'd like to port them over to JQuery, but it looks to me like there is nothing similar to the MooTools functionality when it comes to ob...
I have a few areas on my site where I need to limit text input to X amount of characters and it's nice to show a number of spaces left while a user types in, like twitter does.
I found this jquery plugin;
jquery max-length plugin
It does just what I need but it seems kind of like overkill, I am not sure the filesize but it looks like a...
I've recently started using jQuery with php. On the application I'm currently making I have a form which inserts various text data along with an image file upload.
What I want is a good jQuery/AJAX tutorial on submitting this form, having it upload the file (maybe with some kind of loading image/message) then after its finished doing it...
I am writing a simple GreaseMonkey script that has a jQuery plugin called hoverIntent embedded in it. (I am embedding it rather than hosting it because it's a very small plugin.)
My problem: after the plugin attaches its event handler to a DOM object, the event triggers an error message that says: "jQuery is not defined."
Is it a scop...
hi,
i'm using a jquery dialog to open a sign in form. it works fine on ff,chrome and even Ie6,7
but it's not working on ie8.
this is my function:
function showSignInDialog() {
var email = GetEmailFromCookie();
if (!IsNullOrUndefined(email)) {
$("input[name$='LoginEmail']").val(email);
$("#chkRememberMe").attr("checked", "c...
This is pretty interesting, this site runs a speed test and compares all of these;
PureDom
jQuery 1.2.6
jQuery 1.3.2
Prototype 1.6.0.3
MooTools 1.2.2
qooxdoo 0.8.2
Dojo 1.2.3
Dojo 1.3.1
YUI 2.7.0
Javascript frameworks Speed Comparison
Bases on this it seems like the newest jquery version is almost 2x faster then the older version, h...
Hi -
I'd like to be able to select a specific option within a dropdown list in order to manipulate it.
For example,
$("#mylist > option14").replaceWith(<option value="option155">New Option</option>
How can I do this?
Selecting through the child selector doens't seem to work.
Thanks.
...
Is it possible to run two animations on two different elements simultaneously? I kinda need the oposite of this question http://stackoverflow.com/questions/668104/jquery-queueing-animations
I need to do something like this
$('#first').animate({ width: 200 }, 200);
$('#second').animate({ width: 600 }, 200);
but to run those two at the...
I was hoping someone could shed some light on this.
I have a jquery-based web application I'm building. The application has a page that it loads, then generates a Google map on the loaded page once the ajax call is complete.
My problem is that the marker 'bubbles' don't render correctly in IE7 or IE6 (screenshots provided). They are fi...
Hello
I want to implement a javascript graph plot application (ie http://people.iola.dk/olau/flot/examples/turning-series.html) to the existing admin view, where the instances of a model at the listing view also showing charts of these items and can be filtered through by using the already implemented list_filter option which I added at...
i have a list of items generated from a search.
this list of (say, 10) items i initially wanted to use checkbox for each item.
because i want to make it easy for me to mark multiple items and then press a "delete selected" button.
however is there a way not to use checkbox? i prefer to somehow select and deselect the items and the bac...
I'm using jQuery tablesorter plugin to generate dynamically a table from a csv file, and that part is working fine. However whenever i try to sort the table by clicking on the table headers, firebug reports this problem in the console:
parsers is undefined
return parsers[i].type;\n
Initially i though this problem was being caused by t...