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">
...
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(
...
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.
...
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');
$("....
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...
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...
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/';...
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 ...
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...
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 (...
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(...
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...
How to make modal popup like gmail (when we try to upload exe the pop up that generates covers scrollbar of the page)
...
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 ...
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...
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 ...
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?
...
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');
...
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.
...
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...