[jQuery] Jquery Xml and XPath
I am trying to load an xml , and then to query the xml through xpath. I am trying to load an xml, and then to query it using xpath. i've tried this: $.ajax({ type: "GET", url: "Menu.xml", dataType: "xml", success: function(xml) { $(xml,'/Root/Item').each(...); } } <Root> <Item ID="1"></Item> <Item ID="2"></Item> <Item ID="3"></Item> <Item ID="4"></Item> </Root> This returns me 0. But if i change it to $(xml,'Root>Item').each(...); it works. But i need to make "real" xpath queries. PLz help me
[jQuery] validate
Hi, I am using the amazing validator plugin by Mr. Zaefferer.. I'm unable to find any documentation on using multiple fields within a single validation rule (e.g. adding a single validation to 3 social security number fields rather than validating each field separately and using a single errorContainer to be used for all 3.) Any advice would be greatly appreciated.. Thanks!
[jQuery] Who knows how to use jQuery in Dreamweaver CS4?
Now I'm coding javascript in dw cs4,and it says dw cs4 support jQuery code hinting, but I have no idea how to make it work, Any ideas?
[jQuery] Announcement: Sorted Column Highlighting Widget For TableSorter.js Plugin
Good Afternoon, I wanted to let everyone know that I have created a widget for the tablesorter.js plugin that highlights the sorted column or columns. Please take a look at my post on it and let me know what could be improved here or in the post comments as I am still pretty new to jQuery and javascript in general. http://beckelman.net/post/2008/11/11/Sorted-Column-Highlighting-Widget-for-jQuery-TableSorter-Plugin-Demo.aspx Best Regards, Bill Beckelman
[jQuery] scrolling menu items...
Hello, I've got this working but its "hard coded". the menu on right hand side of this site: http://sugarsnap.previewurl.net needs to scroll through each item as the user clicks the arrows. This is working but only because I've put fixed heights to scroll - shich is buggy cross browser. the code: $('a.down').click(function(event) { $('#folioMenu').scrollTo('+=90px', 800); return false; }); I want to use next and prev but it didnt work: $('#folioMenu').scrollTo($(".menuItem").next(), 800); I've tried
[jQuery] jQuery and DWR - How to handle the callback
Hey all, Most plugins, ie grids etc, can load themselves using a URL parameter. How can I use DWR with these plug-ins since it hides the process of getting the JSON for you. For instance I would like to load a grid using the JSON returned from a call to a method via DWR. Is there a standard way that other people have dealt with this without modifying each plug-in? Thanks for any help.
[jQuery] jQuery + HTML namespaces
I've found several instances of people having trouble using jQuery with a document that implements custom HTML namespaces (i.e. <foo:bar />), and I was wondering if anyone had developed any work-arounds? I've recently been tasked with incorporating jQuery into our corporate application -- largely due to my prodding and fanfare -- and the first area I'm working on has some DOM manipulation, but it fails with jQuery due to our namespacing that we use. I am simply attempting to insert HTML into the
[jQuery] Ajax load callback not firing
Hey everyone- I'm trying to get the load function to work properly and I've been using this page as a reference: http://docs.jquery.com/Ajax/load#urldatacallback As far as I can tell, the URL I want it to hit is getting hit, but the callback function never fires. Any ideas? <head> <script src="jquery-main.js" language="javascript" type="text/ javascript"></script> <script type="text/javascript"> function loadReport(UUID) { $("#loadreport").load("initializeReport.html?UUID=" + UUID, function(){ alert("Testing...");
[jQuery] jqModal
I'm trying to trigger the following modal after the page loads. I've tried 'autofire:true' and jqmShow() to no avail. I am receiving an error message that 'h' has no properties. I'm obviously doing something wrong. Can someone help point me in the right direction? Here's the code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html;
[jQuery] image coordinates
Hi, I need to write a function for return a value when I click an image. I've write this: jQuery(document).ready(function(){ $("#board").click(function(e){ var x = e.pageX - this.offsetLeft; var y = e.pageY - this.offsetTop; if (x < 88 & y > 347){ alert("a1"); } else if (x < 88 & y > 304 & y < 347){ alert("a2"); } else if (x < 88 & y > 261 & y < 304){ alert("a3"); } ...... ..... ..... It's work, but there is an alternative? Thanks, Alfredo
[jQuery] My menu divs get behind content when shown on IE
I'm using jQuery for showing hidden menus on this page: http://www.guadalajaracinemafest09.com/es/ Every browser behaves correctly, showing the yellow menus when clicking on the navigation bar. IE shows the content but _beneath_ the content of the other divs. Is this jQuery related? or will I need to use a CSS property like z- index for showing then above the content? Thanks, FG.
[jQuery] Permission denied to get property XULElement.accessibleType
I am developing a few gadgets to iGoogle using jquery. I am getting this error on 4 of the gadget one every gazillion time: "Permission denied to get property XULElement.accessibleType" Any ideas why? Thanks,
[jQuery] Serious help needed thanks
Hi I have a div, which has tabs that changes the divs in the area below it, show/hide effect. Now inside the div that is changed by the tabs it needs to scroll the content of that specific div with next and previous buttons each div having its own contents that needs to scroll. The tabs when clicked need to be in the hover state as selected. When the person hovers over the image button when it is in the selected state it must remain in the selected state. See the concept below of how it needs to
[jQuery] Trouble with posting results of jquery autocomplete
I have been working with the autocomplete library and have the autocompletion working reasonably well. However, my problem comes when I want to take the form populated with the results of the user's selections and then post it to my server side script for final results. This does not work -- I found other examples that seem to work, but I don't seem to be able to get my scripts to work the same way. I am using this within a .net control: <script type="text/javascript"> function findValueCallback(event,
[jQuery] How do I move contents from different frames in a frameset with Jquery?
Hello! I have tried this with the advice of a few in #jquery channel on Freenode and I cant get this to work. Here is my situation: I have a frameset with 2 frames: One's frame source is frame1.html (with Id of "bottomFrame") and frame2.html ( with id of "mainFrame"). mainFrame source (frame2.html) has a div tag with the id of "adDiv" and this div tag contains an Iframe. bottomFrame source (frame1.html) has a div tag with the id of "destinationDiv". I am trying to move the contents of "adDiv" (the
[jQuery] JSLitmus invaluable tool
I still feel fairly new to jQuery and javascript -- after almost a year! -- and have been experimenting with several different coding styles for plug-ins. Lately I've been curious about the difference in performance between using local variables vs. instance variables for storing state. JSLitmus, while not itself jQuery-based, has just given me the answers I've been looking for -- and I found them a bit surprising: <a href='http://www.fatdog.com/litmus_tests/ InstanceVsLocalTest.html'>Litmus Tests</a>
[jQuery] next() and prev()
I'm stuck using next() and prev() The menu on right hand side of this site: http://sugarsnap.previewurl.net needs to scroll through each item as the user clicks the arrows. This is working but only because I've put fixed heights to scroll - which is buggy cross browser., hence wanting to use next() and prev() the code that works: $('a.down').click(function(event) { $('#folioMenu').scrollTo('+=90px', 800); return false; }); I tried this , and several variations, wiht no luck: $('#folioMenu').scrollTo($(".menuItem").next(),
[jQuery] would compressing & merging multiple jquery & plugin's violate any license?
would compressing & merging multiple jquery & plugin's into 1 JS file violate any license?
[jQuery] How to load only one image at a time using JQuery Cycle Plugin?
Hi, I am looking for some help on how to only have one image at a time in the page using an ajax call to get the images, or get all images using ajax, but when next or prev navs are clicked to only load the next or previous image by cycling thru a JavaScript array. Loading alot of images at once could be a performace problem slowing down the page load. I have dropdown that will be used to make a selection on what type of images to view, this will make an ajax call using Jquery to go get the data
[jQuery] [validate] Password validation works in FF3 but not in IE6
Thanks for a great validation plugin! Writing my first custom validation: <script> $(document).ready(function(){ jQuery.validator.addMethod("adminPwd", function(value, element) { return this.optional(element) || /^(?=.*\d)(?=.*[a-z])(? =.*[A-Z])(?!.*\s)(?!.*\W).{8,255}$/.test(value); }, "The password must contain lower case, upper case and number(s) and be at least 8 characters"); $('#userForm').validate(); }); </script> The aim is that the password must contain at least one lower case, one upper
[jQuery] show all/hide all
I wrote some code to display course descriptions when the course name is clicked on. The course description is held in an html file. That part of the code works fine. Now I'm trying to add a link with the id #toggle to either show all the course descriptions or hide them all. All I've been able to do so far is change the link words, but that's only on the first click. Any help would be appreciated. I'm very new to jQuery and JavaScript. Does anyone have any example code for showing and hiding that
Calculating values using jQuery
Hi guys, I am building a form that will automatically calculate the values entered by a user ideally using jQuery/javascript, i am not sure how to do this but have a general idea of the logic required (i am no expert so feel free to correct me) - I have created a dummy image to help explain what I am trying to do. http://img399.imageshack.us/my.php?image=tablehw2.png I have a single form, which has two tables each with form fields that automatically calculate the total amount for each table provided
[jQuery] Remove CSS setting (not class)?
I have an odd situation where a DIV can be displayed in one of 3 states: - normal (X x Y pixels in dimension), - minimized (hidden) - maximized - the height value removed so that the div grows/shrinks to show the contents of the div. The first two are done, but I'm hitting a wall on the maximized bit. Perhaps because it's WAY past bed time for me..... I've tried $("#myElement").css("height", ""); with no luck. I don't want to just say "100%", because some content may only be a line or two, while
[jQuery] Call Thickbox ImageGroup from flash
Hi all, I have a little problem with calling a thickbox imageGroup from flash. Opening one single image is no problem (http:// www.prioninteractive.com/article/call-thickbox-from-within-flash/). But I don't know how to open a gallery/imageGroup from flash. Has anyone an idea?
[jQuery] .get question related to external variables
Hello list, im trying to perform a very (not that easy to me it seems) easy task. Receive 2 variables from an onclick event, then animate, then execute a .get action. my code looks like this. ..... <script type="text/javascript"> function getVars (str1,str2) { var tc_id = str1; var c_id = str2; $(document).ready(function(){ $(".del").click(function(){ $(this).parents(".tags").animate({ opacity: 'hide' }, "slow").addClass("removed"); $.get('tareas.php',
[jQuery] How to do anything after animate finished
Hi everybody This my testing gallery slider, it will count image's amount, and prevent it not to outside the wrapper, but I got one problem, if user click button after the animation finished, it's done well, but if user click too fast, the js will not catch the left property in time correctly, how to fix the bug? CSS <style type="text/css"> <!-- body { font-size: 12px; } #wrapper { height: 50px; width: 50px; overflow: hidden; position: relative; border:1px #FF0000 solid; } ul
[jQuery] window.close() in jQuery
Hello, can anyone explain how to close popup window programmatically in jQuery? Thanks in advance.
[jQuery] document Ready function in the Ajax Response
Hi, I have an issue with document.ready. I have a page which will make an ajax call. The response on the ajax call contains script which contains document.ready. The content in document.ready is getting executed successfully in ie7 but not in ff3. Please tell how to solve this in FF.
[jQuery] document Ready function in the Ajax Response
Hi, I have an issue with document.ready. I have a page which will make an ajax call. The response on the ajax call contains script which contains document.ready. The content in document.ready is getting executed successfully in ie7 but not in ff3. Please tell how to solve this in FF. Regards, Ravi
[jQuery] onmouseclick get class
Hi, I've this html section: <div id="chess-board"> <div class="chess-board"> <div id="chess-board_piece_1" class="r" style="position: absolute; top: 301px; left: 301px;"/> <div id="chess-board_piece_2" class="n" style="position: absolute; top: 301px; left: 258px;"/> <div id="chess-board_piece_3" class="b" style="position: absolute; top: 301px; left: 215px;"/> </div> </div> I need of a jquery function for get the class ("r", "n","b"), of each ".chess-board div" when I click on it. I've try this: jQuery(document).ready(function(){
.tabs('add', '#test', 'Tab'); not working through iFrame.
I ran some tests and finally got some results from using jQuery to modify my ThickBox iFrame. // $('#TB_iframeContent').contents().find('#container-1 > ul').append("test"); added the text text to my iframe. Yay. However, what I really want to do is make it add a new tab to the content inside the iframe. $('#TB_iframeContent').contents().find('#container-1 > ul').tabs('add', '#test', 'Tab'); But this doesn't work! I tried everything. and now I'm very truly stuck. In addition I cannot find
[jQuery] 3D Carousel
can anyone help me with 3D Carousel? have anyone make the horizontal to vertical? if it is, please tell me how is it to be done? please help me... thank you
[jQuery] Which Event to use with Sortables and connectWith?
I am having trouble figuring out the difference between all of these events and need to know the best one to use. I'm using 2 lists and the ability to drag back and forth between them using connectWith. When an item goes from the left list to the right list, I have a receive function that simply marks that item as no longer in the menu. That's the only event i really need on the right side, however the left side is more complicated. On the left side I need to update the items when the list is sorted
[jQuery] Cycle Plugin: Multiple pagers
Hi all, Is it possible to use multiple pagers for one slideshow. Eg. a pager above the slides and a pager below the slides. One pager could be a number pager and the other an image pager or both the same. Thanks, ppblaauw
[jQuery] how to combine multiple filters in select?
eg. to select all the table rows in tbody that is both visible and odd. how to put tr:visible and tr:odd together?
[jQuery] Hi Start JQuery in Drupal D5
Hi Dears I want to call jquery in drupal, Can one guide me , how to implement JQuery in Drupal, Thanks Here find the attachment, i attached the sample module , in that i want to add the Jquery, Thanks <br clear="all"> -- உங்கள் நண்பன் பரணி Regards B.S.Bharanikumar POST YOUR OPINION <a href="http://bharanikumariyer.hyperphp.com/">http://bharanikumariyer.hyperphp.com/</a>
[jQuery] Techniques for rendering overlapping markup
This isn't jQuery-specific, but I'm building a jQuery plugin with an unusual requirement that has me pulling my hair out. In a nutshell, multiple users are able to highlight text in their own "copy" of the document. For example, the saved markup for two users might look like: <div id="annotation_1"> The <span id="highlight_1">quick brown fox</span> jumps over the lazy dog. </div> and <div id="annotation_2"> The quick <span id="highlight_2">brown fox jumps</span> over the lazy dog. </div> These two
[jQuery] blockUI / jqModal - unload issues
I am trying to use either BlockUI or jqModal to display a modal dialog when the page unloads but it just won't work (in IE7). Using jqModal THIS WORKS (attaching to an <a> tag): $().ready(function() { $('#confirm').jqm({ overlay: 88, modal: true, trigger: false }); $('#navigationBlock a').click(function() { confirm('changes have not been saved'); return false; }); }); But THIS DOES NOT WORK (attaching to the unload event): $().ready(function() { $('#confirm').jqm({ overlay: 88, modal: true, trigger:
[jQuery] Delaying a .css until an animation on a different div is done?
Hey, I have a button set up to fade out and then hide a div within a div. The parent div has a 1px border, but it looks odd to have the border float while the inside div fades away. I would like to set it up so the border goes to "none" then after the inside div fades and hides the border goes back to "1px solid black". $('.miniThis').click(function(){ $(this).parents(".window").css("border","none"); if($(this).parents("h1").siblings(".content").css("opacity") == "0") { $(this).parents("h1").siblings(".content")
[jQuery] [OT] please check website before launch
Hi mates, May i ask you guys to have a look at my latest project,a bit on the experimental side in terms of UI : a barcode image gallery for a spanish photographer: http://www.pixeline.be/test/lisapram/ Let me know of any bugs you find? AFAIK everything should run smooth (except for the long loading time). Please indicate your OS platform, browser and hardware specs. The initial load time is quite long so stick around please... Looking forward to your feedback! Thanks a lot, Alexandre
Next Page