hello all
i´m doing an ajax request using jQuery and asp.net on this way:
$.ajaxSetup({
type: "POST",
contentType: "application/json; charset=utf-8",
dataType: "json"
});
$.ajax({
url: "/WebServices/CompareDates",
data: "{allClients: '" + allClients + "'}",
success: function(msg) {
...
A part of my web app involves creating 'appointments' (shifts) using a drag-and-drop selector for each day. Currently, this data is serialized to something like this:
9,10,11,12,13,14,15,16,76,77,78,298,299,300,301,302,303,304,
Where each number represents the nth half-hour of the week (so 304 is the 300th half-hour of the week, or 8a...
$('.table tbody td:eq(3)').addClass('col4');
..works, but only selects the first cell, not all cells in the column.
...
I'd like to create an product image viewer for an iPhone version of an ecommerce site, and have it behave something like the Photos app.
Ideally, you would be able to slide images to move back and forth in the product image gallery.
This will all be done in mobile Safari.
I did a little experimenting with jqTouch, but its doesn't loo...
Is there a way to loop over the "history" object in javascript to find a specific page in the history?
...
<a rel="abc" href="#mydiv">link</a>
<div id="mydiv">content</div>
If rel="abc", find element with ID that matches href value and hide it.
My try:
$('[rel*=abc]').attr("href").hide();
Thanks for your help!
...
I am working on a "mega" drop down menu. However I need a small twist to it which is proving to be a task.
To be considered correct it should look like the following and Each tab dropdown needs to be displayed at the same location because they will each contain similar info. The left side of the dropdown should start at the left side of...
http://lab.arc90.com/experiments/readability/ is a very handy tool for viewing cluttered newspaper, journal and blog pages in a very readable manner. It does this by using some heuristcis and finding the relevant main text of a web page. Its source code is also available at http://lab.arc90.com/experiments/readability/js/readability.js
...
I'm trying to extract values from xml using jQuery in a cross-browser compatible fashion. I'm not having any issues doing this in firefox, but unfortunately this also has to be IE compatible.
My jQuery code looks like this:
$(document).ready(function()) {
$.get("file.xml", {}, function(parseRefreshTime){
alert('This line is execu...
I am building an AJAX page that when the user clicks a box, it sends an ajax request and returns a result. This is a very simple game. The users repeatedly click the box, and I need to record how much time has elapsed between each click with a precision of milliseconds. So with my request actually, I will be sending the elapsed time s...
I have found great jQuery wizard here Jerod Santo blog which suits my need. I added TextBox on first step to test it.
When I added some value in textbox, clicked next and then back
I lost the value.
Here is my demo and here is source code Is there a way to preserve this values on client side without going on server with ajax calls. ...
Please, I need help.
I am new to jQuery and I have link which on click should open a modal window of some sort (I want to be able to controll the position of it).
This is a simple window. It only contains some text and I want it to have just a closing button. That is all.
How can I do this in jQuery? I want something very simple, wit...
on the onClick event of a button, I'm trying to expose a form (login form) using the Jquery tools Expose (http://flowplayer.org/tools/expose.html) but it doesn't seem to be working ..
// execute your scripts when the DOM is ready. this is a good habit
$(function() {
var api1 = $("#login-area").expose({api:true, lazy:true, colo...
Is there any way to modify a jQuery UI range slider so that you can grab the bar between the handles to slide the selected range? If you try to grab the bar, it jumps to one of the handles.
This page has an example of the sort of behavior I'm looking for - it's at the bottom.
...
Please,
I want to simulate dropdown select, but there will be just links, no form.
Trouble is how to have selected, and visible category or subcategory link where You are currently?
<ul><li>Category
<ul>
<li>Subcategory1</li>
<li>Subcategory2</li>
</ul>
</li></ul>
So, when you are on the Category, visible will be nam...
Hi. I'm stuck on something. I have a form that has fields which only show when a particular radio button is checked. This is easy enough to when someone is filling out the form for the first time using the following code.
HTML
<fieldset id="question">
<legend>This is my question</legend>
<label for="answerYes">Yes</label>
<input ...
Is it possible to select the last 5 child divs of an element?
...
I'm using jquery.validate plugin and facing the following situation:
<form id="myForm" ....>
<input type="text" id="value1"/>
<!-- Here is some code rendered from the partial -->
<script type="text/javascript">
$(document).ready(function() {
var validator = $('#myForm').validate({
rules: {
...
There are many ways the value of a <input type="text"> can change, including:
keypresses
copy/paste
modified with JavaScript
auto-completed by browser or a toolbar
I want my JavaScript function to be called (with the current input value) any time it changes. And I want it to be called right away, not just when the input loses focus....
I've got a checkout page on my online store, and one the fields is a for a Discount Coupon code, next to which is an 'update total' button. The next column shows the discount.
--------------- ——————————————
enter code:| | |update total| - $0.00
--------------- ——————————————
When the ...