I have a div the contents of which constantly changes based on a server side process. Currently I use jqeury load to poll the server every 3 seconds to get any updates.
This is what I have:
function poll() {
reloadPage();
setTimeout("poll();", 3000);
}
function reloadPage() {
$("#mydiv").load(location.href + " #mydi...
I have the following strings
http://site.com
https://site.com
http://www.site.com
how do i get rid of the http:// or https:// in javascript or jquery
...
I have a WordPress install and I'm trying to use jQuery to create a Load More effect. I'm having some trouble using the basic .load feature for page fragments. I don't mind using .get as I saw some threads here regarding that as a better solution.
Here's my page URL structure and the contents:
First Page: http://example.com/page/1/
Th...
I've got an html document that has 2 images rendered on top of each other. The second one is a small gear icon that is added in top right corner of the larger image with javascript. I've registered click event handlers in my script file for both images but when I click on the gear I get nothing. If i click a little to the left of the ...
I've been struggling to find an answer to this question. That is, how would I have a static row that doesn't sort or move up and down? The reason for this is to have repeated headers in a very large table. The multiple headers Would anyone be able to help?
http://tablesorter.com/docs/
$("#dataTable").tablesorter({
sortL...
I have a form which populates 3 fields based on the selection from an autocomplete field. That is fine and working well, however I have a 4th field which needs to be populated automatically based upon one one of the fields that got populated automatically by the autocomplete.
what's the best way to populate that 4th field?
here is my c...
Hi. I need (recently) to get an array from the server after an ajax call created by jquery. I know that i can do it using JSON. But i don't know how to implement it with JQuery (im new with JSON). I try to search in internet some example, but i didnt find it.
This is the code :
// js-jquery function
function changeSponsor() {
$.aja...
I wanna make a function that erases everything inside of a multiple select using jQuery.
Also if it could remove some text from text fields it'd be good too.
...
Hi guys,
I am stuck. I am using uploadify to upload multiple files to my s3 server. I would like to put each file into a folder that has a unique identifier. What I was hoping to do was to use this syntax to accomplish that (note uuid is a jquery plugin to generate uuids):
'onComplete' : function(event,queueId,fileObj,response) {
...
Im trying to write a JQuery wrapper extension that takes a content div and then shows it modally. Im having a bit of trouble getting it to work. It seems to work when I daisychain everything but when I try to use more than one line I break it. The problem with daisychaining is I don't know how to get the conditionals in there.
This d...
Hi All, I am having difficulty getting one of the page divs to display over a temporarily prepended div.
The div i want to keep at the fore at all times is .outer_box
The Jquery:
$(document).ready(function() {
$("<div/>", {
"class": "DooSuperOverlay"
})
.prependTo("body")
.animate({opacity: 1.0}, 3000)
.fadeOut("slow");
});
Th...
I understand how addListener works within the map itself, but how can I get an info window to open up when I click an element outside the map? For instance, a div with the id #test?
...
Does anyone know why the site loads in this portion of the page? I am gussing it is jquery related. It is live here : http://littleboxcreative.com/lilboxer/
e. the site loads in the portfolio section instead of the home section where i would like it to load.
...
I've this script inside my classic asp.
<script type="text/javascript">
var $dialog = $('<div></div>');
$dialog.load('cad_usr_pto_padrao_livres.asp?cd_usuario=' + <%= "'" & v_cd_usuario_cl & "'" %>);
$dialog.dialog({ title: 'Cadastro de Ponto Padrão', height: 300, width: 400,
closeOnEscape: true, hide: 'slide', position...
Usually, Firebug gives a half decent error message when something goes wrong or doesn't compile. In this case though, I am simply getting the following:
X: $(
$('#' + divName).emtpy();
The code is something like this:
// Some code that sets variable row_entry
// debugger;
$('#' + divName).emtpy();
$('#' + divName).append(row_entry);...
I am using jqTransform plugin to enhance the look and feel of my form.It works well.Now i added a div to the page which has a style="display:none;" and in an event(a button click) in the page,I am trying to show the div.But it looks like the width of the divs which are created by jQtrasform become only 0 px.
My HTML
<div id="divUserIn...
Hi I am using jConfirm for my code . When I use the JS confirm evrything works fine but when I use jConfirm the submission is done first and the message box pops up later.
the code is . If a person belongs to the group and they want to delete the ticket, A jconfirm box shouls appear and they should be able to delete when ok pressed. BUt...
I have 3 textarea with a default text "Write something". Let say if i click on one of them, the default text will disappear and that textarea get focus. However, if i click on another textarea, the default text of another textarea will disappear but the default text of first textarea will reappear. How can I make this happen? Same thing ...
Using Lightbox 2, I am trying to hide the (long) title and alt tool tips that pop up when I hover over an image thumbnail. By default Lightbox 2 uses the title attribute of the thumbnail link to populate the caption.
I believe Firefox uses the title attribute and Internet Explorer uses the alt attribute for tool tips.
As a work around ...
I have a form with select Field A. This field can be dynamically populated based on the URL or it can be selected as usual.
Once a value has been selected in Field A either way, select Field B is populated and exposed with JQuery AJAX.
Here is the problem. If Field A is left untouched, and is dynamically populated by the URL, Field B w...