I have a ticket management program that I am trying to add 'accordian' style functionality to using jQuery. This program is written in PHP. The output HTML looks like this:
<div class="eachticketwrapper">
<div class="simpleticketview">
<ul class="displayinline ticketsummarybar">
<li class="col0"><a hr...
I'm using JQuery to make AJAX callbacks to asp.net page methods. All works well. However, when I click a hyperlink to go to a new page while a long running callback is in progress, target page doesn't respond normally. Seems like it's waiting for a callback to finish because target page responds in same amount of time it takes for a c...
Hi guys!
I'd like to store my json response in a global variable so, i could use it through my app without making a getJSON request more than once.
var data;
$.getJSON("panorama.json",function(json){
data = json.images[0].src;
console.log(data);
});
console.log(data);
If I log it in the actual request its fine, but i get "undefi...
Code sample:
<table>
<tr>
<td>
<input type="radio" name="SomeName" value="3" checked>
My String $10.00
</td>
</tr>
</table>
How do I select 'My String $10.00' to hide it from the client?
$('???').next().hide();
Edit:
The HTML above is auto generated..I have no control over it....
...
Hello,
I have two DIVs, first one has a link in it that contains the id of the second DIV in its HREF attribute (complete setup on jsbin).
I want to animate the second DIV when user clicks on the first - anywhere on the first. I also want to use event delegation because I'll have many such "DIV couples" on a page (and I'm using a JS s...
Is there a function, or plugin, that tells me if more than 50% of a <div> block is currently being displayed?
I know there are things like $.offset() but I didn't want to do it by hand every time the user resizes it's window or scroll to a region.
Something on the lines of :visible, but that is currently visible.
Thanks!
...
I am creating form fields dynamically.
If I use
<script>
$().ready(function() {
$("input[name=salesPrice1]").blur(function() {
var nameID = $("input[name=salesPrice1]").val();
alert(nameID);
//var newName = $("input#newName").val();
$.ajax({
type: "POST",
url: ...
Is it possible to select the children of a sibling of the current context in jQuery using a single expression similar to this?
$('~ div > span', this)
Unfortunately this does not work for me so I don't believe jQuery supports this type of chaining in an expression. I was however able to get the following to methods to work:
$('> span'...
i want to make a draggable image in jquery.
first of all my experience with jquery is 0. having said that let me describe what i want to achieve. i have fixed width/height div. and the image contained inside the div is large in size. so i want the image to be draggable inside that div so that the user can see the entire image.
can some...
I have a SoapExtension that is intended to log all SOAP requests and responses. It works just fine for calls from an application using the MS Soap Toolkit (OnBase Workflow). But it doesn't work for calls made by $.ajax() on an html page. Here's an example:
$.ajax({
type: "POST",
url: url,
data: data,
contentType: "app...
Hello all,
I am using IE 8, have got a web page with 2 jquery extensions (one is a menu, the other one is a fency textbox). When I run each of the extensions alone they work fine, when I run them together I get the following js error:
Error: Object doesn't support this property or method
I am registring the handlers in the following w...
Hi,
In order to choose categories, I want to use dropdown lists. Each list contains one level of categories. So it's: top level, sub, subsub, subsubsub etc. Every level is dynamically retrieved thru a script 'getcat.php'. It shows a object.
The retrieval so far works with the code underneath. However, Since it's form, i want to get th...
Is it possible at all?
Thanks!
...
I'm currently using the following code to append a X link to each element on rollover.
$(".item").hover(function() {
var id = $(this).attr("id");
var roll = $('<a class="close" href="#">X</a>').hide();
roll.prependTo($(this)).fadeIn(0);
}, function() {
$(this).find("a:first").fadeOut(0, function() {
$(this).remov...
I have a page which needs to pull content from a database and potentially other sources.
This is how I've structured my ruby on rails application.
/Index - this has three different sections which needs to load in three different types of content. Each one will take different amount of time to return, as such I want to display a loading...
I have put together an example page detailing my problem
My website is going to have a main wrapper that is set to a max-width property for compatible browsers. It will stretch to 940px across at max. When scaled down I would like the swf to scale proportionately with it. Like an image with width percent applied. The flash movie has the...
I wanted to learn about jquery plugins, so I decided to try to make a simple rounded corner box. I know there are already some rounded corner plugins out there, but this is more of a learning exercise for me than a job requirement.
The rounded corners I took from here. I like this sample since it doesn't use images, it will be easy to ...
I'm working on creating a for-loop that calls a javascript effect and applies it to an LI, doing it in sequence. Here's what I've got:
$(document).ready(function () {
for(i=1;i<=10;i++) {
$("li#"+i).show();
}
});
However, this doesn't work. I need it to apply the effect to LI#1 then LI#2, LI#3... and so on.
What I'm tryi...
I have a form with a stage that has a dynamic number of groups of fields, where the number is based upon answers in the previous stage.
I'm generating the fields server-side as an array, i.e.
<input id="foo[0]"...
<input id="bar[0]"...
<input id="foo[1]"...
<input id="bar[1]"...
<input id="foo[2]"...
<input id="bar[2]"... etc
No ma...
Hi Techies,
I have the following script which will change the background image of a text box on focus and retain the previous image ob blur, if the content is emapty.The images are something like watermarks.This is making use of prototype javascript library.
<div class="searchfield">
<asp:TextBox ID="txtStoreId" runat...