[jQuery] Re: tablesorter

2009-01-28 Thread dyutiman
yaa, i realized that and made the ordering on server side... thanks On Jan 15, 7:00 pm, MorningZ wrote: > It's 100% unrealistic to expect to run something like TableSorter on > the client side for 10,000 rows of data > > what user is really going to see/use that much data at once? look >

[jQuery] API Browser for your iPhone and iPod Touch

2009-01-28 Thread Brandon Aaron
I wrote an API Browser as a "Web App" for the iPhone and iPod touch. It downloads the docs to a local sqlite database for quick browsing of the API. It is basically a proof of concept right now (the code is ugly and a little buggy). However, if enough people like it I'll go ahead and take the time

[jQuery] Re: jQuery 1.3.x & XPath

2009-01-28 Thread Klaus Hartl
On 29 Jan., 06:05, Neil Craig wrote: > I have tried it, but it yields no results when searching for elements. > > What I loved about the xpath functionality was that I could have used > the same functions on XML documents, not only on XHTML. Huh? CSS selectors will also work with XML. --Klaus

[jQuery] Selected Attribute in IE6

2009-01-28 Thread KenLG
I only found a couple posts related to this and none seemed to have been answered. If you try to select an using this: $("#MySelectID option").each( function() { if ($(this).attr("id") == "somevalue") $(this).attr("selected", "selected"); });//end each or like this: $(

[jQuery] Problems using one button to slideUp multiple instances at once using variables

2009-01-28 Thread ryjohnson
I have a menu that when you click on a button it slides down a set of options pertaining to that click, and when you click on another one the one open slides out and the new one slides in. I can get this to work but there are about 15 menus, so writing the code 15 times for 15 buttons begins to ad

[jQuery] Re: How can I fix the mcDropdown plugin to jQuery 1.3.1?

2009-01-28 Thread WobblyBob
Thanks. Worked like a Charm On Jan 29, 12:00 am, Alexsandro_xpt wrote: > Just Find line with "li[" You will found line within jQuery > expressions like that: > > $list.find("li[" + settings.valueAttr + "='"+ value +"']"); > > Remove the ' char before and behind of + value + . > > I wish help you

[jQuery] Re: jQuery 1.3.x & XPath

2009-01-28 Thread Neil Craig
I have tried it, but it yields no results when searching for elements. What I loved about the xpath functionality was that I could have used the same functions on XML documents, not only on XHTML. I suppose another feature that has been lost is the custom psuedo selectors. On Jan 28, 3:54 pm, K

[jQuery] Re: How to use one button to toggle multiple panels in succession

2009-01-28 Thread Kevin Rodenhofer
Not bad at all...if I "remove" them with slideUp, in succession, how would I do that? On Wed, Jan 28, 2009 at 7:39 AM, Stephan Veigl wrote: > > I'm not sure if I realy understand what you want to do, but it could > look something like > > HTML: > >+ >1 >2 >3 >4 >5 > > >

[jQuery] Re: Form Validation

