[jQuery] Enable Submit button
Hi All , This is my form ,When user click the <b>YES and checked the check </b>box then only i want to enable the Prepay by Card button , For this situation , what is the jquery snippet , i have tried somthing like $("#SubmitCard").attr("disabled", "disabled"); But the thing is , i want to put the AND CONDITION match , For this situation , i dont know how to write the jquery snippet <table style="border: 0px solid rgb(0, 0, 0); width: 485px; height: 45px;"><tbody><tr style="width: 20px; height: 5px;"><td
[jQuery] RSS Manager - Dynamic variables
Hey guys. I'm building up a RSS reader. In this app, the user will have the option to add and remove urls in a list. What I need is to create a new variable, everytime the user submit the form with the url. The varible must contain the url. Can anybody help me? Thanks for your time.
Can't remove item in connect list!
I have a small code. <html> <head> <script src="js/jquery-1.3.2.min.js" type="text/javascript"></script> <script src="js/jquery-ui-1.7.2.custom.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function(){ $("#list2 li a").click(function(){ $(this).parents("li:#"+this.parentNode.id).remove(); }); }); $(function(){
JQuery Bug? error when clone from selector if there has js
hi all, the following code is work in ie, but error in firefore, is it a bug if the selector element have javascript? <script language="javascript"> var idx = 2; </script> <div id="id1"> <p> <script language="javascript"> if (idx == 2) { document.write(" aaaaaaa"); } </script> </p> </div> <hr> <div id="id2"></div> <!------------------------------------------------------> <script language="javascript"> $("#id1").clone().appendTo("#id2"); </script>
[jQuery] photos not displaying in Firefox
Hi all, I bought a WordPress theme that uses a jQuery slider gallery. Unfortunately, only the last of four images is showing up in the gallery (see: http://mcssafehomes.com/?p=105) and the previous/next links do not work. In most cases, I don't have 4 images input, usually three or less. So the default "Coming Soon" image is appearing. (see: http://mcssafehomes.com/?p=285) I am using a Firefox browser on a Mac iBook. I know the images are in there, as they flash on the screen for an instant before
jQuery UI Styling Issue(s)
I'm attempting to implement jQueryUI Tabs inside a page on Wordpress, and have the actual JS etc working, but with the output being a pile of mush: It *looks* like a CSS conflict, but browsing through my Wordpress theme's (Slate, modified) CSS files, I can't find any obvious ones. CSS file below: /*********************general*****************************/ * { margin: 0; padding: 0; font: 14px Arial, Helvetica, sans-serif; color: #000000; } body { background: #333; behavior: url(ie6fix.htc);
[jQuery] Managing plugin version updates/uploads
I have been writing a jQuery plugin generator to scaffold a plugin and have released this a gem for rubyists (gem install jqueryplugingen). I now want to be able to manage the release of the plugin via rake tasks (ie like ruby gems - eg Hoe). I have searched this list and googled looking for an API to plugins.jquery.com. I must have missed something because it appears that everyone publishes manually. Can someone help me out with an API for publishing? I am happy to writing a ruby binding. eg: jqp.new('jquery.plugin')
Table Sorter
Hi guys, I have been using table sorter from http://tablesorter.com which I've got working *almost* the way I want. Basically I'm new to jQuery and have previously been using http://www.kryogenix.org/code/browser/sorttable/ for my table sorting needs (which I found easy to hack to get desired results). Basically I have a table where I need to sort ASC, then DESC, then reset to default order sorting (ususally a hidden index column) on clicking the header row of the table (so basically it seems I need
[jQuery] jqPlot 0.7.0 adds pie chart support
jqPlot is an open source plotting plugin for jQuery. The 0.7.0 release adds pie chart support. jqPlot is built from the ground up as a plugable plotting plugin with many features including: * Rotated axis text. * Vertical and horizontal bar charts. * Stacked bar and line charts. * Automatic trend line computation. * Data point highlighting. * Cursor tooltips showing data and grid position. * Drag and drop data points. The jqPlot homepage is at http://www.jqplot.com/ The downloads page is at http://bitbucket.org/cleonello/jqplot/downloads/
[jQuery] switching two table rows
I am creating an admin section for a site I'm building. One of the options is to change the sort order of a list of items. I have all the backend (PHP) code running properly, but having a little issue with the jQuery. When the user clicks the Move Up link, how can I switch the table row containing the link they clicked on, and the one above it (row 3 becomes 2, and row 2 becomes 3)? Thanks
[jQuery] vertically scroll text
Is there a jquery plugin that can scroll text in a div vertically? I have div with a set height that is filled with more content than can be seen. I'm looking for a way to vertically scroll the text or some way to page thru the content. Thanks for any help.
[jQuery] Ajax Edit in Place
Hi everyone! What I'd like to build is a page which displays a list of people. Next to each person is an edit button. Clicking the edit button will replace the person's information with an edit form where the user can change information about the person. The edit form has a save and cancel button. There is also a button at the top of the list which will pop up a new person form. I'm designing an approach for tackling this problem: 1) I'm thinking of having two divs for each person, one for show,
[jQuery] Autocomplete + type:"post" not working - still receiving $_GET data
I'm trying to implement the autocomplete and everything has worked fine up to switching from $_GET to $_POST. The framework i'm using does not work well with $_GET data. I've tried the following: 1. - in jquery.autocomplete.js I added type:"post" 2. - in my view I've added the same: $(document).ready(function(){ $("#client_name").autocomplete("edit_customer/search/", { scroll: true, scrollHeight: 300, autoFill: true, cacheLength: 1, max: 20, matchContains: false, type: "POST", }); }); 3.
Gallery with sub thumbnail views
I am currently trying to create a thumbnail gallery that when you select a thumbnail, it loads associated thumbnails specific to that image for alternate views. I have the base of the thumbnail gallery created (click thumbnail + view larger image). I am however having issues getting it to load the associated sub images. I have the default one working for when the page is initially loaded, but it is not properly swapping out the urls for the new images, so it always uses the same three sub images.
[jQuery] When using append() , appended content is not "treated" by jquery
Sorry if the subject is somewhat hard to understand, but if I had the proper terminology, I probably would have found an answer through google. So here's the problem. Within my HTML I have the following div: <div id="InvoiceList"> <p class="trigger"><a href="#">Test Entry</a> <div class="details">Test Details</div> </div> And in the script, the following jquery function: $(".details").hide(); $("p.trigger").click(function(){ $(this).next(".details").slideToggle("slow,");
Animate absolutely positioned image with cycle plugin
I am using the cycle plugin to scroll through what will be dynamically loaded content but would like to know if I can absolutely position an image outside the boundaries of the containing div (or in this case <li>). At the moment as soon as I try to use the image with the cycle plugin it only shows the image within the boundaries. You can see how it looks before the jquery here: http://dev.satsu.co.uk/satsu/index2.html and then with the image chopped of here: http://dev.satsu.co.uk/satsu/index.html
[jQuery] jQuery xml2json problems when siblings of the same tagname only have a textNode as a child
I found this plugin for converting xml to json which I need for my application at least temporarily until the server can get me JSON directly. The jQuery Plugin to convert xml to json works pretty good it seems but i've found a bug. I have a structure that looks like something this: <EventLog> <Events> <Event> <EventNumber>1</EventNumber> <Type>TimeChange</Type> <Result>0</Result> <BayData>25'-Long (Green ) PL_</BayData> <BayData>35'-Long (Orange) PL_</BayData> <BayData>25'-Long (Green ) PL_</BayData>
[jQuery] [HELP] DivMenu
hi, i've a function that when i click on a link a div shows up, and it works nice, but when i click on the div itself the div closes up, and other "bug" is, that if i have 2 or more divs if i click on one link and click on other link the div's stays visible, how can i solve this? here is the code: jQuery.fn.DivMenu = function(opcoes){ /** * **/ var variaveis = { 'display' : 'none', 'position' : 'absolute', 'background' : '#fff', 'border' : '1px solid
[jQuery] Trouble constructing selector string.
var t = 'input.ffControl[value="Add a Value"]:first'; var s = 'input.ffControl[value="Add a '+$(this).attr('class') +'"]:first'; if(s == t) { alert(s); } $(t,this).val('gotcha'); Hi there, Can anyone help me understand why changing the fourth line of the above snippet to $(s, this).val('gotcha') does not have the effect that the orignal line has when the alert on line 3 always shows? Many thanks in advance for any effort, I appreciate it,
[jQuery] how to catch the value of div container
Hi All, In HTML code: <div id="DIV_01"> <ul> <li><a href="#">list_01</a> <ul> <li><a href="#">LIST_01_00</a></li> ............................. </ul> </li> </ul> </div> When I click in list element (ese. LIST_01_00) In jQuery code, I would like to catch the “id value” (DIV_01) of "div container". $(this).click( function() { ????? } Any ideas? Thanks, Antonio
[jQuery] ajax error handling
Hi jQuery,<div> </div><div>I'm using the $.ajax method and when this errors I react to the error event within and dump</div><div>the XMLHttpRequest, textStatus, errorThrown to get an idea of what when wrong... but</div> <div>the most common message is "parse error" which doesn't help me that much.</div><div> </div><div>what is going wrong is that on the server side my php file has errors in it and I would like</div><div> to see the errors on the client side.</div><div> </div><div>so basically is
[jQuery] [validate] Question
Hi there. Is there an option if i want required fields to be highligted on blur? I think it's an obvious requirenment: when user is tabbing through a large form it's good to validate / highlight required fields on blur, even if the form wasn't submitted yet. Can i archive such an behavior?
[jQuery] Trouble constructing selector string.
Hi there, I'm having a bad time trying to work out what is wrong with my approach and hoping someone can enlighten me. Consider the following. var t = 'input.ffControl[value="Add a Value"]:first'; var s = 'input.ffControl[value="Add a '+$(this).attr('class') +'"]:first'; if(s == t) alert(s); $(s,this).val('gotcha'); The condition on line 3 evaluates to true and the alert appears. If I replace the fourth line with $(t,this).val('gotcha');
[jQuery] How to show the methods and attributes of any jQuery object
Hi folks, In python we can use dir() to show the methods and attributes of any python object. Since it is possible to extend the jQuery object itself is there a similar method in jQuery to show the methods and attributes of a particular object? thanks, Antonio
[jQuery] [validate] Form submission problem
Hi, I've got a form with a button-element as submit-button. <form id="newadForm" name="newadForm" action="form.php" method="post"> ... <button type="button" class="form-button" name="submit">Send</button> </form> At the top of the page I've got this: jQuery.noConflict(); jQuery(document).ready(function($){ $("form#newadForm button.form-button").click( function() { console.log("fire"); $("#newadForm").submit(); }); $("#newadForm").validate({ submitHandler: function(form) { form.submit(); } }); });
ajax and headers
hello, i am generating a pdf file with a php file and fetch the content of the pdf via ajax $.ajax ({ type: "POST", url: "./scripts/ajax/pdf.php", success: function(returnedHTML) { } }); the problem now is putting out the pdf. i have the pdf data now in returnedHTML, but... is there a way to send headers with ajax, that an open/save dialoge appears, so that i can save or open the file?
active question within accordion...
Hi there, I've a question reg. 'active'. On some pages I use the additional class = ".offen" to open the first node onLoad but I'm not able to get the depending h3 (class = aktiv) set to active. Hoovering the H3s of the page works fine, also I do get the correct active status for H3s after I've hoovered an element on the page. Any hints? I did try to different (marked) solutions but none solved my probs... $(document).ready(function() { $('div.accordion> div').hide();
[jQuery] IE8, $.load and relative URLs
Not sure if this is common knowledge or not, but, when developing under FF, I was using a relative URL to perform ajax loads: <pre> $('container').load('images?pidx=1'); </pre> When I moved to IE8, found that this didn't work and had to use an absolute: <pre> $('container').load('/context/images?pidx=1'); </pre> Hope that helps someone. .:|S|:.
[jQuery] Regular Expressions and jQuery
Hello all, I have some experience in Regular Expressions but this one has me pulling my hair out. I have a form with several input fields including a phone number field. I have a submit button that is linked to jquery form plugin. My validation is checked on "beforeSubmit". ( i.e. beforeSubmit: validateForm ) I've used validateForm() for other simple validation via javascript. This time I'm using jQuery Form which shouldn't be and isn't a problem. My issue is in the validation of phone number. Within
[jQuery] Cross-site ajax file uploading
I'm using http://valums.com/ajax-upload/ plugin to upload a file to another domain It works fine, but i cannot get domain's response. Plugin makes an hidden iframe with entered data, and submit it. I get response from domain, but cannot parse it due to 'security reasons' All i want is to get link to uploaded file, its stored on iframe, i see it, but dont know how can i get it. I have tried to: $('iframe#ValumsAjaxUpload0').contents().find("body").hide(); or $('body', 'iframe#ValumsAjaxUpload0').hide();
[jQuery] Hide/show divs based on form parameters
Hi all, I'm trying to selectively hide and show divs based on what a user specifies using three select boxes in a form. I'm quite new to jQuery so I'm probably missing something obvious, but here's what I've got and it doesn't, work, they divs just stay hidden. Any help would be greatly appreciated! <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(".coursecontent").hide();
[jQuery] anonymous function and code reusing
Hi guys, apologize for posting again the same topic. I haven't found a solution yet for my simple problem. I have a simple function that works when a link is clicked $(document).ready(function(){ $("#moon").click(function(){ alert("do something"); }); }); I need to reuse that function passing a parameter so I modified the function like that $(document).ready(function(){ $("#moon").click(myFunction("param")); $("#earth").click(myFunction("param2")); function myFunction(param){ alert(param); }
[jQuery] remove question
Can I remove div1 but div2 keep there? <div id="1"> <div id="2"></div> </div>
'guid' is null or not an object error in IE
I'm new to JQuery (and this forum!) and was really hoping someone can hlep me out with what I think is a simple problem to fix. I am using the following javascript on a page to play around with some navigation and a div: $(document).ready(function(){ $(".focusmenu > li").hover(function(e){ switch(e.target.id){ case "tfocuslinkone": $("#tfocuslinkone").addClass("active"); $("#tfocuslinktwo").removeClass("active"); $("div.tfocuslinkone").fadeIn(); $("div.tfocuslinktwo").css("display", "none"); break;
Function to show a content
hi, i've a function that when i click on a link a div shows up, and it works nice, but when i click on the div itself the div closes up, and other "bug" is, that if i have 2 or more divs if i click on one link and click on other link the div's stays visible, how can i solve this? jQuery.fn.DivMenu = function(opcoes){ /** * Valores de defeito. **/ var variaveis = { 'display' : 'none', 'position' : 'absolute', 'background' : '#fff', 'border' : '1px
Object Required (xml)
hi there. I've tried searching google. asked this question in the jquery channel on Freenode but all without result. I get the following error in internet explorer: (it works in all other browsers) Object Required jquery.min.js Code: 0 URI: http://ajax.googleapis.com/ajax/libs/jq ... ery.min.js Line: 19 Char: 12043 The error is caused by the following line of code: (an alert before this triggers, after this it doesn't) $(xml).find('veiling').each(function() { the XML I get returned is what I expect.
[jQuery] Dialog position : relative
How can i set the position of dialog relatively to element( as a tooltip)?
[SOLVED] Using toggle or animate for mutilple divs one class
I've searched thoroughly on google as well as this forum, and I haven't quite found what I need. I'm going to have a page with a lot of content. Each section will have a title that can be used as a link to trigger the show/hide. For example: <p><a href="#" onclick="show-hide(); return false;">Section 1</a></p> <div class="show-hide"> <p>Text goes here</p> <p><a href="#" onclick="show-hide(); return false;">Close</a></p> </div> <p><a href="#" onclick="show-hide(); return false;">Section 2</a></p>
[jQuery] Fuction call works in Safari but not in FF 3.5
Hi, I am having a small problem that my jquery function does work in Safari but does not work in FF 3.5. I am not sure whether the problem is with my coding skills, the jquery plugin that i use, jquery or even FF 3.5 . If i run the code below then firebug gives this error: $(".dynamicsparkline").sparkline is not a function however, the code in safari works flawlessly. The expected result are two images from Flickr and one sparkline, but the result in FF 3.5 are two pictures and the text 'Loading...'
[jQuery] blockUI does work
Hi all, I tried on blockUI and the below doesn't work? Any help please? Thanks. <html> <head> <link rel="stylesheet" href="styles.css" type="text/css" media="all"> <script src="jquery.js"></script> <script src="jquery.blockUI.js"></script> <script> $(document).ready(function() { $("div#menu li").click(function() { $('div.blockMe').block({ message: null }); var type = ($(this).attr("id")); $(this).toggleClass("selected"); $(this).siblings("li").removeClass("selected");
Next Page