Hello. I'm having issues with some jQuery code I have.
Using $.each I am looping through a few values and calling some php code. After this $.each loop is finished, I would like to load a div with certain content. I have tried loading the div after the $.each statement, but the load statement is still executed first, displaying the wro...
Jquery.com provide 2 version of jquery library. I always use Minified version because i never edit anything in jquery base file. but what is the use and purpose of another Uncompressed Code version? Does people edit main library file to get something?
If yes then if we edit anything in main file then we can't use google ajax library lin...
Hi-
I have an ASPX MasterPage with jQuery and Thickbox references. I used Thickbox to display some helpful tips, i.e., product information using the inline HTML that define the class="thickbox." Works on the links that are part of the MasterPages, however, when I create a new Web Form using the same MasterPage with the jQuery.js and Th...
Jquery.com shows Minified and Gzipped version as 19KB?
Production (19KB, Minified and Gzipped)
Development (120KB, Uncompressed Code)
but when we click on download for Production version. it goes to this link
http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.3.2.min.js&downloadBtn=
and the file which is on thi...
<div class="preview">
<span class="center">This will be centered</div>
</div>
Preview has fixed width (120x120), but span may contain anything (image, text). How do I center it vertically and horizontally using jQuery? I looked up some snippets but they all center elements inside the 'body' not another element. I'd like to avoid use ...
I have a php file that outputs json encoded text via
echo '(' . json_encode( $final ) . ')';
And i have a javascript file that fetches that page
$.getJSON(file, function(data){
var object = eval(data);
alert(object); //for testing
...
When any browser other than firefox 3.5 visits the page that calls .getJSON it alerts null
BUT!!!...
Hi,
I'm using latest jQuery (via the Google CDN) and am using this code to build a TOC:
$("#infoArticles h2, #infoArticles h3").each(function(i) {
var current = $(this);
current.attr("id", "title" + i);
$("#toc").append("<li><a id='link" + i + "' href='#title" + i + "' title='" + current.attr("tagName") + "'>" + current.htm...
I have a serverside dropdownlist and I am accessing it's id in jquery like this
$('#<%=ddldropdownlist.clientID%>')
I have a asp:LinkButton inside a gridview and I want to access it's client ID.
when I do as above in jquery it doesn't work
I think that's not the correct way since the server control is inside another server control
C...
My problem is that I have a table, but I only want a subset of the rows, from first index to last index. I thought you could do it like this:
$('table tr:gt(2):lt(5)');
I thought it would give you only rows #3 and #4 but it ends up giving you more than that. How can I tell the selector to choose only rows #3 and #4?
...
The documentation on the jQuery progressBar
says that this UI widget is not suitable for displaying progress of indeterminate length.
It recommends one of two alternatives:
- an indeterminate progressBar, which is "coming soon".
- a spinner animation
I think a jQuery spinner is a textbox with up/down arrows to inc/dec the value. In ot...
I'm using the table2CSV plugin and I'm trying to save the results to a file... I'm trying to use the modification mentioned in the "accepted" comment here: http://stackoverflow.com/questions/921037/jquery-table-to-csv-export (where the data is not appended to the url), but I just keep getting a blank csv file.
Right now, the html look...
How can I play an mp3 or wav sound using the jquery click event?
i want to add click sound not any track or song
...
Hi,
I'm loading a page through AJAX with jQuery's load() function. It doesn't work in IE8, giving the "permission denied" error. Using the IE debugger, it seems that when jQuery tries to open up the xhr, ie blocks it.
The problem is, my page has a javascript src that points to bing maps js api (which of course is in a completely diffe...
I recently found out about oEmbed which is "a fomat for allowing an embedded representation of a URL" basically you enter the url of a youtube video that you like and oEmbed will return the embedded code of the video in this page.
I want to give my users the option to either enter a url or embed code in a textbox. If is embed code it s...
I have external links <a href="http://notmysite.com/">Link</a>
and I'd need to add: http://myurl.com?url= before the external link's href. Making it <a href="http://myurl.com/current/page?url=http://notmysite.com/">
My current js code:
$.expr[':'].external = function(obj){
return !obj.href.match(/^mailto\:/)
...
Is it possible to detect the computed font-size of a DOM element, taking into consideration generic settings made elsewhere (In the body tag for example), inherited values, and so on?
A framework-independent approach would be nice, as I'm working on a script that should work standalone, but that is not a requirement of course.
Backgro...
I'm trying to make a plugin and am running into some problems:
(function($){
var users = {};
$.fn.plugin = function(){
//blah, but alters users
}
$.fn.utility_function = function(){
// uses users
}
});
What's happening is that when I run two instances of this plugin, "users" ends up having the same...
Hey All,
context: onSuccess javascript method after an ajax post
How do I obtain my id in javascript that is sent from my controller's ActionResult?
On the controller I've tried 2 flavors Content Result and JSON Result and both of those show up as [object] in my alert().
Thanks,
rodchar
...
For instance I have this html code
<div class="messageContainer">
<div class="message">
</div>
</div>
---Here
<div class="messageContainer">
<div class="message">
</div>
<here> :)
</div>
Now I need to create a div with some information located in the text ("---Here").
Is there any way how obviously by using jQuery.
...
I'm porting one of my Firefox extensions to Chrome, and I'm running into a little problem with an AJAX query. The following code works fine in the FF extension, but fails with a status of "0" in Chrome.
function IsImage(url) {
var isImage = false;
var reImageContentType = /image\/(jpeg|pjpeg|gif|png|bmp)/i;
var reLooksLikeIm...