[jQuery] [validator] trouble using rules("remove")
Hello world, From everything I can understand from the doc, this code ------ <form id="myForm"> <input type="text" class="age required" id="age"/> <input type="checkbox" id="checker"/> click me. <input type="submit"/> </form> <script> $(document).ready(function(){ $("#myForm").validate(); $("#checker").bind("click keypress", function(){ $("#age").rules("remove"); $("#age").removeAttrs("required"); alert($("#age").rules().required); }); }); </script>
[jQuery] [Autocomplete] - Doesn't always work
Greetings, I'm currently using this awesome plugin for my web app but I'm having a bit of an annoying bug with it. It sometimes does not pull up any results when typing in. Like if I have something in the database with the name "March" and I type in "mar" it shows the little loading.gif but then disappears and doesn't give me any results. If I tab away and come back to it and try it again, then it will work. And even that doesn't make it work. Sometimes I have to totally refresh the page. I thought
[jQuery] jQuery with Ajax
Hi, I am having a particular issue with the focus/blur events. When I use the .focus function it will work fine with element that are within the html scope on load. My problem is with elements that get loaded in through ajax's request.responseText. Here is my main HTML: <html> <head> <script type="text/javascript" src="/html/that/js/ jquery-1.2.6.min.js"></script> <script type="text/javascript"> function test(){ createRequest(); var url = "/win/owa/test"; // this will return only
[SOLVED w/ Scriptaculous]
Hey everyone, Im just kicking off with jQuery but I think I got myself in a dilemma. I hope someone can understand what I am trying to accomplish and can help. I have several buttons and each button has a div which contains additional information. The Divs are hidden until you click on the button. The button needs to test 1) to see if any other divs are open, if so close them and 2) it needs to open the div specific to itself. The divs must close before the new div is opened. In other words there
[jQuery] Retrive stock quotes using jquery
Hi, anyone know how to retrieve stock quotes from Google Finance/Yahoo Finance using jquery?? and also last 30 day price of particular stock
[jQuery] cluetip and ajax page load
helo, i am using the wonderful cluetip plugin. my intention is to load a page via ajax into the tip. i have set it up with the following settings: jQuery(document).ready(function() { jQuery('.sticky').cluetip({ // effect and speed for opening clueTips fx: { open: 'fadeIn', // can be 'show' or 'slideDown' or 'fadeIn' openSpeed: '1000' }, attribute: 'rel', //local: false, ajaxCache: false, // process data retrieved via xhr before it's displayed //ajaxProcess: function(data)
[jQuery] window.document.body reference not working in IE7
Hello, Any ideas why this doesn't work in IE7? The window opens, but the page source is <html></html>. Works fine in FireFox. $("#print-preview").click( function() { var printPreviewWin = window.open("", "printpreview", "location=0,status=0,scrollbars=1"); $('[name="print-this-listing"]:checked').parents("div.listing").clone().appendTo( $(printPreviewWin.document.body) ); });
JQuery Tab Issues
I am a newbie. Please help. I just tried a simple code in jquery. How do I disable the "Add" tab in vb.net? <script type="text/javascript" language="javascript"> $(document).ready(function() { $("#tabs").tabs(); )}; <script> <div id="tabs"> <ul> <li><a href="#tab1"><span>Search</span></a></li> <li><a href="#tab2"><span>Add</span></a></li> </ul> </div> <div id="tab1">Content one</div> <div id="tab2">Content two</div> Thank you for your help. Ash
[jQuery] generic jquery tip
Hi, In my application I have many tips ( which are divs ) for eg: a tip explaining what are recurring invoices, items etc. Each of these tips has a close button, when closed will set a cookie with value "true". tip1 cookie value =1 which then will dismiss this tip. So the next time a page is loaded, the tip will not be show. Now the issue is i have many tips, so what i am using now is: $jQ(document).ready(function() { var tip = $jQ.cookie('tip'); if(tip == 'yes') { $jQ(".tip").hide();
[jQuery] slide toggle image hides
Hi guys, I've created the slide toggle on one of our websites http://www.pukkaup.com/team/ But if you look at the page in IE, the images disappear. Does anyone know why? It doesn't happen for me in FF. Thanks
[jQuery] help using parent()
I am trying to find the <div> parent of a <td> tag. In the following code, I do not understand why the alert shows 0 instead of 1?? <script type="text/javascript"> $(function(){ var x = $('#row_3'); var y = x.parent('div[id^=idSection_]'); alert( y.length ); }); </script> <div id="idSection_A" style="display: block;"> <table><tr><td id="row_1">eric 1</td></tr></table> </div> <div id="idSection_B" style="display: block;"> <table><tr><td id="row_2">eric 2</td></tr></table> </div> <div id="idSection_C"
[jQuery] Problem with jQuery Cluetip plugin and jboss Richfaces
<div class="gmail_quote">Hello, I am trying to "re-render" through ajax a richfaces element contained in a cluetip tooltip div and it is not working. Can anyone help please? Here is the code for the div: <font style="color: rgb(102, 0, 0);" size="1"><span style="font-family: courier new,monospace;"> <a id="aa" rel="#tt">toto</a></span><br style="font-family: courier new,monospace;"> <br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <div id="tt" style="display:
[jQuery] .click function won't work twice? addClass and hasClass little problem
I want to change the color on every click of the div, by changing the class and checking if hasClass. First removeClass, then addClass. But this won't work? Live demo: http://www.edwinistrator.com/stuff/jquery/ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http:// www.w3.org/TR/html4/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>Test</title> <style type="text/css"> div
[jQuery] IE8 Dom accessibility issue
hello, Previously in IE7, I was able to inject HTML using $('foo').innerHTML ('code here'); I inject a hidden input type, for example <input type=hidden etc etc> I could reference these in the DOM in IE7, now in IE8 the objects cannot be found. Does anyone know of a fix for this or what happened? Thanks, TS
XSLT problem in JQuery
Hi I am using jquery xslt plugin and the problem I am having is that when I perform xslt i.e $('#outputDiv').xslt('PPPoE.xml','PPPoE.xsl'); the browser continues execution of the lines following this line(ie xslt line) and when the execution is finished it displays the xslt result. I want that the xslt to be performed at the time of call and not at the last, since eqCol() method is called and it adjusts the height of #rightCol making the output half visible. I can set the height of #outputDiv to
[jQuery] event propagation
Hi, I just had a question regarding event propagation, do events propagate up only when they're the same? Meaning if a click event happens in the child and goes up to the parent, will just the click event of the parent occur? This one causes the alert in the parent click to happen when i click on an LI which as UL in it, Item 3 here. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/ TR/html4/strict.dtd"> <html> <head> <title>Collapsible List — Take 1</title> <link rel="stylesheet"
[jQuery] Display random text+image whenever user refreshes
I've been trying to look for some sort of jquery plugin that would allow me to display random text and images in a page. I've seen that there are some scripts that fade in and fade out content, but it starts as the page loads and it's in some sort of linear way, I wouldn't mind using this as long as it's random?
Gallery Help
Hello everyone. I'm really stuck here and I need your help Actually the problem is following. I have an application that has admin side for creating new album and uploading pictures in it. For every new album, new folder is created. What I need here is some client gallery module in jquery that will read all folders and display them on the client side, and when the user click on some of that thumbnails to take him one level deeper and show him all images inside that folder. After that if he clicks
[jQuery] Problem with the jQuery cluetip plugin and jboss Richfaces ajax submit
Hello, I am trying to "re-render" through ajax a richfaces element contained in a cluetip tooltip div and it is not working. Can anyone help please? Here is the code for the div: <font style="color: rgb(102, 0, 0);" size="1"><span style="font-family: courier new,monospace;"> <a id="aa" rel="#tt">toto</a></span><br style="font-family: courier new,monospace;"> <br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <div id="tt" style="display: none"></span><br
[jQuery] [validate] - disabling focusInvalid for a given element
Group, I'm putting together a form using the Validate plugin, and have run into an issue it would be nice to resolve. My issue Is around the focusInvalid option. I'd like to disable the focusInvalid behavior for a particular element, yet keep it enabled for the rest. Is this possible? Any help or input you could provide would be appreciated. thanks Steve
[jQuery] append() and the browser back button
Hi, I use append() to add html fragments to a page dynamically. This works fine until the user navigates to another page and then clicks on the browser back button. The dynamically added html fragments are no longer visible. I read somewhere that dynamically added elements are not remembered by the browser and therefore the back button will only render the original page (without the dynamically added elements). Does anyone know of a way to solve this problem? Thank you.
[jQuery] .click function won't work continuously? addClass and hasClass little problem
I want to change the color on every click on the div, by changing the class and checking if hasClass. First removeClass, then addClass. But this won't work? Live demo: http://www.edwinistrator.com/stuff/jquery/ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http:// www.w3.org/TR/html4/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>Test</title> <style type="text/css"> div { cursor:
[jQuery] [treeview] No event on node after add node.
Hello, I'm french, sorry for my English, thank you google translation! ;) I'd like to make ajax calls to load sub-nodes in my treeview. I have the following tree: Tree HTML : <ul id="tree"> <li id="1"><span>Item 1</span></li> <li id="2"><span id="item-2">Item 2</span></li> <li id="3"><span>Item 3</span></li> </ul> Method JS : $("span[id]").click(function() { var toto = $(this).parent(); if (toto.find(">ul").length == 0) { var id = $(this).attr("id").substring("item-".length); $.post("/Export/GetChildItem",
[jQuery] [BlockUI]: how to block overlapping DIVs?
Hi, I'm developing a Google Maps app that uses BlockUI to freeze the map during loading cycles and to display dialogs. I wanted to place a custom menu bar on top of the Google Maps div. Because Google Maps empties "its" div during loading, i had to resort to the following markup structure: <div id="mapmenu" style="position: absolute; z-index: 9999; width: 390px; top: 103px; right: 0px; height: 55px;"> <!--this div gets positioned over the google maps div --> </div> <div id="google-maps"> <!-- google
[jQuery] jqModal - Deactivate a register trigger
hi, It is possible to deactivates trigger registered ? I am using : $('#data-info-div').jqm({ trigger: false, modal: true, overlay: 50 }); $("#data-info-div").jqmAddTrigger("a.data-info-trigger"); but I cann´t find the opposed function to jqmAddTrigger() Dimanically I need to assign a trigger to a link, but depending the logic I need to remove this assignation. Is possible ? greetings
<marquee> from ajax?
Hey, in one of our files we with a <marquee> tag. But to get the contents of this file, were using jquery ajax. Does anybody know how I get make the <marquee> work from the ajax? In Chrome its fine, but if its in Firefox, the text displays, just not in a marquee. Thanks.
[jQuery] trouble with page loading, looking for priority override
on this page http://nl.pokerunlimited.eu/home-test-99/ The banner images are first loaded and only assembled into the sliding banner when the whole page is done loading. This has obvious drawbacks; being ugly and all :) Anyone know of a good solution for this? its jquery 171 and i can post the slider script if it helps... (i've currently src'd it in the <head>)
[jQuery] JQUERY Pagination
Hi all, <div> </div><div>Please refer few jquery pagination plugins ,</div><div> </div><div>Also need in the able heading with sort type ,</div><div> </div><div> </div><div>for example </div><div> </div><div> Assume if i click the date , then i want sort by date , if i click subject , need to sort by subject ,</div><div> </div><div> </div><div><table class="MsoTableLightShadingAccent3" border="1" cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:none;mso-border-top-alt:solid
[jQuery] Problem with AJAX parsing
Hello, I'm stuck with a big problem: when I make an AJAX call I receive a response object which I parse with jQuery: $.ajax({ url: 'myUrl.html', complete: function(m){ var txt = $(m.responseText); alert($(m.responseText).find('#myDiv').html()); } }); In Firefox, Safari and latest IEs (7 & 8) I get the correct content. In IE6 instead I don't get anything and the browser crashes. Any hint on this? How can I parse my response (is a HTML page)?
[jQuery] Adding/Removing text on texarea
Hi, I have a list of text-snippets which should be inserted into a textarea, separated by a comma. When I click the same text-snipped again, it should be removed from the textarea. I managed to to implement the "inserting" with the following code, but for the removal I have no idea. $("a.tags2textarea").click(function() { $("textarea.txt_tags").append($(this).html()+", "); return false; }); Maybe someone can help me. Best regards, Johannes
[jQuery] Displaying more information without shifting the page
My issue is this. I have a box that has a fixed height with repeatable elements in it. I want to display the top eight with a "More" link/button. When the user clicks "More", the box essentially floats on top of its designated area and expands OVER the top of everything else. (much like a drop down list would float over the top of items). Ideas? Plugins?
[jQuery] [validate] blur
Hello, I really liked the JQuery validate plugin. I am trying to use the plugin for one of my projects. I want the validate to work on blur as soon I move our from required field without entering any data. I know this something which should be very simple, I've been searching for this and I did find something which said 'event:'blur' I tried this and didn't work. It will be great if anyone can divert me to a example which uses Validate function on Blur. Many Thanks
[jQuery] File input path
How do i get the local path of a file i want to upload. I would like to display an image before uploading using the file input. Anyone who can help
Making jQuery remember which DIV-Container was shown
Hello everybody, I am new to jQuery and not very familiar with OOP, so please don't hit me I have the following question: I want each button to show a different div. So far my solution is: $("#container2").hide(); $("#container3").hide(); $("#show1").click(function() { $("#container1").fadeOut(200,function(){ $("#container2").fadeIn(200); }); }); $("#show2").click(function() { $("DIV-ID OF THE PREVIOUS SHOWN CONTAINER").fadeOut(200,function(){ $("#container2").fadeIn(200);
i'm trying to understand
Hi forum, i'm brandnew in jquery and try to work with it. i found out, how to get my object with the id "myobject": Obj = $('#myobject')[0]; ... and now i'm able to work with as DOM-Object like this: if (Obj) { tmpClass = Obj.className; Obj.className = "myclass"; } ... but actually wanted to 'add' 'myclass' to my Obj instead of overwriting it's old class. So i tried using this: if (Obj) { Obj.addClass('display'); } ... but that doesn't work. What' wrong with it ? best, heinetz
[jQuery] Flash file uploaders that will send a file as an "email attachment" ?
Hello Jquery users, I'm looking for an Jquery Flash file upload script that can send the file as an email attachment, without saving it to a database. I have found some nice scripts: http://www.uploadify.com/ http://www.pixeline.be/experiments/jqUploader/ But I can't find any documentation to have it send the file as an email attachment. Does anybody know a flash file uploader that can send the file as an email attachment? (out of the box will be real nice :) Or does anybody knows some online examples
gah! I wanted to make a slideshow using innerfade ...
... but I can't get me head round how the jquery code works - it's going to take me a while and this is getting urgent, so ..... has anyone seen a slideshow plugin that will fade from 1 thumbnail to the next and if the thumb is clicked on it will stop the sequence and open the clicked thumb as a large image over the top. When the large image is closed the sequence of thumbs will resume. Does that exist somewhere ??? I'll be so damn' happy if I can work out how to make it myself - and integrate captions
[jQuery] scrollTop on jQuery object
Hi! I have to use scrollTop and scrollHeight properties, but on jQuery object it returns `undefined`. Is there any method to get this property from jq object? It doesn't matter, but my object looks like this: var $win = $(this) // div on my page var $msgs = $win.find('.msgs'); $msgs.scrollHeight returns 'undefined' Thanks, Arrviasto (Poland)
[jQuery] Tell me , name of the jquery plugin for my requirement
Hi all ,<div> </div><div>Am looking one plugin must statisfy all my need , below is my need ,</div><div> </div><div>Can u please tell me , which plugin is suitable for my requirement ,</div><div> </div><div><table class="MsoTableLightGridAccent2" border="1" cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:none;mso-border-alt:solid #C0504D 1.0pt; mso-border-themecolor:accent2;mso-yfti-tbllook:1184;mso-padding-alt:0in 5.4pt 0in 5.4pt"> <tbody><tr style="mso-yfti-irow:-1;mso-yfti-firstrow:yes;height:25.75pt">
Filter portfolio with checkboxes
Hi all, first post, and I am glad I finally found a forum dedicated entirely to jQuery. Okay, I am totally new to JQ so bear with me if it sounds stupid. But since I tried googling for 3 days now, I think my problem might not be so simple. I wish to display a list of people on my website. These people are speakers who have different talents, or features. Male, female, high voice, low voice, german, english, persian, austrian ... a whole bunch of people. And I want to let my user use checkboxes to
Next Page