I have this gallery that uses that ipad / iphone swipe from http://www.simplesli.de but on the iphone and ipad he swipe is a little hard to activate and it doesn't starting moving when I swipe like it has no feedback when my finger is moving across. Doesn't anybody know if there is any way to fix that with what I have implemented.
Here...
Hello everyone.
First of all a little background of my problem, i'm trying to identify how the user is navigating through the site, and i got a script (from an stackoverflow user, thanks a lot) called autoLogoff.js, it works very well until the point i'm trying to submit a form using javascript. Here's the autoLogoff code (with some mod...
The following source is created dynamically.
I'd like to add
<br />
after Artikler, to become
Artikler<br />.
Source
<div id="shopping">
<p><!--TEXT:--> <A HREF="cart-8.asp" CLASS="longsum">7 Artikler, verdi: 10 199,00</A></p>
</div>
I think I need to use
.after('<br />');
but I am not sure how...
Hi guys,
I have a scenario where I would like to select rows from a table depending upon the values in td
e.g. I have a table like this
<tr>
<td>John</td>
<td>Smith</td>
<td>Male</td>
</tr>
<tr>
<td>Andy</td>
<td>Gates</td>
<td>Male</td>
</tr>
<tr>
<td>Alice</td>
<td>Nixon</td>
<td>Female</td>
</tr>
now I ...
I'm using the jQuery Tooltip control, http://docs.jquery.com/Plugins/Tooltip and it works really well. However, I have a task to show the tooltip when someone types 2 characters into an autocomplete control. I have it all hooked up to do it, but I do not know how to explicitly show the jQuery tooltip plugin.
MyCompany.UI.Controls.AutoCo...
I threw my portfolio together a few months ago and now I am trying to go back and clean up the code so that it is easier to add new items etc..
My main problem is that I am using the Alen Grakalic's Easy Slider Jquery plugin to simulate a browser window and everytime I want to add a new portfolio item, I have to add a new block of code...
Here is my jQuery code:
function onSaveClicked()
{
var message =
{
MessageID: $("#MessageID").val() || 0,
MessageDate: "\/Date(<%= DateTime.Now.Ticks %>)\/",
};
$.ajax({
url: "<%= Url.Action("SaveMessage") %>",
type: "POST",
dataType: "json",
data: $.toJSON(message),
...
Hi. Please consider the following HTML:
<input type='text' id='name'/>
<option id='option'>
<select value='1'>hi</select>
<select value='2'>bye</select>
</option>
<input type='text' id='date'/>
This is a very simple form used to get search criteria from a user. I need to submit this search criteria to the server with an AJAX call...
I'm trying to do a simple integer numeric input mask without having to include an entire plugin like Digital Bush's masked input.
Here's the code I've "repurposed" from another stackoverflow question:
$('input[name=Qty]').keyup(function() {
var theEvent = evt || window.event;
var key = theEvent.keyCode || theEvent.which;
ke...
I'm looking to add a nicer effect to a jQuery Content slider which uses tabs.
At the moment it uses 'opacity' which is really ugly.
Here is my code;
$('#featured').tabs({
fx:{
opacity: "toggle"
}
}).tabs('rotate', 5000, true);
Check out ht...
i have multiple divs with the same class on my page. I want to be able to toggle them individually. Using this script:
$(document).ready(function() {
$('.file').hide();
$('a.toggle').click(function() {
$('.file').slideToggle(1000);
$(this).text($(this).text() == 'show' ? 'hide' : 'show');
return false;
});
...
Started playing around with jQuery and the jsTree plugin yesterday, and have it successfully loading the tree with an AJAX call to a servlet. Now, I would like to have the tree open all the nodes after loading so I added a success function to the ajax attribute. However, I cannot seem to get the open_all() method to work properly. I'm...
I've been coding with jQuery for about 2 years now but I've never done it in a plugin. I'm trying to change this. I found a few websites that explain how to create a plugin and I understand the basics.
The part that I don't understand is the use of the this keyword. Here's a simple plugin example:
(function($){
$.fn.myPlugin = functi...
I'm using some code I found to highlight an id after clicking an anchor link.
I'd like to modify this to instead highlight the next <dd> tag in a definition list:
<dl class="mainfaq">
<dt id="q1">Q1</dt>
<dd><p>A1</p></dd>
<dt id="q2">Q2</dt>
<dd><p>A2</p></dd>
<dt id="q3">Q3</dt>
<dd><p>A3<...
I am using jquery and css to fade the background color and opacity of a menu item. However, I want to have the background color be the actual css background color:
For example:
css background color: #eabf60
real color after .70 opacity: #ECCD85
i suppose this also depends largely in part on the background behind the opaque element.....
I have a website built across a series of pages and scripts, and I'm trying to link them together using Ajax. I was told the easiest way to send back to the server was using jQuery, so I'm trying that out but I can't seem to get it to work. My three files are as follows, with the methods in question being the lines containing onclick() a...
I am writing a jQuery plugin and need functions that can be called from inside as well as outside the plugin. Here is my code so far:
(function($){
$.fn.bxSlider = function(options){
var defaults = {
mode : 'horizontal',
speed : 500
}
var options = $.extend(defaults, options);
var base = this;
this.each(function(){ ...
hallo
Thank you for your answers.
I tried 2 codes but it does not work.i have a JSON object look like this
[{"name":"aaa","0":"aaa","city":"paris","1":"paris","school":"gtdzh","2":"gtdzh"},
{"name":"bbb","0":"bbb","city":"berlin","1":"berlin","school":"gdezh","2":"gdezh"},
{"name":"ccc","0":"ccc","city":"new york","1":"new york","scho...
The aim is to show a form which will update the div on the page with the result
load this [page]
click the linkto show the form
submit the form
When submitting, the result does not show in the div if the form had been hidden.
after adding the code suggested in the below answers, I show the form, it gets submitted, but the data is n...
Hi,
I use the $.post function to submit an ajax request as such:
$('.typeAform').submit(function(){
$.post('/home', { somevar : 'somevalue' }, function(){
//do something with the original form
});
return false;
});
I'd like to identify my form after submission from the $.post callback so I can do something with it...