[jQuery] UPDATE: code review, suggestions for condensing / reuse?
I've made some additions and updates to the code I posted last week: http://www.commadelimited.com/uploads/psychic/ I wondered if you all would mind looking over it to see if it can be improved. I've got the functionality the way I like it, but you all know jQuery way better than I do. So...any suggestions you feel like making would be welcomed. Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 amatthews@dealerskins.com www.dealerskins.com
[jQuery] TableSorter issues: special characters, mixed data
ATTN: Christian or anyone else familiar :) I'm trying to use TableSorter for a few large batches of data, but am getting JS errors depending on what content is in the columns. For example: -Digit-only data works, but MIXED data (ex: some fields are empty, and some have decimal values) fails. -Special characters break the sorting. For example, I have a list of titles and some titles start with special characters (ex: .hack//SIGN, ~To Heart~). This also breaks. I suspect these are breaking because
[jQuery] .getScript()
the docs say this retrieves javascript files. does it retrieve and load CSS?
[jQuery] problem with setting IDs in IE [C1]
<font size=2 face="sans-serif">Hi all,</font> <font size=2 face="sans-serif">I have a problem with setting IDs, which happens only in IE. Here is the code : </font> <font size=2 face="Courier New"> alert($(</font><font size=2 color=#8100ff face="Courier New">'div#DHTMLSuite_modalBox_contentDiv
[jQuery] tabs - initial tab load
i have a handler for the tabs onShow event that loads the current tab being opened. this does not get executed for the first tab that is selected by default when the page first loads. how can i get the onShow event to be triggered for the initial tab?
[jQuery] code to wrap jquery in to wall it off from older browsers?
Can anyone suggest good code to wrap jquery in to wall it off from older browsers altogether? I'd prefer some object detection but obviously createElement isn't going to cut it finely enough. I'm not up on what the latest browsers have that IE5.5/OP8 and others don't have. As I wrote on another thread: Can anyone suggest a good check for ie6+ and other new browsers? That might be noted in the docs as a "best practice" or maybe even built into jquery as a variable to set so it just returns the old
[jQuery] pls pls pls.. help..
Hi. does anyone know how to call a function from a url like http://www.XYZ.com/page.html#FUNCTION ???
[jQuery] method_missing equivalent in jQuery?
Hi all, Usually, I'm this lurker who scrapes this list for tips to improve my jquery code. As a beginner, I can't begin to tell you how useful it's been. I was just wondering: Can we have a method_missing or similar exception-catching scheme for jQuery? Dunno about you, but I'm pretty impressed with Rails dynamic finders (like find_by_name_and_city() etc. Perhaps a $(form).find_all_selected() ? ) Maybe we could even use it to reduce the footprint of the core jQuery script on a page, pulling extra
[jQuery] Promoting jQuery the WRONG way
One of the things that I love about the jQuery community is the true dedication and love that people have for the library. Its amazing how attached you can get to something when it truly helps you out in some way. But we need to be careful about how far we take that dedication and love. When it starts boiling over to the point of badmouthing other projects, then its really crossed the line of proper etiquette and I can tell you that its NOT the type of support the jQuery project is looking for. I
[jQuery] jQuery selectors speed improvements - A different perspective
Hi everyone, After reading Ralf Engelschall's posting about jQuery select speed improvements, I have to say that I was so impressed by how a small change can dramatically help improve performance. As Karl said, awesome work on the speed enhancements and also on not increasing the file size. The latter is a BIG thing for the jQuery project. The general reason that other libraries such as DomQuery or Base2 can have dramatic speed enhancements is because they're not focused on keeping down the size
[jQuery] Problem with togle()
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.2900.2963" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>I have a problem with $("." + this.rel).toggle() function<BR>If i use simple "toggle()" work fine, but i want to personalize the effect, so i use</FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial size=2> function() { $("."
[jQuery] Table sorting with skipped rows
I dunno if the title of this thread makes sense, but the higher-ups want to know if I can have a table like this... <img src="http://www.circlefusion.com/projects/ge/ table_sort_example.gif" /> where one of the rows is attached to another one and is not included in the sort. I'm pretty sure that just about anything can be done if you throw enough code at it, but I'm also sort of doubtful that this can be pulled off very easily. Any feedback or ideas would be appreciated. I've thought about alternative
[jQuery] How do I handle form submission within ThickBox?
Hello, I'm using ThickBox in IFrame mode and I'm loading a form that submits to another page and then redirects to a third page. I just did a test of this and ThickBox loads my form page fine but after I submit the form and the processing page is done and redirects to the third page, the third page is loaded within the ThickBox. What I need to happen is that after the form is submitted to the processing page the ThickBox will be closed and the table in the parent page be updated. I know the updating
[jQuery] Interesting selector problem -- emulating TAB/SHIFT+TAB functionality
I'm trying to figure out the best way to solve this problem. I have a form where keyboard navigation is important. When the focus is applied to a certain element, I'm popping up a DIV with a form field element. Now here's my dilemma: When the user pressing [TAB] or [SHIFT]+[TAB] I need to emulate the functionality the browser would natively do if it was on the original element. This means it must go to the next/last active element (form field, link, etc.) Anyone have any good selector ideas? This
[jQuery] Test for a function being defined
Is there a test to know if a function has been defined or declared? function modify(){ ...my code } if(function('modify')) or something like that?
[jQuery] OT: Is CF-Talk down?
Sorry for posting to this list, but I know there are some other cf-talk'ers on this list...does anyone know what's up with the cf-talk list? I haven't received anything since last night. Just trying to confirm if I'm the only one. -- Josh
[jQuery] Earn $500 a day....
It is easy to earn $500 a day. The tricks are in www.seminar.co.nr
[jQuery] Web 2.0 is vulnerable to attack
Hi guys, Article below says all big JS Libraries are vulnerable including JQuery I didn't quite understand the article, but was hoping for some feedback on it http://www.cbronline.com/article_news.asp?guid=484BC88B-630F-4E74-94E9-8D89DD0E6606 Cheers, -- Kush Murod, Web applications developer Sensory Networks [E] kmurod@sensorynetworks.com [W] www.sensorynetworks.com [T] +61 2 8302 2745 [F] +61 2 9475 0316 [A] Level 6, 140 William Street East Sydney 2011
[jQuery] Something that bugs me about the google groups messages...
I have Outlook setup to display messages grouped by subject. That worked fine on the previous mailing list, but now, after the original post, each reply has "Re:" at the front, which causes Outlook to group all the replies together, but separately from the original post. Annoying... Rick
[jQuery] Validate a Children
Hi I have two markups <div id="markup1"... <div id="markup2"... If markup1 dont have childrens and markup2 have childrens so $("#markup1").append($("#markup2").children().get(1)).show(); How can I write the first statement?<br clear="all"> Regards macm
[jQuery] Web2.0 Expo Free Passes and Discounts
Hello jQuerians! Web2.0 Expo, the Spring time spin-off of Web2.0 Conference, is happening in a little over a week in San Francisco. There are a lot of great sessions planned. John Resig (the father of jQuery) will be on a panel with guys from Dojo, Yahoo, and Google talking about Ajax Frameworks. It should be interesting to see. As a participant in the event, I have a promo code to give out that will get FREE passes to the expo floor and some of the sessions. There are no fees or anything. You pay
[jQuery] Help to improve code
Hey guys, I've wrote a plugin basically it adds some html wrappers to an image and crop it, making a thumbnail effect. Can you guys tell if It can be improved? I believe it's pretty stable now but I'd love to read your comments and ideas to enhace it. jQuery thumbs <a href="http://joanpiedra.com/jquery/thumbs/">http://joanpiedra.com/jquery/thumbs/</a> Regards, -- Joan Piedra || Frontend webdeveloper <a href="http://joanpiedra.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
[jQuery] Problem with bind parameters
I'm reading about how to bind function to events, I wrote an example, but found a problem that I'm not sure how to resolve. The example is simple, there is a button that instantiate Coso and bind click event to a myFunc that log some data. Here is my example: <code> <script type='text/javascript'> Coso = function(id) { this.init(id); } Coso.prototype= { init: function(id) { this.btn = $("<button id='btn"+id+"'>boton "+id+" </button>"); this.id = this.btn.attr("id");
[jQuery] Accessing/Modifying Plugin Parameters
Hi Everyone, I'm currently working on something using the Interface Resizable plugin, but really this is a general JQuery question I guess... What I want to know is if it is possible to dynamically read and change the parameters you set for a plugin like this? If, for example, I instigate a resizable like this: $('#resizeMe').Resizable( { minWidth: 50, minHeight: 50, maxWidth: 400, maxHeight: 400, minTop: 50, minLeft: 50, maxRight: 700, maxBottom: 500, dragHandle: true, handlers: { se: '#resizeSE',
[jQuery] OPTGROUP in Opera
function getRegions(country, div_id){ var i; $.getJSON("tools/getregions.php", { ctr: country }, function(json){ for(var i = 0; i < json.length; i++) { opts = ""; for(var j = 0; j < json[i].TOWNS.length; j++) { opts += "<option value=\"" + i + "," + j + "\">" + json[i].TOWNS[j] + "</option>"; } $("<optgroup label=\" " + json[i].REGION + "\">" + opts + "</ optgroup>").appendTo($(div_id)); }
[jQuery] ie7 hover issue
NOTE: This isn't a jQuery issue per se, but I'm hoping that someone here may be able to help me. I've noticed that IE7's native hover (mouseover/out) detection changes if a negative margin is applied. With a negative margin, only the text in a div is 'hoverable'. With a non-negative margin, the entire div is 'hoverable'. At first, I thought my jQuery hover code was faulty, but the example below shows that the css:pointer behavior changes with the margin setting. Can someone suggest a hack to make
[jQuery] Input inside table cell
Hi all, Thanks for your help with my previous problem (input blanking on click, defaulting on blur if blank), worked a treat. Now for a new one! Consider the following source: <table id="vetotable"> <tr> <td class="lalign">Name</td> <td><input type="checkbox" name="x" value="y" /></td> </tr> </table> And the following JS: $("#vetotable td").not(".lalign").hover(function() { $(this).addClass("hovertd"); },function() { $(this).removeClass("hovertd"); }).click(function() { $("input",this).attr("checked",!$("input",this).attr("checked"));
[jQuery] Java Applet flickering
In the following test case, the java applet flickers when you mouse over the text - this seems to be due to the fact that the DIV that we are trying to get the width of is "display:none", therefore jQuery temporarily changes the properties of it's parent while getting the width. Is there any way to correct this? <html> <head> <title></title> <script src="/visual/js/jquery.js"></script> <script type="text/javascript"> $(document).ready(function() { $('#tester').bind('mouseover', function() { var w
[jQuery] Ext examples, comparing jQuery against YUI
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> <font size="-1"><font face="Helvetica, Arial, sans-serif">I've been flicking through the examples here: <a class="moz-txt-link-freetext" href="http://extjs.com/deploy/ext/docs/index.html">http://extjs.com/deploy/ext/docs/index.html</a>, specifically the "Layouts/Complex Layout" and "Mixed
[jQuery] how to set Authorization Headers using jQuery
Hi, I am trying to have fun with Google Data API and of course jQuery, Anyone know how to set Authorization Headers using jQuery or is it possible? like:Authorization: AuthSub token="yourAuthToken" Thanks!
[jQuery] SOT: jQuery Discussion List & Cloudmark Desktop Spam Filter...
Ever since this list moved to Google Groups, my Spam filter (Cloudmark Desktop) has been moving tons of discussion e-mail to the spam filter folder.) I've got the jquery-en@googlegroups.com set up as a whitelist, but due to changes in the delivery headers, the Cloudmark sees each message as coming from the sender. Unfortunately, there's no way to filter e-mail sent "to" a specific e-mail address--which has never been a problem before. I'm hoping I can eventually train it to stop moving jQuery mail,
[jQuery] AJAX sample code
I'm currently evaluation jQuery for a web site and it looks promising. Yet jQuery is rather new and documentation is rather sparse IHMO, especially for AJAX. I'm looking for working sample code which allows to filter a list of elements (e.g. persons) through some input fields (e.g. lastname, fistname). Filter elements (lastname, fistname) are in a form while the returned list (persons) will be put into a table below. Server back end is PHP. I'm most interested in how to send the imput fields to the
[jQuery] Some questions about tables and translator cmp
Hello, I have two questions: - Are there any table plugin which implement: sort & pagination options? - I would like to add in my web site a component like: http://translate.parish.ath.cx/ Anyone know a open source component like this?... It will be nice to have a jQuery plugin like this!!! Many thanks!!!
[jQuery] working around IE's lack of <option> click/dblclick events
Hi all, I've just discovered something I didn't know: IE (6) does not generate click / dblclick events for <option> elements. I'm creating some code to work around this issue (which will be made available when complete), but have a further problem in that when IE calls the <select>'s click handler, it does this *before* updating the .selectedIndex property, hence you cannot tell which item has been double-clicked on. I could use a timer to get around this problem but it's a bit of a hack; does anybody
[jQuery] need suggestions on ajax
Hi, I am having some trouble with ajax and jquery... I have my default webpage template and in that I have defined my javascript as shown below <!-- My webpage template --> $(document).ready(function(){ $('.loadContent').click(function(){ url = $(this).attr('href'); $("div#content").load(url); return false; }); }); <span class="loadContent">resume</span> when I click on resume..it properly loads in the "content" div...my resume is as follow <div> <span class="loadContent">Publications</span>
[jQuery] jqModal IE 6 overlay width quickfix
$('<div></ div>').css({height:'100%',width:'101.5%',position:'fixed',left:0,top: 0,'z-index':z-1,opacity:c.overlay/100}); The original width was 100%, as it should be, but in IE 6 it didn't overlay the whole page. FF 1.5, and IE 7 don't show the horizontal scrollbar due to the oversized width, what was a concern of mine. If there are better fixes it would be great to see them.
[jQuery] Does this code look correct?
Hi, all... Does the code look correct? Would it work to disable/enable a form button assuming the variables "principal_status", "interest_status", and "years_status" are being returned properly? Thanks, Rick
[jQuery] is there something like Prototype Window for jquery???
Hi, Is there any plugin for jquery that resembles Prototype Window (http:// prototype-window.xilinus.com/) ???? thanks
[jQuery] How to change form data before submitting to form plugin?
Hi again folks, Almost finished with the form validation/form plugin combo! A quick question: I have a password field that I'd like to encrypt before sending via ajaxSubmit (a simple MD5 call would suffice). I know I can use beforeSubmit to do things, but am not sure how to physically change a value. I've attempted various things with jqForm and formData to no avail -- is it a correct assumption that there's no way to have the beforeSubmit function be call by reference? Regardless, I downloaded a
[jQuery] Ajax Experience SF
<div>Anyone going to this?</div> <div><a href="http://ajaxian.com/the-ajax-experience-sf-2007-call-for-presenters-details/">http://ajaxian.com/the-ajax-experience-sf-2007-call-for-presenters-details/</a></div> <div> </div> <div>Anyone presenting?</div> <div> Glen</div>
Next Page