jquery

Return a value from an jQuery ajax function

Hi, I know there are a lot of questions regarding this but none of them seem to answer my particular question. I'm having trouble constructing a function that includes an ajax call then returns a value. I am currently using: hmis_query_temp_scalar: function(query_name) { return $.ajax({ url: '/php_scripts/query_...

jquery add/remove with greyout option

How can I undo the grey-out if the select row was removed? Also, when there are several rows added, I want to remove only the row corresponding to that "Remove" button and not the others. I guess, my main concern is how can I know which added row has been removed, when the "remove" button is clicked. Please help. Many thanks in advance....

How do I customise fancybox while still allowing my site to work without javascript?

I'm attempting to integrate fancybox, but I've run into something which is confusing me. I want to have a standard gallery, but if javascript is disabled then clicking any image takes you to a page which shows all the images in large. I've crafted a url like this: <a href="/pages/all-photos" class="photo_group" image_path="/system/ima...

Why is IE7 and IE8 Giving me "Access Denied" when calling jQuery?

I am using the Google CDN to call the jQuery 1.4.2 Min File into my application. One FF, Chrome, Safari everything is working great. But for some reason, i get a "Access Denied" error for the jquery.min.js file on line 127...? I don't get it. Anyone have a clue why this is acting up in this way? I am totally clueless. ! Screenshot a...

JQuery Autocomplete and ASP .NET MVC database as data source

Hello, I have got this working with a local data source but not remotely. It uses the Jquery library and I have followed the instructions on the Jquery UI site. This is the code I have (which does not work). Can anyone a) amend this code to work b) show code of a working example?? Thanks: JQUERY $('#countries').autocomplete({ ...

How to disable the splashscreen of the rich:extendedDataTable

When the rich:extendedDataTable return it's result, there a splashscreen (a little animated gif) displayed. And I'm searching for a way to removed it. I noticed that in firebug .extdt-ss-vsbl { background-image:url(/swf-rf-poc/spring/a4j/g/3_3_2.SR1org/richfaces/renderkit/html/images/loading.gif); b...

ASP.NET and jQuery - submitting forms from a modal box?

I have an ASP.NET web site with master/content pages. On the master page, there is a link to log-in and that brings up a modal jQuery form. How can I make sure that the info that is submitted on this form (which is just a DIV in my master page) is handled by a particular postback event? Keep in mind that the modal can be submitted from...

I need help using the jQuery toggle function to swap image and div content

I need help getting an image to toggle 'on' and 'off' states when clicked as well as toggle a div to show/hide. I need these to toggle back and forth when clicked. Any ideas? <a href="#" onclick="toggle();"><img src="/images/control.png" /></a> <div id="box1"> Showing first box content </div> <div id="box2" style="display:none;"> Show...

Dublicate flash gallery with jquery

Is there already a plugin for jquery to re-create this: http://www.imgmodels.com/details.aspx?navbtn=1&amp;cityID=1&amp;modelid=261005&amp;pic=054.jpg&amp;subid=5569&amp;mainsubid=5569&amp;catID=2&amp;indx=1 Best Regards, ...

Getting .html() or .text() from a textarea

Hi there, I'm have a very annoying issue with a textarea when trying to retrieve its content. When I call $('#formMessage').text() I always get the textarea's original value, doesn't matter how much I write or delete of it, it keeps returning me the original content. I'm not posting the code because it's really simple. A textarea withi...

jQuery Tools - Slideshow & Tabs linking problem

I am using jQuery Tools Slideshow & Tabs for a project I am working on. Right now everything works great and as it should. Currently each tab (li) is what changes the images in the #slide div. The problem I am having is that I have an external link inside each li (Read More Button) which links to another page in the site. Because the lin...

trigger an anchor tag using the .click() event

Hi, For my application I want to trigger an anchor tag using the .click() event, which should redirect to page mention in href.i m using following code to achieve it.but its not working as expected. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> <script src="http://code...

is there a formula to calculate recurrence

I'm using ASP.Net MVC2. I would like to know if there is there a formula to calculate recurrence date? So from my client side I'm selecting dates and using ajax.post to send to the controller. My expecting result would be like so for example: maxdate is September 30th currentdate is today duration is 3 days for every week so output wo...

jQuery/JavaScript - Displaying value from text-input in <span>-placeholders

I FORMULATED MY SELF VERY BADLY! I will start over :) I appreciate your good answers, and if you can, try answering this: ( I will try to be more specific this time) What I want is, that a <form>element onsubmit, onclick of a button or whatever takes the value of an <input type="text" value="Default value"> and inserts it in a couple o...

Confused by this reference

(function($) { $.vari = "$.vari"; $.fn.vari = "$.fn.vari"; // $.fn is the object we add our custom functions to $.fn.DoSomethingLocal = function() { return this.each(function() { alert(this.vari); // would output `undefined` alert($(this).vari); // would output `$.fn.vari` }); }; })(jQuery); // $ is the m...

Is there any way to stop a user from scrolling whole webpage up/down on the ipad, but still allow them to pinch to zoom in/out? JQUERY

I am using function BlockMove(event) { event.preventDefault(); } & <body ontouchmove="BlockMove(event);"> This is making my page unscrollable, which is perfect. It stays in place. But I need the user to be able to zoom into an image on my page.. Any help would be great ...

Jquery Dynamic element height to cover browser height

I have layout as follows. Height of resizeable element is to kept such as it will cover entire browser height. Few points Layout should work with browser resize. Top elements and Bottom elements are optional i.e. some pages may include them. Using Ajax to load content, which can come at Top elements or Bottom elements header, footer...

Jquery autocomplete

I have mysql table like this: country | city_accented | latitude | longitude | --------------------------------------------------------- australia | sydney | -33.8833333 | 151.2166667 | USA | dallas | 35.3163889 | -81.1763889 | I'm using jquery autocomplete to get country names in form text field....

Where can i find a good video or tutorial on JSON with PHP ?

I have search the net many times and a lot of the JSON tutorials are too hard to understand. I am looking for JSON with jQuery and PHP. if anyone knows any videos or website i can look at that would be great Thanks ...

Stop page reloading

I am using jquery Tools for overlaying a table. It works fine except when i click the close button, it reloads the page. Can anybody tell me why this page is getting reloaded? I want to stop it. Here is the actual code jQuery Code: <script src="http://cdn.jquerytools.org/1.1.2/jquery.tools.min.js"&gt;&lt;/script&gt; <script type="text/...