I have to modify a project written by someone else. Because the code is a mess i can't really change this $.post() (or replace it by $.ajax()). What i need to do, is to know if the post returns something else then json and return it.
$.post('balbal.html', json, function(data) { ... my coude ... }, 'json')
I can see the post response i...
Hi,
I am completely new in jQuery UI's CSS styles so please bear with me.
I have to make a list of contact people.
<div id="accordion">
<h3><a href="#">George Foo</a></h3>
<div>
some information
</div>
<h3><a href="#">Michelle Bar</a></h3>
<div>
some information
</div>
<h3><a href="#">Bill ...
Hello,
This question refers to the question http://stackoverflow.com/questions/835259/jquery-show-hide-fields-depening-on-select-value
<select id="viewSelector">
<option value="0">-- Select a View --</option>
<option value="view1">view1</option>
<option value="view2">view2</option>
<option value="view3">view3</option...
Hi,
It seems a straightforward thing but I'm not having much success. I'm just implementing a simple animation moving a div left or up using animate() but I would like to be able to set the "top" and "left" css properties dynamically. I would like to use the same function rather than have to have two, one for "left" and one for "top".
...
Hi there,
I've been looking at ways to make a table have a fixed header especially in IE8. I noticed that most jquery plugins can achieve this but in doing so they split the table into two sections usually 2 separate divs one containing the thead stuff and the other tbody
This works fantastic but how would I go about adding sorting to ...
I'm using jQuery to add icons to specific links, e.g. a myspace icon for sites starting with http://myspace.com etc.
However, I can't figure out how to use regular expressions (if that's even possible here), to make jQuery recognize the link either with or without "www." (I'm very bad at regular expressions in general).
Here are two e...
Hi all,
I'm writing an AJAX function that returns some information to display in a <div>. My code looks like this:
HTML:
<div id="basket_summary">Your basket's empty. Why not add some items to get started?</div>
jQuery (relevant part of ajax call):
success: function(products){
$('#basket').html(products.basket);
$('#basket_s...
Hi everyone, this is just a quick probe to see if this is technically possible.
I'm wanting to enable the resizing of an image in the browser (also within a contentEditable area). Firefox and IE already allow this to be done with their inbuilt handles and it works fine. I'm wanting to implement something for Safari however because it do...
Hi, I'm using the jquery cluetip plugin and trying to figure out how to remove any open cluetip dialogs once i load new content via ajax. I am either stuck with the dialog boxes still showing on top of new content, or the ways i've tried to fix this actually remove all future cluetip dialogs from showing at all.
Here's my code, thanks ...
Hi,
I have the following code:
<ul>
<li id="project_25">Proj Something</li>
<li id="project_26">Proj Blah</li>
<li id="project_27">Proj Else</li>
<li id="project_31">Proj More</li>
...
</ul>
Is there a way to arrange these LIs, reverse their order, based on the LI ID?
Something like:
<ul>
<li id="project_31">Proj More</li>
<li id="p...
Is there any documentation available that explains the internals of JQuery and JQuery UI?
I have been looking through the source code, and while much of it makes sense, I was still hoping for an overview/walkthrough of the source code to help speed up my learning process.
I'm not looking for general documentation of how to use JQue...
I have a load of LIs inside an UL, and each one has a unique ID.
Given two IDs, what's the best way to select the two corresponding LIs, and all the LIs in between?
Thanks!
...
Hi Guys
var arr = new Array();
arr[0] = 'Departmental News'
arr[1] = 'Departmental News'
arr[2] = 'Another Cat'
arr[3] = 'Another Cat'
arr[4] = 'Departmental News'
alert(arr)
alert($.unique(arr))
In IE I get duplicates.
In any other brows...
Hi people,
I'm trying to make a menu that can collapse:
If you click on a button div the menu shows and stays even if you hover the button div.
If you click again on the button div the menu hides.
When the menu is hiding onmouseenter or mouseover it shows onmouseleave or mouseout
it's hiding.
I can't make this happen, this is my co...
facebox form works well... but if I add datepicker nothing appear...
for example facebox open a page called form.php ...in this page if I click on a input field, datepicker doesn't appear. if i open form.php directly into the browser (without passing for the page with the link for facebox), datepicker WORKS!!!
what's the problem?
...
Hi, I have a asp.net button which has click event which basically adds data into datbase. I also have a radiobuttonlist(i.e Approve / Decline) and a textbox. If user selects decline, the textbox becomes visible. I want to run validation that when user clicks on submit button, if the decline is selected then the textbox can not blank. I ...
Hi,
I am trying to work out a complicated jQuery selection. I have an array, and I need to select div.foo that contains a link a.bar and the link's href contains any of the strings in the array.
For example:
<html>
<div class=foo>
some text
<a class=bar href=example.com?q=widget&id=23456789>search</a>
</div>
</html>
and jScrip...
Hi Guys,
I am using JQuery's nth-child selector to alter the margin on every 3rd div with a class of photo_post_thumbnail, but it alters it every 2nd div?
Can anyone spot what I am doing wrong?
Site
http://www.clients.eirestudio.net/hatstand/wordpress/photos/
HTML markup
<div class="postbox photo_post_thumbna...
I want to allow user to drag and drop UI elements. I've 'container' and 'control', control may be in container, containers may include other containers (this is important requirement). I created simple prototype using jQuery.
HTML:
<div class="one">
<div class="control">Control 1</div>
<div class="control">Control 2</div>
<div class="c...
This works:
$("[id$='_zzz']").rules(
"add",
{
required: true,
minlength: 8,
messages: {
required: "...",
minlength: jQuery.format("...")
}
}
);
The error message comes up.
When I try to style the message, this doesn't work:
$("[id$='_zzz']").rules(
"...