Hi guys,
How do I trigger validation (using the validate plugin) from a group of checkboxes using jQuery, without using the name of the checkbox (this is controlled by the serverside app)? The validation message is currently displayed only once -(when you press the submit button) and I need it to be fired everytime a checkbox gets trigg...
Hi, i am detecting images on my webpage with javascript document.images function which returns an rray of images. Is there any way to get the mime type of the image from this since i am not using any extension names on images which are loading?
...
Perhaps my brain is fried, but I'm writing a plugin that created an tweaks an element, but also creates an object that i'd like access to. So the plugin looks like this
(function ($) {
$.fn.myPlugin = function () {
return this.each(function () {
// do some stuff to the element...
this.objectInstance = new use...
I want to reference an element once and then reuse it threw out my code but I'm not sure the correct way. Below is what I tried but it only works in some places. (EDIT: works, had an error farther up in my code, but I'm still curious if this is the best practice or not.)
$(document).ready(function() {
var image = $("#content img");
...
I'm a UI person currently working on a web application, where most of the people I work with are back end developers. I'm currently at a disagreement with them about whether or not the above is a prudent thing to do.
This application doe use quite a bit of JavaScript, and wouldn't even work without it unfortunately. This being the cas...
Hello
I am new to JS and AJAX, but I have to do my homework. I choose jQuery, so it little easy now.
I want to get a html via AJAX request, but in result it looks, ex:
<fieldset id=\"item4\" class=\"item\"><legend>Odno\u015bnik 4<\/legend>
I set response content-type to text/html. When I outputting result on server everything is ok....
Just wondering if anyone knows of a jQuery sortable plugin that I can use that's not the UI library?
...
Could you confirm I understand this correctly.
However, always use POST requests
when:
- A cached file is not an option (update a file or database on the
server)
Using POST, the file specified in xmlhttp.open("POST","ajax_test.asp",true);
will not be cached (sent to \Temporary Internet Files) ? It will stay on the server...
I've been coming across blogs/websites lately that only load images when they are scrolled into the visible viewport. It then fades them in. Is there a jQuery ... even Wordpress plug-in that does this?
e.g. http://icodeblog.com
...
The following is an excerpt from jQuery documentation
Code examples
Supply a callback function to handle the selected event as an init option.
$( ".selector" ).selectable({
selected: function(event, ui) { ... }
});
Bind to the selected event by type: selected.
$( ".selector" ).bind( "selected", function(event, ui) {
...
});
I tr...
Hi!
I toyed around with .load() and .ajax(), but i didn't get to an end. Here's what I need:
Everey minute the function shall check if it can load a certain page.
if the connection succeeds, I want the page to be refreshed, if not, nothing shall happen, the script shall retry later.
I'm using the jQueryTimers plugin. this is my code...
Hi All,
Is it possible to have 2 ajax forms on the same page? If so, is it common?
Just curious,
rodchar
...
Hi all,
For the life of me I cannot get my Superfish menu to stop hiding behind my jQuery UI tabs in IE 7. I have read the documentation out there, have tried changing z-index values and tried the bgIframe plugin, although I am not sure if I am implementing it correctly (left out in my example below, using Supersubs).
Here is the Javas...
I have a chart that I'm drawing using flot. I want to change the colors of the data plots when someone hovers over text. Currently, I am doing this by redrawing the entire chart each time I need to highlight something. This is pretty slow (about 30 milliseconds for a simple chart, as much as 100 for a more complicated chart). Since all I...
Hello all, and thanks for reading.
I wrote a web service which is called through jsonp, and returns a .Net 3.5 DataSet which I then want to parse using jquery. It appears that the getJson() method is working fine as far as parsing the json goes. The following request -
$.getJSON("http://localhost:80/ws.asmx/Example?format=...
I am looking for a good tutorial on jQuery Widgets. I have been following this guide (http://bililite.com/blog/understanding-jquery-ui-widgets-a-tutorial/) , and while very helpful it would be nice to have an extra resource or two to go by.
...
Hi,
I am trying to develop auto horizontal scrolling for our website using - jQuery.ScrollTo / jQuery.SerialScroll. I am not sure if this is the best jquery library to do that, but if there's something better, please let me know.
Here's the behavior that I want, check out foursquare's "Recent Activity" list. The data that will refresh ...
Hey guys, quick question, all I want to do is resize an image to fit inside a small container when I run this function. Right now, only a portion of the image is shown inside the div. If anyone has any ideas, I would appreciate any advice.
$(this)
.css({
backgroundImage : 'url(' + src + ')', // set background imag...
$.ajax({
type: 'GET',
url: "string.txt",
cache: false,
success: function(str){
alert("Data is: "+ str);
}
});
In this example, string.txt is sent to the cache (\Temporary Internet Files)
How do I ensure that the file is not sent. I do not want copy to be sent.
Only a read from the server. Am I missing an option?
...
I have a ASP.NET web service decorated with System.Web.Script.Services.ScriptService() so it can return json formatted data. This much is working for me, but ASP.Net has a requirement that parameters to the web service must be in json in order to get json out.
I'm using jquery to run my ajax calls and there doesn't seem to be an easy wa...