[jQuery] Re: Endeavour: translating X-Library functionality click-n-drag checkboxes into Jquery

2009-04-14 Thread Lwangaman
Ok latest version I've included the possibility of adding a background color: http://jsbin.com/icena/edit The background color is specified as a second parameter in the function: $('table').dragCheck('td:not(.nono) :checkbox', 'pink') To clear the dragCheck: $('table').dragCheck('clear') On 13

[jQuery] Re: Endeavour: translating X-Library functionality click-n-drag checkboxes into Jquery

2009-04-14 Thread Lwangaman
Latest: http://jsbin.com/isuga/edit Simplified the code for the highlighting process and corrected the case-possibility that first parameter is left empty (in that case, all child checkboxes are involved). Empty parameter usage: $('table').dragCheck() for no parameters; $('table').dragCheck('',

[jQuery] Re: preloading a div

2009-04-14 Thread Liam Potter
a callback function is something that runs after an action has been completed. This is what you need for what you are trying to achieve, I'm also going to chain the actions. $(#div).fadeOut(500, function() { $(#div).load(url).fadeIn(); }); The 500 is the time in miliseconds it

[jQuery] how to create multiple draggable div's with dynamic content

2009-04-14 Thread hybris77
hi, I'm trying to acchieve something for a few days now and I need som guidence I need to be able to open a draggabel div, that's no worry using the jQuery UI plugin what im not getting my head around is how to create multiple instances of this window with dynamic content but with a templade

[jQuery] Re: Final Four: Grabbing Keys, Styling Columns, Pop Up Forms, Edit Select Lists?

2009-04-14 Thread Tony
Hello, #1) colModel : [ { name:ID, hidden:true, editable:true, editrules:{edithidden:true}, editoptions:{readonly:true} }, .. ] Look into the docs for more details. #2) In wich browser is this? #3) Currently not possible. It is hardcoded in the source. Will try to put this in the css in order

[jQuery] Re: Getting index of clicked table cell

2009-04-14 Thread Thomas
Wow, you had me stumped for a couple of minutes there. :) I think the .index() method doesn't do what you want it to do. As I understand it, you use that method on a selection of elements, pass it an element, and it will search for the element in that selection. So if you did alert($('td',

[jQuery] Re: Getting index of clicked table cell

