Hi all!
jQuery.ready() allows us to wait for the construction of the webpage. Recently it has been added support to wait until CSS files are loaded.
I would like to know if that feature can be used for downloaded content, because I fetch content via $.ajax() that holds CSS references and I would like to retrieve the content of the CSS...
fixed;
I'm using a simple jQuery to download text off a server, datatype json.
$.get('http://169.254.100.5/ajax.php',{action:'p',i:'{$data['id']}'},function(data)
{
$.each(data.responses, function(i,response)
{
alert(response.longtext)
}
}
When response.longtext is short (less than 1000 chars like "hello world")...
Using jQuery, how can I make it so that a function is called whenever any select object on the page is changed? All of my select inputs are added to the HTML by ajax functions.
...
How can I fade one image into another with jquery? As far as I can tell you would use fadeOut, change the source with attr() and then fadeIn again. But this doesn't seem to work in order. I don't want to use a plugin because I expect to add quite a few alterations.
Thanks.
...
I have a text editor on my site and I want users to be able to use keyboard shortcuts to save, just like they would in Microsoft Word.
For the Mac: Command + S
For the PC: Control + S
What is the best way to accomplish this in JQUERY? Also, this will be used to save content in CKEDITOR, which uses an iFrame, not sure if that's an issue...
ANY DOM element can be made resizable according to this page: http://jqueryui.com/demos/resizable/
However, it seems that this doesn't work for the CANVAS element. Possible?
...
I have a web page where I want to display hotel reviews from the yelp.com API for a number of hotels.
I have managed to do this for one hotel, and it works perfectly displaying the data under that specific hotel's details on the page. However, how can I now multiply this process so that I have separate reviews for each hotel?
My web p...
Hi,
You know the browser restrictions which disallow remote domain load, ie making this not work:
$("#verizon").load("http://verizon.domain.net/?var=rscms&tan=0.9");
Is there any way around that? I'd rather not have to iframe the content
...
I'm using JavaScript with the jQuery library to manipulate image thumbnails contained in a unordered list. When the image is loaded it does one thing, when an error occurs it does something else. I'm using jQuery load() and error() methods as events. After these events I check the image DOM element for the .complete to make sure the imag...
i use jquery bbq to save ajax page states when hitting back/forward button on the browser. but my thread links point to regular pages (cause their content have to be indexed in google) so when i enter a thread then hit back button my ajax page is gone (the search result).
so going back and forth between ajax states in a page is no probl...
http://grab.by/1rI8
I wrote some jQuery script so that the background image will always scale and will never show a blank spot.
function runIt() {
currentHeight = $("#bg").height() //useless for you
currentWidth = $("#bg").width() //useless for you
ccurrentHeight = $("#cover").height() //useless for you
ccurrentWidth = $("#cover")....
This is my function to check which checkboxs are checked.
function updateTagChecked() {
var list_tag_selected = [];//to store the value of checkboxs selected.
$('input[name=tag]:checked').each(function() {
list_tag_selected.push($(this).val());
});
$('#tag_checked').val(list_tag_selected.join("&"))//A...
This should be easy but I'm not getting it for some reason. How would I set the CSS color style (e.g. color:green) of all the elements who are of class 'foobar' using jQuery?
...
hi
there is a textarea on the page. and i am sending its value via ajax.
var text = $("textarea#text").val();
var dataString = 'text='+ text;
$.ajax({
type: "POST",
url: "do.php?act=save",
data: dataString,
cahce: false,
success: function() {
//success
}
}...
Hello..
I have a WYSIWYG TEXT EDITOR contained in ID = 'bunchofstuff', which contains text with a bunch of HTML (all types of tags).
Example: Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean consectetuer. Etiam venenatis.
Using JQUERY,
Part 1 - How can I get the text in the ID bunchofstuff, strip out all the HTML s...
Is there a jquery shell/parser emulation online where i can input simple jquery commands on a pasted HTML snippet and see it's effects or capture it's outputs. It would be of real help in understanding basic jquery functions rather than opening up a new html file up and writing code from scratch.
cheers
...
I've created this simple time picker app but for some reason this snippet of code isn't working. I had it working (maybe it was my imagination).
I have 4 radio buttons. With each button having a click event attached (using jquery's live method), I show a DIV and hide the other DIVs. I also (i thought i was) adding a plugin's method t...
I have a set of images in a directory I would like to cross fade in a loop. There are about a million jQuery plugins that can accomplish this. What I haven't found is the ability to cross fade text overlaying the images. What I don't want to do is have a duplicate copy of each image, one with and one without the text overlay, as this ...
Hi
is there a jquery plugin for progress bar that can count down to a specified date automatically.
I found some progress bars but none can do this automatically.
what I want to do is that the plugin calculate time remaining between two values and display the progress in a progress bar.
thanks
...
I am using 'Uploadify' JQuery plugin for file upload. I read the documentation and referred examples and attached the code in my file. Everything works well except that after uploading the file, the file name just disappears. You can find the documentation here.
The documentation says about "onComplete" option, but I am not following ho...