What is an elegant way to perform polling while the user is waiting? This is what i mean:
1) User clicks a bottom
2) Server performs an action that might take a few minutes
3) Want the page to constantly poll the server for updates
4) if not ready, returns back a status message with updates, if ready, show time taken
Did you have any ...
Hi guys,
It's pretty nice to sort a dataset by a number of filters and get the results shown instantly, right?
My solution to do this would be to POST the "filter" (read forms) parameters to a page called dataset.php, which returns the appropriate dataset in compiled HTML, that can be loaded straight into my page.
So, besides this bein...
Hi !
I have a div that basically represents a book (so a nice div layout with an image of the book, title, price, red background if on sale etc.). So what i do is to get the properties of a book from the database, insert the values in kind of an html template and display it.
Now, once it is displayed i hate how i have to handle the da...
Hi All,
I wanted to achieve the following layout.
basically 1 div placed inside the other.
Div1 has circle as background image.(size of div varies)
I want to position Div2 so as i always get the above layout
I tried using centering a div inside another ..didnt work.
Do I have to specify top and left for Div2??
I want to be able to d...
Hi All,
Is it possible to find how many instances of the same class(.rtmenu) are visible? Then target each individual?
Much Appreciated, Thanks
...
Just wondering if someone can assist me with the following issue. I have come across the following code which pulls in latest Twitter posts and displays them on a site:
//Handle the scrolling of the tweets in the footer
$(function () {
var tweetVP = $("#footerTweetsViewport");
arrTweetNav = ECC.tweetArray();
thisTweetID = a...
Hi , I want to know
Is there any way to position one of your HTML element related to
the stretched background of your page ?
you have made the background stretched ,
now you want to write something exactly next to your logo .
considering the resolutions and browsers
CSS & JQuery
If you know any strategy or any good article/ tutori...
Is there any way to get the text of the selector that invoked some function (if it exists) from within the function?
For example
$('#foo, .bar').click(function() {
// Here I want to figure out if there was a match on #foo, or .bar
});
Basically I want to have a compounded selector like the one above (http://api.jquery.com/multip...
Hi,
I have a Jquery dialog with an ASP listview control inside. Before showing the dialog the listview is already filled on Page_Load, but I want to change this. I want to fill the listview when a dropdownlist is changed in the .aspx page, which triggers a postback to databind the listview.
The problem I'm having now is, when I want th...
How to change css display none or block property using Jquery?
...
I'm using this plugin http://davidlynch.org/js/maphilight/docs/
But can't figure out, how to change color on fly.
It uses metadata plugin, and does it via class directive, but changes don't apply on fly.
e.g.
class="{stroke:false,fillColor:'000000',fillOpacity:1,alwaysOn:true}"
and now I want to change color:
class="{stroke:false,f...
I would like to do something like this:
function blabla();
var check = blabla();
if(check == 1)
But in my blabla function I have a Get request and I have a callback but can't get the return value to be the blablas return value;
var checkemail = 0;
$.get("bla.aspx", {
day: "friday"
},
function(data)...
Play with it here: http://jsbin.com/ocicu4/4/edit
Simple Accordion, I only want one section open at a time.
I figured the if statement would work, but it doesn't.
// Clicks on h3 show .sectionContent
$('h3.sectionHeading').click(function() {
if ($('h3.sectionHeading').next().is('.open')) {
/...
This is my code currently:
$(function() {
$('#header_left').click(function(){
$('#header_left_info').fadeOut('fast');
$('#header_left').fadeOut('fast');
$('#header_left_back').delay(250).fadeIn('fast');
});
});
(the 250 millisecond delay is so that the fades don't conflict)...
I would like the below function to be more flexible and accept multiple callbacks to other functions if they are defined in the arguments.
$(function() {
function icisDashBox(colorElem, thisWidth, thisHeight, completeCallBack) {
$(colorElem).colorbox({
transition: 'none',
...
Hi,
I've created a horizontal accordion in jQuery, starting here as a base:
http://www.webdesign.org/html-and-css/tutorials/jquery-examples-horizontal-accordion.15528.html
When it animates, a small amount of space is added to the far right which causes the tabs on the right hand side to move a bit. It doesn't look very good. It's all ...
Hi All,
This seems to be defeating me at the moment but I don't think I can be a million miles away.
Basically I have a Age Verification form which just shows the year unless it's the year in which the day month would also affect the user meeting the age restriction, (in this case 1992 for 18) - in which case the day/month selects wo...
[removed by original author]
...
Hi!
I am using small plugin to jquery:
jquery-plugin-autoresize
But i have trouble with using it with .live.
Does anyone know how to do it?
I tried
$('textarea .blog_comment').live('autoResize', function(e,{
// On resize:
onResize : function() {
$(this).css({opacity:0.8});
},
// After resize:
animateCallback : function() {
$(this).c...
Good morning.
I have several pages with content that correspond to some products details.
What i need is for some words in that description, to open a popup with a description of that word.
An example:
Microsoft Windows 7 Pro 64 PT OEM
When the mouse is hover "OEM" a popup appears with the description about what is OEM.
I woul...