I am loading a page into an iFrame in the dialog.
This is a help page with anchor tags. When I load the page using an anchor or even when using the anchor tags in the dialog the browser jumps up to the anchor, even if the dialog is centred.
See: http://immoshots.com/test/jquery.ui.dialog/default.html
Is there a workaround for this?
An...
Can I got some good example sites with source code of jQuery with ASP.NET webforms using ajax.Most examples I have come across are in php
...
Hi I'm trying to recreate the effect like on SO where you click a comment, and the page loads, and the given comments background fades out.
so far I have
var theHash = window.location.hash;
$(theHash).hover(function() {
$(this).stop().animate({ backgroundColor: "#a7bf51"}, 800);
},function() {
$(this).stop().animate...
I have a toolbar that manipulates a Google map. Some of the functions affect markers placed on the map. I have a reset button that clears the changes and returns the map to the original state.
I need to "disable" the reset button until the map is changed. So...
When an action is completed that manipulates the map, I bind the ResetMap(...
I have some sample code that looks like this:
var myDrawingArea = new DrawingArea(document.getElementById("drawing_canvas"));
function DrawingArea(aCanvas) {
this.brushSize = 2;
this.buildToolbar = (function () {
$("#brush-size")
.slider({
value: this.brushSize, // this is DrawingArea insta...
Hello,
So in colorbox photos can be grouped together to form a slideshow, I would like to be able to use divs as the content of the slideshow instead of images. Is that supported?
Javascript code:
<script>
$(document).ready(function () {
$("div.colorbox").colorbox({ width: "50%", inline: true,slideshow: true, href: funct...
I have 3 radio buttons on my page. They are loaded by calling a jQuery function which returns the html ex:
<script type="text/javascript"><!--
onSelectChange(4);
-->
which call this function:
function onSelectChange(parm){
$.post("func.php", {function_name : "song"},
function(data){
$("#list...
I am looking for a unit testing framework to use with javascript that integrates well with Rails 3.0
Anyone with experience with above frameworks can share their experience?
** UPDATE: JSpec is now discontinued as per their Github repository: http://github.com/visionmedia/jspec so this leaves Jasmine and QUnit
...
We're currently pulling jQuery and jQueryUI (and jQueryUI CSS) libraries from the google CDN. I like this because I can call google.load("jquery", "1");
and the latest jQuery 1.x.x will be used.
Now I am to pull the libraries locally because of security.
I'm happy to pull them locally but I'm wondering what are some of the other benef...
I am creating a set of dynamic divs
Let div id is div1 div2 div3 etc
in my function for getting div id am concatinating
var divid= 'div'+1
var divid= 'div'+2
etc.
if i call jquery slide down
$('#div1').slideDown('slow');
Its working ,but if i use
$('#divid').slideDown('slow');
Its not working . Why? divid is having ...
Is there a JQuery-compatible JavaScript/CSS UI toolkit for building complex rich web application UIs (like ExtJS is, for example)?
...
Hi,
I'm trying to implement a JQuery autocomplete widget based on a php service I have built. Right now, for testing, the service is extremely simple and only returns an array of three names. While debugging with firebug, I'm noticing my service is returning a code 200, but there is no response text that comes along with it. Obviously, ...
This is my plugin
(function($){
$.fn.editor = function(options){
var defaults = {},
settings = $.extend({},defaults, options);
this.each(function(){
function save(){
alert('voila');
}
});
}
})(jQuery);
I want to call function save from outside the plugin....
I'm working on a simple if/else statement to show a next or previous link, but somehow my checkup don't work. Here's the code
var newPosition = currPosition;
$(".imageNavLink").click(function(event){
event.preventDefault();
newPosition = (this.rel == "next") ? newPosition + 1 : newPosition - 1;
var newImageLink = this.title;
var cl...
So, I have a list of nodes in a dynamic XML that is cached on a server. Using Ajax, I loop through the particular nodes to return a string each time:
XML:
<?xml version="1.0"?>
<Products>
<Product>
<ItemName>String</ItemName>
</Product>
<Product>
<ItemName>String</ItemName>
</Product>
<Product>
...
I just can't work this one out. I have a table with a column of checkboxes. After an Ajax update, I want to update a specific cell in the rows with checked checkedboxes. The jQuery Ajax call I'm using is:
$.ajax({
type: 'POST',
url: 'ProcessDate',
data: params,
error: function(xhr, ajaxOptions, thrownE...
There's a gallery with a large image with thumbnails on the side. Click the thumbnail, the large image fades out, new one fades in (src getting called from the rel attribute of the link).
Problem: The old image fades out, re-appears, then jumps to the new image... I'm guessing the new image hasn't loaded yet, since it only happens the ...
Hey all
I am doing validation server side, If fails I am passing back json data with the errors.
I'm not worried about displaying the errors on page but happy with just a simple alert().
How can I display the errors nicely while using a $each function with jquery.
Here is some json data.
{"error":["The Firstname field is required.",...
Hello,
I am trying to use the tablesorter pager plugin to page my list. I have the following code for the pager -
<img src="../../Content/images/first.png" class="first" />
<img src="../../Content/images/prev.png" class="prev" />
<input type="text" class="pagedisplay" />
<img src="../../Content/images/next.png" class="next" />
<img sr...
Using Rails RJS with jQuery, I have a link with an event binding on click that does ajax call with GET and returning dataType: script (with RJS providing the response).
Works the first time in Explorer, but after that, when you click the link, it tries to save the response as a file.... Any ideas how to get around this?
Only a problem...