[jQuery] Traverse XML string
Hi, I want to read the values from a simple xml string but can't get it to work. Here's the code: var xml = "<food><burger>cheese</burger></food>"; // example 1 var result = $(xml).find("food").find("burger").text(); // example 2 $("food", xml).each(function(i) { result = $(this).find("burger").text(); }); in both examples result is empty. I tested that jquery is working by setting the body backgroud color. Regards, FatSlags2004
[jQuery] Simulate Link being clicked...
First off, I'm not sure this is even possible, but I thought I'd ask... Is it possible to use jQuery (or just plain JavaScript) to simulate a link click? Can something like this be done? // Script function doSomething() { // executes some code } $(document).ready(function() { $("#MyLink").... // Some code that causes Link 1 to execute as if it was clicked when Link 2 is clicked } // Markup <a href="#" onclick="doSomething" />Link 1</a> // Link 1 <a href="#" id="MyLink" />Link 2</a> // Link 2 Also,
[jQuery] [tooltip] Strange behavior of tooltip plugin in IE7
---------- Forwarded message ---------- From: Miquel <miquelh@gmail.com> Date: 2008/12/1 Subject: Strange behavior of [tooltip] plugin in IE7 To: "jQuery (English)" <jquery-en@googlegroups.com> Hi all, May be some can help on this problem. When the tooltip plugin [http:// plugins.jquery.com/project/tooltip] is applied to an absolutely positioned box nested into a larger absolutely positioned box, all boxes flicker when the mouse is hovering and if the tooltip eventually displays is only because the
[jQuery] Cycle.js issues
Hello I am trying to get cycle.js to work, and I have no idea why it isn't. Here is my code: <script src="scripts/jquery.js" type="text/javascript"></script> <script src="scripts/cycle.js" type="text/javascript"></script> <script type='text/javascript'> $(document).ready(function(){ $('#s1').cycle('fade'); }); </script> And you can view the test site live here: http://hbeckett.com/presentation/ A solution would be greatly appreciated. Thanks
[jQuery] Dynamic Stylesheets
How do you dynamically add or remove stylesheets to a page? I've seen a lot of examples on how to add css styles or classes to an elment, but I haven't found anything on adding/removing entire stylesheets...
[jQuery] Click event broken by AJAX - explain please?
Having read the handful of mentions I could find, the underlying 'why' is still a mystery to me. I tried stepping through the code with Firebug but can't make out why it's not working, although I have MADE it work in this manner: $("a").click( function() { var self = this; setTimeout( function() { $.get( $(self).attr('href'), function(html){ <...put the html into a textbox...> } )}, 500 ); return false; } So what is the actual reason when the .get() executes, the return false never
[jQuery] Horizontal menu with slide down and hover bug with firefox
Hello, I've been looking for a way to make my horizontal menu work with firefox using jquery slideDown and Up animations instead of fadeout . The problem is that with firefox if you move the mouse out of the sub menu area and then in again before the animation had finished the sub menu starts sliding up and down untill you move the mouse away again. Here is how I've done my menu : HTML :
[jQuery] MIT or GPL License
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face
[jQuery] [tooltip] - Bug or something
Hello! I have recently tried to install the tooltip and got it to work just fine. Now to the issue: I have a website that has some small Ajax injections into it. The tool tip should appear on each element of an Ajax injected list. The Ajax injection used is $('.list').load("/ajax-list.php"); The problem is that if I apply the tooltip on an onpage HTML element, it works fine but when I'm trying to have the tooltip on that Ajax list, it won't appear... actually the title appears as a default browser
[jQuery] if ($("#field").val() == '') or something more elegant?
Hello, I'm wondering if this is the correct way of checking whether the textbox is empty or not: if ($("#text").val() == '') Thanks.
[jQuery] Combining ajaxForm and livequery
Can I use livequery on ajaxForm? or is there another way to add event listeners to ajax produced form? This page redirects to the example http://reenie.org/test/hffc.php If you click "Login" and add any name, the form submits and shows you logged in. If you don't add a name the form submits and mimics the situation where the user is not found. It displays an error message and displays the login form again The "close" button works before and after the form is rewritten because it uses livequery to
[jQuery] Nokia 95 AJAX problem
Hello guys! I'm doing mobile web work and am using jQuery for AJAX callbacks... It all works nicely on my Vista Box using Safari, IE7, FF3 and Chrome and I've been testing it on my N95 browser which I think is Safari version 2.0 - www.cyscape.com told me :) I've hit a problem with the AJAX calls on the N95, I'm getting a 'success' on the textStatus when using $('#hidden').load (url,"",callback(data, textStatus)) but the data part is null. On the other browsers it's returning the contents of the server
[jQuery] bresenham algorithm
Hi! this function draw a line using bresenham algorithm. I created a selected line to draw. when the user movemouse, the oldest line is erased and a new selected line is created. but the process spent a lot of time. I think the problem is in outstanding line. Is there best way? thanks, Dirceu Barquette isabela_draw_line = function (s) { $.fn.isabela_draw.new_set({in_action:true}); $('.isabela_draw_board') .bind('mousemove',function(e){ relX = e.clientX - s.position.clientX;
[jQuery] click not triggering on safari (mac), chrome (windows)?
Hi jQueriers, Bumped into an oddity on Safari and Chrome. I have a HTML page and I want to intercept all <a> links and feed them through an ajax request instead. So I first do this $("a").bind("click",handleAjaxifiedLink); which routes clicks to function handleAjaxifiedLink(e) { e.preventDefault(); loadPage(e.target.href); return(false); } This works under IE and Firefox, but Chrome and Safari just seem to ignore it. Am I missing something really obvious? I don't
[jQuery] What's wrong with my slideUp slideDown?
Hi guys, I have a simple md5 password encryption form and I'm using jQuery to create an effect: <script type="text/javascript"> $(document).ready(function(){ $("#encrypt").click(function(){ $("#encrypt").attr('disabled', true).val('In progress...'); $("#result").slideUp(0, slideUpCallback); $("#result").slideDown(0, slideDownCallback); }); function slideUpCallback() { if ($("#text").val() == '') { $("#result").html(' You didnt enter the password!');
[jQuery] IE 7 Issue with Tab with left: -10000px
Following works strange in IE when using Jquery Tabs: .ui-tabs-hide { position: absolute; left: -10000px; } When I do the above, on IE 7, the width of the pages in tabs become huge and goes out of page on left and right both. These tab pages have tables. And I do NOT have table width set to 100%. It works fine on firefox and safari. Any clues what could be wrong?
[jQuery] Please comment on any shortcomings of code or logic
Hello friends, I am learning jquery these days and I am building small plugins just for learning purposes. This link show a paginator plugin I just made. <a href="http://pastebin.me/493aa9fe2b475">http://pastebin.me/493aa9fe2b475</a> Kindly give any suggestions you will, so that I can improve my learning and understanding. I would be grateful regards shavinder
[jQuery] Superfish: Can't make the shadow and animation work
I am using Superfish vertical in a Joomla site and while it is working quite well as a vertical menu, the animation and the drop shadow just don;t work.I have tried just about anything and I have used the initialization from several examples without anything ever changing. I modified the CSS quite a bit (could that be it?) but I left the JS intact. I did have to remap a few things to adapt it to the Joomla menu system, but the mapping of the images is correct (I map it absolute while in development
[jQuery] [validate] Multiplying error messages
This is my first time trying to use the validate script. It looks great, but something is wrong with my set up. I basically tried copying the functionality of the simple demo. <script type=text/javascript src=/js/jquery-1.2.6.min.js></script> <script type=text/javascript src=/js/jquery.validate.js ></script> <script type=text/javascript> $(document).ready( function(){ $('#regForm').validate(); }); </script> <h2>Register</h2> <table cellspacing=4 > <form id=regForm action=/user/register
[jQuery] Confirm Deletion
i need to delete a row from mysql DB, click delete buttonn and fadeout then delete record from DB. HELP PLEASE ... Below is my code: $(document).ready(function() { $("a.delete").click(function() { if (confirm('Are you sure you want to delete ? - ' + this.id)) { $(this).parent().fadeOut(1000, function() { $(this).parent('tr').remove(); //delete(this.id); window.location.href = 'test.php?delnews=' +
[jQuery] Problem with getting data from JSON result
Hi, I'm new jQuery and JSON. I'm trying to use it to populate a dropdown list through a web service and jQuery. So far I've succeeded in calling the web service and receiving the list of items in a JSON format. However, now I'm stuck adding these items to the dropdown list. my web service returns a list of projects (Items) for a customer: ----------------------------------------------------------------- http://localhost:3797/Test.asmx/GetProjectsForCustomer POST /Test.asmx/GetProjectsForCustomer
[jQuery] Creating a Plugin
I'm making an edit in place plugin, and am running into an issue, mainly because I'm not sure how to do it. The data I am working with is bbcode, so what is seen on screen (non editing) is not bbcode, but it decoded. I would like to be able to return the bbcode to work with it in another area. I'm just not sure how to do that. What I'd like to be able to do is to initialize it: $('#test').bbcode (); and then be able to call it again (or something) to get the actual bbcode out. So, something like
[jQuery] Accessing objects from JSON result with jQuery
Hi, I'm new jQuery and JSON. I'm trying to use it to populate a dropdown list through a web service and jQuery. So far I've succeeded in calling the web service and receiving the list of items in a JSON format. However, now I'm stuck adding these items to the dropdown list. my web service returns a list of projects (Items) for a customer: ----------------------------------------------------------------- http://localhost:3797/Test.asmx/GetProjectsForCustomer POST /Test.asmx/GetProjectsForCustomer
[jQuery] Variable scope: Newbie Question
Hi there, I'm sorry this is a pretty newbie question.... I am using JQuery with an xml file and autocomplete. What I am trying to achieve is to use an xml file as my data source to autocomplete cities in a form once a user selects their province. When a user selects a particular province then only the cities in that province will be listed by the autocomplete script as the user starts to type in the 'city' form field. My problem here is that I am trying to use the array 'towncity' as my data source
[jQuery] Expose an event?
I made a searchbox object that I can add to a GoogleMap. It lets a user draw a box on the map and keeps track of its max and min lat and lon. I'd like to have it raise an "updated" event whenever either of its internal draggable markers fires a "dragend." That way other objects can watch for an "updated" event and hit the server to search inside the new boundaries, or repaint the map, or update a database with the new boundaries. I looked for a while at event delegation, but that didn't seem to be
[jQuery] [validate] How to display validation error messages in a tooltip? JORN
Jorn, Back in April of 2007 you had a discussion on your comments section for your ToolTip Plugin, here's a quote of that conversation. ____________________________________________________________________ OSCAR 24. April 2007 |10:55 Add tooltip to validation. It is posible to add a tooltip in order toshow the “error message” of a validation. My Problem: I have a form very big for that reason I only can put a “*” if a input validation fails. I would like to add a tooltip with the info about the error.
[jQuery] ajax troubles
Hello, world! My English is no good & this is my first javascript code )). I've a text field for 8-symbol auth code: ------------------------------------------------------------------- CUT var sAuthCode = ""'; var iAuthCount = -1; var sAuthCacheCode = ""'; var iAuthCacheCount = -1; $(document).ready(function(){ ... $("#code").keyup(function(){ AuthEvent(); }); ... }); function AuthEvent() { var iAuthCode = 0; sAuthCode = $("#code").val(); iAuthCode = $("#code").val().length; if (iAuthCode != 8) {
[jQuery] JQuery and Asp.Net datasets, Linq....
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=Content-Type content="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face
[jQuery] Need help with AJAX
Hi, I have used the '.load' function to load a HTML page into a division through AJAX. But i noticed that if i insert any other jquery scripts in the page that is loaded through AJAX, then they are not executed. As an example i loaded a page using Ajax into a div, from a link in that page i wanted to open a lightbox, but instead the content would just open as a usual html page rather than open in a lightbox. Is it possible to include more javascripts in a page loaded thropugh AJAX?
[jQuery] chinese Girls Pictures,Asian girls Pictures,Western Girls pictures ,India Girls pictures,Russia Girls pictures
chinese Girls Pictures,Asian girls Pictures,Western Girls pictures ,India Girls pictures,Russia Girls pictures chinese Girls Pictures http://www.henub.cn/ http://www.cn.1dis.cn/ Asian girls Pictures http://www.vpshz.cn/ Western Girls pictures http://www.western.1dis.cn/ India Girls pictures http://www.india.1dis.cn/ Girls Pictures www.lu8.org Russia Girls pictures http://www.russia.1dis.cn/Free Girls Pictures http://freegirlspictures.blogspot.com/ Cartoon Girls Pictures http://cartoongirlspictures.blogspot.com/
[jQuery] $.load callback calls "hide", but element doesn't hide
Hello there, I am experiencing some problems using $.load and $.ajax to pull content from a url and display it in a div. I created the attached example page to show what I mean. I expect that when I click the link, the indicator.gif image (or "Loading...") will appear for a moment, then disappear as the "response.html" page appears. Instead, sometimes the indicator.gif image doesn't disappear, leaving both the response.html page and the indicator.gif image on the page indefinitely. Also, occasionally
[jQuery] TableSorter + Validate problem
Problem: Can't use Validate on forms inside a table sorted by TableSorter I have a table with rows, each row is a form. I run TableSorter on it at load time to sort on default columns. When I click submit for a given form/row, Validate validates the wrong form. When I turn off the default sort, Validate works fine. I have tried: 1) Giving each form it's own id 2) use validate() + classes 3) use validate(rules:{...}) Any ideas? The actual application is not available publically (of course) so I have
[jQuery] Hide a div on blur
I have a div which is shown when a AJAX callback is executed, but I can't get it to hide again. I'm using some of the code from the autocompleter and the div contains a <ul>. The code I have is at http://pastebin.com/m4b7bf13c . I've left out everything but the relevant parts. I thought I understood how the autocompleter hides the menu when the user clicks elsewhere in the window but I can't get it working. Is there something I've missed out?
[jQuery] ClueTip postioning
Could you please tell me a way to position the Cluetip relative to its parent div instead of having it offset from the invoking element? I need the Cluetip to sit in a fixed position on the page. Thank you in advance. Great Work!!! -- View this message in context: http://www.nabble.com/ClueTip-postioning-tp19864348s27240p19864348.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Hiding tooltips
Hi all,<div> </div><div>I'm using the "title" attribute to create my own custom tooltip, very simple so it doesn't really need a plugin.</div><div> </div><div>Everything works fine, except I would like to hide the default tooltip (yellow on Windows). How would I go about this?</div> <div>How do the tooltip plugins do it?<br clear="all"> </div><div>Many thanks,</div><div>Alex </div>
[jQuery] Trouble with autocomplete and jquery
I am having a little trouble with an autocomplete feature and jquery. I'm using the autocomplete plugin and what happens is if the user types too fast, the list that is generated pops up too slow and occasionally the user misses the fact that its an autocomplete field. Is there a way to make the list of results show up instantaneously or am I out of luck here? Thanks!
[jQuery] Help creating a special menu
Hi! Sorry for my english! I need help to create a special menu with jquery. In this menu, when I will be hover a "button", it remain the same, but all the other changes! You can see a very basics and work in progress example in the orange menu here: www.ivanisevic82.com I used this tutorial: http://www.3point7designs.com/blog/2007/12/22/advanced-css-menu-trick/ So, I created this menu with this code: PHP: <ul> <li><a href="http://xxx.com" accesskey="3" id="home" title="Home">Home</a></li> <li><a
[jQuery] Using "window.location.hash" for URLs without plugin
Hi,<div> </div><div>I'm trying to use URL's such as '<a href="http://mysite.com/#contact">mysite.com/#contact</a>' that will show a certain div.</div><div>I have my function written and working to show the div, currently being used as "$("#a.contact").click(showContact);" </div><div> </div><div>How would I use something like "<span class="Apple-style-span" style="border-collapse: collapse; white-space: pre; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">window.location.hash"
[jQuery] [ajax] [Pending - this message has not been accepted by the mailing list yet] Simple AJAX->PHP Request Returns "Access to restricted URI denied"
I'm trying to do a pop-up form that onsubmit will send the data to a PHP file that will mail(the_data). The page is located here : http://www.kuhnsjewelers.com/products/blue-topaz-and-peridot-ring Click on "Share this item" and when you click Send, firebug returns the "access to restricted uri denied" error Here's the function that is called when the user clicks send : $('#share-send').click(function() { $.ajax({ type: "GET", url: "http://www.sunrisedesign.com/clients/kuhns/shopify/ share.php", data:
[jQuery] Select "next" until specific element is reached
I have a simple show/hide thing I'm working on, but I can't figure out how to have the script show ALL the hidden rows up to the next heading. Here's how the simplified HTML looks: <tr><td class="grouphead">Heading Text 1</td></tr> <tr><td class="group">Group Item 1</td></tr> <tr><td class="group">Group Item 2</td></tr> <tr><td class="group">Group Item 3</td></tr> <tr><td class="grouphead">Heading Text 2</td></tr> <tr><td class="group">Group Item 1</td></tr> <tr><td class="group">Group Item 2</td></tr>
Next Page