jquery

Should Jquery code go in header or footer?

Where is the best place to put Jquery code (or separate Jquery file)? Will pages load faster if I put it in the footer? ...

How can I work with a struct returned from a cfc in jquery

I have a cfc <cffunction name="addEditPerson" access="remote" returntype="struct"> a bunch of cfarguments <cfscript> var returnThis = structNew(); var error = ''; structInsert(returnThis,'success',0,true); structInsert(returnThis,'error','',true); structInsert(returnThis,'pers...

Unable to Read Data from Jquery getJSON Request

I'm requesting a json feed using the standard jquery getJson request. The json url is not hosted on my domain. $.getJSON('myfeed.json?jsoncallback=?', function(data){ console.log(data); }) However using Firebug, I'm not seeing any data logged in the console. But I can see the json data has been loaded as is available when I look und...

How to clear the Text on Clear button using JQuery

Hi I have a clear button that needs to clear the TextBox value(that is entered) on this button click using JQuery function. ...

Only have validation fire when one button is clicked using LiveValidation?

I have an aspx page which has a few textboxes used to change a password. The user types in their current password along with a new and a confirmed new password. I have a cancel button and a change button. If cancel is clicked, nothing happens which is what it is supposed to do. If change is clicked and validation is passed, it should...

get dynamic link with JQuery

I am creating a div dynamically. In that div, i have table. Table contains link in each 1st td of row. My link id looks like id="ac2dc332-fa95-4e59-a3ad-83ffa91d3f4d#Apple#APPLCCompanies" Now, depending on some condition, i need to change color of this link. i tried to get it through $('#ac2dc332-fa95-4e59-a3ad-83ffa91d3f4d#Apple#AP...

mouse move on element

how i can move mouse courser on an element when page load with jquery? thanks ...

Any jquery modal box like this?

Hello. i want a jQuery modal box which is like the following shape, and also, it should opens near to the clicked button wherever it is. Thank you so much. ...

Weird behaviour of iframe `name` attribute set by jQuery in IE

I'm doing an ajax style file upload by posting the file in a form to an iframe and noticed some weird behaviour in IE (seems to happen in both 6 & 8). Basically in IE the form doesn't target the iframe properly so the response appears in a new window (instead of in the iframe). You can reproduce the problem with the following minimal set...

How can I implement a "wizard" style page using JQuery?

I am implementing a questionnaire on the web and I'd like for each block of questions to have its own "page" so the user doesn't have to scroll. However, page loads have two problems: a) they take time (and have a noticeable flicker/refresh) and b) such an approach would force me to do a data table insert plus multiple updates (or store...

jquery get array checkbox

I have in my document 2 checkbox arrays. One is engines[] and one is searchId[]. $("input:checkbox[@name='searchId[]']:checked").each(function() i use this to capture all the values from the searchId[] checkboxes (only if checked). $("input:checkbox[@name='engines[]']:checked").each(function() same thing for engines the problem is tha...

Cross Domain ajax and php sessions

I'm baffled by this one... I'm doing a remote widgety type of setup, we'll control both domains so security is not a concern. I'm using jsonp to allow cross domain ajax requests. The visited site is domain1.com, which inclues: <script src="domain2.com/file.js"></script> file.js uses jQuery to make ajax requests: $.ajax({ url: 'ht...

Active link style in ASP.NET

Hi StackOverflow, I'm having some trouble with my main menu on my ASP.NET website. What I want is, when a user clicks on a link, it should change it's color to black and remain black until the user clicks on the other links. In other words: I want to highlight the selected link. So far I've got it working using some workaround JavaScr...

Declaring jQuery functions all over again to set different values on ie7. Any other way to do this?

Well i have a scrolling plugin that i'm using to move divs when i click nav anchors. There are two different settings, which i already didn't want to happen, but i had too since i didn't know a way around this: Look: var jump=function(e) { //the plugin code... scrollTop: $(target).offset().top - 110 } and another one with a differe...

Remote validation

below is my code the validation only works without the remote validation. once i include remote validation, it submit the form without completing all the other form validations? $(document).ready(function() { $("#form1").validate({ rules: { firstName: "required",// simple rule, converted to {requ...

how do I move list elements in jQuery UI Sortable without the mouse, purely in jQuery?

I want to just set up a link that allows the user to jump a given sortable list element to the top of the list. I need something like $('.sortable li:last-child').move('.sortable li:first-child'); ...where I can just cause a link to pop any list element up to the top of the list. Never mind! I found the answer. $(id).prependTo($('#li...

Simple Javascript/JQuery Cookie Question

I've got an animation that I want to play only once and I figured that since the animation was in JQuery, the function to write the cookie file should be as well. So far I've got: $(document).ready(function(){ if (!$.cookie('cookieName')) { setTimeout(function() { $('#intro').fadeOut(1000); }, 5000); }; $.cookie('cooki...

Can't figure out how to make calls against the Facebook ApiClient in the js library

Starting from this very nice article about doing facebook integration using the javascript API, I was able to successfully make several calls against the FB.Connect namespace. I am now interested in calls that are in the FB.ApiClient library, and have tried a few simple ones. I cannot get this to work, is there something I have to do t...

Targeting multiple elements with jQuery

Hello, I have been searching but have come up blank and i'm wondering if I can use one jQuery statement to target multiple elements on a page. I have several identical buttons on a page and they are each made up of a left, middle and right background where the middle contains the text and can expand to any size necessary. Each has a un...

jquery javascript equivalent

I use too much jquery I want to do this with out jquery: <a onclick="javascript:$(this).next().css('display', 'none')"> I thought it was this: <a onclick="javascript:this.nextSibling.style.display = 'none'"> But its not. Style returns undefined. Let me clarify: I want to do this: <a class="errorToggle">error</a> <div style="pa...