2009-01-28 Thread issya
Still have not got this solved. If anyone could help that would be great, thanks. On Jan 25, 2:22 pm, Jörn Zaefferer wrote: > Try to move the code in your own submit handler to the submitHandler-callback: > >  $(document).ready(function() { >        $.validator.addMethod("phone", function(ph, el

[jQuery] Re: Condense this function

2009-01-28 Thread RobG
On Jan 16, 3:15 am, Ricardo Tomasi wrote: > Can you add a single class "sticky" to all of the notes? Then do this: > > $('.sticky:hidden').each(function(i){ >    var t = $(this); >    setTimeout(function(){ t.fadeIn(500) }, i*100); > }); Rather than 9 calls to setTimeout, consider one call to

[jQuery] Re: None of the tutorials I try work for jquery

2009-01-28 Thread Karl Swedberg
Hi there, Looks like you're missing a line. Try this: $(document).ready(function(){ $("a").click(function(event){ alert("Thanks for visiting!"); event.preventDefault(); }); // <-- you were missing this one. }); Try it here: http://test.learningjquery.com/click.html --Karl ___

[jQuery] Re: Condense this function

2009-01-28 Thread DJCarbon43
Well, I should attach one class to all stickies, and fade loop them in from there, just using class="sticky NumericValue" That would probably be the most elegant. Although to be fair, I rather like the chaotic way in which they appear on screen. On Jan 15, 12:42 pm, James Van Dyke wrote: > So,

[jQuery] Re: A general question about troubleshooting Jquery

2009-01-28 Thread jay
you can also debug javascript with visual studio On Jan 28, 2:37 pm, Vaughn wrote: > I'm new to Jquery, but one thing I'm having trouble with is > troubleshooting my code. > > For example, I have a page, and things work until I perform a certain > action. > > No errors result, inspecting the gen

[jQuery] Re: $.Ajax giving problem in IE

2009-01-28 Thread jay
can u post your code? On Jan 28, 10:41 pm, AbhishEk wrote: > Hi, > > i have a page on which i have used$.ajax for asynchronous call which > works quite f9 in firefox but it is not working in IE .. > > Plz help > abhishek

[jQuery] $.Ajax giving problem in IE

2009-01-28 Thread AbhishEk
Hi, i have a page on which i have used$.ajax for asynchronous call which works quite f9 in firefox but it is not working in IE .. Plz help abhishek

[jQuery] Re: A general question about troubleshooting Jquery

2009-01-28 Thread donb
What browser? I test and debug with Firefox and the Firebug plugin. so that I can breakpoint, inspect values, watch the call stack , etc. It is indispensable. On Jan 28, 2:37 pm, Vaughn wrote: > I'm new to Jquery, but one thing I'm having trouble with is > troubleshooting my code. > > For exa

[jQuery] Re: how to use onfocus event with jQuery ?

2009-01-28 Thread Alex
thank you! i need to bind focus event to new elem after page loaded, how to do it ? jQuery1.3 live() not support focus and blur event . On 2009-1-29, at 上午11:03, jay wrote: http://docs.jquery.com/Events/focus On Jan 28, 9:28 pm, Alex wrote: hi all, i'm new to jQuery,how

[jQuery] Re: newbie: jquery to modify look of broken links?

2009-01-28 Thread Ricardo Tomasi
Possible it is, but it's a very very heavy burden on the user, completely inneficient and unreliable. You'd have to load the URL in an iframe and wait for the 'onload' call, if it's not called after a certain time you consider the link dead (but it may just be slow at the time). No event is fired

[jQuery] Re: guiding principles of jQuery documentation?

2009-01-28 Thread donb
I think the jQuery docs are usable but not great. Want to know what I think 'great' is like? Take a look at this plugin (which I have no connection with other than using it), which has a doc and an example treasure trove. http://www.secondpersonplural.ca/jqgriddocs/index.htm http://trirand.com/

[jQuery] Re: Problema with class attribute in jQuery 1.3.1

2009-01-28 Thread Ricardo Tomasi
Try $("#selectAll").click(function(){ var self = this; $(".chkConv").each(function() { this.checked = self.checked; }); }); or $("#selectAll").click(function(){ var s = this; $(".chkConv").attr('checked', s.checked ? 'checked' : ''); }); Actually your own code should

[jQuery] Re: how to use onfocus event with jQuery ?

2009-01-28 Thread jay
http://docs.jquery.com/Events/focus On Jan 28, 9:28 pm, Alex wrote: > hi all, > >      i'm new to jQuery,    how to use onfocus event with jQuery ? > >      Could you give me a demo ? > >      Thank you! > > Alex

[jQuery] Re: [Cycle Plugin]

2009-01-28 Thread Mike Alsup
> The documentation says that the before and after callback methods are > passed three arguments: > 1. the DOM element for the slide that is being transitioned in (same > as this) > 2. the DOM element for the slide that is being transitioned out > 3. the options object > > my guess is that should

[jQuery] how to use onfocus event with jQuery ?

2009-01-28 Thread Alex
hi all, i'm new to jQuery,how to use onfocus event with jQuery ? Could you give me a demo ? Thank you! Alex

[jQuery] SimpleModal on opera mobile

2009-01-28 Thread ros
Hi! I found that Simple Modal has a positioning issue on opera mobile 9.5. When the screen is zoomed the lightbox is always moved lover then visible portion of zoom. It should be an easy fix. Regards, Rostilslav

[jQuery] Re: Encoding characters using load("some_file.html")

2009-01-28 Thread Leonardo
Hi Maujor, I'm passing the same problem, but I used the following header file requested: ...but works only on Chrome... :o( hugz, lcidral (sfs,sc,br) ;o) On Jan 27, 6:31 pm, Maujor wrote: > Maujor wrote: > > > How to encode special caracters when requesting a  **HTML > > fragments**  us

[jQuery] Re: jqGrid final preview

2009-01-28 Thread runxc1
Tony I really like your jqGrid as far as how it works and the excellent documentation and the quick support of jquery 1.3.1. I do have one issue however that keeps me using flexigrid (even though it has errors). The largest deterrent for me is the fact that jqGrid uses 10+ seperate javascript

[jQuery] if condition within a loop

2009-01-28 Thread pho99
Hello. I am just starting to learn JQuery. I want to click on a div to set an "on" class. When I click on another div, I want the first div to release the "on" class and restore to default class. I also have a hover effect that apply to divs that are not shown as "on." I am trying to set an "If"

[jQuery] guiding principles of jQuery documentation?

2009-01-28 Thread abewords
i am a documentation person on a software development team i asked one developer what was the best API documentation he'd seen, and he said jQuery question: how did the folks who created the jQuery documentation produce such clear, elegant, useful documentation of an API? other than simply copy

[jQuery] [Cycle Plugin]

2009-01-28 Thread bart
Hi all, I'm building a slideshow in HTML and the cycle plugin helps me out with making it look smooth. My slideshow has manual controls, it has previous and next anchors to go back and forth the slides. This all works, no sweat. However I also have a counter which indicates at which slide you ar

[jQuery] Superfish - Drop down opacity

2009-01-28 Thread magik20
http://bischoffhomeremodeling.com/index.php?option=com_content&view=frontpage&Itemid=53 if u hover over customer testimonals, the background for the drop down menus are clear. I was looking, but i dont see how to change this?

[jQuery] jQuery sortable: How can I cancel a selection

2009-01-28 Thread Deadbug
I am using jQuery sortable to allow users to manually sort a list() of items(). If the user selects something and wants to cancel the selection before actually firing the 'change' or 'stop' handler, the native functionality of the 'esc' key does not cancel the selection. Darn. Is there an approa

[jQuery] [autocomplete] use of parsed data vs. raw data (v.1.0.2)

2009-01-28 Thread Arlen
I apologize in advance for not searching extensively through the list to see if this issue has already been raised. While implementing the autocomplete plugin v.1.0.2 (excellent work, btw) - we overrode the parse() function in the options to grab an arbitrary json object and load the data array.

[jQuery] Selection by CSS background-color

2009-01-28 Thread kevotheclone
I've got an app based upon SIMILE Timeline (http://simile.mit.edu/ timeline/) which displays our various projects. SIMILE allows you to specify various colors for different events (e.g. projects that are on- time, projects that are behind schedule, etc.). Unfortunately SIMILE *does not* provide

[jQuery] [treeview] is it possible to only expand level?

2009-01-28 Thread teknoid
I have a tree (using the excellent treeview) plug-in, which is 2 levels deep. By default, I would like to expand level 1, while keeping everything in level 2 collapsed. Is there an option (an easy way) of specifying this? Forgive me if this has been already answered, I did try to fruitlessly sea

[jQuery] Problema with class attribute in jQuery 1.3.1

2009-01-28 Thread AndreMiranda
Hi everyone!! I have one checkbox named 'selectAll' that when it's clicked, it checks all checkbox below it. And these checkboxes have the same class attribute. Like this: $("#selectAll").click(function() { if ($(this).is(":checked")) $(".chkConv").each(function() { t

[jQuery] newbie: jquery to modify look of broken links?

2009-01-28 Thread T
Hi, I'm new to jquery and javascript in general, so this may not be possible: I want to colorize broken links: that is, colorize anchor elements containing hrefs that don't resolve (either missing remote file or missing anchor in remote file). Is that possible? thanks, --Tim

[jQuery] autocomplete plugin by bassistance - loading of huge number of records

2009-01-28 Thread Saumin
hi, we are using the autocomplete plugin by bassistance.de. Our business people want the users to search database with half a million rows. We have minChars set as 3, but then also some combinations get around 5000 rows. In that case, the user has to wait for at least 20+ seconds. I know that the

[jQuery] Re: syntax issue w/ tablesorter

2009-01-28 Thread mdwhe...@ncsu.edu
You might consider having your script tag for the tablesorter after the tag for the jQuery core. Should fix it as I dont see any glaring syntax errors in your code. On Jan 27, 11:30 am, philliptackett wrote: > Can any1 help me? I've just downloaded tablesorter and jquery and > included them in

[jQuery] A general question about troubleshooting Jquery

2009-01-28 Thread Vaughn
I'm new to Jquery, but one thing I'm having trouble with is troubleshooting my code. For example, I have a page, and things work until I perform a certain action. No errors result, inspecting the generated source shows nothing that should prevent it from working... I can't find a way to diagnose

[jQuery] [AjaxContent plugin]

2009-01-28 Thread max.devel....@gmail.com
Somebody uses AjaxContent plugin (http://www.andreacfm.com/os/ ajaxcontent/)? I downloaded the version ajaxContent2.1b from the site and simply do not work (at least for me, seems not load ajaxContent()): no messages, load content like a normal link... tested on Ubuntu, Firefox 3.0.5 and Mozilla

[jQuery] [autocomplete] use of parsed data vs. raw data (v.1.0.2)

2009-01-28 Thread Arlen
I apologize in advance for not searching extensively through the list to see if this issue has already been raised. While implementing the autocomplete plugin v.1.0.2 (excellent work, btw) - we overrode the parse() function in the options to grab an arbitrary json object and load the data array.

[jQuery] [Cycle Plugin] Callback

2009-01-28 Thread bart
Hi all, I'm using the cycle plugin for a slideshow I'm building. With the slideshow comes a counter which shows which image it is that is currently being viewed, for example 4/11. I have a manual navigation with the slides so a link 'previous' or 'next' should be clicked to advance through the s

[jQuery] Re: Jquery call works with 'alert' but no if i comment 'alert' out!

2009-01-28 Thread kevotheclone
Oops! I just read the second half of your question. instead of: document.getElementById('ip_details_graph').setParam is not a function try something like: $('#ip_details_graph').attr('values.value.max', '100'); On Jan 28, 1:28 pm, RR_QQ wrote: > Ok so I am using amcharts and I am trying to

[jQuery] Re: paint columns in alternating colour

2009-01-28 Thread bret ferrier
kevin you need to try $("table.Grid tr td:even").css("background","silver"); From: kevind To: jQuery (English) Sent: Wednesday, January 28, 2009 9:59:20 AM Subject: [jQuery] paint columns in alternating colour i have this table structure - a database feeds ro

[jQuery] Re: Jquery call works with 'alert' but no if i comment 'alert' out!

2009-01-28 Thread kevotheclone
Try using: $(document).ready(function() { document.getElementById('ip_details_graph').setParam ('values.value.max', '100'); }); On Jan 28, 1:28 pm, RR_QQ wrote: > Ok so I am using amcharts and I am trying to change a setting dynamically. > The following codes (when placed at the top of the doc

[jQuery] Re: Ajax Problem

2009-01-28 Thread Saiful Haqqi
hi all, Thang for ragx replay :D, but i still get the same error this is my code rating_star.js $(document).ready(function() { var behav = function(){ $(".rating_class").hover(function(){ $("#tooltip_star").css({"visibility":"visible", "top":($(this).offset().top - 60), "left":($(thi

[jQuery] Re: injecting content

2009-01-28 Thread roxstyle
Thank you both, i am off to experiment. On Jan 28, 4:25 pm, Ricardo Tomasi wrote: > As long as you use proper mark-up they should behave alright. You > *can't* just stick a DIV between two rows, everything you do must > follow proper XHTML/HTML specs. Careful with the tbody. > > $('') >    .appe

[jQuery] Re: $("div.image")[4].show() Does NOT Work !!

2009-01-28 Thread bartee
Thanks All.. Great answers.. I learned two things.. that DOM objects are returned, you have to understand the difference. And duck!... thanks for the answer I was really hunting.. I guess I need to read that part of the book again.. Moving on the event's now... going to click a next and prev a

[jQuery] Re: How to decode Json value through Jquery

2009-01-28 Thread Michael Geary
I believe the other replies have overcomplicated the issue quite a bit. This is your own server you're getting the data from, right? Then you don't need to worry about security. There's nothing to decode, you don't need any plugins, and you don't need to use eval(). Simply use code like this:

[jQuery] Re: How to wait for load() to finish executing

2009-01-28 Thread Karl Swedberg
On Jan 28, 2009, at 3:34 PM, Michael Geary wrote: async:false doesn't just freeze the entire browser, in many browsers it may freeze every browser window as well, even windows open on other sites. Adam, why can't the code you need to execute be called from the success callback function?

[jQuery] Re: injecting content

2009-01-28 Thread Ricardo Tomasi
As long as you use proper mark-up they should behave alright. You *can't* just stick a DIV between two rows, everything you do must follow proper XHTML/HTML specs. Careful with the tbody. $('') .append('') .append('') .appendTo('#mytable tbody'); or $('#mytable tbody').append('') or i

[jQuery] Re: Jquery call works with 'alert' but no if i comment 'alert' out!

2009-01-28 Thread Ricardo Tomasi
I don`t think 'onload' will work for flash content, as even if the .swf object is fully loaded it's content might not be. But you have the solution in your hands, take a look at the amcharts documentation: http://www.amcharts.com/docs/v.1/stock/javascript/basics "Before you can start controllin

[jQuery] Re: Has anybody managed to print a sorted table using table sorter?

2009-01-28 Thread Ricardo Tomasi
Have you? On Jan 28, 6:52 pm, livewire9174 wrote: > Hi, > I've got table sorter, has anybody tried to print a table after > sorting it ? > > Thanls

[jQuery] Re: Jquery call works with 'alert' but no if i comment 'alert' out!

2009-01-28 Thread Dave Methvin
> forgive me if I'm wrong but I thought that jquery had onload or load > functions that detec when an element or document is finished loading? The load event is supported by jQuery, but it's the same event that you'd get by using a native window.onload handler. So it sounds like the browser is fi

[jQuery] Re: Jquery call works with 'alert' but no if i comment 'alert' out!

2009-01-28 Thread RR_QQ
forgive me if I'm wrong but I thought that jquery had onload or load functions that detec when an element or document is finished loading? I tried without success maybe I'm misinformed. I would never go into jquery's innards ;) William-118 wrote: > > > I doubt mucking about in the jQuery inna

[jQuery] Re: Jquery call works with 'alert' but no if i comment 'alert' out!

2009-01-28 Thread RR_QQ
forgive me if I'm wrong but I thought that jquery had onload or load functions that detec when an element or document is finished loading? I tried without success maybe I'm misinformed. I would never go into jquery's innards ;) William-118 wrote: > > > I doubt mucking about in the jQuery inna

[jQuery] Re: Jquery call works with 'alert' but no if i comment 'alert' out!

2009-01-28 Thread William
I doubt mucking about in the jQuery innards to change the behaviour of when the ready or load events fire will be easier than re-arranging your scripts so that setParam is defined before you call it... On Jan 28, 2:28 pm, RR_QQ wrote: > I understand. However is there another option? How about wi

[jQuery] Re: injecting content

2009-01-28 Thread William
In general, you can just use the jQuery manipulation APIs to inject arbitrary text and elements, like $('a').append('(This is a link)') Tables are a bit of a special case. In my experience, it does not work consistently, so it is better if you use the browser DOM APIs to do things like row = table

[jQuery] Re: Jquery call works with 'alert' but no if i comment 'alert' out!

2009-01-28 Thread RR_QQ
I understand. However is there another option? How about with jquery allowing the object id containing the flash to finish loading before that code gets executed? How can I do that? That's probably easier but I am new to jquery and I just don't know how to do that! William-118 wrote: > > > We

[jQuery] Re: Jquery call works with 'alert' but no if i comment 'alert' out!

2009-01-28 Thread William
Well, I agree with the browser... DOMElement.setParam() is not a function. You might have another script in your page that is overloading the prototype to define a setParam function, which would explain the alert() behaviour. Scripts are always executed in document order, so your script snippet ab

[jQuery] injecting content

2009-01-28 Thread roxstyle
are there any samples of injecting content? i am familiar with hide/show of content inline, but don't grasp "injecting" content. if i have a table - can i inject a "div" between 2 rows? or do i need to "inject" a new row?

[jQuery] Jquery call works with 'alert' but no if i comment 'alert' out!

2009-01-28 Thread RR_QQ
Ok so I am using amcharts and I am trying to change a setting dynamically. The following codes (when placed at the top of the document) works PERFECTLY: $(window).load(function() { alert('TEST'); document.getElementById('ip_details_graph').setParam('values.value.max', '100'); });

[jQuery] Re: OT: CF-Talk Down?

2009-01-28 Thread Carl Von Stetten
Rick, Here is how I handle creating json content with ColdFusion. I store the json string in a variable (like variables.myJSONdata). Then, I output the variable as follows: #myJSONdata# The first line clears anything CF might have rendered to the page up to this point. The second throug

[jQuery] Re: closure inside ajax method

2009-01-28 Thread bob
I think the following line is the problem files = files.concat($.map(src.match(scripts).pop().split(','), function(e,i){ count = files.length; // gives me 0 or undefined

[jQuery] Re: OT: CF-Talk Down?

2009-01-28 Thread Rick Faircloth
Perhaps I could ask you a question, Josh. I've been stuck on a CF/jQuery ajax issue for a day now and went to post my question to CF-Talk about the time it went down. Basically, I got everything working, but in my json response, beside the correct data, I get CF debugging code. I have , so that

[jQuery] Re: OT: CF-Talk Down?

2009-01-28 Thread Josh Nathanson
Yup down for me too. -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Rick Faircloth Sent: Wednesday, January 28, 2009 12:46 PM To: jquery-en@googlegroups.com Subject: [jQuery] OT: CF-Talk Down? Hi, guys... Pardon the OT, but

[jQuery] Re: OT: CF-Talk Down?

2009-01-28 Thread Andy Matthews
Neither have I... -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Rick Faircloth Sent: Wednesday, January 28, 2009 2:46 PM To: jquery-en@googlegroups.com Subject: [jQuery] OT: CF-Talk Down? Hi, guys... Pardon the OT, but I'm trying

[jQuery] Has anybody managed to print a sorted table using table sorter?

2009-01-28 Thread livewire9174
Hi, I've got table sorter, has anybody tried to print a table after sorting it ? Thanls

[jQuery] OT: CF-Talk Down?

2009-01-28 Thread Rick Faircloth
Hi, guys... Pardon the OT, but I'm trying to find out if the CF-Talk list, which several of the jQuery list users are on, is down. I haven't gotten anything since yesterday afternoon and I noticed that the last message on houseoffusion.com was from 5pm yesterday. News? Rick

[jQuery] Re: How to wait for load() to finish executing

2009-01-28 Thread Michael Geary
async:false doesn't just freeze the entire browser, in many browsers it may freeze every browser window as well, even windows open on other sites. Adam, why can't the code you need to execute be called from the success callback function? -Mike > From: Ricardo Tomasi > > You can use async: fals

[jQuery] Re: Unsetting variables

2009-01-28 Thread Michael Geary
Well, yes and no. The delete operator works on global variables, but only because they are actually properties of the global object. It doesn't work on local variables in a function. A couple of other notes... You can write this code two different ways; both work the same: delete myObject['foo

[jQuery] Re: Broken selector in jQuery 1.3

2009-01-28 Thread Ricardo Tomasi
Different issues: $('[value=""]') also works in 1.3, but not in 1.3.1. $('[value=]') as in ticket #3933 works in 1.2.6, 1.3 and 1.3.1 in the following test: http://jquery.nodnod.net/cases/77 It's probably related to the [attribute!=anything] fix landed on 1.3.1: http://groups.google.com/group/j

[jQuery] Re: AHAH- Working with return data.

2009-01-28 Thread Ricardo Tomasi
Kind of: $.get('page.htm', function(closet){ $(closet).find('stuff').hide(); //or $('stuff', closet).appendTo('#trash'); }); You're not creating any temporary DIV, just passing the HTML string to jQuery which will parse it and turn it into actual elements. On Jan 27, 6:25 pm, zunama w

[jQuery] Re: closure inside ajax method

2009-01-28 Thread bob
Thanks everybody, to Eric Garside : I have tried "jQuery Automatic Script Includer" and it does not download scripts for me. Are there any known issues that I should be aware of? I placed this code inside of jquery.js right at the end. (function($){ var scripts = /\?(.*)/, files = [],

[jQuery] Re: Unsetting variables

2009-01-28 Thread Ricardo Tomasi
Yes it does! On Jan 27, 8:43 pm, Hector Virgen wrote: > You can use delete for unsetting items in objects, but I'm not sure if it > works with variables in general: > > var myObject = { >     foo: 'Foo', >     bar: 'Bar > > }; > > delete myObject['foo']; > > -Hector > > On Tue, Jan 27, 2009 at 2

[jQuery] Re: Array values disappear when ready event fires

2009-01-28 Thread Ricardo Tomasi
Could you post a sample page showing your code? Nothing in jQuery should touch any other objects. On Jan 28, 4:40 pm, Emili Calonge wrote: > I have some old jsp pages with bad coding, where I created javascript > arrays in the jsp code, so in the end I've got an html page with lots > of script t

[jQuery] Re: Is .parent() only one level up?

2009-01-28 Thread Ricardo Tomasi
Be careful about closest(), as if it doesn't find any matches it will return the element itself. The alternative is $(this).parents("form:first") Essentially, parent() returns the parent (the one and only) and then filters it to the selector you gave. parents() does the same but with all parents

[jQuery] Re: How to wait for load() to finish executing

2009-01-28 Thread Ricardo Tomasi
You can use async: false, check the docs: http://docs.jquery.com/Ajax/jQuery.ajax That's the closest thing to a 'pause' in JS, but that is not good as it will freeze the whole browser while waiting for the server response. The best solution would be to use the load callback, but then you can't c

[jQuery] Re: function after "each" -loop

2009-01-28 Thread Ricardo Tomasi
In your sample you're missing a closing bracket for the function, and LoopComplete would only be declared but not run. I think you meant $(document).ready(function() { $('input[name=category]').each(function() { //... }); alert("All done with loop!"); }); johannes: everything in

[jQuery] Re: Can JQuery solve the iframe height=100% problem?

2009-01-28 Thread laredotorn...@zipmail.com
Hi Kevin, I really appreciate your help with all this. Unfortunately, I added what you had suggested ... $(document).ready(function() { $("body").layout({ closable: false , resizable: false , spac

[jQuery] Re: Alternate row colors using Ajax

2009-01-28 Thread Ricardo Tomasi
You need to put that code right after append(), like .appendTo('#update-target table') .find('tr:odd').addClass('alt'); }); //close each( On Jan 28, 12:47 pm, septemberbrain wrote: > Thanks.  I tried that but it did not work.  Tried placing it within > the function, outside the functi

[jQuery] Array Plugin

2009-01-28 Thread seasoup
Does anyone know of a plugin that duplicates Prototypes array methods. The closest I've found is the Rich Array Plugin. http://plugins.jquery.com/project/rich-array Any others?

[jQuery] Re: Can jQuery calculate "CSS Width/Height"

2009-01-28 Thread jay
with 1.3.1 I'm able to get pixel measurement from percent with no problem. example: test alert($("#d1").width()); alert($("#d2").width()); alert($("#d3").width()); alert($("#d4").width()); On Jan 28, 12:17 pm, Kevin Da

[jQuery] Re: [validate] rules section problem

2009-01-28 Thread Jörn Zaefferer
Can't spot any issues in that snippets. Could you post a testpage? Jörn On Wed, Jan 28, 2009 at 6:22 PM, TUNGA wrote: > > Hello, > > I use validation code someting below. It works if I load that page > directly. But loading it from another page using $("#myApplDiv").load > ('that_page.php') the

[jQuery] Array values disappear when ready event fires

2009-01-28 Thread Emili Calonge
I have some old jsp pages with bad coding, where I created javascript arrays in the jsp code, so in the end I've got an html page with lots of script tags where I add values to a Javascript array. I know it's a really ugly way of doing things, but that's the only way I thought of at the time. Now

[jQuery] Re: $('#list').unbind().html('') -- redundant?

2009-01-28 Thread René
Thanks saves me some code, and perhaps a few cycles. On Jan 28, 10:46 am, jay wrote: > html('') calls empty() so starting with 1.2.2 it will also remove all > event handlers and internally cached data. > > On Jan 28, 11:48 am, René wrote: > > > I have a dynamically generated a long list of item

[jQuery] Re: Is .parent() only one level up?

2009-01-28 Thread jay
parent is just one level. closest() looks up the tree like .parent ().parent()... until a match is found.. I'm not sure if there is an equivalent that would do what you want.. you could try .closest (".parentClass").find(".childClass") On Jan 28, 12:53 pm, kgosser wrote: > No, not necessarily,

[jQuery] Cycle plugin: Replay button won't replay

2009-01-28 Thread atomk
I have a slideshow: $(function(){ $('#slideshowBoxRetouching').cycle({ fx: 'fade', speed: 300, timeout: 2400, pause: 0, autostop: 17, end: function() { $('#replayRetouching,#ellipsis').fadeIn(); $('#page').fadeOut();

[jQuery] Re: Is .parent() only one level up?

2009-01-28 Thread kgosser
No, not necessarily, but thanks for the link. I'll take a deeper look at that. What my question centers around is when I put parent("example"); ... how far up the tree does jQuery look for the "example" -- just one level, or higher? The key is I'm trying to understand how to stop having to write

[jQuery] Re: How to wait for load() to finish executing

2009-01-28 Thread jay
This could be accomplished using a synchronous xmlhttp call (does jQuery even support this?), or you could put a while loop before the return true to poll a variable that is set in the callback. You would probably want to set the variable if there is an error as well so that the browser doesn't fr

[jQuery] Re: $('#list').unbind().html('') -- redundant?

2009-01-28 Thread jay
html('') calls empty() so starting with 1.2.2 it will also remove all event handlers and internally cached data. On Jan 28, 11:48 am, René wrote: > I have a dynamically generated a long list of items with events bound > to them. I was wondering, when I clear the list, or replace it, is it > nec

[jQuery] Re: Is .parent() only one level up?

2009-01-28 Thread jay
http://docs.jquery.com/Traversing/closest On Jan 28, 12:39 pm, kgosser wrote: > Hello, pretty noob question here. I have this example: > > >     >       >           Example >           >       >     > > > Now let's say there's this jQuery: > > $("input").click(function(){ >    $(this).paren

[jQuery] Re: Is .parent() only one level up?

2009-01-28 Thread jay
I think the method you are looking for is closest On Jan 28, 12:39 pm, kgosser wrote: > Hello, pretty noob question here. I have this example: > > >     >       >           Example >           >       >     > > > Now let's say there's this jQuery: > > $("input").click(function(){ >    $(thi

[jQuery] Is .parent() only one level up?

2009-01-28 Thread kgosser
Hello, pretty noob question here. I have this example: Example Now let's say there's this jQuery: $("input").click(function(){ $(this).parent("form").css("color","#F00"); }); My question: Does the parent() method work like that, or do I need to

[jQuery] Re: paint columns in alternating colour

2009-01-28 Thread Liam Potter
no wonder it didn't work, .Row is only on captions, try this $(document).ready(function(){ $("table.Grid tr:even td").each().addClass("colouredtd"); }); I did mean to leave spaces yes, you write the selector just like you would with CSS. kevind wrote: i added it thus:

[jQuery] Re: How to block the javascript engine when jQuery.ui.dialog is pop up?

2009-01-28 Thread Gordon
The only way would be to not have any javascript statements after the open statement. If, however, you mean you don't want users triggering other events or interacting with the page after a dialog has been opened then you can do this by simply setting the dialog modal:true. On Jan 28, 3:16 am, m

[jQuery] feedback for alert replacement plugin

2009-01-28 Thread jay
I wrote a quick plugin to replace alert (I didn't like that I couldn't copy and paste from the alert window, and that it was modal). I decided to use window.open instead of absolute divs to show it. I've also used toJSON plugin for when an object is passed in. Faced a couple of problems with ge

[jQuery] [validate] rules section problem

2009-01-28 Thread TUNGA
Hello, I use validation code someting below. It works if I load that page directly. But loading it from another page using $("#myApplDiv").load ('that_page.php') the rules sections does not work. But submitHandler section works well. $().ready(function() { // some codes here var

[jQuery] Re: Event delegation and hover(over, out)

2009-01-28 Thread ShaneRileyDotInfo
Could you check out this example I created and let me know if that was your intended effect? I'm still not entirely certain I'm grasping everything you're trying to do. Basically, you have an initial list. You want the image in each one to fade in/out when the link is hovered. You then want to be

[jQuery] Re: Can jQuery calculate "CSS Width/Height"

2009-01-28 Thread Kevin Dalman
Thanks Matt, but that does not work. As my example shows, the element may have a percentage width, or it could be 'auto' (which it would be if not specifically set). What I need is the 'pixel' measurement that would replicate its current size. In other words, if it currently is width:90%; and I r

  1   2   >