[jQuery] problem facing with drop down lists
hi frnds, i had four drop-down lists, 1.field of study 2.subject(disabled) 3.country 4.location(disabled) if i click on field of study the subject drop-down also in enable condition. i got it this. what's my problem is if i click on counry drop down list i can't get the subject drop down value. i got the all three values (.field of study, .country,location) values ,but i didn't get the subject value; here is my code. @$cat=$_GET['cat']; @$one=$_GET['country']; @$subcat=$_GET['subcat']; ?> <SCRIPT
Click instead of timer on hover out
I have a select in a div and I want to close it if I click outside it. Since its in a div I cant do $('mydiv').click(function (), because this would close it even if I click inside the select (it's a multiselect, thats why I want to keep it open). I'm using this: http://abeautifulsite.net/notebook_files/62/demo/jqueryMultiSelect.html . Specifically control-7. This is the original code: // Disappear on hover out multiSelectCurrent = $(this); var timer = ''; $(this).next('.multiSelectOptions').hover(
[jQuery] [treeview]
Hi, how can I achieve to have the fisrt 2 levels of my menu always open on page load? Thanks Heidi
[jQuery] Dynamic url in ajax call based on select value
I'm kind of scratching my head over this. Okay, so let's say I want to dynamically load a specific JSON flat file (could be xml, whatever) depending on the current select box: jQuery("#chained_sub_child").cascade("#chained_child",{ ajax: {url: $("select#chained").val() }, template: commonTemplate, match: commonMatch }); If the VALUE in the #chained select box was, let's say, "pizza", jQuery would go ahead and attempt to load a file named
Inserted elements do not use the event
Hi, i've got this simple code: $(function() { $('.qty').blur(function(){ // get current qty value var qtyValue = $(this).attr("value"); // populate the bonus value with the qty value $(this).next().val(qtyValue); // debug console.info("Valor do QTY:" + qtyValue); //console.info($(this).next()); }); $('#addmore').click(function(){ $('<tr><td><input class="qty" size="10" /><input size="10"/></td></tr>').appendTo('table#tabela');
[jQuery] [validate] rules section problem
Hello, I use validation code someting below. It works if I load that page directly. But loading it from another page using $("#myApplDiv").load ('that_page.php') the rules sections does not work. But submitHandler section works well. <script> $().ready(function() { // some codes here var validator = $("#myForm").bind("invalid-form.validate", function () { $("#summary").html("Error"); }).validate({ submitHandler: function() { // some codes here },
[jQuery] What is difference between ADO and RDO
Explain ADO and RDO
[jQuery] Accessing object tag by id
Hi. Couldn't find any appropriate answer: How do i point to a object tag by ID ? Example: <object" id="flashsitemap" data="xxxn.swf"> <param name="wmode" value="transparent"/ </object> $('#flashsitemap').event(function() { ... }); This assumed syntax does not work obviously. But. If i have an embed tag within the object tag everything's fine. <object" id="flashsitemap" data="xxxn.swf"> <param name="wmode" value="transparent"/> <embed id="flashsitemap" wmode="transparent" src="../flash/sitemap/ sitemap_icon.swf"/>
[jQuery] Recommendation Required - Custom Classes Library
I was wondering, which Custom Classes Library is best to use along with jQuery. Up to now, I've been using Mootools to create custom classes that can be easily extended through its inheritance model. It also has custom events that I have used extensively. Which library do you recommend that has the same functionality as described above that can co-exist with jQuery peacefully? This could make for an interesting discussion....
[jQuery] jQuery 1.3.x & XPath
Earlier version of jQuery allowed one to search for elements using XPath, but after the implementation of the Sizzler selector engine, the XPath support was lost, or so it seems. Any comments?
[jQuery] Superfish
I really love the navigation system used at the whitehouse.gov website. Can you tell me how I can implement a similar navigation system on my website? What I like about it is how the drop down menu gives you multiple sub menus that are arranged in different columns within the same drop down menu. How can I do something like that. In your website I did not see an example for the multiple drop down menus arranged in multiple columns. I would really appreciate your help with this. Thank you and keep
Simple Accordion. Need to set active class.
function initMenus() { $('ul.menu ul').hide(); $.each($('ul.menu'), function(){ $('#' + this.id + '.expandfirst ul:first').show(); }); $('ul.menu li a').click( function() { var checkElement = $(this).next(); var parent = this.parentNode.parentNode.id; if($('#' + parent).hasClass('noaccordion')) { $(this).next().slideToggle('normal'); return false; } if((checkElement.is('ul')) && (checkElement.is(':visible')))
Minitabs: having multiple tab sets on same page
This is weird. When I put some js css and html in this post it gives an error "site temporarily unavailable", but I can post normal messages. Edit: Error is: Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
[jQuery] validation plugin: validate checkboxes that don't have same name?
using validation plugin, is there a way to validate checkbox group that has different name attributes? i would like to make sure that at least one checkbox has been selected but i'm not sure how to do it because they all have different names. thanks -- View this message in context: http://www.nabble.com/validation-plugin%3A-validate-checkboxes-that-don%27t-have-same-name--tp21865439s27240p21865439.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] $.data
I haven't been able to find good documentation on the use of $.data. Does anyone have any good links to use of this function?
[jQuery] Optimized Function to transfer Array to Listbox
I have two array of items containing the values and text to be inserted in a Listbox. I had written the function as: array2Listbox = function(objListBox, arrValue, arrText) { var oNewOption; return jQuery.each(arrValue, function(i) { oNewOption = new Option(arrText[i], arrValue[i]); objListBox[objListBox.length] = oNewOption; }); }; However I know jQuery would be much slower than direct for loop in this case where the array size is approx 6000 elements. Can anyone tell
[jQuery] how to pass id to function
http://dpaste.com/117299/ my html ------- {% for name in eventname %} <div id=basicModal class="viewalldetailslinktext"> <div class="eventname"><a href='#' class='basic'>{{ name.title }}</ a></div> </div> <div class="eventaddress">{{ name.address }}</div> <div class="eventdesc">{{ name.summary }}</div> <div id="basicModalContent" style='display:none'> <div style="color:red">{{ name.title }}</div> </div>
[jQuery] is it correct way to pass id to function
http://dpaste.com/117315/ my html ------- {% for name in eventname %} <div id={{ name }} class="viewalldetailslinktext"> <div class="eventname"><a href='#' class='basic'>{{ name.title }}</ a></div> </div> <div class="eventaddress">{{ name.address }}</div> <div class="eventdesc">{{ name.summary }}</div> <div id="basicModalContent" style='display:none'> <div style="color:red">{{ name.title }}</div> </div>
[jQuery] What is difference between ADO and RDO
Explain ADO and RDO
[jQuery] What is difference between ADO and RDO
Explain ADO and RDO
[jQuery] What is difference between ADO and RDO
Explain ADO and RDO
Newbie needs help with starterkit
Hi Guys, I'm a newbie to jQuery. I have just downloaded the library and starterkit from the site but can't get it to work. The instructions are clear and the files and locations in the code are fine...but the starterkit simply doesnt work...I just get the raw HTML...no effect.. Firebug believe the library loaded fine and reports no problems... Any ideas what might be wrong ? Running on OS X 10.5 and Safari 3 & Firefox 3 Thanks G
[jQuery] $.browser and jQuery 1.3
Why is this deprecated in 1.3? I use a script using this, to add the browser name and version to the body tag so I can apply css to those browsers without hacks. Is there another way of doing this now, as I can't figure out how I would do this with $.support. - Liam
[jQuery] setting focus to the first empty field
Hello I'm a newbie, here's what I need to do (searched the forums first but couldn't find the answer). 1. Search form for an empty input field. 2. If an empty field exists, set the focus on the field. 3. If no empty fields exist, do nothing. Thanks, August
[jQuery] How to detect jQuery version?
Wondering what an easy way to detect which version of jQuery is running on a page. Is there a $.version property? Doing feature detection based on deprecated methods probably wouldn't work well, since they would still exist in some newer versions.
Help on jquery
Hi all, I'm just learning jquery. This is a part of my htlm code <div class="photo"> <a href="#turtles"> <img src="2709825025_fb6d71b455_s.jpg" alt="Github helmet"> </a> </div> <div class="photo" style="text-align:right"> <a href="#turtles2"> <img src="fb6d71b455_s.png" alt="Github helmet"> </a> </div> My jquery code : $(document).ready(function() { $('div.photo a').test(); }); an the test function : jQuery.fn.test =
[jQuery] click/change events not recognized for checkboxes
Hi I have the following html where I have a bunch of checkboxes which I want to trigger events when checked/unchecked. But apparently the events are not being recognized. I have tried using various ways to access the checkboxes, but nothing seems to work. 1) $('#manufacturers:checkbox').click(function(){ 2) $("#mfglist:checkbox").click(function(){ Being new to JQuery, I did try reading all the blogs/tutorials, but no luck so far. Any help is really appreciated. Thanks! sdeo BEGIN HTML SNIPPET <div
[jQuery] Map navigation
Hello, I am working on a map just like mmog games have like travian etc. The map has 4 navigation buttons nord east south west. If someone presses on it it loads the page again, i just want the map to move. Is there some kind of plugin or a other simple way to fix this? Erwin
[jQuery] Ajax/Drag and Drop question
Hi There. I am new to jQuery and I have a question. I was able to get the drag/drop functionality working, very slick. For an example, I have some HTML in one <div> which has a "droppable" point, and HTML in another <div> which has many "draggable" points. I can drag and drop and all is well. The next step is to source the HTML for each <div> from an AJAX call, which I have done. The problem is, after it loads, the DRAG/DROP doesn't work. The "draggable" elements are no longer draggable. my code
[jQuery] $('#xxx').html() changing xhtml to html
I am trying to parse the html out of a specific div to save it with php into a SQL-database. Working good so far. The html is valid xhtml, but html() makes instead of <br /> and <img......> instead of <img...../> Is there a workaround to get the xhtml?
[jQuery] Validation Plugin
Hi Can some one please tell me if I can use validate plugin if saomething is written in textbox by default ? I have a textbox which is using auto complete p[lugin , so when page loads an "auto-suggest" keyword always written in textbox and if some user clicks that keyword,it disappears ... I want even if it is there and somebody submits the form , validation plugin should work? Thanks Varun
[jQuery] Superfish horizontal menu issue in IE6 / IE7
Hello everybody! I am working on finishing a site that another web designer started, and am a total newb to Superfish and not very strong in CSS/JS troubleshooting. We are using a horizontal menu with a horizontal submenu below it. It looks beautiful in FF, in IE 6/7 it is rendering the submenus vertically. Please help!!! My eternal gratitude to whomever can help. We are needing to get this site up 2 months ago and this is the only holdup. See for yourself: http://www.moreorlessmyself.com/linc <--
[jQuery] Superfish - Drop down opacity
I still havent found a solution for the drop down opacity for superfish. Ive tried changing all the colors , but the drop down background one stays the same, and makes the text very hard to read. i want the BACKGROUND color of the drop down to change from clear to a color. Any help?? my email is adarrell@darrellit.com example of the problem http://bischoffhomeremodeling.com/ ( hover over customer testimonials )
[jQuery] "After the fact" tooltip application problem
I have a page where I'm using tooltip that is dynamically constructed with $AJAX calls. The static content gets tooltip initialization just fine, but I'm having trouble with content added after initial load. The first call to tooltip after page load: function setFactoryTooltip() { $('.factory,').tooltip({ track: true, delay: 0, showURL: false, opacity: 1, showBody: " - ", extraClass: "pretty fancy", fixPNG: true, top: -15, left: 5 }); } This works great. After an AJAX call that populates another
[jQuery] click/change events not recognized for checkboxes
Hi I have the following html where I have a bunch of checkboxes which I want to trigger events when checked/unchecked. But apparently the events are not being recognized. I have tried using various ways to access the checkboxes, but nothing seems to work. 1) $('#manufacturers:checkbox').click(function(){ 2) $("#mfglist:checkbox").click(function(){ Being new to JQuery, I did try reading all the blogs/tutorials, but no luck so far. Any help is really appreciated. Thanks! sdeo BEGIN HTML SNIPPET <div
[jQuery] [validate] logical AND check
I need to require a filed when both radio buttons in a group aren't checked. How would I go about doing it? For example: radioButton1 = unchecked radioButton2 = unchecked = field REQUIRED radioButton1 = checked radioButton2 = unchecked = field not required radioButton1 = unchecked radioButton2 = checked = field not required I can get it if either one of them is checked but stumped on if neither one of them are checked.
[jQuery] Checkbox and Radio buttons hooked on change problem in Internet Explorer
Hi all. I am triggering an ajax load on my page if a radio button or checkbox is changed. For this i am binding 'change' to the checkbox or radio button. This works perfect in both Firefox and Safari but not in Internet Explorer. In Internet Explorer it does not hook on the change but the deselect after the change. So the trigger is not happening when you check the box but after you check it and then select something else on the page. If anyone have any idea on how to solve this please tell me :)
[jQuery] jeditable and selects: how does it choose the default?
I have a question about how jeditable chooses which select option to start with when you click to edit a field. For example I have the following table: Person 1, Color: Orange Person 2, Color: Blue Person 3, Color: Blue Person 4, Color: Orange Person 5, Color: Red Person 6, Color: Orange Then clicking on a color produces a dropdown box with the help of jeditable. If the select options are blue,orange,red,yellow (in that order). Most of the time the shown text is preselected when I invoke the jeditable
[jQuery] Scoping, Closure and $.post
I'm integrating prototype and jQuery together. I have a class that looks like this: var TreeView = function(){}; TreeView.prototype = { initialize: function() { this.view = 'Data management'; }, renderTree: function() { $.post("/Treeview?task=GET_NODE&action=DYNAMIC", {}, function () { this.renderFolder(xml, 'foldersView'); } ); }, renderFolder: function(xml, outputDiv) { // do some stuff } } var treeview = new TreeView(); Obviously this doesn't work because this does not refer to the my treeview
[jQuery] BLOCK method
Hi All - I am using the block method to block a specific element on my page. Below is the syntax I used to try to block it. $(document).ready(function() { $('#btnBlock').click(function() { $('#tblTest').block({ css: { backgroundColor: 'red', color: 'red' , height: '3px'} }); }); }); THe block works, the strange thing is, it blocks more than what it should. It blocked half of my page vs blocking only the specific element that is asked. Secondly, my css doesnt work. Any feedback is appreciated. Savoy
Next Page