[jQuery] blockUI 2.14 - timeout option not cancelled
Hi, We are using blockUI 2.14 with the timeout option like this: var timeout = 120000; $.blockUI({ message: null, timeout: timeout }); At a later point of time we can explicitly unblock by calling: $.unblockUI(); Unfortunately it seems that subsequent blocks can be unblocked by the original timeout (unblock is *always* called 2 minutes after our calls to block, regardless of us having called unblock ourselves in the meantime) Is there an issue with the code to cancelTimeout in the unblockUI function?
[jQuery] Events on parent window
Hi All, I've been using an iframe to create a 'selector' (a kind of a select with a filter in it) and have been trying to fire an event (change) to update the input status. This is the code when I select an option: $('table tbody tr') .click(function() { var area = <?php echo $area ?>, holder = <?php echo $holder ?>, selector = <?php echo $selector ?>, id = this.id; name = $(this).find('td:eq(0)').text(); $('#'+holder, parent.document.body).val(id); $('#'+selector, parent.document.body).val(name).change();
[jQuery] [validate] changing input's class upon error
I want to find a simple way to change a form element's class when there is an unsuccessful field. Like I would like to change the input box to a red input box if there's an error. Thanks Vincent
Accessing a tag with a wild card character
Hi: I have a number of tags which have a id set to expand_<number>. number is a integer number. I want to build one click jquery function for all the tags. Is there some sort of wildcard mechanism to write a function? I have tried '#expand*' and it doesn't seem to be working. $(function() { $('#expand*').click(function() { var pid = $(this).attr('id'); rid = pid.replace(/expand_/, ''); }); }); TIA Ravi
[jQuery] tablesorter doesn't sort negative currency properly
Hi, I have a column with values $4.50, $127.00, -$130.00, -15.76 and the sorting doesn't work. It works fine if all values are positive, however. Does anyone have any idea how to fix this? For now I just have to eliminate the "$" in order for it to work. Thanks, Jason -- View this message in context: http://www.nabble.com/tablesorter-doesn%27t-sort-negative-currency-properly-tp22283084s27240p22283084.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Getting an iframes title?
I have an iframe and I want to get it's title: <div class="frame-cont" style="display:block;height:100%"> <iframe src="http://google.com" width="100%" height="100%" style="display:block" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0"></iframe> </div> but I can't seem to get it using these: $('iframe')[0].contentWindow.document; $('iframe').contents().find("body").html(); $('.frame-cont iframe').contents()[0].document.title; $('.frame-cont iframe:first')[0].document.title;
[jQuery] Ajax loading of HTML
Hi All, I am having a problem with loading an HTML file to populate a dropdown as follows with names of states in the USA: $("select[name=step_2]").load("./includes/usa.html"); The HTML it is going into is as follows: <label for="step_2" class="disabled">* STEP 2) Select your State/ Province:</label> <span class="step_2"><select disabled="disabled" name="step_2"> Inserted dropdown goes here. </select></span> When running the script I get the message in Firebug: Syntax error: [Break on this error]
[jQuery] Attempting to convert to jQuery
Hi, I am atempting to cover a simple custom solution from prototype to jQuery and I came a long a problem I am unable to solve. I have added some behaviours to the app, like sorting divs and switching their visibility. I know there are plugins for this but while checking them out I couldn't make then do what I wanted (i.e. there was no sorting plugin that would allow me to disable dragging the elements and enable me to create handlers for moving them up / down). I managed to create my own plugin
[jQuery] Superfish animation
How do I kill/override the animation methods that are built into the code? I'm not a fan of the opacity or height methods and would like to see this menu without these additions. Is this the line that needs tweaking (and if so, can someone show me how)? $ul.animate(o.animation,o.speed,function(){ sf.IE7fix.call($ul); o.onShow.call($ul); });
[jQuery] Validating multiple inputs as one (birth date)
So I have a form that requires the user to enter their birth date. It is set up as three separate inputs. It looks a little something like this: <li> <label class="description" for="date" name="birthday">Birth Date</ label> <span> <input id="MM" name="birthday[]" class="element text" size="2" maxlength="2" value="" type="text"> / <label>MM</label> </span> <span> <input id="DD" name="birthday[]" class="element text required"
[jQuery] jQuery noobie -- what bind() is all about
I've read that if you add new elements to the document, or if you modify the already existing elements and you want to asign a behaviour to them via jQuery, you would have to bind the new elements with the existing behaviour pattern. Could anyone explain to me why this is not working: $(document).ready(function() { $("#menu a").click(function(e){ $.post("jquery.php", {Option: $(this).html()}, function(xml) { $("#content").html("<h1>"+$("txt", xml).text() +"</h1> "+ $ ("aaa",xml).text()
[jQuery] Jcarousel with Thickbox adding FLASH
I am using Jcarousel with Thickbox to have a sliding image viewer. But i need a couple of them to either open up as html or flash. I really need some help with this and im not very proficient in java or jQuery The site is http://www.l7creative.com/test/L7 There is also other .js files the code is... // Set thickbox loading image tb_pathToImage = "images/loading-thickbox2.gif"; var mycarousel_itemList = [ {url: "images/portfolio_1.jpg", title: "http:// www.slsloudspeakers.com", bigimg: "images/portfolio_1_over.png"},
[jQuery] Jcarousel with Thickbox adding HTML
I am using Jcarousel with Thickbox to have a sliding image viewer. But i need a couple of them to either open up as html or flash. I really need some help with this and im not very proficient in java or jQuery The site is http://www.l7creative.com/test/L7 There is also other .js files the code is... // Set thickbox loading image tb_pathToImage = "images/loading-thickbox2.gif"; var mycarousel_itemList = [ {url: "images/portfolio_1.jpg", title: "http:// www.slsloudspeakers.com", bigimg: "images/portfolio_1_over.png"},
[jQuery] [treeview] Problems with jQuery 1.3.2
Having an issue when using treeview plugin with jq 1.3.2. I can get it to work in jq 1.2... Pretty much, from what i can tell, its not applying the classes to the ul and li tags. I think it has something to do with the way the selectors are trying to find the tags. Has anyone successfully used treeview plugin with jq 1.3.2 ?
[jQuery] Jcarousel with Thickbox
I am using Jcarousel with Thickbox to have a sliding image viewer. But i need a couple of them to either open up as html or flash. I really need some help with this and im not very proficient in java or jQuery The site is http://www.l7creative.com/test/L7 There is also other .js files the code is... // Set thickbox loading image tb_pathToImage = "images/loading-thickbox2.gif"; var mycarousel_itemList = [ {url: "images/portfolio_1.jpg", title: "http:// www.slsloudspeakers.com", bigimg: "images/portfolio_1_over.png"},
[jQuery] Jcarousel with Thickbox
I am using Jcarousel with Thickbox to have a sliding image viewer. But i need a couple of them to either open up as html or flash. I really need some help with this and im not very proficient in java or jQuery The site is http://www.l7creative.com/test/L7 There is also other .js files the code is... // Set thickbox loading image tb_pathToImage = "images/loading-thickbox2.gif"; var mycarousel_itemList = [ {url: "images/portfolio_1.jpg", title: "http:// www.slsloudspeakers.com", bigimg: "images/portfolio_1_over.png"},
[jQuery] innerfade plugin that starts and stops on mouseover?
I'm trying to to amend the innerfade jquery plugin so that it doesn't begin the fades until mouse over. And I want it to stop on the mouse out so that it only works when the user is mousing over it. Is this an easy tweak or much more difficult than I think it is. Obviously, I'm not much of a programmer with this. Any help would be much appreciated.
[jQuery] Alphanumeric plugin doesn't prevent underscores
something I have noticed and don't seem to be able to find a way around is that with the alphanumeric plugin (http://itgroup.com.ph/ alphanumeric/) and in all demos I've seen online and in my use of this, it appears that the underscore character is not parsed out like every other character. the 'ichars' group should allow me to add custom exception characters but doesn't... am I missing something obvious here? here is an excerpt from the plugin (unpacked) with the underscore added (it isn't there
[jQuery] Jcarousel with Thickbox
I am using Jcarousel and thickbox i need some of the thickbox items to open up as images and i need some to open as html or flash. is that possible? the link to my site is http://www.l7creative.com/test/L7 please help!!!!! here is my code right now... // Set thickbox loading image tb_pathToImage = "images/loading-thickbox2.gif"; var mycarousel_itemList = [ {url: "images/portfolio_1.jpg", title: "http:// www.slsloudspeakers.com", bigimg: "images/portfolio_1_over.png"}, {url: "images/portfolio_2.jpg",
[jQuery] jWYSIWYG links
Hi all, I'm trying to enhance the jWYSIWYG editor to allow me to automatically link thumbnails to the parent image. I can create the logic to strip out the the image basename (image.jpg) and add the rest of the url just fine but, as of right now, I cant seem to get the editor to recognize and then pull the img src when it's selected. Here's what I have, thanks in advance for the help. controls: { lightBox : { visible : true,
[jQuery] [ot] Browser capabilities detection?
<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:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher"
[jQuery] tableFilter -> tablesorter
Hi all ... First, my knowledge of javascript in general and jQuery in particular is relatively weak, but growing. Just a disclaimer :) I'd been using the tableFilter plugin on another project (http://ideamill.synaptrixgroup.com/?page_id=16), it's main drawback was that it was old & no longer maintained - and the author points you to the tablesorter plugin (http://tablesorter.com/docs/). In general I like tablesorter more than tableFilter so far, but the one thing that I used heavily on tableFilter
[jQuery] Install problem with Superfish
Hi, I run a Joomla 1.5 site and have heard good things about the Superfish plugin. I would really like to try it but I can't get it to install using the Joomla installer (get the "can't find XML setup file" error). I can manually install it by ftp'ing the files over but I'm not sure where to put them. My problem might be that I don't really know what it means that it's a "jquery plugin". Do I need to install jquery first? Obviously I'm not really a web tech, but I'm not a complete novice either and
[jQuery] next() question
Hello, say i have this markup: <ul class="tab-nav-menu tab-menu"> <li><a class="tab-menu-item tab-menu-item-selected" href="#fragment0">0</a></li> <li><a class="tab-menu-item" href="#fragment1">1</a></li> <li><a class="tab-menu-item" href="#fragment2">2</a></li> <li><a class="tab-menu-item" href="#fragment3">3</a></li> <li><a class="tab-menu-item" href="#fragment4">4</a></li> < li><a class="tab-menu-item" href="#fragment5">5</a></li> <li><a class="tab-menu-item" href="#fragment6">6</a></li> <li id="imageLegend">Arca
[jQuery] Problems with dependent selects and accents
Hello! I have some problems with my jquery! When I select one option with accent in my combo, the ajax don't work!. The page is: http://www.ibcperu.org/sicnabd/index2.php Please, could you help me?? Thks!
[jQuery] what's better?
hi just needed an advice... what' s better between this two (if there's any difference at all): this: $('a[class^=open]').click(function(){ ...whatever... }); or this: var myEl = $('a[class^=open]'); $(myEl).each(function(){ $(this).click(function(){ ...whatever... }); )}; thanks Vitto
[jQuery] Noob alert - can you help clean up my ticker?
Just trying out Jquery for the first time today and I've come up with a ticker for a projectI'm working on. The problem I have is that I find it a clumsy solution for such an elegant framework. Any help tidying up would be greatly appreceiated! I don't want to post a load of code here so I'll just link to it: http://www.rees-jenkins.co.uk/ticker/ticker.php
[jQuery] Show hide and print
Hi, I have a problem, I have an element which I show (let's say fadein ("slow")) on certain action (it's set on display:none in CSS). The problem is that i want to print that page without that element...how can i do that... fadein, show,... all set the element on display:block which means the element will apper no matter what. I've tried something like this $("#gototop").attr("style","@media print{display:none;}"); I wan't the element to be seen on screen, but not for printing! but it doesen't work...
[jQuery] populating data display
I built a tree view with checkboxes and when I click on the records, I append() the text value to another div to show what I have currently selected. I would like to know what would be the best approach to have a way where when I check boxes, the value appears in another div and when I uncheck them, the value dissapears in the other div. Thanks
[jQuery] sorting w/ a hyperlink
Hi, I have a page where I've implemented the jquery function. Please check out here: http://www.grad.uiuc.edu/eep/srop/faculty/faculty_search_results.cfm?first_name=&last_name=&department=&areas_of_research= My question, is how to make the 'Full Name' column sort by the Full Name value instead of the value of the URL hyperlink which is what I believe it's doing now. Here's the code I use to call the function: <script type="text/javascript"> $(function() { $("#myTable").tablesorter({sortList:[[0,0],[1,0],[2,0]],
[jQuery] New Plugin: jQuery Finder (Mac-style 'Treeview' with Columns)
Greetings! I've put together a plugin that creates a mac-style finder out of a list. The plugin is still in development (ALPHA) and it needs some testing, especially on IE. The purpose of this plugin is to provide an alternative to treeview navigation. Making it look just like the Finder on a Mac is not my goal, I am after its core functionality. Having said this, I think that implementing useful features that exist on Mac's Finder (search, toolback w/ options, etc) is time well spent. You can find
[jQuery] Selecting a child of 'this'
I'd like to apply a css effect to a child upon hovering over its parent. Both are block level elements. The trick is that there is a list of these and I only want to modify one at a time. I've got something that works, but it feels a bit ugly: $("#parent").hover( function(){ // This is the line in question. $('#' + this.id + ' .child').show(); }, function(){ // Hide them all $('.child').hide(); } ); I could use Ids on the children that are derived from their parents,
[jQuery] post via AJAX, expecting "script" in return: doesn't work in Safari
Hi everyone, I'm facing a problem with jQuery and AJAX. I am trying to post a form via AJAX (to a Rails backend), knowing that the returned data type is "script". So far, the code I wrote work in Firefox 3.x while in Safari, the form gets actually posted (and the database update accordingly), while the UI doesn't receive any update. Here follows the js code: $(function() { var first_time = true; var $d = ''; $('#product_thumbs').jcarousel({ vertical: true, scroll: 2}); tb_init('a.thickbox');
[jQuery] SOT: AIR / jQuery help
I'm working with the built in AIR Updater class and I've got two things happening that I need to fix. 1) My app alerts the user to check for updates each time the app loads, rather than only when there IS an actual update. This is the same thing that happened to the jQuery API app written by Remy. Remy? Care to share how you resolved that issue? The Adobe docs are worthless on this subject. 2) I've got an actual update ready to deploy. When I fire up the app, it tells me that my local version is
[jQuery] SOT: AIR / jQuery help
I'm working with the built in AIR Updater class and I've got two things happening that I need to fix. 1) My app alerts the user to check for updates each time the app loads, rather than only when there IS an actual update. This is the same thing that happened to the jQuery API app written by Remy. Remy? Care to share how you resolved that issue? The Adobe docs are worthless on this subject. 2) I've got an actual update ready to deploy. When I fire up the app, it tells me that my local version is
[jQuery] Dialog has no scrollbars
Scrollbars refuse to appear on my dialog box. function LoadDialog (id) { $("body").append('<div id="dialog"></div>'); $("#dialog").dialog( { title: 'Dialog', autoOpen: false, resizable: false, width: '525px', height: '500px' } ); $("#dialog").dialog("open").load("/in/content.php"); } Calling this function creates a dialog box and loads "/in/ content.php", but scrollbars do not appear. The content in "content.php" is much longer than the 500px height of the dialog box. I've tried making
[jQuery] cycling with IE
I wanna cycle through a div containing other divs containing a thumbnail and a large picture. It works everywhere but in IE 6 and 7. thats my div which I wanna cycle through: <div id="bilder"> <div class="bildKomposition"> <div class="thumb"><a href="#"><img src="img/kartoffeln.jpg" alt="kartoffeln" /></a></div> <div class="gross"> <img src="img/bildClose.gif" class="bildClose" alt="close" /> <img src="img/kartoffeln_gross.jpg" alt="kartoffelnGross" /></ div> </div> <div class="bildKomposition">
[jQuery] jQuery UI Question - Tool tip
Anyone know why the jQuery UI team didn't include a tooltip along with their library? Anyone have suggestions for a tool tip plug-in? Are there any tool tips out there that are compatible with the themeroller? Thanks, ~Todd http://web-rat.com/
[jQuery] How to add a links to callback display
I am looking at the jQuery Cycle Demo of the Callbacks example. Before and after each slide appears, a caption or small text can show below the slide. However, how can I make some or all the text be a <a href></ a> tag so people can click on the callback text to go to a story?
[jQuery] scope change of jquery functions in popup window
Hi, I want to use jquery functions in popup window which is opened using window.open function. For this what i wrote command in popup window is: var $ = window.opener.jQuery; now when i try to use xpath selectors to hide all spans which has name attribute as "route" in popup, it actually hides the same spans in parent window rather in child. I run this: $('span[@name=route]').hide(); My question is, is there anyway i can use jquery functions of parent (without redownloading jquery file in popup window),
Next Page