Hi
I am using the UI DatePicker from jQuery UI as the stand alone picker.. i have this code
<div id="datepicker"></div>
And the follow JS
$('#datepicker').datepicker();
When i try to return the value with this code:
var date = $('#datepicker').datepicker('getDate');
I am returned this...
Tue Aug 25 2009 00:00:00 GMT+0100 (BST)...
I would like to know if is there some jquery known behaviour that cause the lost of events handlers (in particular in iframes)?
I've a strange kind of problem.
I've built a webapp composed of two iframe.
First i load content in the first iframe. I add some event event handler using jquery to first iframe content dom.
Everything works....
Hi,
I am using JQuery where i am trying to use the Cakephp Controller returned values in the JQuery input element..
I have two variables returned from my CakePHP controller action
$entries and $attributes..
$attributes will return the Fieldname and its type,size
$entries will return the Fieldname and the value submitted for the Fiel...
Hello!
I have a little problem..but im goin' to crazy...
In the html i have this code:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://macromedia.com/cabs/swflash.cab#version=6,0,0,0"
ID=flaMovie WIDTH=554.6 HEIGHT=57.3>
<PARAM NAME=movie VALUE="main_menu.swf">
<PARAM NAME=FlashVars VALUE="nye...
I need jqeury tabs that will also work with a URL
Example I have a profile page url.com/profile.php?u=1 on this profile page I have some tabs, friends, comments, about, and these tabs load the appropriate page into them using jquery and ajax.
Now I would like to make it where I could also go to a special URL and it will load the ap...
I have a tool palette which shows up when an admin user is logged in to a site. The palette is draggable (via jQueryUI.draggable) and I would like it to remember the position between pages/refreshes... Is there a standard way of doing this, or a plug-in I should be using, or do I need to roll my own (via cookies or something)?
...
I have a problem with this jQuery code:
$(document).ready(
function(){
alert($('#search').val());
var dummyInput = $('#search').clone()
.attr('id', 'search_watermark')
.val('Search query')
$('#search').before(dummyInput);
}
);
$(window).unload(function(){
$('#search_watermark').remove();
});
and the H...
Advanced title, simple question:
How to do the following in jQuery:
$("table tr").click(function() {
$("table tr:not(" + $(this) + ")").hide();
// $(this) is only to illustrate my problem
$("table tr").show();
});
Thanks in advance!
...
I'm trying to obtain a specific li element from a unordered list.
I'm doing it this way:
var listItem = $('ul.selectedItems').filter(list[i].ID);
Any idea of why this isn't working?
...
I am looking for a nice quick live search/filter.
Anybody use this? http://rikrikrik.com/jquery/quicksearch/#usage
Also how do you combine it with pagination or ajax for large amounts of data?
Code:
HTML:
<form method="get" autocomplete="off" action="">
<input type="text" value="" name="q" id="q"><br><br>
</form>
<ul id="posts">
<li>...
Put all contents on another web page into a fixed size div.
How to achieve this?
...
Fellow JQuery hackers, hello :-)
Suppose you have the following code:
$('.links').click(function(){
//Do something
}
And I then insert dynamic content into a DIV's HTML content (Say, for example, after clicking a button, the new content gets inserted). This content has the "links" class. The problem is that the "click" button doe...
Hello,
I've been searching to the answer for a while, I want to be able to parametrise my plugins AJAX values. So e.g. rather than:
$.post('test.aspx', { name: 'bob' }, function(data){
....
});
I want to parametrise name and the value used in the post so e.g.
var var1 = 'name';
var var2 = 'bob';
$.post('test.aspx', { var1: var2 }, f...
how do you launch a jquery dialog when you click on a link
this doesn't seem to work
<script type="text/javascript">
$(document).ready(function() {
$("a.To").click(function(e) {
e.preventDefault();
$("#dialog").dialog({height:300});
});
in the body:
<a href="#" id="To">To</a>
...
I am designing a web page. In that when we click the content of div named mail, a popup window should be shown containing a label email and text box. I searched in google as simple popup in Jquery but the code is weird. Please help me by providing very simple jquery pop up.
...
Hi,
I'm trying to use the following plugin for date picking:
http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/index.html
And I'm trying to use the code from the first demo but I get an error that jQuery is not defined (last line of the plugin, where the function is closed).
I haven't used jQuery before so I'm hoping this is...
Hi guys,
I've wrote some code that will check two dates - they are split into two day inputs (#enddate-1-dd, #date-1-dd), two month inputs (#enddate-1-mm, #date-1-mm) and two year inputs (#enddate-1, #date-1)
I wanted to check first of all that they're all actually numbers, but then I wanted to check each one to make sure it's in a dat...
I am attempting to get the index of the current item in a JCarousel so that I can display the current position within the Carousel to the user. For example, 'Photo 5 of 6'.
How can I do this?
EDIT:
Sample of the end product:
...
I am currently trying to use Jquery to change the href attribute of a link within a DIV so that the URL is changed from file.html to file.jpg...
<div class="gallery">
<a href="file.html">My File</a>
and I want to change it to
<div class="gallery">
<a href="file.jpg">My File</a>
I have seen the post about changing the href attribute...
Hello.
In our application we're using jdMenu plugin to create a hierarchical menu from nested unordered lists.
This works well until there are so many items in a menu that it is forced off the screen.
In an attempt to fix this I've updated the plugin (actually the positionBy plugin that is a requirement of jdMenu) so that when a l...