I have an ASP.NET MVC application which is executing a search against a products database. I want to display the results in a jqGrid using the TreeGrid module. I don't really need the grid to be AJAX-y because the data is static and it is small enough that it can all be sent to the client at once.
First question: how do I set up jqGri...
Looking to place different icons in front of items/options in a HTML select box.
...
I have a fixed-height (180px) header and fixed-height footer (50px). I'd like the container height to be: window height MINUS header MINUS footer. If the container height can be updated on window resize, that'd be awesome!
How do I achieve this using jQuery?
I posted the same question and receive a great answer with a CSS only solution...
I have a JQGrid that's already been initialized. How can I add an event handler to it? I've tried
grid.setGridParam({
onSelectRow: function(rowid, status) {
alert("onSelectRow");
}
});
but this doesn't do anything (no error, but no alert on select either).
Update
Turns out the code above actually works fine - altho...
What is a good JQuery rich text editing field?
...
I'd like to make a JQGrid where all rows are editable (in-line) all the time. What would be the preferred approach to doing this? I'm thinking I'll need to just iterate through the rows and call grid.editRow(id, true) on each one; but at this point I haven't even figured out how to get access to a collection of rows in order to do that.
...
Hello,
I am using the .animate function in Jquery. I have a div that slides over using marginLeft, but I also need it to fade in, but I need it to be slower than the marginLeft effect. With .animate, I can only seem to apply one speed parameter.
<script type="text/javascript">
$(document).ready(function(){
$(".topFrameAnim").css("opa...
I have a style switcher on http://thetimes.gregrickaby.com. It works for the most part, but you have to hit F5 or Refresh to see the new style. How do I finish this jQuery to auto-refresh upon a successful execution?
jQuery.fn.styleSwitcher = function(){
$(this).click(function(){
loadStyleSheet(this);
return false;
...
I have some boxes
<div class='ICS_Picture'>
Text
</div>
<div class='ICS_Picture'>
Text
</div>
<div class='ICS_Picture'>
Text
</div>
<div class='ICS_Picture'>
Text
</div>
I want jquery to add a class to all items after the first n number of items..
I have some similar code that does it for tr's but cannot get the syntax right for the ...
Hello everyone,
I am quite new to Jquery and for the first time tried to use slideToggle to create some dropdowns. A few of them are stacked on top of each other and when one is clicked, all others should collapse. I am sure my code isn't ideal since i'm just starting out, but everything works fine except in IE8. In IE8, the space bet...
hi, i have a code that bind's on click action on page load, it is a link. When i clicking it, it send ajax request and replace content in some div with jquery append() function. This new content has a links and i need to bind some action for them, but i could't.. bind did't work i think, because jquery append doesn't update DOM tree. How...
All,
I have the following code. How can I fix it so that the category checkbox for each category is checked only if all the items under that are checked?
Thanks
<html>
<head>
<script src="http://www.google.com/jsapi"></script>
<script>
google.load("jquery", "1.3.2");
google.load("jqueryui", "1.7.2");
</script>
<script lang...
Using jQuery, what's the performance difference between using:
$('#somDiv').empty().append('text To Insert')
and
$('#somDiv').html('text To Insert')
?
...
Looking for a Fixed header, frozen column, sortable table plugin for jquery any pointers will be helpful.
...
Let's say I have 4 imagedivs (imgdiv1, imgdiv2, imgdiv3, imgdiv4) and 4 contentdivs (condiv1 condiv2 condiv3, condiv4)and 1 main content div (maincon)
all contentdivs (except the main content div) need to stay "hidden" or invisible. Each con will show up with a fadein effect when I do a mouseover on an imagediv. All contentdivs are in th...
Hi,
I have the following code. I need help fixing it such that the "Category" checkbox for each category should be checked only if all the items under that are checked.
Thanks
<html>
<head>
<script src="http://www.google.com/jsapi"></script>
<script>
google.load("jquery", "1.3.2");
google.load("jqueryui", "1.7.2");
</script...
This is a really great function written in jQuery to determine the value of a url field:
$.urlParam = function(name){
var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href);
return results[1] || 0;
}
// example.com?someparam=name&otherparam=8&id=6
$.urlParam('someparam'); // name
$.urlParam('id'...
I'm using CKeditor and the jQuery validation plugin from basistance. My textarea (with the CKEditor on it) is being validated by jQuery, but that only works after the second click on my submit button.
In short:
the first time I submit the form when data is entered in the CKEditor, it says "field is empty". The second time it says it's o...
Possible Duplicate:
What is the difference between .empty().append() and .html() in jQuery?
Using jQuery, is there a difference in performance between:
$('#somDiv').empty().append('text To Insert')
and
$('#somDiv').html('text To Insert')
?
Also, does one method parse the input as a DOM object before the insert vs simply ...
Hey there,
I already know the jQuery plugin ScrollTo, but I didn't find any way up to now to realize the following:
The users gets to my site (by typing, NOT by clicking a link on my page) domain.com/bla.php#foo
and the anchor "#foo" exists. Now I want that the browser of the user does NOT automatically scroll to "#foo", instead I wan...