• Using Jquery with SP2007 for a Cascaded dropdown on a custom form

    I have a need to implement a cascaded set of two dropdowns on a sharepoint 2007 custom form and was told to pursue JQuery to do so.   Here is my original posted question on another forum: I have a custom sharepoint form that I want to manage two dropdowns on.  Lets say one field is called SEGMENT and the second field is SUBSEGMENT.   When SEGMENT dropdown "Defense" is selected then dropdown two SUBSEGMENT would have the following options: Army Air Force Navy   When SEGMENT dropdown "S&L" is selected
  • moved to another forum

    moved
  • what does mean arguments of .ajaxError(function(event,xhr,options,exc))

    I have been using the error() Ajax Event in $.ajax() and $.ajaxSetup() that have three arguments: error(xhr,status,error) i know what is these arguments and don't problem with it. But cannot understand the arguments of .ajaxError(function(event,xhr,options,exc)). Can any one describe these arguments, each of the four. specially event argument. and can give me an example that to use each of the four arguments of .ajaxError(function(event,xhr,options,exc)) Regards
  • Toggle/Select 3 Div's location within another div, maybe using position absolute or insertAfter

    I have a album Page, with 4 images per page, images are displayed in a container div. This container has 3 DIV's, top one is NAME of image DIV, next ones is IMAGE DIV and the 3rd one is DESC DIV I wanna be able to Toggle/Select the Location of the NAME or DESC to be either be above or below images for all 4 images I like example one better, but have not been able to get it to work with multiple containers EXAMPLE ONE this example does not use absolute position but i can only get it to work if I remove
  • Can I call dialog from c#

    I'm a new user of jQuery and I want your help I want to display jQuery dialog from c# after inserting data into database like an example how to do that ? Thanks
  • Get method is not working, please help

    I'm trying to add data to my link to retrieve through the get method on another page.                    window.open("vouchud.aspx?vkey=" + _callkey1_ + "?tdate=" + _key2_ + "); It is not working and I get an error. Does anyone know why or how to solve this?
  • How to select an image from mobile device and set it as the background image, using jquery mobile ?

    How to select an image from mobile device and set it as the background image, using jquery mobile? I need to select an image from mobile device and set it as the background image of mobile application page.And need to save the image path in sqlite db. Can you help me? Thanks in advance.
  • Slide Up Slide Down at one time

    I try to make slide up and slide down divs at one time. I want the first div slide down an the hidden next div slide up I would like to make these elements overlap when animated jQuery $(document).ready(function() {     $('.plus').click(function() {         $('header h1').animate({             'margin-top': '999px',             opacity: 'toggle'         },         1500);         $('header h2').animate({             'margin-top': '0px',             opacity: 'show'         },         1200);     });
  • JQuery sortable list - attempting to cancel a drag throws strange errors

    I'm trying to create a screen where you can only drag three items from one list to another. I'd like to prevent the use starting another drag if three items already exist, but the control gives very peculiar behaviour. I'm getting a jquery-ui outerWidth exception thrown. Can anyone help me out by explaining where I'm going wrong? http://jsfiddle.net/N3KcC/ Thanks,    Jason
  • How to put the child class to the parent?

    Hello again, how i can put the child class to the parent? For example, i have this: <div class="parent"> <div class="child-one">Content of child one</div> </div> <div class="parent"> <div class="child-two">Content of child two</div> </div> <div class="parent"> <div class="child-three">Content of child three</div> </div>And I want add to the parent div the class of his child, thus: <div class="parent child-one"> <div class="child-one">Content of child one</div> </div> <div class="parent child-two">
  • Why Are Ajax Calls Failing?

    Greetings,                 March 5th, 2013 My situation that may appear rather simplistic still perplexes me while I am new to Ajax. I have loaded all the appropriate JQuery Libraries and the initial index loads fine and the JQuery Doc Ready statement loads all the files on the menus. However, after I use the load statement to load a contact.html, all loads great, into a iframe div statement within index the contact.html that utilizes an Ajax pass to a php fails. Initially, I had two various contact.html's
  • Show/Hide multiple divs and swap out text

    Hi, New to jquery. Found this great script, but it only toggles one div. What do I have to change to toggle multiple ones? $(document).ready(function() {     $("#setup").click(function() {         $("#1").slideToggle(function() {             if ($(this).is(":visible")) {                 $("#setup").html("Close Archives &#9650;");             }             else {                 $("#setup").html("View Archives &#9660;");             }         });     }); }); HTML <h3>Title Here<a id="setup" href="javascript:unhide('1');"
  • Quarantine tests

    Some CI tools (eg. Atlassian Bamboo) have the ability to quarantine tests that are failing for either expected reasons (or fail intermittently).  Jenkins also has an open feature request for a similar thing. http://blogs.atlassian.com/2012/04/test-quarantine-continuous-integration-bamboo4/ https://issues.jenkins-ci.org/browse/JENKINS-14089 Is this something that has (or would be) considered for QUnit? Currently if a test is failing, your options are either: Fix the code (or the test) Comment out
  • inArray() allways return -1

    i have a strange problem with comparing two arrays http://jsfiddle.net/paPF5/1/ The .inArray() Check always return -1, but i don't know why.
  • Ajax Post with data as JSON object. Unable to access data on server side

    I am sending a .post request to my server attaching a json object to the data member. On the server side I can see the json data I sent in the Request.Form() member but I haven't been able to figure out how to access the individual data elements.   This is my client side code:  saveDetail : function(prmDesc, prmLevel, prmMax) {    var lclData = {     userId:'',     skillId:'',     desc:'',     level:'',     miles:''    };    lclData.userId = currUser.id;    lclData.skillId = $('#selectSelectedSkills').val();
  • Using settimeout with progress bar

    Hello, Im using a settimeout to resubmit a form. Id like to be able to use a progress bar showing the time until the next resubmit. Does anyone know of an example? Thank You
  • Ajax Autocomplete

    Hi there, i am trying to get the jquery autocomplete to work, but i am new to javascript and jquery and i got a problem. I want to realise autocomplete via ajax call on my wordpress site. I think the json call is working. Firebug shows me that ajax returns a response in the form of: ["Name1", "Name2", Name3"] But my search field does not display the list of suggestions. How can i put the ajax response into the autocomplete suggestions? jQuery("#s").autocomplete({       source: function( request,
  • Scroll to position in horizontal div

    I'm building a photo gallery function with jQuery. The thumbnails are in a fixed-with horizontal div with a scroll bar above the main image area, with "previous" and "next" links underneath. Everything is working great, but I would like the thumbnail div to scroll to the appropriate thumbnail image when the "previous" and "next" links are clicked. I've figured out a way to jump to the thumbnail image, but I'd sure love an animated scroll instead. Is this possible? Here's the page in question: http://brenahearn.com/fighters-jquery.php
  • How to get current/firing element of autocomplete combobox?

    I use the autocomplete/combobox solution as explained here: http://jqueryui.com/autocomplete/#combobox Finally applied via a $('element').combobox() as in the example code.   I use several comboboxes and I want to "empty" the value of, say, "combobox 3" if, say, "combobox 1" gets changed. The problem is that I cannot find out the id of that element. The cause of this is that combobox is actually "converted" to an INPUT element that shows the current selection of the comboxbox/select and it doesn't
  • ajaxform + file upload + random issues + using <textarea>

    Hi, I've implemented ajaxform with file upload on this site: https://apply.salk.edu/?eid=a4826f4dd8643e5b5170a9fa60f9229d (Use 619-222-2222 to get the prefilled data) I'm having about a 10 in 100 fail rate for the file uploads, but I can't reproduce the problem on any of the browsers.  I'm told the progress bar (blockui) just spins and never completes ... and the files sometimes do and sometimes don't upload. I have been capturing the user-agent strings of these browsers here's a sampling: Mozilla/5.0
  • jquery calcucation in email newsletter

    Hi I need to develop a email newsletter which has some maths calculation, example A+B=C. Here A and B are input fields. And the result will be displayed in the mailer itself. I have develop a HTML page for it with jquery calucations. I tried to embed in the email newsletter, but the calculation is not working, How to embed this as email newsletter.
  • issue in iphone 4s

    When i open a pdf link from my HTML page it opens the PDF and if i press browser back button blank screen appears only in iphone 4s(ios 5).When i open the console am getting the error as SECURITY_ERR: DOM Exception 18: An attempt was made to break through the security policy of the user agent." 
  • bootstrap: copy/duplicate values from state/country fields

    My twitter/bootstrap form has the option to copy already entered values into a billing info section. Text boxes are going in fine, but I want to duplicate the state and country values from these select boxes:   <select id="countries_states1" class="input-medium bfh-countries" data-countryList="US,CA"></select> <select class="input-medium bfh-states" data-country="countries_states1"></select> I'm using this code as a guide: http://stackoverflow.com/questions/2706756/how-to-copy-the-shipping-address-to-billing-address
  • Scroll Horizontally Within Window

    I am looking to have the window of my program follow a Mario img instead of scrolling, in essence removing the slide bar and somehow keeping the window focused on the Mario character within a range (like any 2D side-scrolling video game). Any ideas on how to do this using jQuery or HTML? You can find my program here. As seen, I have the upper and lower values I want the window to show, but I do not have a way of moving the window. It'd be best to move a coin counter, the music play/pause button,
  • mobile.loadPage problem if container has multiple divs

    Hi, I'm trying to load an external url content to a div.When I use the Js code block below, the url content is displayed successfully. But divHeader is not visible because mobile.loadpage creates a new div under divContent, sets the url content to this div and newly created div's style is ui-page. When the style is ui-page it surrounds the whole page so divHeader isn't displayed properly. When i delete the class value "ui-page" from newly created div at runtime everything is fine.I couldn't change
  • Parse JSONP data

    I've got an API that is producing JSONP output and I need take the data and read it into an unordered list.  Can anyone point me in the right direction?  As you can see I'm not sure what to put in the success event to show the data correctly. <scirpt type="text/javascript">       $(document).ready(function(){             $.ajax({                   dataType: "jsonp",                   url: "https://my.site.com/",                   success: function(data) {                                     }      
  • problem using Scrollview.js

    I'am using Scrollview.js for implementing the scrolling (https://github.com/jquery/jquery-mobile/tree/1.1-stable/experiments/scrollview /http://jquerymobile.com/demos/1.0a3/experiments/scrollview/ ) Since here Mouse events are disabled i'am having problems when used on Surface Tab ( A Mouse can be connect to a Surface Tab ) . On the Surface Tab i cannot click on say a Text box control so that it can have focus and so that i can type some data in it The same implementation work fine on IPad (Have
  • How to know wheter DOM was already loaded or not?

    I plan to provide a JS code that each website admin could decide how/when to run, so an admin may want to add my JS code to be loaded with the page, or may decide to load it later once the DOM has already been loaded. So my JS code can not rely on the $().ready method because in the later case the code placed there would not be executed. So I plan to set my logic into a "private" _run() method, and tell the website admin that he must execute the "public" run() method. Within run() method I need to
  • get the id of the checkbox in onclick

    how to get the id of the checkbox in onclick ? <input type="checkbox" id="someid_1"/> <input type="checkbox" id="someid_2"/>
  • version question

    Gretengs to everyone. I'm a jquery begginer and have a question about version of jquery. The following code works in version 1.7.2 but doesn't work on 1.9.1. I've checked the documentation and the changes between versions and nothing says anything about fade() like functions or toggle(). Also, I've tried other selectors inside toggle function but none of them works. Here's the code... Thanks to anyone who answers. $(document).ready(function() {  $('.answer').hide();  $('.main h2').toggle(        
  • Using COM+ in jQuery

    Hello.  I am new to mobile apps.  A lot of the examples I have seen are static pages.  I have COM+ object that contains complex algorithms.  It accepts a few parameters.  I then goes pulls data from Oracle tables and does calculations.  Ideally I know it should be some web service.  Is there any ways to instantiate a COM object running in COM+ package, push some parameters, and pull some calc results from that object?   Thanks Avatar
  • License change from dual to MIT

    Hi Folks, I was browsing to see if I could understand when jquery changed from a dual (MIT or GPL) to just the MIT license.  BTW, this is a really good move IMO.   Also, looks like http://jquery.com/download/ still indicates a dual license under the "About the Code" section ... "jQuery is provided under the MIT or GPL license." although that link does point to the license page which indicates MIT only. -Scott Lamons SPDX Business Team, co-lead
  • How to open accordion panel from an external link

    I am new to jQuery and really stuck with it. I have a WordPress site with the posts in jQuery accordion and a link to latest posts on another page. I am trying to open the specific panel of an accordion using the external link.  At the moment when you click on the link, you move to the appropriate page and panel, but the panel stays closed.  Here is the code I am using for the accordion: <script type="text/javascript">  $(document).ready(function() {Accordion();});       function Accordion() {  
  • UI Portlets

    I'm currently working with the portlets from the UI Library which is going well.  I have coded the page so that when it is loaded all the portlets are collapsed, I was wondering if there was any way to make them open only once they have been dragged to a different column (i.e. Closed in Column A but then they open once you drop them into Column B). ? Any help with this would be appreciated
  • Problems with links on loaded contents

    Hi guys! I'm triying to call to a link that has been previously loaded by another link. Here is the situation: I have a "Link A" that load "Content A" (via Ajax). A "Link B" that load "Content B"... and then a Link to B in the "Content A" that has been loaded with the "Link A". I have made a sketch to explain it better: The problem is I can't use the "Link B"  inside the content of A because there's no JQuery code in that page (I load the content from a different file to change between the different
  • jQuery mobile

    hello everyone, I just use the jQuery Mobile and I develop on blackberry os 7. My html works with jQuery but didn't with ripple emulator...! The question is,  jQuery Mobile works on Ripple emulator ? thank u :)
  • How to remove the active class of button on iOS

    Hi, I am using JqueryMobile-1.3.0 and cordova-2.1.0 for iOS app. When I click on button then its color gets changed,but I want to make it normal after the onclick event get completed,I tried using     $('#clearButton').removeClass('ui-btn-active'); but its not working.
  • Why does jQuery UI hardcode Verdana in the font-family?

    I'm using jQuery UI via the jquery_update module in Drupal. It seems that the default theme for jQuery UI hardcodes font-family to Verdana, thus overriding my default font family and size.  Why is this? Wouldn't it be better for the default UI theme to assume that there are already font definitions and just theme the special widgets?
  • I would like Autocomplete dropdown to follow caret

    The behavior I'm trying to create is to have a jQuery UI Autocomplete widget attached to a multiline textbox (either textarea or contenteditable) that drops down the autocomplete suggestion box directly below the input text (i.e., just under the caret position) rather than beneath the textarea itself.  The position of the dropdown should follow the caret as more letters are typed. I believe it will be easier for the user to see the suggestions closer to what he's typing instead of having to scan
  • How can I set the time of delay of moseover in a on()?

    Hi Guys, I have a problem ... I want execute a function after 5 seconds that the user is on mouse over of a anchor ... I have an element that is dynamical loaded ... I have to work with .on() ... How can I set the time of delay? Code HTML: <a href="#" id="test">Test</a> Code jQuery: $(document).on('mouseover', '#test', function(){ alert ("hello"); }); thanks
  • Next Page

  • Announcements

  • The Basics of jQuery AJAX

    A step-by-step tutorial for those new to jQuery and wanting to use AJAX in their projects. Includes valuable information about troubleshooting using the console and understanding the request / response. http://jayblanchard.net/basics_of_jquery_ajax.html
  • jQuery Conference 2010: Boston Announcement

      The jQuery Project is very excited to announce the jQuery Conference 2010: Boston on October 16-17, 2010.  The conference will be held at the Hilton Boston Logan in Boston, Massachusetts.  The best part of this announcement is that Tickets are on sale now!  This venue is the largest that the project has worked with to date (Harvard Law School in ‘07, the MIT Stata Center in ‘08 and Microsoft New England Research Center in ‘09) and we expect to sell out very quickly. A brief synopsis of some of