[jQuery] How to add/remove dynamic blocks of html
Hi, I've created code to dynamically add blocks of form elements to a form. Basically, a set of text fields and radio buttons. It seems to work fine now, but my code is completely dependent on the structure of the html, which is expected I guess and I'd like to do is simplify my code. Because I'm adding new html which needs to have events attached to specific items, I have to re-attach each event handlers. I wonder, would it be better to use something like LiveQuery or the Intercept plugin? How are
[jQuery] jQuery.get( uri of CSS resources, callback ) ?
Hi - is there any plans to support the dynamic loading of CSS resources ? Thanks, Jean-Lou Dupont.
[jQuery] help with vaidation rule
Hi, using regulary the Jorn validation plugin. My problem is allow a field to contain only 8 carachter (only letters or numbers) but no white space. I am really bad with regex. Any Help?? Thanks Andrea
[jQuery] How do I get off this list????
I have removed it from google groups and sent an email to the list asking to be unsubscribed. Please can someone with the "power" remove me from this list. Cheers, Trav.
[jQuery] Slide Down with Background Image Causes Problems in IE
In the midst of adding a slide down form to an existing site (http:// widgetworld.com/tclancy/), I've run into an issue in IE 6/7: when you click the "contact us" tab on the top of the screen to start the form process, IE barfs and refuses to move all of the page's elements down like it should. The cause is the background image on the top container. While that element actually moves, everything below it stays in place. Doubly strange since the one element that does move is the one with the background
How to pass multiple parameters to a onlick event?
Im really very very new to JQuery (uhm started this night). I wonder how I can pass two parameters from an "A". E.g. if my HTML line reads: " <a class=â€
[jQuery] Tablesorter bug
The packed version of the current tablesorter plugin (from http://tablesorter.com/docs/#Download) is causing a JS error on IE6. I haven't had a chance to try this in IE7, but FF is fine. The error says something about an illegal character on line 2. Using the Minified version, or the unpacked version doesn't have this problem. (I tried to download a few times, just in case it was a glitch in the download). This one took me a while to track down - I was looking though my own code (which is much more
[jQuery] 1.2 bug? $(window).height(); always the same as $('body').height();
I have a page with content that goes below the fold. I'm trying to calculate the height of the browser's viewable area this way... $(window).height(); ...but it always returns the height of the whole page (above and below the fold) - the same value as $('body').height(); Is this correct behavior? For now, I'm using $.viewportHeight plugin to get by. I've searched the forum, and can only find a couple of vague references to this problem with no definitive answer. Thanks! -Mundi
[jQuery] Masked Input Plugin 1.1.1
Okay, I had to make a quick fix on this today because I basically broke the plugin for IE. I made the mistake of using $.each() on a string and each character was showing as undefined. Does anyone know if $.each is supposed to work on strings? It seems to work just fine in every other browser except IE. Regardless, bug or not, the fix is lise on the plugin page at http://digitalbush.com/projects/masked-input-plugin Thanks Josh digitalbush.com
[jQuery] Clear Input Search Box?
I am trying to clear an input search box's value. When the page loads the value is set. I.e.: <input id="searchBox" name="searchBox" type="text" class="input" style="width: 100px;" value="Search term or part #"> I want to set it to blank when the user clicks the box to enter a value: $("#searchBox").click(function() { $("#searchBox").attr("value",""); }); I have tried a couple things but I keep getting errors.. $("#searchBox").click(function() { $(this).attr("value","");
[jQuery] jquery + adobe air: getting started?
Hi All, Anyone know of some blog entries, tutorials, etc (other than the general stuff at Adobe Labs) that might help me get started "migrating" a jquery-based HTML app to the Adobe AIR runtime? I'm looking for jquery-specific tips, examples, etc. My app does a lot of ajax calls that send json data back and forth, so the bulk of it will live in the AIR sandbox, at least initially, so that has to be present in the how-to's. I'm using Aptana's AIR plugin for Eclipse for my IDE, FWIW. Thanks! - Jack
[jQuery] [SITE SUBMISSION]: perian.com
<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">I just went to <A href="http://www.perian.com">http://www.perian.com</A> to download the "free, open source QuickTime component that adds native support for many popular video formats" for Mac OS X, and discovered that the site uses jQuery, along with Klaus's Tabs plugin. <BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0);
[jQuery] [Slight OT] Quick straw pole about maps
Hey folks, I wanted to ask the list a quick straw poll. A bit OT but the subject is one of my plugins. I've just released version 1.4 of my plugin without much fanfair (http://code.google.com/p/jmaps) and I'm starting to think about the next version. I wanted to get an idea of what other people want, not just me. So a quick question is, especially to anyone using it is: What mapping service do you prefer? Google? or Yahoo? The reason I ask, is I can either keep the plugin on its current course of
[jQuery] A Very Simple tree menu
Hi all! I'm not a programmer (and don't speak English), but I'm trying to do both. =D I'm looking for a simple solution to do a simple tree menu like the Windows Explorer during some days. All solutions I find are terible, in my opinion (including dtree ) :p I decided to do a very simple tree menu using JQuery and HTML unnordered list. However I only applyed the funtionality in the first <li><ul> node. (Do you can comprehend what I'm speaking?) Can someone help me? The files I make are in: http://projetos.gersongoulart.com.br/VerySimpleTreeMenu
[jQuery] What plugins are ready for prime time
Howdy, Yes... it's me again... the guy who always complains about stuff. I love the base jQuery code. It feels very right. And it has a very functional flavor which suits Scala and lift very well. But I need some functionality on top of the base jQuery stuff. I need drag and drop, modal dialogs, etc. I looked at jQuery UI, but, despite the 1.0 version number, it doesn't work on anything other than Firefox 2.0 (I went through the examples and at least one of the examples failed for each of the following
[jQuery] Can jQuery help?
Hi, I have style defined like this div#Explanation{position:absolute; top:720px; width:10px; right: 0px;margin:40px 0 0 0;} and my HTML code <div id="Explanation"> <table border="1" cellpadding="0" cellspacing="0" width="100%"> <tr> <td width="6%"><font color="#FF0000">*</font></td> <td width="44%">Login <input type="text" id="id_Login"name="Login" size="30" value="" maxlength="50" /></td> <td width="50%" rowspan="2">Popis</td> </tr> <tr> <td width="6%"><font color="#FF0000">*</font></td> <td width="44%">Password<input
[jQuery] Slightly OT: another way to gzip javscript code
This just popped up on digg, and i thought it might interest some of you: http://code.trymbill.is/index.php/2007/10/01/compress-javascript-gzip/ It presents a different way of compressing javascript code.
[jQuery] Two possible problems with :eq()
Hi I found two possible problems with :eq(). (I haven't tried :gt() and :lt() but they may have the same problems) Problem 1. The indexing starts at 0 not at 1 as it should be according to the latest specification. Problem 2. Using :eq(1) anywhere in a chain collapses the whole tree to a single thread. For example if I have a tree with many nodes and branches with one possible node expressed as XPATH: div[3]/div/table/tbody/tr[2]/td[3]/table/tbody/tr[2]/td/a If i do not use :eq() as in div>div>table>tbody>tr>td>table>tbody>tr>td>a
[jQuery] n2menu Mouseout Function
Has anyone had any luck implementing a "onmouseout" function with n2menu. I looked at the JS file and saw a function that delt with onmoueout but it obviously does not do what I think it does. What I am trying to describe is when the user mouseovers the menu selection it expands like it does, but when they mouseout no matter where they go (another menu selection, some other location on the screen) the expanded menu is hidden. Any thoughts?? Thanks. Regards, Seth
Report Spam Button
I'm thinking a Report Spam button may come in handy. I don't know of a specific plug-in that does so, but I imagine there must be one. Pyro
Simple dropdown div
I have a div called testidrop, <div class="testidrop" id="testidrop">...</div> normally is is hidden, but when I click on a link (testialink) it should drop down, <a href="#" id="testialink" class="testialink">Testimonials</a> So I thought it was all working great, until I discovered than whenever you click ANYWHERE on the page it drops down! :confused: Here is the code in the head tag <script> //show testimonials $(document.getElementById('testialink')).click(function(){$(document.getElementById('testidrop')).slideToggle("slow")});
[jQuery] Closing a Custom Modal/Dialog Window
Hello, I am having a head scratcher that maybe someone on this list can help me with. I have a 'more' link that opens a dialog window. Inside the dialog window is a close link to close the dialog window. The close link does not work. Here is the code that opens the dialog window: $('.more-link').click( function() { $('#more-events').remove(); offset = $(this).parent().offset(); $('body').append('<div id="more-events"> <div>'); $('#more-events').load('ajax.php?v=more_events', { 'date':
[jQuery] Debugging in Safari 2
I really need a hand with my IT Assistant project (http://www.pcwb.com/ assistants/) and an issue in Safari version 2. As it works in Safari 3/Win I'm assuming that it's a bug in Safari itself, but as our website stats indicate that Safari 2 is the most popular version by far it's something I need to find a workaround for. When I visit the page on a mac wit hSafari 2 installed, the "please wait" blockUI message appears, but then the whole thing just sits there and doesn't progress any further. I
[jQuery] $(document).scroll() not functioning in IE?
I added some fun infinite scroll functionality to my employer's blog. http://molecularvoices.molecular.com/ All of it is based on a $(document).scroll() event that doesn't seem to fire in IE6 or 7. My alert() debugging shows that IE won't enter into the function attached to the scroll event.. You can test on the above link. Any ideas?
[jQuery] Resize Table Cells
<span style="font-family: trebuchet ms;">Let's say I have a table with 4 cells</span><br style="font-family: trebuchet ms;"><span style="font-family: courier new,monospace;"><table cellpadding="0" cellspacing="0" border="2"> </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <tr></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <td>North-West</td></span><br style="font-family: courier
[jQuery] Catch a click event before the DOM is loaded
I've recently been working on a project where the page is complex enough that the DOM would not have loaded before the user had spotted our 'big red button' - and clicked away. As much as I hate to admit, this project wasn't going to support a non- JS version (due to the demographic), so I thought I'd share how we solved the problem of early clicks. I have a full write up here: http://remysharp.com/2007/10/01/catch-click-events-before-the-dom-is-loaded/ In short: add an explicit click handler on
[jQuery] Events: load and unload for $("#a").html(myHtmlString)
Hi, I want to bind events when certain elements are added to the HTML DOM. The elements are assembled as strings and then set with jquery methods like .html(htmlString), .append(htmlString). It looks like this is the job of the jquery load event. I want to unbind events when the elements are removed from the HTML DOM. It looks like this is the job of the jquery unload event. What is the best way to do this? Do the load and unload events work for HTML added on the fly by methods like .html(htmlString),
[jQuery] Why doesn't work in IE ?
This line crashes all my jQuery scripts in IE only: $("input[@name=breakfast]").var = state; Part of my code: var state = $("input[@name=orderBreakfast2]:checked").val(); $("input[@name=breakfast]").var = state; I want to set value of hidden input named "breakfast". Please explain me why.
[jQuery] How to dynamically add a rel="mylink"?
I understand how to add a class to existing href tags, for example $("a").addClass("myclass"); I would also like to be able to add a 'rel' attribute to the href tags, dynamically using jQuery. For example, my html would have existing: <a href="somelink">....</a> The jQuery then adds "myclass" but I also want to add a rel="myotherlink" too, so I would have a result: <a href="somelink" class="myclass" rel="myotherlink">...</a> I would like to avoid directing adding rel="myotherlink" into the html href
[jQuery] Parse JSON with jQuery and JavaScript (tutorial)
I know. I know. More shameless self-promotion for jQuery tutorials. If there is a better place to put this, please let me know. http://blog.reindel.com/2007/10/02/parse-json-with-jquery-and-javascript/ Brian Reindel d'bug @ blog.reindel.com
[jQuery] prototype sound
Hi I was justing looking at sound for jquery and I came across this from Prototype. I'm no expert - how would you convert this to jquery ? http://trac.wordpress.org/browser/trunk/wp-includes/js/scriptaculous/sound.js?rev=5596 weepy *...(
[jQuery] [ANNOUNCE] Don't forget about jQuery books
Guys, whether you're new to jQuery or a seasoned vet, it's always good to have reference material to help you out. So don't forget that there are 3 books available to jQuery developers. The newest book, jQuery in Action by Bear Bibeault and Yehuda Katz, is set to be officially released in December but Manning is offering the Manning Early Access Program where you can get eBook chapters way ahead of the print version. You can find out more details here: http://www.manning.com/bibeault/ I've already
[jQuery] Newbie question
Hi, I have style defined like this div#Explanation{position:absolute; top:720px; width:10px; right: 0px;margin:40px 0 0 0;} and my HTML code <div id="Explanation"> <table border="1" cellpadding="0" cellspacing="0" width="100%"> <tr> <td width="6%"><font color="#FF0000">*</font></td> <td width="44%">Login <input type="text" id="id_Login"name="Login" size="30" value="" maxlength="50" /></td> <td width="50%" rowspan="2">Popis</td> </tr> <tr> <td width="6%"><font color="#FF0000">*</font></td> <td width="44%">Password<input
[jQuery] input append is not working
hi, is there any explication why this row won't work: $("input[@name='testinput']").append(" test"); (accually it changes source like it had to do, but browser won't show any changes) and this works: $("input[@name='testinput']").val("test"); input html is something like that <input name="testinput">
[jQuery] jquery math functions?
Is there a place that I can see the math functions available? Frank
[jQuery] superfish (two of them in a page??)
Hi, i'm using the superfish menu but i'm having a big issue: if you put two menu in a page the submenus of the first one goes below the second one. Is there a way to avoid that? Suppose you have a table with three rows. On the first row (okay, TD) you put your list with nested lists. The second row is an image, its height is 50px. The third row has another menu (suferfished too). Now if the nested UL of the First td has enough second-level items to grow more than 50px, the sub menus appear below
[jQuery] Save reference to a element
I want a user to be able to reference (by clicking) an element on a web page and then save a reference to that element in a database for later retrieval. What's the best way to do this? (Assume that the html page will never change). I could save some sort of path (body > div > div > ul > li > a...etc). If so, is there a way to make an element spit out it's path, or at least some sort of unique identifier that can be used later to reference it. Whatever I use to reference it must be able to be
[jQuery] jQuery Form Plugin fiasco
The jQuery Form Plugin hosted at http://www.malsup.com/jquery/form/ is impossible to understand. I wasn't able to replicate any of the examples listed there. The demo page which also includes the documentation is bloated with a zillion number of examples and a zillion scripts. NO, that is NOT the way to go, I would rather see each example on a separate page. Then I can take them one by one and run them under my own Web site, with my own version of JQuery and jQuery Form Plugin.
[jQuery] simple browser check (need help)
I have a tool that only operates under IE So all other browser users get an alert here is my code...but it doesn't work... Can someone get me straightened out? <script> $(document).ready(function() { if($.browser.[safari, opera, mozilla]) { $( function() { alert("You must use Internet Explorer to view the links at this time!"); } ); } ); </script>
[jQuery] tablesorter plugin - could be a bug
Hi guys. I'm testing tablesorter(<a href="http://www.tablesorter.com">www.tablesorter.com</a>) plugin to work in a huge table. Tablesorter is a nice tool. But may be I don't know how to sort date column properly. Please look this link <b><a href="http://tinyurl.com/33rw7p">http://tinyurl.com/33rw7p</a></b> First column could be sortable but I don't how to do that. Could be a bug? Cheers
Next Page