I've just managed to extend jquery to include the history functionality via $.fn.extend. This is to allow for the history functionality in JQuery Tabs.
The question I now have is how can I extend jquery tabs directly? At the moment my code is as follows
var metab = $('#inv_content').tabs();
$('#inv_content > ul').find('a').history(meta...
Is it possible to tell jqGrid to send all search options in JSON format ? Hence I won't have to reformat it on the backend side.
...
Hi,
I am currently developing a site for a client which uses the JQuery cycle plugin to move through a number of divs which contain pictures and info about wedding dresses.
All works fine in Firefox, but when I test in IE6 + IE7 the divs are all stacked on top of each other vertically and they soan right down the screen for 1000's of p...
Like asked here I got the problem, that I cannot read the value of an input type="text" field after writing something into it.
The event is fired correctly, and with other inputs outside the fancybox it works great.
...
i have 1 draggable div and 2 droppable divs. those 2 droppable divs also are draggable. so there might be a chance those 2 divs are overlapped. in that sitchuation when i drag the draggable div and drop to the overlapped divs. is there anyway to make sure it drop on the top one?
...
Hi have a JQuery modal popup that I load HTML into. I have the following code in my scrpt file:
//date code - move to reusable.
$('.dateDavy').datepicker({
showOn: 'button',
buttonImage: '/Content/images/Control_MonthCalendar.bmp',
buttonText: 'Enter Date',
buttonImageOnly: true,
dateFormat...
Hi there,
I'm using the jQuery Autocomplete plugin from http://docs.jquery.com/Plugins/Autocomplete on IE7 and it's not releasing the autocomplete when I click outside the Autocomplete input field and results.
It looks like this is a formatting bug...maybe IE7 thinks the entire form is the autocomplete section. If I click on another "f...
Hi guy,
I got a markup looking like this :
<body>
<...
a lot of tags from the web site
...>
<script type="text/javascript" src="http://cdn.jquerytools.org/1.1.1/jquery.tools.min.js"></script>
<script type="text/javascript" src="my_script.js"></script>
<body>
I want it to end up that way :
<body>
<div...
Hello,
There is a plenty of very good post and explanations how to implement validation with ASP.NET MVC, and I prefer one of these:
xVal
Validation with Service layer
Data Annotation attributes
However, I really like to call ActionMethods via jquery $.ajax method. One of the reasons why I want to use $.ajax is because there will be...
Hi,
I have the following DOM structure (unordered list), that I would like to sort on the a href tag name using jQuery.
Structure is as follows:
<div id="refmenu">
<ul id="list">
<li><a href="....">Google</a></li>
<li><a href="....">Apple</a></li>
<li><a href="....">IBM</a></li>
<li><a href="....">Yahoo!</a></li>
<li><a href="....">Ho...
Let's consider following html code:
<p>
Some text followed by <span>a span element</span>
and another text followed by <b>a bold text</b>.
</p>
How can I get the text before the span and b elements using jQuery?
I tried $("span").prev() and $("b").prev() but it did work because the text is not an element. I also tried $("span").p...
I started to learn jQuery. I wrote a code, that will cycle the position of an given element by calling functions stored in an array. This works fine for this code:
<script type="text/javascript">
$(document).ready(function(){
$('#right_column').css({zIndex:1000, position: 'absolute', right: 0, top:200 });
$('body').css({overflo...
I have this code:
$('a[rel="imagesHandler"]').hover(
function(){
//ia latimea
var liWidth = $(this).width();
$(this).append('<div id="editBar"><a id="delPic" href="#"><img id ="piDe"src="./images/pic_del_icon.png" alt="" /></a></div>');
$('div#editBar')
.css({ 'width':liWidth - 3,
...
REVISED CODE AT THE END
I'm very new to jquery, and even though I love it, there's a lot I still need to learn... The code below will append a new row if the user clicks in the one of the existing cells in a row. That part works fine. I'm trying to figure out how to also have a [-] button at the end of each row that a user can click o...
I am using asp.net mvc to list the events in the jquery full calendar. Below is the script i am using to list the events through json from mvc.
$('#calendar').fullCalendar({
theme: true,
editable: true,
disableDragging: true,
disableResizing: true,
header: {
left: 'prev,next today',
center: 'title',
right: 'month,bas...
I am using jFlow pluggin to show horizontal content slider. It works fine in IE 6,firefox,safari. But when trying to run in IE 7.0 , when showig the second slide (div).in the left hand side of container ,it is showing some right most part of the first slide. and it goes like that so on. So after five six slides,the container shows half ...
I have a table of data which is generated dynamically with Javascript. Every few minutes the page refreshes the data by firing off an Ajax request, getting the data back from the server, and replacing the data in the table. This is pretty standard, and the table ends up looking like this:
This works just fine if I generate the data ...
Seems to me the most important yet tricky thing to get right when writing jQuery is the selector.
What tips do you have for writing an accurate selector?
...
$(document).ready(function() {
// #login-box password field
$('#password').attr('type', 'text');
$('#password').val('Password');
});
This is supposed to change the #password input field (with id="password") which is of type password to a normal text field and fill in the text "Password".
It doesn't work though. Why?
Here ...
I'm quite fresh on jQuery, and I've just implemented jQuery + jQuery UI, but on the datepicker widget it seems like the classes added on the inputs from before are removed, and datepicker classes are added insteady.
How can I keep my classes as well?
...