[jQuery] [validate] URL validation failing on a valid URL.
Is there a reason why URL validation is failing on the following URL? http://purchase.tickets.com/buy/TicketPurchase?organ_val=22031&perfcode=BD0608&perfsubcode=2008 It works fine on any other URLs I've tried. My jQuery code looks like this: jQuery(document).ready(function($){ $('#theForm').validate({ errorClass: 'validationError', rules: { url: { url: true }, email: { email: true } } }); });
[jQuery] Cycle plugin: TypeError: Null value?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.6000.16608" name=GENERATOR></HEAD> <BODY> <DIV><FONT face=Arial size=2><SPAN class=841483616-08042008>I'm writing an AIR application, and using the excellent Cycle plugin as the primary means by which to display data. It's been working perfectly until right now. I'm basically getting new data into the app via a method which takes
[jQuery] jQuery Treeview Plugin FireFox Problems [treeview]
Hi all, First a caveat: I'm new to jQuery and JavaScript. I'm having trouble with the jQuery Treeview plugin. In my hands it doesn't work properly on Firefox. On either Jorn's demo page (http://jquery.bassistance.de/ treeview/demo/) or my own local implementations; when a parent node is collapsed it's next sibling node moves up correctly, but gets indented to the right incorrectly as if it were a child of it's previous sibling. Have a look at a screen shot of the incorrectly formatted version on
[jQuery] jquery tooltips
Does anyone have a favorite tooltip plugin for jquery? I am currently using jTip for some AJAX popups but I have a need to just add some better documentation in the current UI and jTip is mainly meant for AJAX. Does anyone have a recommendation? I only found one other plugin and it was 120Kb in size :(<br clear="all"> -Vlad
[jQuery] $.each on HTML string returned from AJAX?
I am trying to run an .each on form subelements of some html returned in an AJAX request. Like so: var myReturnedText = "some text returned from server that contains one or more forms..."; $("form").each( function() { $(this).removeAttr("onsubmit"); } ); What I am having trouble getting my head around is where to put the reference to the original text (myReturnedText), since it is a variable and not a DOM element.
[jQuery] Help
Hello guys, i need some serious help here. My dad made a site, this http://www.videoriporter.hu . And he cant make it work. Can any of you help me? Thank you Sarah
[jQuery] Toggle an Image Button using jQuery - Help Pls.
Can someone pls assist me with a means of performing the following using jQuery: Currently, I have an image src file with is like a button with an onClick event, which basically toggles two images. When this image button is clicked, i.e, starts with "Menu+" and when a user clicks on it, it toggles to "Menu-" I would like to somehow implement this same feature using the same image in jQuery, by where when the user clicks on the "Menu+" image button, it toggles to "Menu-" but at the same time, an accordion
[jQuery] .load with getjson
is it possible to use .load with .getjson? tom
[jQuery] blockUI 2.02 question: default ajax behavior to block contextual element
hi again! i understand from the blockUI doc that using this super simple call, i can default all ajax calls to use blockUI. $().ajaxStart($.blockUI).ajaxStop($.unblockUI); Yet, i would like to know if it would be possible for the default behaivour to block the related element (that will receive the fetched data), instead of blocking the whole page, so something like $().ajaxStart($.block).ajaxStop($.unblock); I tried that and it didn't work. Also tried this: blockMe = function(){ $(this).block({
[jQuery] selectors return type
I am a beginner in jQuery. On the API doc (http://docs.jquery.com/ Selectors), it says some selectors return Element and other return Array <Element>. To me they all return Array <Element>. Even #id returns an array of one DOM Element. Am I correct? confused? Thanks.
[jQuery] Remove script
I have added a js file in my html file. <script src="test.js" language="JavaScript"></script> I want to remove the script from my file using jQuery. I have tried using the following jQuery('script[src="test.js"]').remove(); But the script is not getting removed. Please suggest some way for removing the script using jQuery.
[jQuery] problem with tablesorter and dynamic table content
Hello, So I have this table where the <tbody> is initially blank. Then when the document is ready I call a function that runs an AJAX query for the table content. The initial content is sorted awesomely! But when I call my function again with different parameters to get new content, things start to go wrong. The table fills with the new content just fine, but clicking on a header column to sort reverts the table content back to what it was when the page first loaded. As you can see below, I have
[jQuery] Issue with fadeIn/Out over show/hide...
All, I noticed a difference with fadeIn() over show() that forced me to use show() when I wanted to use fadeIn()... I have some elements in a div, and the background color of the div is different from the rest of the page so you know that these elements are grouped together. When the page loads, the display property of the elements is set to none. I use jQuery to conditionally display the elements when the DOM is ready and attach event handlers to other elements to conditionally hide and display
[jQuery] Same code structure to affect two elements, but one doesn't work
Hi guys, I created some code, but it doesn't seem to work and I don't know why? I have a UL list surrounded by a DIV that has a 3px solid LightSteelBlue border. I created code to change the text color and background color of each LI element and the border color of the DIV while the mouse is over any LI element, when the mouse is out, these styles are removed. The effects for the LI elements work perfectly, but the effect for the DIV doesn't. What am I doing wrong? Here's the code for the custom.js
[jQuery] Hover spanning
We used the superfish example css page below and modified it slightly. The problem now is that list item hover does not span the entire box only in IE. The screenshot below (contact box) shows an example where the opposing color does not span across the entire box. Screen shot: http://development.ciphertechsolutions.com/screenshot.jpg /* This file is commented in great detail for educational purposes. There is also * an uncommented version for use production use here: * http://users.tpg.com.au/j_birch/plugins/superfish/superfish.css
Trigger jquery events on a SELECT of a form
Hi everybody! I'm new here and I have a question. I am starting using Jquery to add some interactivity to webpages. At the momen I learnt how to populate DIVS at the click of a link. Now I need to do the same but on the SELECTION of and intem from a form SELECT. I use this syntax: $(document).ready(function(){ $("a") .filter(".link") .click(function(){ $("div#pic").load("AJAX_page.asp",{variables:"hello"}); return false; }) .end()
[jQuery] Possible Bug?
Hi together, I use jQuery for my daily work. Today I encountered a strange problem: If I write a list of OPTIONS into a SELECT box by using JavaScript this works fine in Firefox either with jQuery and also without. But when the list of options starts with a html-comment jQuery removes all the options and only displays the text. I've tested it in Firefox (wich has problems), Opera (works fine), Konqueror (works fine), IE6 (has more problems). I've uploaded an example at: http://www.schwarzdennis.de/tmp/jQuery_test1.html
AJAX pages with DEFAULT actions [solved]
This is quite difficult to explain. It's a generic issue I've been facing a few times, and I think it's something quite popular. I manage to do some interaction with AJAX by using Jquery. Filling divs is the most common and most useful task. The problem is: HOW TO CHOOSE A DEFAULT ACTION for an AJAX PAGE? When a page is interactive it comes BLANK until a user does something, but how to do a page with already selected option, clicked links and so on? This is quite a issue. I made a nice tabbed menu
[jQuery] Nested ajax calls not working in IE7
Has anyone come across this issue? I have an ajax callback with a function defined in the success member which fires another ajax callback. In Firefox this works fine but in IE7 only the first callback fires. here is the code // Get a Session Id $.ajax({ type: "POST", url: "/WebServices/KayakService.asmx/GetSession", beforeSend: function(xhr) { xhr.setRequestHeader("Content-type", "application/json; charset=utf-8"); }, dataType: "json", success: function(msg) { sessionId = msg; alert(sessionId);
[jQuery] UI Tabk issue in Vista + Firefox 2.0 and 2.0.0.7 version
Hi jquery UI tabs is not displaying properly in Windows Vista with firefox browser version 2.0 or 2.0.0.7 Tabs are displaying as list instead for displaying as tab, it works fine latest version FF and IE7 Can anyone help pls
[jQuery] unresponsive script error on long page with many clueTips
Hello, I have a dynamically generated page that can be long or short. Everything is fine when it's short, but when it gets to be *very* long, it gives unresponsive script errors. I believe this is because each entry on the page contains 3 clueTip links. If I have a thousand entries, that's 3,000 clueTips to bind and possibly keep in memory and then unbind when the user leaves the page. That's a lot! Any suggestions on how to prevent these errors? My only thought is that instead of using jquery to
[jQuery] ajax requests and dom events
hello i was just wondering what the best way for events to work on a panel after an ajax call has been made to get the panel. My current panel code is http://pastebin.com/d3e42f9d8 Everything of this code works except for $('#tabpane > ul').tabs({ show: function(){ alert('test') } }); The show: part, although the tabs are still created.
[jQuery] Two versions alongside each other
I'm looking for a way to have two versions of jQuery running side by side, I found a page that talks about using noConflict* with other libraries, but that doesn't look like the solution for me. The versions I want to use are 1.0.4 and 1.2.3. Is there anything I can do? * http://docs.jquery.com/Using_jQuery_with_Other_Libraries
[jQuery] Can you poll a database with jQuery or do I just use plain ajax?
Hi, new to jQuery and really any of the javascript libraries. I have read about many of them and seen the examples and am settling on jQuery or Mootools. If I want to poll a database every x seconds and view new entries by users on a site (assuming I have many users updating, etc.), is that an ajax only thing or is that jQuery? In other words, is that something that I should do in Ajax alone or use the ajax jQuery classes? Thanks.
[jQuery] Problem With FadeOut
This is my first project using jquery, and i also I'm newbie to javascript. I Making a component for joomla using jquery, to make slideshow. see http://lapollainc.net/index.php?option=com_smartjgallery&task=slideshow&Itemid=33. on local site the transition is okay. but when i uploaded to server the transition become ugly..how can i fix this? i try to adjust the speed of fadeIn/out...but still the transition buging me
[jQuery] slow and jerky slide on Firefox 2.0.0.13 (Ubuntu/ Core-2 : 1.8GHz)
Hi, I started using Jquery 1.2.3 (uncompressed) for development and learning/. Just one simple effect in whole page using the Jquery tutorials, a div is toggled (slideUp/slideDown) when a button's is click. This runs smoothly on Opera (Ubuntu), but very sluggish on Firefox (Ubuntu). For sake of precaution initially firebug, and at last all the Addons in Firefox were uninstalled. Still the performance is same unchanged. Here is the code: $(document).ready(function(){ var $box = $('#userPanel');
[jQuery] help with toggling behavior
I'm new to jquery (and am no javascript pro), and am having trouble figuring out two things with a behavior that I've put together: 1) how do I simplify this code so that it can be used for numerous instances on the page, without having to have repeats of the code with the ids changed out? Can I somehow 'find' partial matches between ids on the page, based on the id of the item being clicked? (Each 'pair' of items has similarly named ids -- eg. navProducts and linksProducts) 2) the 'navDim' style
[jQuery] Accordion: missing auto-close
In the menus here: http://vanilla-spa.homeholistics.com/treatments.htm , only the nested menu at the top auto-closes when you click another item. The main items remain open until you click them again. I don't think this is the default behaviour (I want only one item open at a time) but can't find much documentation for this plugin. Can anybody spot my mistake, please? Code snips: ......................................................... jQuery('.item').accordion({ header: 'h2', active: false, alwaysOpen:
[jQuery] Automating forms / Command line web conversations
Recently, I wrote a bookmarklet that I used to step through a series of forms to delete a page on a wiki that I maintain. (Hundreds of spam pages had been added.) I used a bookmarklet to submit the pages. I'm wondering if there is a way to turn it into a command line application. Has anyone used JavaScript to automate Firefox or Safari? To launch a particular page and then execute a privileged script? (Is there a better place to ask?) Alan -- Alan Gutierrez | alan@blogometer.com | http://blogometer.com/
[jQuery] using jquery to load content of html file in a div
My index html file is a nav menu with the following options: <div class="arrowlistmenu"> <h3 class="menuheader expandable">Parents</h3> <ul class="categoryitems"> <li> # Game Schedule </li> <li> # Field Directions </li> Further on in my php file I have the following: <div id="contentcolumn"> <?php include("sked.html") ?> <?php include("fielddir.html") ?> .... In my js file, I have the following: $(document).ready(function() { $('#game-sked').click(function(){ $('#sked').toggle('fast'); return false;
[jQuery] [validate] Validate plugin 1.2.1 + masked input = errors on optional masked fields
Hi *, I've been using an old version of the Validate plugin (1.1.2) along with the Masked Input plugin. Today, I just upgraded to Validate 1.2.1 and noticed it doesn't behave quite the same with the masked inputs. For example, I have two date fields, the first is required and the second is optional. Both are masked ("99/99/9999", if it helps). If I tab through or click on the optional date field, I get a validation error ("Please enter a valid date"; the default message) on the optional field. I
[jQuery] form elements
hello all, I need a bit of help. I want to do the follow function: $("input.type='button'").mouseover(function(){$ (this).css({cursor:"pointer"});}); but it won´t work. Because I don´t know how I can match the element in a form. In this case I want make a mouseover effect on the "input type=button" but I wrote it in a wrong way. How has it to be? Thank you
[jQuery] jQuery events on plain old JavaScript objects
This works: var monkey = { name: 'Dave' } $(monkey).bind('climb', function(monkey) { alert(this.name + ' is climbing!'); }); $(monkey).trigger('climb'); I really just wanted to check that this was expected functionality - and isn't going to disappear anytime soon - as I'd like to lean on it quite heavily. :)
[jQuery] flickering side effect in IE 7
I am experiencing flickering side effect in IE 7 when running this pretty simple show/hide div script. i'm hovering over an element and moving the mouse into the div that expands during the show state. The flicker side effect is noticed when the mouse moves from the navTabId to the dropDownId div. There is a 1/2 second point where the dropDownId div just disappears and reappears. here is my script: $(document).ready(function() { var dropDownId = "#gssMenuRMAdminDropDown"; var navTabId = "#zz1_TopNavigationMenun6";
[jQuery] designMode - how to detect changes in the editable iframe
I've been playing with the jquery designMode plugin, and am trying to find a way to detect when any change or edit has been made within the designMode-enabled iframe, so that I can add a class to a containing element (e.g. class="edited"). Even something as simple and imprecise as adding a click event to the iframe doesn't appear to do anything. Any suggestions? thanks rolfsf
[jQuery] setinterval vs. settimeout
Hey, I found this article here: http://www.evolt.org/article/Using_setInterval_to_Make_a_JavaScript_Listener/17/36035/ - to try to clear up my confusion with setInterval and setTimeout, but still kind of confused, but this is what I got out of it so far: setInterval: Does X every X ms setTimeout: Delays X every X ms Is that close or am I completely off? If someone has a more clear example could you post it :) Also, if I want to try to keep my site as "live" and "updated" as possible, which would
[jQuery] tablesort
I cannot get table sorter plug in to work. I have things pointing correctly. I have the id's correct. hOWEVER , it still doesn't sort. its seems very easy to use but it will not work. <script src="jquery2.js" type="text/javascript"></script> <script src="jquery.tablesorter.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { $("#tablesorter- demo").tablesorter(); } ); </script>
[jQuery] .attr on data returned by ajax loaded content (data)
Why won't the pie menu play button link update on AJAX loaded data? It works on normal static content. http://bin.cakephp.org/view/1613608944
[jQuery] fadeIn performance problem (with images)
Hi! I am trying to fade a background-image with jquery which works fine on a fast computer. But since not everybody has a fast machine, I'm searching for a way to improve the smoothness of my animation because it buckles on slow computers. This is my code so far: HTML: <div id="hintergrund" class="hintergrund clearfix" style="background- image: url(lib.fotos/hintergruende/01.farbe.jpg);"></div> <div id="hintergrund-2" class="hintergrund clearfix" style="background- image: url(lib.fotos/hintergruende/01.sw.jpg);"></div>
[jQuery] :first make faster?
Does :first make the selection faster? In other words, does it stop the selection after the first item is found or it filters only after all selections are found?
Next Page