I have a page with a div and the elements within the div get updated from the server side periodically. For example, I have a progress bar in it. Currently, I'm doing jQuery.load using setInterval to periodically refresh the div on the page (every 3 seconds). I was wondering if I could achieve this using an event-based method rather t...
I am making an animated opening for a site, no flash, very simple, animation of opacity fade up of background layer, then logo grows out of image into position, then I show (slide in) the remaining divs.
For some crazy reason, I have been unable to get this to work in IE 8. Works fine in Chrome and FF on Mac and PC. I haven't tested in ...
Hi there,
I recently created an xml feed -> html javascript function for an iPhone app I'm developing in jQTouch. Original Tutorial & Code: http://bit.ly/cnNMKu
I was wondering if someone would know a quick and easy way to refresh the xml data (grab the feed again) when a link is clicked.
eg.
in the code:
<div id="btns">
<ul>
<l...
What is difference between following code?
Code 1:
var f = function() {
// function body code
// ...
// ...
}();
Code 2:
var f = (function(){
// function body code
// ...
// ...
})();
Which one is better to use?
...
I have an update button on which I want to pull attention when updating my content. I am doing this with an animation color fade and adding some arrow characters.
When the animation is finished I want my CSS :hover states back.
Is this possible or do I lose the original CSS and do I have to reset these with jQuery's hover()
Fiddle: htt...
Hi Guys,
I am using JQuery
I have got below JQuery code
$(document).ready(function()
{
//Looking for each element in the file which has a class "load-fragment" in it
$(".load-fragment").each(function()
{
var $objThis = $(this);
var fname = $objThis.attr("href"); //Get...
Ideally, would like to be able to easily do drag and dropping of files to be uploaded.
If so, where can I find it?
Thanks.
...
Is there a jQuery library out there that can take objects and return urls from them like Rails does?
$.commentPath({id:10}) // /coments/10
Anything? I've seen Sammy but it doesn't look like it's in there.
...
I am inserting content to a div using jquery like:
$('#divItem').append("<a href='abcd.aspx' class="toolTip" target='_blank'>Go to abcd</a>")
and I am using a jquery plugin to show tooltip on mouse hover the links(that uses class "tooTip").The tooltip works fine for all the links present in the page except the links that I have added ...
hi, i m a beginner.
i want that when a checkbox is checked then it should allow user to write something in a txtbox. initially the txtbox is disabled. what i should write inside the function using jquery
...
Hi folks,
I have a javascript function that calls itself on callback, and I'm wondering how to chain other functions after all callbacks are finished? Perhaps best explained by code:
$(document).ready(function() {
sequentialFadeIn($('#demolist li'));
});
function sequentialFadeIn(item) {
item.eq(0).fadeIn("fast", function() {
...
Hello,
Do you know of a way to use JQuery for getting JavaScript elements of a web page?
For example, getting all JavaScript function names that are used in page and so on.
Thank you!
...
hello everyone,
i write a messagesystem for a community, so imagine you have hundreds of items in a list. My idea was to load first of all 20 messages and while the user scrolls the next 20 messages.
i use the following code to load content while scrolling
$(window).scroll(function(){
if ($(window).scrollTop() == $(document)...
This is the 1st time i'm use jQuery dialog_modal confirmation.
i want to use this before deleting data inside ajax function.
i'm still confuse how to put this script correctly.
Before use this dialog i have some script like:
$('#delete').click(function() {
var params = $('#deletedata').serialize();
$.ajax({
...
what is the difference between:
$(function() {
//.....
});
and
$(document).ready(function() {
//......
});
in jQuery coding?
...
Hi guys.
I am creating a jQuery / AJAX search script, and I am trying to find the best text encoding to use on the string that gets sent to the waiting PHP file that will be doing the SQL query to get the results.
I was thinking Base64? But as I do not have a lot of experience in this field, I would appreciate any input that could hel...
I wonder why this isn't working as expected:
$(function() {
$(".door1-trigger").click(function() {
$(".door").hide();
// $(".door1").show("slide", { direction: "right" }, 1000);
return false;
});
$(".door2-trigger").click(function() {
$(".door").hide();
$(".door2").show("slide", { direction: "l...
Here is the sample html code:
<div id="current_element">Current element</div>
Many unknown tags...
<div class="target">This is target element</div>
Many other tags...
Note That Target element and current element may not under the same parent, so I can't find it with .nextAll('.target'), right?
Are there any simple way to find it? Tha...
Hi,
i have two files.
In first (parent, address: www.myaddress.com/fun/test.php) is jQuery function:
<script type="text/javascript">
$(function(){
$(document).ready(function()
{
import_f = setInterval(function()
{
$('#file').load('fun2.php?id='+ Math.random());
}, 5000);
...
I've noticed this a few times and I'm starting to think I'm missing some basic understanding. The following is a construction of HTML markup (x) which is eventually output into a div. I use getJSON to get video thumbnails for a particular product and dynamically generate a <td> block for each. But nothing in that JSON loop makes it to th...