i am loading some fragments with jquery with following code
var box = $(this).closest(".product-contain").children(".title:first");
box.load(url + " .maintitle", data);
var box = $(this).closest(".product-contain").children(".detail:first");
box.load(url + " .alldetail", data);
(i don't want to load whole .product-contain at once, bec...
Hi I have multiple jQuery-UI autocomplete instances running on a single page.
<div id="div1">
<input name= "city[1]" class= "city" id="city1" />
<select name = "select1" class = "zipcodes" id = "zipcodes1"></select>
</div>
<div id="div2">
<input name= "city[2]" class= "city" id="city2" />
<select name = "select2" class = "zipcodes" id...
Using ASP.NET Web Forms with an UpdatePanel, and using jQueryUI dialogs with a <asp:Button> inside.
First, my code looked like this simple dialog demo with a show: 'blind' effect, but I had the issue that jQuery moves the dialog outside the form, preventing the ASPNET controls from posting back to the server. So, I used this excellent b...
Hey there,
So, I've built-up a little gallery using a few plug-ins and some custom code. This is for a few photography website portfolios. So far, I've got the thumbnails in a UL on the left, and the larger image on the right. I've got some hover effects on the thumbnails, and onClick they fadeOut the larger image, swap SRC, load, then ...
What I've got are chunks of code that are used over and over again in HTML. For example:
<div class="row">
<span class="label"></span>
<span class="control">
<!-- content here -->
</span>
</div>
Here we have a simple row that I use in forms. Naturally, this chunk of code happens over and over, page after page. I'm ...
I am looking for a simple lightweight java library that parses HTML. I have looked a lot and there are many options out there. But I cannot find something simple. I really would like to have something like pyquery in python except in java. My requirements are: fast, easy to use and lightweight.
What do I need it for? Not sure if this m...
I am able to do that in IE, but FF doesn't allow to do something like:
$("#txtBox").bind('paste', function (e) {
alert('pasting text!!!!');
alert(window.clipboardData.getData("Text"));
window.event.returnValue = false;
});
I am required to trap the clipboard contents onpaste, then populate a t...
I don't understand why a resizable containment to the container does not factor in padding and margins. See my jsfiddle
Is there anything I'm missing?
I think something is off for the maxHeight. If it's retrieving outerHeight(true) then I shouldn't also need to include css('margin-(top|bottom)'), but it looks funky without.
Also, fo...
Hi All ,
div img:hover {
outline:2px solid #4d3326;
}
The above code is not working in ie , its working fine in firefox and chrome , may i know what is the problem or any alternative
Thanks
...
I have a Rails 3 application that needs to use both Prototype and JQuery libraries. Now I am having problems when it comes to making different kinds of remote calls. I am able to do a remote_function call and return RJS and that works just fine. But, on another page I want to do a form_for :remote => true, but that fails - it just sub...
I'm trying to select a div with the id "about me". I think I am having problems because of the spaces.
alert($link.attr("title"));
I get "about me"
alert($('#'+$link.attr("title")).attr("title"));
I get undefined.
I have tried to use php and jquery methods for removing them but it doesn't work.
So how do I get around this?
...
I find myself doing this a lot:
window.onload = function(){
$.get("http://example.com/example.html", function(data) {
$('#contentHere').html(data);
setTimeout("javaScriptClass.init()", 200);
});
}
But setTimeout seems a bit hacky (and 200ms is already over three times the attention span of the average user :). ...
I'm trying to display multiple anchor links within the same div container...specifically pdf files. I'm fairly new to jQuery and was hoping there'd be a way to do it.
...
Hello guys,
I wanted to get some help on this. I need to take the link that is being pulled in from a feed and extract a portion of the url and then populate it in an img tags src.
html += '<'+ options.titletag +' class="rssRow '+row+'"><a href="'+ entry.link +'" title="View this feed at '+ feeds.title +'">'+ entry.title +'</a></'+ opt...
Hi everyone,
I'm using jQuery replaceWith to update information of my website. Div elements which are returned are small. The function is called after 5 minutes. When I focus on browser, replaceWith function will run but my browser is not smooth and sometime can crash. Which plugin or solution can I use to resolve the problem ?
I used: $...
So I have an array with variables with values from textfields
var data = [name, address, city, country];
then the command
transaction.executeSql("INSERT INTO Customer(name, address, city, country) VALUES (?, ?, ?, ?)", [data[0], data[1], data[2], data[3]]);
It works fine but in the real database I have about 50 fields and if I nee...
My current style of programming is OO javascript using the Class.extend function by John Resig: http://ejohn.org/blog/simple-javascript-inheritance/
This has been fine but I find myself writing numerous setters and getters that only get used on init. Also, it seems to lead to memory leaks in IE when storing instances of these objects i...
I'm looking for a easy to use jQuery form validation plugin, which give validation error as a "Alert". Because alert is the best way to inform screen reader users about errors.
...
I am wondering why:
$.post("remote.php",
{'f':a_searchtype, 'partial':value},
function(data){
$("#result").html(data);
});
worksfine. but using a variable such as:
ajax_arg = {'f':a_searchtype, 'partial':value};
$.post("remote.php",
ajax_arg,
function(data){
$("#result").html(data);
});
causes javas...
Here is the basic code
<ul>
<li>
<input type="radio" name="r" value="a" id="a" checked="checked" />
<label for="a">A</label>
</li>
<li>
<input type="radio" name="r" value="b" id="b" />
<label for="b">B</label>
</li>
</ul>
So I need to have it work as:
1 Click on the <label> and check if the sibling <radio> is checked="che...