jquery

jquery ui dialog doesn't call $.get inside dialog afeter first close of the dialog

I have a jquery ui dialog and inside of it I have another one and before opening the one on the inside I call $.get to receive the html for it if I open the first dialog and close it then open it again and try to open the dialog on the inside the html received from $.get doesn't get set page1 <script type="text/javascript"> ...

jQuery ready function

Can anyone tell me why the document ready function needs a call to function first please? I've been told that the setTimeout in the first below example (which does not work) would be evaluated and passed to ready, but I don't see what the difference would be for the function call in the second example (which works)? $(document).ready( ...

How can I retrieve two values from jquery-autocomplete

I need my application to auto-complete on a company name, but also fill in a hidden form field with the ID of that company selected. I believe it's possible to return pair values, with the pipe separator, such as........ Microsoft|10 Oracle|20 Sybase|30 And indeed this seems to work, but I don't know how to access the 2nd argument. ...

slide down new rows on table using jQuery

Hi. I have a table. When someone hits a link button (more) on one of it's rows, I want some new rows slide down and lie below this link and above lower rows. I used this script:(first I set "display" of those new rows to "none") $(document).ready(function(){ $("a").toggle(function(){ $(".classOfRowsToSlideUp").slideUp('fast'); $("....

Modulo jquery question

Hi all, Dont ask why but I need to add class zebra to the lis with the content next to them. I do a $("li").each(function(index){ if(index%??? == 0) { } }); <ul> <li></li> <li></li> <li></li> //add here class zebra <li></li> <li></li> <li></li> <li></li> //add here class zebra <li></li> <li></li> <li></li> <li></li> //add here clas...

animate to float: visualizing position change

I have a list of items which can be displayed both vertically and horizontally: http://jsbin.com/olefi3/2 Currently, toggling between these two modes makes for a rather jarring user experience, since items are repositioned rather suddenly (as CSS classes are being applied/removed). It would help greatly to have each item gradually move...

Jquery ajax load div content from Web Server to Local Server

Hello,this code work fine on localhost,when loading div from one blog to another(both on localhost),but when try to load from blog that is on internet to another blog(localhost),it doesn't work,what could be the problem?Here is the code. <?php $urlPage = 'http://www.somepage.com/'; //dont work //$urlPage = 'http://localhost/myBlog1/';...

How to store search result ?

Hello, I am working on my personal site, where I want to store my customers recent search result limited to that particular session. I am using PHP platform and Javascripts. Here is an example of what I am exactly looking at : It stores your previously searched domain name for that particular session so that user can make decision ...

jquery datatables add checkbox with ajax server side response

I am using C# ASP .NET MVC and ajax calls. I am able to get the display of the table along with all features. But, I don't understand how do I add a checkbox and button. I have tried dom-checkbox as well but can't get it to work. Any help is appreciated. My code looks like this: $(document).ready(function () { $('#personTable').data...

jQuery $.ajax response empty, but only in Chrome

I've exhausted every avenue of research to solve this one so hopefully someone else will think of something I just didn't. Relatively straight forward setup, I have a html page with some javascript that makes an ajax request to a URL (in the same domain) the java web app in the background does its stuff and returns a partial html page (...

Beginners question: Variable in Javascript

Hello everybody! I'm new to javascript and cant get this little thing to work. (all external scripts a of course loaded) I have this jQuery script: $('a.Link').click(function(){ autoComp('City'); }); function autoComp(strFormName) { var Company = 'Adobe Apple Microsoft'.split(" "); var City = 'London Paris Berlin'.split(...

JQUERY - how Two elements - IMG - DIV when hover over IMG show/hide the DIV - added with hover hide/show on img allready

Im very new to the wonder that is jquery. and i just figure out how to make my img buttons show/hide with a opacity difference (as such) <script type="text/javascript"> <![CDATA[ $(".ExcommKnap").mouseover(function () { $(this).stop().fadeTo('fast', 0.5, function(){}) }); $(".ExcommKnap").mouseout(function () { $(this).stop().fad...

modal pop up like google

How to make modal popup like gmail (when we try to upload exe the pop up that generates covers scrollbar of the page) ...

jQuery Select and Drag Chrome problem

I have a select and drag function. Basically you can select 3 elements and drag them together. The problem is in Chrome. If one element have a "-webkit-transform: rotate" propriety the whole span jumps up. Its strange because it forks fine in Firefox. You can see an working example at: http://jsfiddle.net/K2EX9/4/ just give it a try ...

Show Hide a div on click issues

Hi there, I have an image with a class of "actions_image" that when clicked shows a menu. This image with hidden menu appears several times on the same page. I'm having issues with the code below for 2 reasons: 1 - In the Javascript code, the first line is to ensure that if there's already a menu open, this will be closed before the n...

how can i find unused css in ajax app?

I've been searching and i can't find any ff addons or javascript for finding unused css in ajax apps. dust-me selectors can do a site-crawl, but i'm looking for something that examines loaded-in content... I'd like something where i can press 'record' and then make a load of clicks which will check off the used selectors, and hoping ...

Alternatives are there to jQuery that work in the same or similar way

I'm looking for alternative JavaScript Libraries to learn as an alternative to jQuery, as I think it would be good to know more than one and so i can broaden what libraries I know. I'd tried Mootools so far but am not sure what else is just as good. Any ideas? ...

jQuery - .toggle() triggering on page load

Hello, When I click on the word Directory, the up arrow image must change to down, and vice-versa when clicked again. In this code, when the page loads, toggle is triggered. $('#direct').click(function(){ $('#arrow').attr('src','images/down_arrow_black.gif'); ...

jQuery val() function and file input field in IE

I have a file inputfile <input tye='file' id='funPic' name='funPic' /> I need to get the name of the selected file, $('#funPic').val() in Firefox and Chrome gives abc.jpg where as IE7 & IE8 gives c:\xyz\abc.jpg Why is this? I need only the abc.jpg part. ...

jQuery-Facebox - Popup is not working after repaint from AJAX

Hi I am having a set of Links in my page and I have attached the facebox jQuery functionality so that whenever a link is pressed, it will get a nice popup <a href="coach_selector_popup?day=<%= day %>&hour=<%= hour %>" rel="facebox"> Below is the script that I use for 'facebox'ing. <script type="text/javascript"> jQuery(document).r...