I posted another question on a very similar topic, but turned out to be a little subjective. I am able to divided the question in two questions, one that I will explain below:
In the following Code:
<script type="text/javascript">
$(function()
{
$("#accordion").accordion();
$("#datepicker").datepicker();
$("#button").click(f...
Is it possible to use a jQuery selector on an HTML string? I'm trying to get the html contents of the div, foo.
var code = "<div id='foo'>1</div><div id='bar'>2</div>";
alert( $(code).html( ) ); // returns 1 (not sure how...)
How can I get the html contents of foo and of bar in two different statements?
...
I asked at http://stackoverflow.com/questions/1529333/parsing-html-string-with-jquery how I can use jQuery on an html string. That all works, but when I apply it to ajax - it does not work. Here is the code.
<script>
var url = 'moo.html';
$.ajax({
url: url,
success: function ( code )
{
html = $(code);
html.e...
hi,
i am using latest version of jquery autocompletion plugin.
and have populated an array(input for autocomplete) abt 800 entries.
now strangely when i type a letter which triggers large results(causing a scroll bar), i can see a scrollbar in mozilla but not in Internet explorer.
i have only included
jquery.autocomplete.css
...
Is there any ListView widget plugin for jQuery? With resizable columns, sorting helpers, odd-even rows styles etc. Something like ListView class from Ext library but for jQuery (NOT table/grid).
UPDATED Have switched to ExtJS so question is not topical anymore.
...
hi,
I have below function for my Jquery Datepicker.
$(document).ready(function()
{
$(".txtDate").datepicker({
showOn: 'button',
buttonImage: '../images1/calendar.gif',
buttonImageOnly: true,
dateFormat: 'dd/mm/yy',
showOtherMonths: true,
showStatus: true,
onSelect:function(){}
});
...
i want to know if the response is the json or xml, how can i find that out using jquery?
my current code is following, but its giving error, if response is json.
var is_xml = ($('status_code', XMLHttpRequest.responseText)) ? true : false;
error is:
Selector expected.
Expected ',' or '{' but found '"}}"'.
...
Hi there,
I have some JQuery that uses Ajax to send information back to my controler to be processed
I am doing it like this:
//Define my controls
<%=Html.TextBox("PName", Model.PName, new { id = "pName" })%> ...
....
....
//Get the values from my controls
var param1= $("#pName").val();
....
....
//Define the return URL. Is thi...
Hi,
I have a form that's checked by jquery validate. The field that's causing some issue looks like this:
<label>Select an Account Type<</label><br>
<input type="radio" name="accountType" value="1" id="accountType_C"><label id="accountType_C" for="accountType_C">Coder</label>
<input type="radio" name="accountType" value="0" id="accou...
I have been looking for a Jquery UI slider pluging that supports mutiple ranged handles. The existing Jquery UI slider only supports one range set of values. I am looking for a slider that you can have muliple ranges. So a range with an inner range or two ranges that don't overlap.
Example:
R = handle
XX = Slider bar
= or - = Range b...
I have a very simple requirement. I have two div. Div1 with a Link and Div2 contains some text.
On the click of the link in Div1, I want to display Div2 as a simple modal popup with a grey background and a close button.
Now is it possible to do so without using any external plugins.
If not, then i checked a plugin on jqueryui. Howev...
I trying to create a navigation for my photogallery using hash values
When I click on the "Next" link, I get value of the hash and then post it to the another backend php script using jquery .get api and also set the new hash value for that link. Everything works fine but the hash doesn't update itself with every click. It usually takes...
Lately I've been spending some time reading about jQuery optimization tips which has certainly helped increase the performance of my scripts.
However, I've got this featured news section on my site, which on mouse hover slides more information into place, and this section doesn't perform very well in any browser except Safari (and proba...
Users in my site are seeing a half-second glitch on each page before any jQuery code executes. This code manipulates the page so you can visibly see elements move in one big chunk, making the user experience feel clunky. I'd prefer the page not to display at all until the JavaScript has run.
I'm using jQuery provided by the Google API i...
Hi,
I have an application which captures data from the user (amount, description, paid by). I'm looking for a jquery plugin that can be used to capture multiple records at once instead of one-by-one.
Any suggestions?
thank you,
Joseph
...
I am trying to create a custom slider with two handles using jQuery UI. The problem is that the right handle is moving out of the container.
I know the problem, the reason being the fact that the handles are positioned using the left CSS property and since the width of the handles is more than one pixel, the right handle moves out of th...
What would be the best approach to this?
Because, as I found (and it made total sense, only after having tried it :p) that you can't set a PHP variable on javascripts conditions. (duurrhh)
The only solution I can come up with is to do an AJAX call to a small PHP file that handles the session variables
elm.click(function() {
$.post(...
On the click of a table row, I am performing some action.
However I want a filter to be applied. If my tr contains another tr or a table inside it, the click should not be valid for that row
$("#tbl1 tr").filter(function() {
//??
}).click(function(){
//alert
});
What do i write in the filter?
UPDATE: Never mind. I applied ...
I'd like to change the Default altFormat, but I can't seem to get it to work.
$("#myFav").datepicker({ dateFormat: 'yy-mm-dd' });
$("#myFav").datepicker('option', 'dateFormat', 'yy-mm-dd');
I thought altFormat would work just the same?
...
hi there, i have this files:
JAVASCRIPT
$(document).ready(function(){
$('a').click(function(){
$('div').load("formular.html",function(){
$('input[type="submit"]').click(function(){
$('form').submit();
});
});
});
});
formular.html
<form action="gigi.php" name='formular...