As you are aware, in Internet Explorer, the window.resize event is fired when any element on the page is resized. It does not matter whether the page element is resized through assigning/changing its height or style attribute, by simply adding a child element to it, or whatever -- even though the element resizing does not affect the dime...
hi all,
i made a simple jQuery button widget (plugin) which initializes like this:
var cmd = $(".tButton");
cmd.tButton();
is there a way to use .live for all future buttons (getting loaded via ajax)?
thx
...
Hi, have any of you ever had the need for a nested list like this:
1. Item 1
1.1 - Subitem 1
1.2 - Subitem 2
1.3 - Subitem 3
1.4 - Subitem 4
1.5 - Subitem 5
2. Item 2
2.1 - Subitem 1
2.2 - Subitem 2
2.3 - Subitem 3
2.4 - Subitem 4
2.5 - Subitem 5
Well, I know I cannot achieve that with pure HTML. It would be great ...
I'm doing a simple ajax query which retrieves a variable-length list of values as JSON data. I'm trying to make a list based on this data which has click-functions based on the values I got from the JSON query. I can make this work just fine by writing the onClick-methods into the HTML like this:
function loadFooList() {
var list_ar...
hi,
i'm having this markup:
<div plug=tButton></div>
and wrote a little plugin which makes a button ouf of the div like this:
var cmd = $("[plug]");
cmd.tButton();
my question: when only having the div (and its plug-attribute), how can i apply the corresponding plugin to it (without using eval)?
it should be like:
var plug = div...
[OperationContract]
[WebGet(RequestFormat = WebMessageFormat.Json)]
public MyEmployee DoWorksINGLE()
{
return new MyEmployee("Bad", "Munner");
}
[DataContract]
public class MyEmployee
{
public string FirstName = "";
public string LastName = "";
public MyEmployee(string F...
Is there a fast way of checking if an object is a jQuery object or a native javascript object?
example:
var o = {};
var e = $('#element');
function doStuff(o) {
if (o.selector) {
console.log('object is jQuery');
}
}
doStuff(o);
doStuff(e);
obviously, the code above works but it's not safe. You could potentially add ...
Is there a way to get information if an element that's draggable is reverted? I'm stuck on this. I want to make an element droppable again but only if the draggable that was lying there is moved elsewhere (meaning doesn't revert).
Thanks in advance.
Kind regards,
flo
...
I'm trying to modify this snippet:
$(document).ready(function(){
$('.showscript').show();
$("div.content:not(.about)").hide();
$(".subnav a, .mainnav a").click(function(){
//remove possible hilights
$(".subnav a, .mainnav a").removeClass("active");
var href = $(this).attr("href");
...
Issue
I have an aspx page with jQuery code to send an ajax request over to an asmx web service file (on the same website). The response that comes back is not consistent, however, it consistently fires the "error" jQuery callback as opposed to the "success" call back. The status code inconsistently varies between 200, 12030, and 12031. ...
I want to change the value of a text input with jQuery when a certain function passes. I used this code:
$('#find').attr("value", "newvalue");
But it's not changing it. This is the markup of the input I want to change:
<input type="text" id="find" class="input" />
I know it's getting to this peice of code because the jQuery either ...
[OperationContract]
[WebGet(RequestFormat = WebMessageFormat.Json)]
public List<DataModal.Employee> GetCustomers()
I want to return list of employee which is Entity Model object type.
How they can be serialize by default or need to write some code.
I am using jquery.
...
Brain squeeze and need help,
I have a table with 6 rows that are that can be hidden or visible depending on if a check box is checked. This .each routine works great with one small problem - when the last check box (val="5") is checked and you hit the refresh button the row 6 (with class="hide5") is hidden. This only occurs on the last ...
I would like to copy the value of a input:file to input:text. I can do it with plan JavaScript but I will like to know how to do it with jQuery.
----JavaScript
// This what the script would look like with plain JavaScript
// It works fine. I just woulld like to know who to do it with jQuery.
function fakeScript() {
var filepath;
file...
I am developing a website where I am using a tabs implementation with jQuery. In Debug mode, all runs fine, I spent the entire day developing it, and when I was about to deploy to the live site and I compiled in 'Release' mode, the tabs don't switch anymore. Why would this code behave differently? I am assuming it's the JavaScript code t...
Hiya,
I have a section on our website that loads quite slowly as it's doing some intensive calls. Any idea how i can get a div to say something similar to "loading" to show while the page prepares itself and then vanish when everything is ready?
Cheers
...
Does anyone have a snippet to load jquery onto any page from firebug? I often come across sites that I would prefer to inspect using familiar jq syntax.
For example, say I want to extract a list of prices from a page - it would be nice to launch firebug, install jquery from the google CDN, and type $('li.prices').each(...).
...
Hi, I've got a dynamically created iframe that I'm trying to add a script to. For example:
var iframe = document.createElement("iframe");
I'd like to inject javascript into this iframe. I've got this working without using jquery by creating a script element under the iframe object and adding callbacks to this script object via the read...
Is there a way with jQuery to remove all the LIs inside a UL with an id of 'myList'?
...
I want to do an action when a user checks a checkbox, but I can't get it to work, what am I doing wrong?
So basically, a user goes to my page, ticks the box, then the alert pops up.
if($("#home").is(":checked"))
{
alert('');
}
...