2009-04-14 Thread Tony
Hello, IMHO this can be: $(#Table1 tr.SUM).click(function(e) { alert(this.rowIndex); }); Regards Tony On Apr 14, 1:46 pm, Thomas thpick...@googlemail.com wrote: Wow, you had me stumped for a couple of minutes there. :) I think the .index() method doesn't do what you want it to do. As

[jQuery] Re: Getting index of clicked table cell

2009-04-14 Thread Tony
Upps, sorry mixed some code. $(#Table1 tr.SUM).click(function(e) { var td = e.target || e.srcElement alert(td.cellIndex); }); On Apr 14, 2:11 pm, Tony t...@trirand.com wrote: Hello, IMHO this can be: $(#Table1 tr.SUM).click(function(e) {       alert(this.rowIndex); });

[jQuery] Re: Node click behavior

2009-04-14 Thread edik
Well I found the code-piece where the clik-event is beeing added to the span element inside of the A element of the LI element of the tree. If commented out only +/- symbols collapse/expand the tree/ subtree. Anyway it would be nice to have an option where I can enable/disable this behaviour

[jQuery] Superfish

2009-04-14 Thread timka
Your plugin really easy to use, thanks. But there is no useful option in my case: openOnClick. I want to open submenu by click event, not hover. Could you help me?

[jQuery] [autocomplete] charset

2009-04-14 Thread borutt
Hello, I'm having problem with charset on searching value, that is returned in param q. On main page and od page from where script search for data I have charset placed: main script: meta HTTP-EQUIV='Content-Type' Content='text-html; charset=windows-1250' search script: header( Content-Type:

[jQuery] Re: Node click behavior

2009-04-14 Thread edik
Or comment just toggler.apply($(this).next()); in the programmcode mentioned in the previous post, to leave the hover of the A-element untouched On 14 Apr., 13:54, edik eduard.mar...@googlemail.com wrote: Well I found the code-piece where the clik-event is beeing added to the span

[jQuery] Event change on span/div

2009-04-14 Thread tommyy
Hi! Anyone know how I can bind an event like change to the text inside a span or div?

[jQuery] XSLT with anchors

2009-04-14 Thread Jonathan Maddison
Hello, I am using the jQuery Transform plugin to perform XSL transforms. It works great except when I load a page with an anchor. i.e. mysite.com/mypage works fine, but - mysite.com/mypage#xyz gives incorrect output (all HTML tags are missing). Does anybody have any idea what could be

[jQuery] Calling a function from a non-jQuery .JS file

2009-04-14 Thread kiusau
I am new to jQuery, but understand enough to have already begun targeted experimentation. I have run into a snag. In brief, I am trying to call a function from a .JS file that contains no jQuery and assign it to an HTML tag in a Dreamweaver template via jQuery that is located in a different .JS

[jQuery] Re: Adding incremental numbered classes to divs

2009-04-14 Thread Eric Garside
I just finished documentation on a new plugin I think might help you in this situation. Check out: http://eric.garside.name/docs.html?p=replicator On Apr 13, 11:04 pm, Brain Lava nic...@brainlava.com wrote: Thanks everyone!  You've definitely made some great points for me to consider.  I'm

[jQuery] Re: Getting index of clicked table cell

2009-04-14 Thread MorningZ
Thomas: Thanks! a big doh! for me for missing the fact that i wasn't selecting table cells to find the cell clicked. works like a charm now.. .thanks

[jQuery] Re: Calling a function from a non-jQuery .JS file

2009-04-14 Thread MorningZ
So what is the error? And realize something: jQuery *is* JavaScript, don't think of it like two different things On Apr 14, 4:21 am, kiusau kiu...@mac.com wrote: I am new to jQuery, but understand enough to have already begun targeted experimentation.  I have run into a snag.  In brief, I am

[jQuery] [Validate] Custom error message for a group of fields

2009-04-14 Thread Bizzy
Hi, let's take this example : $(#myform).validate({ groups: { username: fname lname }, errorPlacement: function(error, element) { if (element.attr(name) == fname || element.attr(name) == lname ) error.insertAfter(#lastname); else

[jQuery] Event binding in frames

2009-04-14 Thread crawfjs
Hello, In order to create a decoupled UI, I wanted to make the events within some iframes write to the DOM (within the iframe). Then from the main container (top window), I created an observer to detect a 'change' on that hidden element (in iframe) and respond appropriately. I don't want each

[jQuery] Re: jQuery.support -- No direct support for IE6 detection

2009-04-14 Thread theJorn
Obviously I agree that IE6 should be banned. But since most big corporations (and clients) still use it, I as a front-end developer find that we need to keep supporting it. But indeedly, conditional statements are once again the key. Add this to the head of your page: !--[if ie 6] script

[jQuery] Converting JSON to html output

2009-04-14 Thread Nando
Hi, I'm a jQuery and Javascript noob, and can't seem to get this to work. The JSON output looks right to me via console.log(result), but the select box isn't being populated. The select box needs to be populated onfocus, because the interface is set up to allow the user to add new options to the

[jQuery] Re: Converting JSON to html output

2009-04-14 Thread MorningZ
Can you give an example of the JSON to help? On Apr 14, 9:24 am, Nando d.na...@gmail.com wrote: Hi, I'm a jQuery and Javascript noob, and can't seem to get this to work. The JSON output looks right to me via console.log(result), but the select box isn't being populated. The select box

[jQuery] Re: Converting JSON to html output

2009-04-14 Thread Nando
Sure. Here's the JSON string being returned by the server. The only thing that will need some fiddling is that the year is being returned as a float. Not sure how to get that displayed as just an integer in JS. {COLUMNS: [REFERENCEID,AUTHOR,DETAIL,REFYEAR,REFTYPE],DATA:[[1,Chen Chen,Chinese

[jQuery] Re: [autocomplete] charset

2009-04-14 Thread Tom Worster
On 4/14/09 4:36 AM, borutt borut.toma...@gmail.com wrote: I'm having problem with charset on searching value, that is returned in param q. On main page and od page from where script search for data I have charset placed: main script: meta HTTP-EQUIV='Content-Type' Content='text-html;

[jQuery] Should $(document).ready() be external? And should it be placed at the bottom of the page?

2009-04-14 Thread kgosser
Hey all, Two quick questions for you. I couldn't find the answers while searching... This would be a great thing to add to the jQuery FAQ, by the way. (1) Is it advisable to place a page's $(document).ready() stuff in an external .js file? I've been doing a lot of reading and research on

[jQuery] Re: Should $(document).ready() be external? And should it be placed at the bottom of the page?

2009-04-14 Thread Andy Matthews
You can externalize the document.ready call if you choose, I do it all the time. As for putting it at the bottom of the page, I'd say no. Putting it in an external JS file, with the ready call makes it so that code is not run until the entire DOM is ready anyway. andy -Original

[jQuery] Re: Converting JSON to html output

2009-04-14 Thread Andy Matthews
ColdFusion JSON represent! -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Nando Sent: Tuesday, April 14, 2009 9:51 AM To: jQuery (English) Subject: [jQuery] Re: Converting JSON to html output Sure. Here's the JSON string being

[jQuery] Re: XSLT with anchors

2009-04-14 Thread Benjamin Sterling
Jonathon, Is there a url or some code (pastebin.com) that we can look at? Benjamin Sterling / Web Developer kenzomedia.com / kenzohosting.com / benjaminsterling.com / refreshbmore.org 443.844.7654 // Twitter @bmsterling Skype: benjamin.sterling // AIM: thekenzoco On Tue, Apr 14, 2009 at 4:52

[jQuery] Re: Endeavour: translating X-Library functionality click-n-drag checkboxes into Jquery

2009-04-14 Thread jscripter
Hi, Here are my testing results: IE7: table cells highlight to yellow when checkboxes are checked, but don't go back to black when unchecked; same issue with ul list items (highlighting stuck on pink) Opera 9.64: same highlight problem that IE7 has Chrome 2.0.169.1: dragging in cells just

[jQuery] Re: Should $(document).ready() be external? And should it be placed at the bottom of the page?

2009-04-14 Thread kgosser
So do you think placing it in an external file poses caching benefits that outweigh the extra HTTP request? The number of HTTP requests seems to be the biggest killer with speed On Apr 14, 10:34 am, Andy Matthews li...@commadelimited.com wrote: You can externalize the document.ready call if

[jQuery] Re: [autocomplete] charset

2009-04-14 Thread borutt
was the page with the form containing the input element explicitly served with header Content-Type: text/html; charset=Windows-1250? (i check headers sent in WebKit Inspector, i'm sure there are other ways.) I have included in the html header this line: meta HTTP-EQUIV='Content-Type'

[jQuery] Re: Converting JSON to html output

2009-04-14 Thread MorningZ
Well, just putting the JSON into a JSON viewer (this one is excellent: http://www.codeplex.com/JsonViewer) you pasted into your last post you have no property of .ROWCOUNT, so that's a bad start.. this is a quick mock up that works http://paste.pocoo.org/show/112508/ (sorry about the if's...

[jQuery] Re: Calling a function from a non-jQuery .JS file

2009-04-14 Thread Klaus Hartl
On 14 Apr., 15:41, MorningZ morni...@gmail.com wrote: So what is the error The error is obviously that toDate is not a jQuery method. Another problem is that that Dreamweaver method is using document.write which can cause a problem depending on where the function is being called and which is

[jQuery] Re: Calling a function from a non-jQuery .JS file

2009-04-14 Thread mkmanning
Your calling toDate() as a method on the jQuery object, which it isn't; it's simply a function that prints out the date (and you should maybe rethink the document.write, it's deprecated). If you want the output to appear as the content of the element with id 'today' then do something like

[jQuery] Slideshow with Carousel and spotlight?

2009-04-14 Thread amuhlou
Hi everyone, I'm looking for an image slideshow using carousel thumbnails as well as a spotlight for an enlarged version of the thumbnails. YUI has one that *almost* does what I need (http://developer.yahoo.com/yui/ examples/carousel/csl_dynload2_clean.html), however it doesn't allow for

[jQuery] Re: Final Four: Grabbing Keys, Styling Columns, Pop Up Forms, Edit Select Lists?

2009-04-14 Thread briandus
Hi Tony - #1) thanks so much for the hint on the readonly field. I must have missed that one in the documentation; works perfectly! Howover, the row placement being the value of the id that is being sent is obviously a problem as I can't use that to manipulate my database records. Unfortunately,

[jQuery] Re: Final Four: Grabbing Keys, Styling Columns, Pop Up Forms, Edit Select Lists?

2009-04-14 Thread briandus
Hi Tony - #1) thanks so much for the hint on the readonly field. I must have missed that one in the documentation; works perfectly! Howover, the row placement being the value of the id that is being sent is obviously a problem as I can't use that to manipulate my database records. Unfortunately,

[jQuery] Re: [autocomplete] charset

2009-04-14 Thread Tom Worster
On 4/14/09 11:54 AM, borutt borut.toma...@gmail.com wrote: was the page with the form containing the input element explicitly served with header Content-Type: text/html; charset=Windows-1250? (i check headers sent in WebKit Inspector, i'm sure there are other ways.) I have included in

[jQuery] Selecting radio buttons within different RadioGroups via a click

2009-04-14 Thread madrid440-goo...@yahoo.co.uk
I'm getting lost in selectors... I am trying to achieve the following: A button click needs to select certain radio buttons within different radio groups. e.g RadioGroup1_0 and RadioGroup2_1 A click on another button resets the radio buttons to blank, and then selects different radio buttons

[jQuery] Re: Bug in my gallery, wtf?!

2009-04-14 Thread Rey Bango
Without having access to the code it's hard to test it but it looks like an event bubbling issue in the click binding for '#carousel_nav a'. Could you try this: $('#carousel_nav a').click(function(event) { event.stopPropagation(); c_slide($(this)); }); Rey... On Apr 13, 9:56 pm, @oscargodson

[jQuery] Re: Should $(document).ready() be external? And should it be placed at the bottom of the page?

2009-04-14 Thread Andy Matthews
That's something that each developer has to evaluate on their own. I'd think it depends on the size of the file, and how it's being served. Better for SEO to have an external file, as content is now closer to the top. Better for the user to cache said file. Maybe set your own personal threshold

[jQuery] Re: Slideshow with Carousel and spotlight?

2009-04-14 Thread rick
Hi, Amy...just wanted to let you know that I'm looking for something almost just like this...small thumbnails below and a large image above in a slideshow/manual select configuration. I hope there is a plug-in that someone knows about that will do this! Rick Original Message

[jQuery] Form validator - cross field validation

2009-04-14 Thread AndyCramb
Hi, I am trying the forms validation plugin and cannot figure out where I am going wrong with it I can get cross validation working aginst a checkbox but I am unable to get it working against an input box HTML is supplied below The rules metadata is below the HTML Any help is much appreciated

[jQuery] Re: Should $(document).ready() be external? And should it be placed at the bottom of the page?

2009-04-14 Thread roger
Andy is absolutely right, but I'd like to add that you can call $ (document).ready() anywhere on the page and as many times as you want. On Apr 14, 10:34 am, Andy Matthews li...@commadelimited.com wrote: You can externalize the document.ready call if you choose, I do it all the time. As for

[jQuery] Re: jQuery.support -- No direct support for IE6 detection

2009-04-14 Thread publicJorn
Obviously I agree that IE6 should be banned. But since most big corporations (and clients) still use it, I as a front-end developer find that we need to keep supporting it. But indeedly, conditional statements are once again the key. Add this to the head of your page: !--[if ie 6] script

[jQuery] How to make the superfish nav menu blend with the Pixture Reloaded menu?

2009-04-14 Thread ptc
Hi, I want to make my superfish menu look just like the menu that exists by default in the Pixture Reloaded theme in my drupal install. It's black with a lighter upper half, which gives it a glassy look. Will someone please direct me to the proper css files? If you could be as detailed as

[jQuery] Re: Calling a function from a non-jQuery .JS file

2009-04-14 Thread dhtml
On Apr 14, 8:58 am, Klaus Hartl klaus.ha...@googlemail.com wrote: On 14 Apr., 15:41, MorningZ morni...@gmail.com wrote: So what is the error The error is obviously that toDate is not a jQuery method. Another Right. problem is that that Dreamweaver method is using document.write which

[jQuery] Re: how to create multiple draggable div's with dynamic content

2009-04-14 Thread roger
Sounds like you need to create a function (or two) to manage the creation of the draggable window and fill it with content. Your function should either clone the markup from a hidden div on the page or create new dom elements with javascript. You would then select the container that you cloned or

[jQuery] JQuery news fade and news scroller(please help me)

2009-04-14 Thread hamed7
hi friends i want scroll or fade news in one line,please help me and send example, (i am new in jquery).

[jQuery] [Superfish] How well does this work with RocketTheme?

2009-04-14 Thread Wade
Hi, I am using the RocketTheme template 'Synapse' on my site: http://www.fitnoke.com; I am interested in upgrading my menu capabilities for the top-nav menu on my site to Superfish, as it is more Web 2.0. What kind of actions are needed to make this work - preferably a step by step way of

[jQuery] JQuery Superfish plugin currents-state problem (level 2 menu should not be sticky open after reload)

2009-04-14 Thread borkor
I'm using this plugin in the dynamic PHP enviroment, basic example. http://users.tpg.com.au/j_birch/plugins/superfish/#sample1 After a successful page reload Second level LI remains OPEN as if I am hovering over the first level menu. What I want is to mark only first (horisontal) level of my

[jQuery] Creating custom attributes in html

2009-04-14 Thread seasoup
I was wondering what jquery developers opinion of adding custom attributes to html tags is, and what your basis is for these opinions? Why is it a good idea, or why is it a bad idea? What I mean is this: div href= myType=foocontent/div where 'myType' isn't in any specifications. I've run

[jQuery] Re: Form validator - cross field validation

2009-04-14 Thread Jörn Zaefferer
There is no field with the id source? Add id=source to that input... Jörn On Tue, Apr 14, 2009 at 6:33 PM, AndyCramb andycr...@googlemail.com wrote: Hi, I am trying the forms validation plugin and cannot figure out where I am going wrong with it I can get cross validation working aginst a

[jQuery] script modules

2009-04-14 Thread Barquette
Hi all, My code app runs like this: //file app.js var runapp = function () { // I have about 1800 code lines using jquery like this: var fn1 = function (data) {//...code...}; var fn2 = function (data) {//...code...}; var fn3 = function (data) {//...code...}; fn1('blah'); };

[jQuery] Is this a Safari/WebKit bug?

2009-04-14 Thread @oscargodson
I got this to work, so this isn't a issue anymore, but I'm curious if this is a bug and I should report it, or if it's a bug everywhere else :) $('a').click(function(){ //Following works in Firefox, but not in Safari 3-4 //event.stopPropagation(); //Works in both Safari as well as

[jQuery] Re: Form validator - cross field validation

2009-04-14 Thread AndyCramb
Thanks for getting back to me I have the id specified input type=text value= name=source id=source/ It just had wrapped on to the new line Sorry I could not find away of formatting the code I pasted in so it looks a bit of a mess On Apr 14, 7:06 pm, Jörn Zaefferer

[jQuery] Re: Converting JSON to html output

2009-04-14 Thread Nando
I see I'm really still a complete klutz at javascript. Thanks very much Stephan! I will give that a try. On Apr 14, 5:56 pm, MorningZ morni...@gmail.com wrote: Well, just putting the JSON into a JSON viewer (this one is excellent:http://www.codeplex.com/JsonViewer) you pasted into your last

[jQuery] assign event handler to multiple events

2009-04-14 Thread Tom Worster
i can assign a handler to one event type thus: $('.things').focus(function(){ $(this).data('foo', true); ... }); if i want to assign the same handler to several events, say focus, change, and click, what's the tidy way to write it [assuming my handler wants to access $(this)]?

[jQuery] Re: Endeavour: translating X-Library functionality click-n-drag checkboxes into Jquery

2009-04-14 Thread Ricardo
Hi Lwangman, Now that we know all your requirements, I rewrote it(again) to clean it up :) Everything is commented so you know what's going on. Main things changed is that you set the selector for the container, not the the checkbox directly, so if the inputs are nested deeper inside (inside a

[jQuery] Re: Form validator - cross field validation

2009-04-14 Thread Jörn Zaefferer
Okay, then its something else. Could you provide a testpage? Jörn On Tue, Apr 14, 2009 at 10:08 PM, AndyCramb andycr...@googlemail.com wrote: Thanks for getting back to me I have the id specified input type=text value= name=source id=source/ It just had wrapped on to the new line Sorry

[jQuery] override shortcut keys in safari 3+ with javascript

2009-04-14 Thread mmurph211
Hello, I am trying to override Safari shortcut keys in javascript for use in an online terminal window that requires key entries such as F5. As this is a shortcut key to refresh the page in Safari this poses a problem. Does anyone know if you can override shortcut keys in Safari 3+ with

[jQuery] Re: Help- jquery Dynamic Image load - dbl click = loads twice

2009-04-14 Thread Diogo Shaw
$.fn.image = function(fn) { var total = this.length, loaded = 0; this.each(function() { var i = new Image(); i.src = this.src; $(i).load(function(){ loaded++; if(loaded==total) fn();

[jQuery] Re: JQuery news fade and news scroller(please help me)

2009-04-14 Thread patrickberkeley
http://www.gcmingati.net/wordpress/wp-content/lab/jquery/newsticker/jq-liscroll/scrollanimate.html http://plugins.jquery.com/search/node/ticker+type%3Aproject_project On Apr 14, 1:38 pm, hamed7 63hosse...@gmail.com wrote: hi friends i want scroll or fade news in one line,please help me and

[jQuery] Can you treat hover as a boolean?

2009-04-14 Thread paulhuband
Hi, I am trying to build a dynamic nav menu. When you hover over a given image, a fly-out menu appears to the right of the image. I want the fly-out to disappear when the user hovers off the initial image, but not if they hover over the fly-out menu. Is there a way to detect if one or the

[jQuery] Re: Endeavour: translating X-Library functionality click-n-drag checkboxes into Jquery

2009-04-14 Thread Lwangaman
@jscripter Are you referring to my latest http://jsbin.com/isuga/edit ? Because as far as text selection is concerned it's working fine for me on Chrome, Firefox 3, and Internet Explorer 8. Just out of curiosity, are you clicking and dragging on the first column? Because the first column is

[jQuery] Re: Bug in my gallery, wtf?!

2009-04-14 Thread @oscargodson
That did the trick! Thanks a lot! A note though is that in Safari, you should put this.event or else it doesn't seem to fire. I did not try it though with function(event), but I just did function (). On Apr 14, 10:16 am, Rey Bango reyba...@gmail.com wrote: Without having access to the code

[jQuery] Return Dynamic Image using Ajax and PHP

2009-04-14 Thread Spencer
Hi, I have a PHP script that is generating an image based on values passed to the script using jQuery Ajax functionality. Here is the important part of the PHP script; header('Content-Type: image/jpeg'); imagejpeg($image, 'images/tmp/admin.preview.jpg'); imagedestroy($image); I can get the

[jQuery] Re: Endeavour: translating X-Library functionality click-n-drag checkboxes into Jquery

2009-04-14 Thread Lwangaman
Wow, you're good! I'm a self-taught, so I can see that you've got your stuff, you make things clean and concise. Only thing here is that the text selection is being canceled on all the cells and not just the ones with checkboxes. What do you think is better here? I think it's good to leave text

[jQuery] Re: Endeavour: translating X-Library functionality click-n-drag checkboxes into Jquery

2009-04-14 Thread Lwangaman
Then just wondering, I don't know all the specs... But why shouldn't you use jquery's css method to set css? Will it be deprecated? On 14 Apr, 22:42, Ricardo ricardob...@gmail.com wrote: Hi Lwangman, Now that we know all your requirements, I rewrote it(again) to clean it up :) Everything is

[jQuery] min file for jQuery Validation Plugin

2009-04-14 Thread expresso
Ok, obviously we know what a min file is. But can someone tell me for the jQuery plugin what does this min file restrict you from or strip out from the main? What is filtered out? I need to know what I'm getting or not getting compared to the main jQuery Validation .js library.

[jQuery] Highlight table row

2009-04-14 Thread spstieng
I've tested different solutions found in here, and on the web, but I can't get it working. I simply want to highlight a table row. I would like to you toggleClass $(this).parents('tr').toggleClass(highlight); This is my HTML code: html head titleTitle/title link rel=stylesheet

[jQuery] Re: min file for jQuery Validation Plugin

2009-04-14 Thread expresso
minified files are just whitespace and line breaks removed, and object names are shortened. Nevermind. On Apr 14, 4:49 pm, expresso dschin...@gmail.com wrote: Ok, obviously we know what a min file is.   But can someone tell me for the jQuery plugin what does this min file restrict you from or

[jQuery] Re: how to create multiple draggable div's with dynamic content

2009-04-14 Thread hybris77
thanks a bunch for your reply, and a thorough one as well I've experimented with a similar technique that you suggest where I had a template of xhtml and I thought I'll clone this and add the content, sounds like an excellent plan to me, right? one thing I kept running into was the the page

[jQuery] Re: Highlight table row

2009-04-14 Thread James
This does a highlight on mouseover and remove highlight on mouseout. Is this what you want? // untested $(#storeListTable tbody tr).hover( function() { // mouseover $(this).addClass('highlight'); }, function() { // mouseout $(this).removeClass('highlight');

[jQuery] Re: assign event handler to multiple events

2009-04-14 Thread James
$('.things').bind('focus change click', function() { // your code here }); (Note that this doesn't work for $.live(), as you can only bind one event for that.) On Apr 14, 10:40 am, Tom Worster f...@thefsb.org wrote: i can assign a handler to one event type thus:

[jQuery] Re: Is this a Safari/WebKit bug?

2009-04-14 Thread Ricardo
You need to pass the event object as parameter, if you don't you're accessing the global window.event object which differs across browsers: $('a').click(function(e){ e.stopPropagation(); }); On Apr 14, 3:41 pm, @oscargodson oscargod...@gmail.com wrote: I got this to work, so this isn't a

[jQuery] Re: Creating custom attributes in html

2009-04-14 Thread Ricardo
If you insert these attributes server-side, the page will not validate and might trigger quirks mode in the browser. If you are adding them after load, there's no harm in it, but I bet using data() would be faster for lots of elements. On Apr 14, 2:56 pm, seasoup seas...@gmail.com wrote: I was

[jQuery] Re: Creating custom attributes in html

2009-04-14 Thread Josh Powell
I cannot use .data() as I do not have a node. Creating a node for every td creates impossibly excessive append time. One one page I shortened the time to append for 500 table rows from 29,000ms to 900ms. Good to know about the potential for triggering quirks mode though, thanks. Josh Powell

[jQuery] Re: Endeavour: translating X-Library functionality click-n-drag checkboxes into Jquery

2009-04-14 Thread Ricardo
On Apr 14, 6:38 pm, Lwangaman donjohn.f...@gmail.com wrote: Only thing here is that the text selection is being canceled on all the cells and not just the ones with checkboxes. What do you think is better here? I think it's good to leave text selection on other cells because they may contain

[jQuery] Re: Creating custom attributes in html

2009-04-14 Thread James
You might want to check out the Metadata plugin: http://plugins.jquery.com/project/metadata It'll let you get data in the CLASS (and other custom) attribute so your HTML can technically remain valid (I think). Personally, I try to keep my code as valid as possible to hopefully avoid quirks mode

[jQuery] Re: Creating custom attributes in html

2009-04-14 Thread RobG
On Apr 15, 8:41 am, Josh Powell seas...@gmail.com wrote:  Good to know about the potential for triggering quirks mode though, thanks. You are already using invalid markup by adding a name attribute to a div element. Have you considered storing the data in the class attribute, then use DOM

[jQuery] Re: Error with BlockUI: 'parentNode' is null or not an object

2009-04-14 Thread Mike Alsup
Thanks for the replies. I found out that the problem has to do with the fact that The BlockUi plug-in actually removes the passed in node from the DOM. At least I know what's going on now and am able to figure out a workaround. That's not good behavior for a plug-in. What version of the

[jQuery] Re: Error with BlockUI: 'parentNode' is null or not an object

2009-04-14 Thread Jonathan
http://www.malsup.com/jquery/block/#page On Apr 14, 4:26 pm, Mike Alsup mal...@gmail.com wrote: Thanks for the replies. I found out that the problem has to do with the fact that The BlockUi plug-in actually removes the passed in node from the DOM. At least I know what's going on now and am

[jQuery] question about each function

2009-04-14 Thread jack
Hi, all See the following. $(input:text).each(function(){ if(something happened) return; --- --- }) I found the 'return' only exit form a particular input element. And it won't return from each function. It always go through every element. I mean if something happened I don't

[jQuery] Re: question about each function

2009-04-14 Thread Leeoniya
i, too, am curious how to break out of a .each() loop. On Apr 14, 7:35 pm, jack datac...@gmail.com wrote: Hi, all See the following. $(input:text).each(function(){        if(something happened) return;    ---    --- }) I found the 'return' only exit form a particular input

[jQuery] Re: question about each function

2009-04-14 Thread Leeoniya
well according to http://docs.jquery.com/Core/each returning false SHOULD break out of the loop, haven't tried it tho - i can't imagine something like this would be broken at this point, maybe your condition is never being met? On Apr 14, 7:51 pm, Leeoniya leeon...@gmail.com wrote: i, too, am

[jQuery] Re: assign event handler to multiple events

2009-04-14 Thread Leeoniya
if you still need the performance of event delegation (live), you should make the handling function separately and assign it using several lives. eg: function handleStuff(e) { // do things } $(div p, #nav a).live(click, handleStuff).live(keydown, handleStuff); be aware that live() doesnt

[jQuery] Re: Endeavour: translating X-Library functionality click-n-drag checkboxes into Jquery

2009-04-14 Thread Lwangaman
Ok so what's the link to the latest version? (It's a good thing that jsbin deletes files after 3 months of no usage! I was thinking the same myself!) On 15 Apr, 00:45, Ricardo ricardob...@gmail.com wrote: On Apr 14, 6:38 pm, Lwangaman donjohn.f...@gmail.com wrote: Only thing here is that the

[jQuery] Re: Slideshow with Carousel and spotlight?

2009-04-14 Thread rubycat
For what it's worth, here's my plea for pretty much the same thing...the magic of Cycle combined with the utility of jCarousel. Have been agonizing over this, searching endlessly for an unobtrusive solution with no luck.

[jQuery] Re: question about each function

2009-04-14 Thread Leeoniya
wait, you should be doing return FALSE rather than just return On Apr 14, 7:57 pm, Leeoniya leeon...@gmail.com wrote: well according tohttp://docs.jquery.com/Core/each returning false SHOULD break out of the loop, haven't tried it tho - i can't imagine something like this would be broken at

[jQuery] Re: question about each function

2009-04-14 Thread MorningZ
As Leeoniya notes: $(input:text).each(function(){ if(something happened) { return false; } }) On Apr 14, 8:59 pm, Leeoniya leeon...@gmail.com wrote: wait, you should be doing return FALSE rather than just return On Apr 14, 7:57 pm, Leeoniya leeon...@gmail.com wrote: well according

[jQuery] Re: XSLT with anchors

2009-04-14 Thread Jonathan Maddison
Thanks Benjamin. Thanks to you I have finally found the problem. After I uploaded an example to post I tried it on a different computer/ browser and I could not replicate the issue. Apparently it is a bug in my (old) version of Firefox. https://bugzilla.mozilla.org/show_bug.cgi?id=212362

[jQuery] Problem to get Text displayed in jquery function

2009-04-14 Thread globalpropertyonline....@gmail.com
Hi All, I have a function with jcarousel but for some reason, I just can not get the text to show below my images in the Container. One guy helped me with various options but as you can see below, I am still stuck. Any help ? I have now added the function as follows in the head and tried the

[jQuery] question about dealing with JSON callback

2009-04-14 Thread sneaks
hi! i am trying to use jQuery.post() to send name/value to a php function which then retreives data from mysql and responds with JSON which looks like this when i append it directly to my debug output div: {product_id:02,product_name:Cesario Lo,product_brand:Creative

[jQuery] Re: Slideshow with Carousel and spotlight?

2009-04-14 Thread Jack Killpatrick
Hmm, I have a pretty big collection of plugin bookmarks, but looked through them and couldn't find something that seemed quite right, either. Found this, which seems like a near-hit: http://www.monc.se/galleria/demo/demo_01.htm#img/lightning.jpg and this, but it hooks to Flickr:

[jQuery] Re: trouble stopping propagation

2009-04-14 Thread gmoniey
I'm still stuck on this...does anyone have any ideas? On Apr 13, 10:35 am, gmoniey gmon...@gmail.com wrote: Hi, I have a simple onclick function call for a div which looks like this: onclick=showPanel(this). And the showPanel function header is as such: function showPanel(el) { } I

[jQuery] Nyromodal frame reference

2009-04-14 Thread Alan Flisch
Hi, I'm using Nyromodal to show some web content that includes page transitions controlled by Javascript that specifies window.location. The trouble with this is that it navigates the main browser window rather than navigating just within the nyromodal frame. I'm not sure how to get round

[jQuery] Animation Issue

2009-04-14 Thread Connor
Hi, I've had this issue when animating before, but have always found a hack around it. But for this project I can't think of any work around. What happens is some elements inside the animated element and near the animated element disappear during animation. To view it in action go to

[jQuery] IE problem with each function

2009-04-14 Thread Zhx
here is my code, it works fine in FF, but in IE, the index message did not popup. Anyone could give me a suggestion to figure out this? jQuery(#demoform dt).each(function(index,domEle){ if (jQuery(domEle).text() == ISSN:) { alert(index); exit;

  1   2   >