[jQuery] selectors with xml cdata, parse html string
I hope this doesn't come through as a double post, I posted already and it hasn't shown up yet. I have an XML document that is returned which has an element named html. Inside of that element is a block of HTML wrapped with CDATA tags. I can alert the html variable that i create and see it has all of the data inside of it. So I want to parse through and grab certain things now. I'm just trying to get the element to return it's id to me, even though I know it ... because I kept getting the following
[jQuery] How to supply the xhr exception object to $.ajax()?
Hi, I've been using $.get() and $.post() extensively, but then noticed teh more functional $.ajax, which lets you handle server-side errors using the "error" option. The parameters to the callback function for the error option are: (xhr, status, exception), where in the documentation it says "exception" is the Exception object if it's supplied. My server-side is PHP, and when I perform a: throw new Exception("You can't do that!") or trigger_error("You can't do that!", E_USER_ERROR) it does run my
Jquery attribute purpose? Blocking referrer!
I was wondering what jQuery uses these attributes for inserted into the anchor tags (i.e. jQuery1250190927174="40")? I am able to modify the code using IE Developer Tools. On the links, I get a referrer if I remove the jQuery attribute (which is inserted dynamically) from the anchor tags. Example below: <a class="external new-window" href="http://www.google.com/" jQuery1250190927174="40"> So what's the purpose of this attribute and how do I debug the referrer issue or better yet fix it? I only have
[jQuery] jquery-DatePicker
Has anyone ever used the datepicker to add event from a database to a calendar ??? trying to connect to the database from the datepicker has been taking alot of my time . Please , i need help.
selectors with xml cdata, parse html string
I have an XML document that is returned which has an element named html. Inside of that element is a block of HTML wrapped with CDATA tags. I can alert the html variable that i create and see it has all of the data inside of it. So I want to parse through and grab certain things now. I'm just trying to get the element to return it's id to me, even though I know it ... because I kept getting the following error. I still continue to get this error with the current code below. Syntax error, unrecognized
[jQuery] jCarousellite: is it possible to remember a slide's position?
Today a client asked me if it's possible to remember a slide's position after clicking a link within a carousel. Basically, he hates how the carousel resets to slide 0 upon reload. Are there any suggestions on how to accomplish this? My guess is to load the link in a pop-over iFrame window similar to Lightbox.
[jQuery] Some basic AJAX questions re: jQuery load
Been playing with jQuery for a while but haven't really gotten my hands dirty with actual AJAX calls. I have a few questions regarding a (hopefully) basic call: $('div#myContainer').load("mySnippet.html"); mySnippet ends up being just a snippet of HTML: <div> my html I want to load via jQuery </div> First question: If I don't have a parent container tag in my xhtml snippet, I get the "Junk After Document Element " xml error. Obviously, jQuery is expecting XML back. Is it OK to send XHTML? Invalid?
Why don't my plugins ever work?
I am trying to get several plugins to work and have sent emails to each of the developers for each plugin. Does anyone have experience using "ajaxify', 'ajaxContent.js', or 'ezjax'? None of these work according to the documentation available. I essentially need to have a link clicked which populates a div with an image gallery contained in an html file. I really need to find a solution to this or I will have to go back to using the Spry framework. I wish these were easier to implement - but it seems
[jQuery] 'Wrapping' some (not just 1 pair) HTML elements in a <div>?
Yo guys, I need to wrap this chuck of HTML in a <div>: http://is.gd/2qatX Any thoughts? $(document).ready(function(){ $('<div class="scrollablePost">').insertBefore('.page-id-9 h2'); $('</div>').insertAfter('.page-id-9 .postmetadata'); }); ...just pumps out <div class="scrollablePost" /> at both ends, as you'll see from the above screenshot. Thanks, L
[jQuery] event handlers that run after the browser's default action
is there a way to set up a page so that a event handler function is bound to a DOM object and event but it runs _after_ the browser's default action is complete?
[jQuery] Dynamic AJAX call on element show()/toggle()
ok I am using the table expanding code found here http://www.jankoatwarpspeed.com/post/2009/07/20/Expand-table-rows-with-jQuery-jExpand-plugin.aspx basicily it hides the even rows on the table and when you click a row that is shown (a master row) the row under it slides into place. it works great but it's built on the premeiss that the content in the hidden rows is loaded on page load and just waiting to be displayed. I am looking to make this dynamic and cant think how to do it. this is what I want:
[jQuery] JCarousel issue.
Hi, I have the JCarousel working in the horizontal position. It changes automatically and can display say 5 images correctly. But when i try to set it to vertical the images get squashed together. Does anyone know how i can fix this. Regards
Datepicker on dialog form?
Hello i have tring to make a dialog box, with a datepicker, but don't work, i have take the exemple and i have add it, someon can help me and tell me how make work this please : <!doctype html> <html lang="en"> <head> <title>jQuery UI Dialog - Modal form</title> <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" /> <link type="text/css" href="css/ui-lightness/jquery-ui-1.7.2.custom.css" rel="stylesheet" /> <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
[jQuery] Checkbox perpetually marked as checked
Hello, I'm trying to write an if else statement in javascript so that when a check box is checked, a table will appear, and when it is checked again, another box will appear. However, the checkbox is constantly marked as checked, and I do not know why. I did not set any checked attritube to false or true. What gives? function GetStoryPoints() { var ownerCheck; var creatorCheck; if (document.getElementById("ownCheck").checked = true) ownerCheck = true; else ownerCheck = false; if (document.getElementById("createCheck").checked
[jQuery] jQuery.event.trigger internals: why is click/onclick on a tags skipped?
Code in question: http://code.google.com/p/jqueryjs/source/browse/trunk/jquery/src/event.js#256 http://code.google.com/p/jqueryjs/source/browse/trunk/jquery/src/event.js#262 Why is it not triggering events if it's "click" on "a" elements? And where is "click" on "a" elements handled?
IE7 issues
Have an issue with some custom Jquery not loading/working in IE7. Here is the kicker however, in testing it on different computers all with IE7.On Half the computers it works just fine and the other half it does not work. So it works on one computer but not another, so on and so forth. Really are at a loss as to why or how this is happening. On the computers that we are able to view the site fine in IE7, the only way we have found to replicate the problem is to turn off active scripting. The computers
Revalidating form data
Hello, Please help as I'am stuck. I am trying to validate some form input fields (inside a particular div on the form) on submit and I have written a function (submit handler) for that. jQuery("#new_profile").submit(function(){ var contactTypes = new Array( 'mobile', 'email', 'twitter', 'im' ); var oneProvidedSystem = false; var oneProvidedPublic = false; var oneProvidedEach = false; jQuery(contactTypes).each(function(i){ contactType = "#contact_types_system_"
[jQuery] Having a problems with $.post() and external .js files
Hi all, Can someone help? I'm having a problem with $.post() and including external .js files. I include my jquery in the header of each page: <script type="text/javascript" src="includes/common.js"></script> I have a php file which includes a form [an external php file called searchformbox.php]. Each time a <select><option> is changed in the form, jquery handles the submit by doing a $.post() and sending all the form variables back to searchformbox.php. The searchformbox.php with the new form options
[jQuery] form elements brainteaser
I have a good idea of what I want to accomplish, but I'm not sure how to do this with jquery. If you can help give me an idea of what I must do or how to accomplish this I would GREATLY appreciate it! I have a form that can has 4 radio buttons and two sets of text inputs. The first set always contains 6 inputs. the second set can contain between 1 and 5 inputs. The goal is to allow the user to enter numbers in the two groups of inputs that total 100 (in both groups combined, not 100 for each group).
[jQuery] JCarousel auto resize vertically
How do i get the JCarousel working automatically in vertical with auto re-size. It works fine horizontally but when i try to do more than 3 pictures vertically they get squashed.
[jQuery] Replace select with it's value.
Is it possible to run through an entire table and replace all instances of select with it's value instead?
ASP.NET Multiview and jQuery tabs problem
Hi, I have a strange problem with jquery tabs and asp.net multiview control. When i click button to switch multiview many times, values in textbox are reporoduced. It looks like this: When i remove jQuery tabs from site and leave multiview only - everything is ok. Does anyone have a similar problem?
[jQuery] add value from listbox to textbox
i have to create a listbox and a textbox. I want to select value form listbox then this value shows in textbox <code> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/ TR/html4/strict.dtd"> <html lang="en"> <head> <title>test</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script type="text/javascript" src="http://jqueryjs.googlecode.com/ files/jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('#edit-default-soure').change(function(){
[jQuery] Simplemodal close confirm
Hi, I want create a confirmation of close in Simple modal. I try make this code: $(\"#content\").modal({onClose: function (dialog) { if (confirm(\"Realy close?\")){ dialog.data.fadeOut('slow', function () { dialog.container.slideUp('slow', function () { dialog.overlay.fadeOut('slow', function () { $.modal.close(); }); }); }); } }}); It works, but only for first time. When i click to close button second time, is makes nothing. Can You help me? Thanks
[jQuery] Long running AJax request blocking the other ajax requests
Hi, I execute a long task by an Ajax request, and at the same time I would like to display the percentage of this task every second. The problem is that the percentage will not display as the first request is slowing down the others. Though ... they say Ajax is synchronous ... The code is quite easy to get: refreshPercentage(); [...] $.ajax({ type: "GET", dataType: "json", url: "<?php echo $this->baseUrl; ?>/admin/link-checker", // long task, synchronous success: function(data) {
jquery ui dialog query with how to continue with a link
Hi, I'm have a dialog box appearing with some options. This dialog box is a message to inform users that they have not saved their work. the dialog box has a "Continue" and a "Cancel" button. The cancel button works but I can't get it to continue with the href. $jquery('a').filter(function(){ return ( this.href.search("&APP_ID.:&APP_PAGE_ID.:") != -1 || this.href.search("CREATE") != -1 || this.href.search("CREATE_AND_CREATE_ANOTHER")
tab index via tab name
Hi, Can anyone please help me with couple of doubts. 1> Via JQ, how to get the tab index via tab name/taxt? 2> Is it possible to add tabIndex automatically? Thanks
[jQuery] jquery license - what do my company have to do
Hi everyone, For the latest project I have lead (which is a java web project) I have included some jquery,jqueryui and 1 or 2 jquery plugins, knowing that the MIT license allow us to use it even for commercial use. Now that the v1 is almost done. We are wondering what exactly we have to do to be "legal". MIT license says: "on the condition that the license is distributed with that software." what does that mean exactly? Do we need to write a line in our docu saying: "use jquery,..., which is under
[jQuery] Animation "Vapour Trails"
I've been trying to write an extension to the animate function to allow the animation of elements along a parameterised path (in the original motivation this was around the diameter of a circle) whilst keeping use of things like $.easing and $().stop(). I've managed to put something together that seems to work, except that in the basic example I have one of the animated elements leaves a trail behind it as it moves it certain browsers. It seems to work fine in IE6 and Opera(Win) but leaves a trail
[jQuery] Adding a progress indicator for file download
Users on my site can select items from a form and when they click submit I create a pdf and download it. Now I have the form working, the submit creates the pdf and the result downloads without any issues. The problem is that it can take 5 - 10 seconds to generate the pdf. Is there a way to use jquery to display an animated progress image when the user clicks submit and remove it when the download window pops up? I can add js code to display the animated gif, but how do I know when to remove it?
Pause on hover
Hello can someone please help me i have a content sldier that is wrapped in a div called featured and it automatially slides through the images all i need it to do is pause when my mouse is hovered over the div. here is the code can someone help please? <script type="text/javascript"> $(document).ready(function(){ $("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 4000, true); //this is the bit ive tried adding and it doesnt work// $("#featured").hover(function () { $("#featured").tabs('disable');
IE problem...
this code is being ignored in IE 6... (don't know about IE7, will find out tomorrow..) function noLink(id) { var div = $('#'+ id); div.addClass('navAllNoLink'); } it works fine in FF, prob is only on IE... (what a surprise.... thank you..
image gallery plug-in that uses anchor tags?
Hi everyone. this is my first post! I'm really new. I'm looking for a simple plug-in that will allow me to run an image gallery with editable/format-able descriptions that can be called from a list of anchor tags. i.e. I don't want thumbnails, just a list of image titles that will throw up a corresponding image and a short description paragraph underneath. after 2 days of searching, i've found lots of nice image galleries and slide shows that but they are all really similar and i can't find a single
[jQuery] invalid object initializer. Pls Help
I'm trying to animate a couple of fields in a form. When the focus lands on field A it grows to 300px and fieldB shrinks to 100px. When focus lands on field B, it grows to 300 and field A shrinks to 100px. Here's my code: function resizeSearchAsk() { console.log('SearchAsk'); $('#fldA').animate({'width', '100px'}, 'slow'); $('#fldB').animate({'width', '300px'}, 'slow'); } function resizeAskSearch() { console.log('AskSearch'); $('#fldA').animate({'width', '300px'}, 'slow'); $('#fldB').animate({'width',
[jQuery] Problems with blockUI and the form plugin
And I'm using taconite too so possibly one for Mike ;-D To summarise: I'm calling blockUI and then running ajaxForm on my whole page form. BlockUI is firing an overlay (with form field content) but only after the form has been ajaxed. Because of this my fields aren't seen as in the form and so subsequent form submits fail. Firebug says: form is null, /assets/js/jquery.form.js, Line 364 (form.clk = this;) The longer version: The javascript for these events are being returned to taconite within <eval>
[jQuery] How to find active hyperlinks?
I've this CSS to style my links in my menu: .menu a:link, .menu a:active, .menu a:visited{ color: #ffffff; text-decoration: none; } I would like to find the a-tag (<a>) which is active. I've tried something like: $('.menu a:active'). How can I find that element?
[jQuery] Looking for an auto-populate multi-select box plugin
Hello group, I am working on a form that has one select box that auto-populates the next select box with a list of values. The first select box is a category and the next represents a list of products within that category. When the category is selected, the list of products for that category appears. I've found many variants of this script on the web but there is one 'gotcha' that I have not been able to solve. The first select box of Categories is a multi-select, meaning that the second box should
[jQuery] jQuery internals and exception handling
Couple questions for the jQuery internals-aware folks. This is a bit long, sorry for that. I'm working on beefing up error handling in a web application. I want to ensure that I'm catching all exceptions and handling them via my own UI system. The window.onerror function is part of the solution, but there's a known problem with Firefox (https://bugzilla.mozilla.org/ show_bug.cgi?id=312448) that prevents onerror being called when the exception is thrown inside an event handler. In looking for a solution
[jQuery] Callback Not Working As Expected
I am looking to fade text out when the mouse passes over it and replace it with text that is faded in. My understanding is that this needs to be done through a callback, as the text needs to fade out completely before fading in. However, when I try to implement this idea the content does not fade in, so I must be doing something wrong. My code is: <script type="text/javascript"> var Tips = { ready: function() { $('ul#SiteNav li').mouseover( function() { $(this).find('div.SectionTitle').fadeOut('fast',
[jQuery] hide divs with float:left and show them again
Hi I have a site with a lot of small div-boxes (with images and movies within them) they are positioned with CSS and float:left. i created buttons, which show and hide either all images or all movies this works well. but when i switch between these options, the float-position of the divs goes crazy and every div-container is on one line for itself (instead of 5 on one line) does someone have an idea, how i can solve this problem? simon
Next Page