Hi!
I've simplified the HTML and Javascript.
The HTML structure
ul -> li -> a
The javascript
var $ul = $('#the-list');
$ul.find('a').click(function(e){
e.stopImmediatePropagation();
console.debug('a');
});
$ul.unbind('click').click(function(){
console.debug('ul');
});
The problem
The first time a link is clicked, e...
I have an anchor tag on my page that toggles between active and cancelled entities. Only one link is showen at a time depending on what the user wants to see. I use ajax to replace the html with either active info or cancelled info. See below.
The problem that I'm having is that when the user clicks the link the loading dialog should ...
Hi everyone.
I'm looking for a voting script/widget (preferably jQuery), but not a star rating one, one with +1 and -1 options like this (admire my profesionnal MSPaint skills ^^) :
Anyone know about one ?
Thanks a lot !
...
if i have an image element where i'm not set height and width, like this
<img id="img" src="image.jpg" />
and then when i try to get
img_height = $("#img").attr("height");
it returns 0.
how can i get the size of image in google chrome.
Thanks
Update:
height = $("#img").height(); doesn't work too...
...
Hello!
Please help me, I have tried to find an explanation to this problem for half of my working day.
When I update div-tag with new content by using jquery the JavaScript functionality disappears in the updated content? How do I resolve this in the simplest way?
function liveFeed(){
var country = $('#country').val();
//var t...
is there any way of ignoring the options set with $.ajaxSetup for a specific request?
...
Ok, so here's what I've got:
I have a list of elements cached in a variable:
elementList = $(".list-of-elements-with-this-class");
I also have a dynamically generated element from that list cached in another variable:
elementList.click(
function()
{
cachedItem = $(this);
}
);
What I want to do is locate cachedI...
I have the following code i am trying to change the font of a peice of text but it keeps coming up with a page error.
function edit_font(div_id) {
$("#testsave").html(<strong onclick=\"javascript:save_font_stuff("+div_id+",font,'Arial')\">Done!</strong>
}
function save_font_stuff(div_id,font_setting,settings_vaule) {
if(...
I've come onto a project that is a little bit out of my skillset (as I'm a front-end dev), but I was told to tackle it anyway.
Basically what I'm trying to do is integrate jQuery UI's Autocomplete with a dataset that is plain text. Here's the "handler" file which grabs the data:
<%@ WebHandler Language="C#" Class="ETFSymbollookupDa...
Hi.
i want to use this plugin on my asp.net application.
I am serializing my title and text serverside with this class.
and i have no problem to show it.
but my challenge is :
i am loading titles and Contents of notifies from database.
i have no problem with load and selecting from Database.
i want to refresh notifies on every page load ...
I've been running into a situation where users will:
Go into edit mode on a grid
Edit their data
NOT click the save button on the row
they are editing
But instead click the "Next Page"
button thinking it will save their
data
I had toyed with the idea of adding functionality to the "Next Page" button click that would check the grid fo...
I'm trying to build a very simple VPS control panel; i have the following code that lists every VPS i have on a particular server :
($active variable is a BOOLEAN giving the current state of the VPS)
<ul id="vps">
<li <? if ($active): ?>class="active"<? endif;?> >
<? if ($active): ?>
<div class="status">running</div>
<?else:?>
...
I'm trying to get a countup timer against some timed entries in my app using this jQuery plugin, but it seems the implementation I have works on only Opera...all other browsers give me NaN:NaN:NaN where the timer should be.
I've used this code:
{% for entry in today %}
<tr>
<td>{{ entry.description }}</td>
<td>{{ entry.start_ti...
Hi,
I am trying to demonstrate a web site scenario on my own.
What i want to do is a multimonth calendar which can be filled with special days with a css class.
I googled it and find some Js calander controls with customizable css.But i wanted to ask it first before i start coding and probably be wasting my time.
Kind regards,
Barbaro...
I'm talking to a server and the JSON response looks like this:
someResponse({ "Response":{"status":"3","message":"Not valid bla bla"} });
Proper JSON should look like this, right?:
{
"response":
{
"status":"3",
"message":"Not valid bla bla"
}
}
Is there a way I could somehow reach that data with jQuery i...
Is there any Datagrid library for Zend And Jquery combination.
...
Using jquery (javascript) need to display facebook user name in html page using facebook user id. I am not using facebook api. Any one have any idea.
...
Is there a way to remove from the Lightbox gallery those images that have been removed via Jquery's .remove() method? i.e. some <img>'s are removed while the Lightbox is displaying other images.
<img ... rel="lightbox" />
<img ... rel="lightbox" />
<img ... rel="lightbox" class="to_remove" />
<img ... rel="lightbox" class="to_remove" />...
How can I can I get the correct current value in the click event to call via a trigger?
Html:
<input type="checkbox" id="mycheck" />
<br />
<span id="actual-value-inevent"></span>
<br />
<span id="actual-value"></span>
<br />
<button id="view-value">view value</button>
<br />
<button id="call-trigger">call trigger</button>
<br />
<butt...
In the document.ready() I have:
$('#menu_indicator').append('<p>' + currPage + ' / ' + pageLimit + '</p>');
pageLimit is always one number that does not change throughout the whole code.
I have it so that when a user clicks a button, it changes currPage to a different number.
(this part is not in document.ready();)
Why doesn't it up...