[jQuery] 'nodeName' is null or not an object
I have the following code that loads on $(document).ready: ------------------------------------------------------------------------------------- $('.ajaxdropdown').change(function(){ $('#charges-gsm, #charges-gsm-faq, #charges-gsm-prices').load('/ mobell/includes/html/gsm-tariff.php?c_name='+escape($(this).val())); ------------------------------------------------------------------------------------- Its pretty self explanatory, but to summarise I have three divs on my page - (#charges-gsm,
[jQuery] JSONP - not using PHP - having problems
Hello, I have read over almost every post in this group and still cannot figure this out. I am sure it has to do with the way I am creating my JSON object. Here is the file I am broadcasting the file from. http://www.simplifieddesign.biz/jsonTest.html The source does not include any <html><head> or <body> just the json I did have var jsonObject = {"object1" : "test", "object2" : "test2"} and var jsonObject = ({"object1" : "test", "object2" : "test2"}) On http://example.com/develop/wduff/cols/default.html
[jQuery] BlockUI and FF3
I've got a small problem with BlockUI In FF3 it seems to be always choosing the parent DIV to block and not the one I give it. And SURPRISE something is actually working properly in IE. ACK!!! So for now, its just a FF bug. The code is: var fan1 = $(bObj).parents(".post:first"); alert(fan1.length); $(fan1).block({message:null,overlayCSS: { backgroundColor: '#fff' } }); The alert tells me that the length is 1, and when I ask for the ID its the correct child DIV.
[jQuery] Filter select options values as you type
I´m looking for a plugin that filters the mached values of a select element. It´s something like Live Search plugin that´s John´s posted in his blog, but instead of filtering a list, it filters the options from a select element. There´s anything like this? If there´s not, what should I aim for and what should I do to develop something like this? Thank you very much :)
[jQuery] $("something").text() doesn't preserve whitespace in IE
I'm having some issues when calling $("something").text() in IE 6/7. Basically I'm getting the calling text() on a <pre> element which is whitespace sensitive. In Firefox and Safari it works perfectly returning the text with whitespace intact. Is it possible to make it work in IE or shall I give up? Thanks
[jQuery] validation without a form
Hey I need a validation plugin which I can use without a form tag. I have a CMS that removes form tags from my html on rendering because it have a build in form builder. Therefore I need to catch a div element instead of a form tag. Any ideas?
[jQuery] 1.2.4 to 1.2.6 question
I just found out that this function that worked (doubled checked to confirm) worked under 1.2.4 but isn't working under 1.2.6. I'm not sure what. Can anyone see anything obvious? bindDeleteLinks = function(who){ $("a.rembtn", '#' + who).unbind('click'); $("a.rembtn", '#' + who).click(function(){ console.log('bound and clicked ' + who); $(('#' + this.id + 'row')).css({display:'none'}); $.get('includes/tools/runtime.lasso?task=meetings&who=' + who + '&method=remove&pageID=' + pageID + '&rel=' + this.id);
[jQuery] Redefine validation rules dynamically
Hi guys, Is there any way to redefine validation rules for a form in runtime? I'm trying to redefine my validation based on a radio button using something like: jQuery("#myRadioButton").change(function(){ var selectedOption = jQuery("#myRadioButton:checked").val(); switch(selectedOption){ case '1': var validator =jQuery("#myForm").validate({ rules: { 'fieldOne': {required: true, maxLength: 6} }, messages:
[jQuery] Display (or not display) content based on url hash
Hello. Admittedly, I know very little about jQuery or javascript in general but it seems like it should be able to do what I need it to do fairly easily. I am trying to create a div on a page which would display different content based on the hash in the url. Is there a way to create several hidden divs on a page with the content I want and have a class that makes one visible based on the current hash in the URL? Any ideas on how would I do this? Thanks.
[jQuery] Question about accordion.
Hi, I’ve a question about accordion. I have checked the Doc and some Demo but I don’t see how I can do this. Some of my section of my accordion have a realy big content and sometimes when a user click on a section with this amount of content, he loses the beginning of the text because the section header will join the other sections in the move. Example (Made with tutorial by Steve Krueger) : http://www.francoismartel.net/test/AccordionJQ/test.htm Is there a way to automatically move the navigation
[jQuery] Cycle plugin doesn't handle time properly?
I have a problem with the otherwise nice cycle plugin (http:// malsup.com/jquery/cycle/) where the initial slide is shown for a little bit longer than desired (2-3 seconds too long - 17-18 seconds instead of 15) while the other slides are shown a lot less than desired (app. 4 seconds instead of 15)... demo: http://kimblim.dk/stuff/cycle/ I hope someone out there can help me, as I am sure that it is me who have messed up and neither jQuery nor the plugin. /kim
[jQuery] fckeditor and jquery validation
Hi to everybody, I have a problem validating a textarea generated by fckeditor with PHP. I have placed the fckeditor inside a form, and the problem is that if a put a char in the textarea and then press submit the validation says that is empty, and if I press again, it says is ok and sends the form. this is my code: <? include_once("fckeditor/fckeditor.php"); ?> <script src="js/jquery.js" type="text/javascript"></script> <script src="js/jquery.validate.js" type="text/javascript"></script> <script>
[jQuery] Jquery media plugin
Hello, I am using jquery http://www.malsup.com/jquery/media/ media plugin on my site. I am using jquery 1.2.2. My page renders and the media player script runs. However I get javascript error: Node cannot be inserted at the specified point in the hierarchy" code: "3 Regards Ismail -- View this message in context: http://www.nabble.com/Jquery-media-plugin-tp18364728s27240p18364728.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] numeric textbox with min and max values
Hi, I am trying to implement the functionality of a numeric textbox that allows only values between min and max values. This text box will be contained in a large html table. so instead of attaching the events to each textbox, I attached the events to the containing table. As the user types the values, it checks to see if the value is between min and max values. if so, it will allow the user to type the number. it is working fine as long as the user is in the same textbox. once the user moves off
[jQuery] UL drag drop
Can someone point me to an example of drag-n-drop within an unordered list? I need to replace a scriptaculous library and am giving jQuery a go because of it's massive praise of late. I've found plugins and examples of pretty much everything I'd need except for a simple drag and drop in a UL. Cheers, Dan<br clear="all"> -- <a href="http://danny-t.co.uk">http://danny-t.co.uk</a>
[jQuery] [Pagination Plugin] How to use it?
Hi, I am trying to use Jquery pagination plugin. I have read documentation but things are still not clear to me. Can someone please help me? What exactly we need to do in callback function? Will this pagination plugin work with Ajax call? <pre>$("#News-Pagination").pagination(122, { items_per_page:20, callback:loadContents }); </pre><pre>callback A callback function that is called when a user clicks on the link. the The function receives two parameters:<span style="color: rgb(255, 0, 0);"> the new
[jQuery] Updated jQuery Talk by Remy Sharp
Remy Sharp has updated his jQuery Talk slides and they're available for viewing here: http://remysharp.com/2008/07/09/updated-jquery-talk/ Rey
[jQuery] Finding whether a tag is present in between two specified tags or not
Suppose I have two tags <Date> and <Time> as below: <Date> <Value>2008-07-07</Value> </Date> <TestTag> TestTag Text Node </TestTag> <Time> <Value>20:15:45</Value> </Time> How can I find whether TestTag is present in between the <Date> and <Time> tags or not? The <TestTag> may present any where in the document. But I want to know whether it is present between <Date> and <Time> tags or not? TestTag is not the only tag that exists between Date and Time tags.
[jQuery] help needed with simplemodal
I want to slide-in and slide-out the simplemodal. Anyone familiar with jquery simple modal please reply. Very urgent Thanks
[jQuery] How would I substitute the term jquery('class') for $('class')
I am working on a page that works correctly when I call it directly in any browser. If I include the page in my RIA app and run the script in firebug, the jquery script works correctly. If I include it in my RIA app with the script part of an external .js script, the script functions do not work AND do not cause an error. Other jQuery scripts in the app work without problem. My assumption is that the script must be conflicting with other frameworks that use the $() keyword and I know that $() is
Dialog
Hi all, I'm having trouble with floating dialog.. I tested code yesterday by linking in css and .js files directly from jquery.com to prove I could achieve what I wanted. Today, I downloaded all code to implement locally, but the dialog control is not playing the game... In firebug, I see the following error.. $[namespace][name] is not a constructor [Break on this error] $.data(this, name, new $[namespace][name](this, options)); indicating error is in ui.dialog.js (line 105) My code to display dialog
[jQuery] Strange issue with crossSlider
I'm working on a website which utilizes crossSlide, a jQuery plugin. It works in IE6/7 on the website itself but not on mine, while I use the same code. What's wrong? I tried using 1.2.3 instead of 1.2.6 but that didn't work either. URL: Site: http://84.86.134.134/swart/?p=home Plugin site: http://www.gruppo4.com/~tobia/cross-slide.shtml Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <script type="text/javascript" src="js/jquery-1.2.6.min.js"></script>
[jQuery] getJSON in IE6
Hi all! I have a bug with getJSON method in IE6. If I try to get data from another domain with this method by onready method everything is fine and it's returns me a normal json response, but if I try to reexecute function with getJSON method by clicking link I have no response from the server. All request links and server data was tested and meghod getJSON works, but no response and no callback execution. Do you know something about this trouble? Marat.
[jQuery] Links injected with jQuery not active in IE6
I am using jQuery to insert a series of links into a containing div. Upon insertion, these links are active in Firefox and Safari, but are not active (clickable) in IE6 (what a surprise.) While Internet explorer 6 does visually render the inserted code, it seems that the html elements are not recognized. If the same html is included in the initial code, the links work fine. However, when the are inserted after the DOM is loaded, they are not. Has anyone encountered similar problems, or is there a
[jQuery] caching AJAX data?
Hi folks, I have a page with a photo and comments on it. I load the replies to the comments for this photo via an AJAX request like so (I also use LiveQuery): JavaScript: /* Show Replies button action. */ $(".show_replies").livequery('click', function() { var photo_id_val = $("#photo_id").val(); var comment_id_val = $(this).attr("id"); $.post("/show_comments", { photo_id: photo_id_val, comment_id: comment_id_val }, function(data) { /* Update the div that holds the replies. */ $("#replies_for_"+comment_id_val).html(data);
[jQuery] Firefox Error (bug?) with Sortable
Hi, I've searched around a bit and can't find any examples of someone having the same issue, so hopefully someone out there can help. I'm try to save sort order server side through a ajax call on sortable stop. I've got this to work in IE6/7 using the stop: event to call a function i.e.: var sortingOptions = { opacity: .5, containment: "parent", items: ".item", stop: function(e) { OnSorted(e) } }; $(".toolBelt.sortable").sortable(sortingOptions); which calls another js: void function OnSorted(InE)
[jQuery] imagebox display problem - z-index issue??
Im using the imagebox interface plugin to display 6 pictures. However, they display not on top of my page, but partially on top and partially behind the rest of the page - ??? It's not complicated to use, so Im wondering if others have this problem. I'm using it with jquery 1.2.6- Here is how I'm setting it up- { loaderSRC: 'img/loading.gif', closeHTML: ' img/close.png ', border: '25' } ); -- View this message in context:
[jQuery] problem with a draggable object
Hi I wrote a script that makes objects that are kind of like sticky notes. You can move them around the page. I'm using .draggable() via the UI core library. My problem is that these notes often have scroll bars on them. When a user clicks the scrollbar to scroll the div, they move the object instead. Using the scroll wheel works as it should (scrolling the div, not moving it). Is there anything I can do to fix this? You can see an example here: http://isebeta.uvic.ca/Library/Texts/AYL/M/Scene/1.1
[jQuery] changing value of a object sub variable
<div>I have a simple plugin working that utilizes the jquery.flash plugin.</div> <div> </div> <div>I am using my plugin to load a flash file that has around 20 flashvars. (i only listed a few here).</div> <div> </div> <div>Most of the time the default flashvars are fine..but sometimes I need to modify only certain flashvariables... but not all of them.</div> <div> </div> <div>My question is how do I change only one of the flashvars so I dont have to add every single flashvar to every methodcall.?</div>
[jQuery] using doc.ready in an external .js file
Here's what I'm not getting about jQuery from a novice point of view. Let's say I have this: <script type="text/javascript"> $(document).ready(function() { $("#switcherBtn").click(function(){ $("#target").toggleClass("nodisplay"); }); }); </script> I have a function to toggle the display of a certain div. This div is on virtually all my pages, though, so instead of putting this in the header of each page, I want to put it in a global
[jQuery] BlockUI in IE 7 does not unblock
perhaps you can help me, I have the following code: var waitDiv; var selectMachineDialog; $(document).ready(function() { waitDiv = document.getElementById("waitDiv"); selectMachineDialog = document.getElementById("selectMachineDialog"); $.blockUI(waitDiv, {border: '2px solid #FFC000'}); if(haul_id != null){ loadHaulRequest(haul_id); } else { getHaulTypes(); getHaulMachineLocations(); document.getElementById("customer_id").focus(); } $.unblockUI(); }); The blockUI works exactly as desired
[jQuery] returning a string of html in a matched tag
Hello, I have some xml that looks like this: <result> <summary> <voters> <a href="user1">user1</a>, <a href="user2">user2</a> </voters> </summary> </result> I would like to have a selector that just returned the string: <a href="user1">user1</a>, <a href="user2">user2</a> but can't seem to get it. Here is what I have tried: $("summary voters"); //returns: <voters><a href="user1">user1</a>, <a href="user2">user2</a></voters> $("summary voters").text(); //returns: user1, user2 $("summary voters a").join();
[jQuery] Cycle Plugin Fade Issue
I have noticed on my website, as well as the JQuery Cycle Plugin's Home Page, that when the fade effect is used, divs in the header (including the text) are undergoing the fade effect not just the slideshow. Any thoughts? An example is at http://malsup.com/jquery/cycle/fade-in-first.html (Pay attention to the top navigation). I've played around with it and it's not just fading in the first image. It's anytime the image is fading. Thanks in advance!
[jQuery] [validate] Adding rules and messages at once using the jquery validation plugin
I really love the validation plugin (http://docs.jquery.com/Plugins/ Validation/rules#.22add.22rules). I am using the functionality to add a rule for an input one one line. See below: $("#myinput").rules("add", { required: true, minlength: 2 }); I am wondering if there is something equivalent for messages as well. Like $("#myinput").messages("add", { required: "This field is required", minlength: "The field requires a minimum length" }); I tried that and it didnt work but I am not sure if there is
[jQuery] Chili 2.2 supports local line numbers
I've just released version 2.2 of Chili, the jQuery Code Highlighter. (http://code.google.com/p/jquery-chili-js/) It now supports local line numbers too, which means that you can turn on line numbers on a PRE by PRE basis. Apart from the necessary start from an offset other than 1, I've implemented a feature that I call "automatic segmentation". If you add a class like "ln-123-some-name" to a bunch of PRE elements, Chili will add sequential line numbers to them, meaning that the first PRE will start
[jQuery] jScrollPanel not always initializing in Safari
I am using jScrollPanel, and I have noticed that it does not always get initialized when the page first loads in Safari. If I refresh the page, it correctly loads up jScrollPanel. Any ideas why this might be happening? http://www.puc.edu/ Thanks!
[jQuery] load event on opened window
Hi, I have a vague intuition of why this wouldn't work... var win = window.open(); $(win).bind('load', function() { alert("LOADED"); }); win.location = someURL; ...except that it does work, but only in Firefox (only tested with FF3). Safari and IE7 never show the alert. So who's right ? -- Luc Heinrich - luc@honk-honk.com
[jQuery] passing variable from javascript to php via iframe using tableeditor
The user starts out by clicking a link - [code] <tr class="home"<td>Location</td><td><input type="button" onclick="vtwo.two()" value="Flexigrid"</td></tr> This leads to a js file where an iframe is called to pop up a dialog box - it is at this point that I want to pass a variable in the url: [code] var vtwo = { two: function() { var url = 'test.php?gameno=2'; $('<iframe id="popup" src="' + url + '" />').addClass("flora").dialog({ title: ....., modal: true,
[jQuery] UI Tabs and Mootools conflict
Greetings, Thanks for taking the time to read this! I tried to post previously, but I am afraid the post was lost as I cannot see it. I apologize if my previous post is already up. I hope you can help me. I am afraid when it comes to javascript I am all thumbs. I am attempting to get UI tabs and mootools to work together. I tried to follow the tutorial here:http://docs.jquery.com/ Using_jQuery_with_Other_Libraries but I am afraid I just can't get it to work. Here is my current script, before I altered
[jQuery] .hide() Doesn't Work Fast Enough?
I'm using jQuery to fade in my site logo on my home page header, to give the home page some animation. It works great. So that the page will degrade gracefully if the user doesn't have Javascript, the HTML has the complete logo already visible. That's what users without Javascript see. If the user has javascript, I first hide() the logo using jQuery. Then I fade it in. However, many times when I load my home page, I see the logo briefly before jQuery can hide it. You see the logo for a split second,
Next Page