[jQuery] [validator] Want to use POST but how set remote.data property after validate() is called?

2009-04-10 Thread pbarnes
I am using the jQuery Validator plugin with ASMX Web services. I would like not to have to use HTTP GET (for security reasons). I can successfully use POST when directly using $.ajax, but when it comes to the Validator plugin, I'm having a difficult time setting the remote.data property in the

[jQuery] [validate] Re: [validate] validate: response from remote rule

2009-04-10 Thread phazei
Weird, the 'validate' didn't show in my subject, maybe it will now. Well, I figured out a solution, and it works pretty well :D var email_ajax_data; $.validator.addClassRules({ email: { required: true, email: true,

[jQuery] Re: Firefox bug on height

2009-04-10 Thread Thomas Creutz
Thomas Creutz schrieb: Main store schrieb: You'll see the bottom of my page is too long. I have tried to modify the CSS with some Height measurements but nothing happen.. hi.. just remove the height from the body definition ;-) oh.. Nathan is right.. the clear:both in .footer .legality is

[jQuery] Simple function question...

2009-04-10 Thread Po01
Hi! I have i simple function like this: script type='text/javascript' language='javascript' function a() { $('#a').html(text); } /script So, when i use that, it set the whole div a as text, how can i only INCREMENT the text string to the div?

[jQuery] Re: Simple function question...

2009-04-10 Thread Po01
Got it, used append instead of html. Thanks. On 10 abr, 04:23, Po01 diogoapa...@gmail.com wrote: Hi! I have i simple function like this: script type='text/javascript' language='javascript' function a() {   $('#a').html(text);} /script So, when i use that, it set the whole div a as

[jQuery] Re: jqPlot - New charting plugin

2009-04-10 Thread Chris Leonello
I've added an examples page demonstrating some of the current features of jqPlot. It is here: http://www.hacknack.com/jqplot/examples.html Note, it doesn't demonstrate how to create a plugin for jqPlot. I'll get to that too. On Apr 8, 10:32 pm, Ralph Whitbeck ralph.whitb...@gmail.com wrote:

[jQuery] Re: Adding scope support to .bind()

2009-04-10 Thread Azat Razetdinov
this._input.bind('change', $.hitch(this, _onInputChange)); How do you unbind the ‘hitched’ method? On Apr 8, 11:04 pm, pete higgins phigg...@gmail.com wrote: My hitch() method does this kind of: http://higginsforpresident.net/js/jq.hitch.js It would look like: this._input.bind('change',

[jQuery] Re: Data Grid Live Edit

2009-04-10 Thread Sarm
Nobody here to reply?

[jQuery] jCarousel initial images

2009-04-10 Thread Daniel Khan
Hello, as the issues addressed in my first posting are mostly solved I do this new post - maybe someone can help me with that. I use jCarousel with jQuery to pull images from flickr and everything works so far except for the initial state in firefox. It only requests one image at the beginning

[jQuery] Re: Cluetip not working on multiple links calling local html data

2009-04-10 Thread Ian
Thanks a lot Karl. I'll give this a try. In the meantime I found a workaround by just setting display:none in the stylesheet for the local data divs. Thanks for a great plugin! Cheers, Ian On Apr 9, 7:21 pm, Karl Swedberg k...@englishrules.com wrote: Hi there Ian, So sorry about that

[jQuery] Re: JQuery Cycle Plugin Multiple Pagers on one page

2009-04-10 Thread Skinnyl
Thanks for your reply but no luck... That does bring up two sets of navs that work but they are both with the first #portfolio div as i mentioned in my fist post (situation 2) They work fine but in the wrong place.

[jQuery] Hiding not working?

2009-04-10 Thread Link
www.receiptwiz.com/browse For some reason, it should be adding panes to the view every time you hit the search button. If you check the jQuery, it logically says to hide all preceding panes, but for some reason it's hiding the most recent one as well! Any and all help would be greatly

[jQuery] jQuery Cycle -- Thumbnail Paging

2009-04-10 Thread amuhlou
Hi everyone, I'm working on an implementation of the Cycle plugin and would like to use thumbnails for the paging. The tricky part is that my images are pulled from a php file, so I'm unsure of how to get the thumbnail images to load since the source images aren't loaded into the DOM all at

[jQuery] Re: JQuery Cycle Plugin Multiple Pagers on one page

2009-04-10 Thread Skinnyl
Ok so i've solved it by changing all the tags and adding new scripts for each one http://www.lukeskinnerdesigns.co.uk/jq-test.html It looks good but i'm concerned that i'm gonna have a huge amount of css and javascript with all the different slideshows. So is there a better way to do it?

[jQuery] Re: Adding scope support to .bind()

2009-04-10 Thread pete higgins
I'm not sure what all is involved/required for calling .unbind() to be honest. Wouldn't it just be this._input.unbind('change') ? or are there additional parameters required? If it needs a fn reference, that's what hitch() returns ... var cb = $.hitch(this, _change); this._input.bind('change',

[jQuery] jQuery $.ajax and dataType

2009-04-10 Thread Snef
Hi, When using the $.ajax functionality i came across some things. You have to set the dataType option in order to get the correct data at success(). Now I have an ajax request that can return some html or json. Both use the correct content-type header. Now I see in the httpData function of

[jQuery] jquery treeview menu

2009-04-10 Thread Titti
Hi, i'm using jquery treeview menu in my website, but when i open a page from the menu, for a while, it expands completely and it alignes to the left side. can u help me? thank you

[jQuery] jQuery SL - jQuery Silverlight Plugin Feedback

2009-04-10 Thread Koistya `Navin
Hello guys, I am working on jQuery SL plugin: http://code.google.com/p/jquery-sl/ Which helps with embedding Silverlight files into web pages and also simplifies interoperability between Silverlight objects and JavaScript. I need your feedback and ideas how to make it better and which

[jQuery] xhr Permission Denied

2009-04-10 Thread Antonio Feliziani
HI, i have a problem whit my Jquery transaction , this is not cross domain, and i use $.ajax, in my local computer is ok, but in the web server return this error. i think the trow verified in this point // Open the socket // Passing null username, generates a login popup

[jQuery] serialScroll option : start -- no effect

2009-04-10 Thread Niels
We're using the serialScroll method and using some of the options. Only the option start has no effect. We want to scroll at the start to element 2 and not to the default position 0 Suggestions? $('#technical').serialScroll({ target:'#technical-sections',

[jQuery] Obtaining data from plugin

2009-04-10 Thread poppiez
Hi! I've made my own autocomplete plugin that serves my needs. The plugin stores the data that the user has selected. Since the user can select multiple things the input value is not suffient. I wanted to know if it's possible to define a new method, outside of the plugin, that can obtain data

[jQuery] jquery treeview menu problem

2009-04-10 Thread Titti
Hi, i'm using jquery treeview ( http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ ) menu in my website and i have a little problem: when i open a page from the menu tree, menu expands completely and items alignes to the left side for a while, the time that page is charghing. I don't

[jQuery] I'd like to commission a custom jQuery plugin

2009-04-10 Thread leonardjos
Hi there, I'm working on a small personal website and have a vision of how it should look. My problem is that although I know html, I simply dont have time to study and learn Adobe Flash or jQuery. Is is possible to get a jQuery plugin custom designed to provide the functionality that I want?

[jQuery] jcarousel and text below image

2009-04-10 Thread globalpropertyonline....@gmail.com
Hi, I am playing with jcarousel and trying to show text below my images. Like for example the reference nr or name of the image. I am showing images of properties from my database and allow the user to scroll through the properties. If they like one, they can click on it and it will then show a

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

2009-04-10 Thread mikemad
I'm getting the error 'parentNode' is null or not an object when using BlockUI (Latest version and latest Jquery). I'm also using Microsoft AJAX.NET. I'm blocking on an element. The problem occurs on the second time I call block. This is the line of code: $(.grid).block({message:$(#prg)}); The

[jQuery] select option hovering problem

2009-04-10 Thread gostbuster
Hi everyone, I'm getting in trouble with Jquery selectors. I explain my problem : I have a select box from a form like this : select option opt1/option option opt2/option option opt3/option /select And i want to produce an effect on it when I the mouse hover. I'm using the qtip

[jQuery] Re: generate AJAX data based on number of select elements

2009-04-10 Thread Ricardo
You can't return anything rom $().each, and object literals are not scope blocks, that won't work, it would have to be something like this: $(function() { //serialize() creates a query string from the form elements provided var reqData = $('.litqty').serialize();

[jQuery] Re: JQuery Cycle Plugin Multiple Pagers on one page

2009-04-10 Thread Mike Alsup
Ok so i've solved it by changing all the tags and adding new scripts for each one http://www.lukeskinnerdesigns.co.uk/jq-test.html It looks good but i'm concerned that i'm gonna have a huge amount of css and javascript with all the different slideshows. So is there a better way to do it?

[jQuery] Re: Problem: Thickbox context bigger then browser size - no scroll bars.

2009-04-10 Thread Jim D
I did search internet for a solution - I did not find anything that I implemented. I did put this code in thickbox.js , but it ignored it: TB_WIDTH = 750; TB_HEIGHT = 750; On Apr 9, 8:35 pm, Vincent Nguyen kureik...@gmail.com wrote: Hi jwizard, i

[jQuery] Re: JQuery Cycle Plugin Multiple Pagers on one page

2009-04-10 Thread Skinnyl
Hi Thanks so much for that it works perfectly... except... If I add a text filled div to be included in the cycle like this: div class=pics img src=images/001.jpg / img src=images/002.jpg / img src=images/003.jpg / div class=last text text text /div /div ...

[jQuery] Re: Obtaining data from plugin

2009-04-10 Thread Hector Virgen
I blogged recently about making an object-oriented jQuery plugin. It basically allows you to access your plugin as an object and call methods on it like any regular javascript object. http://www.virgentech.com/blog/view/id/9 I hope it helps :) -Hector On Fri, Apr 10, 2009 at 3:07 AM, poppiez

[jQuery] Re: Managing scripts in AJAX applications

2009-04-10 Thread Rick Faircloth
Hi, JB... I never did get back to your question about transferring variables between functions, but took up this question in another thread. Here's what I posted in answer to another poster's question: Also, since I've having the same problem with too much jQuery/AJAX/HTML going into a single

[jQuery] Re: Individual Custom Message [validate]

2009-04-10 Thread dotcomtim
All three problems solved. On Apr 9, 6:52 pm, dotcomtim dotcom...@hotmail.com wrote: Solved 1 and 2 just not the third. Anyway to detected duplicates only? Everything I found on the net only removes duplicates. $.validator.addMethod('keywords', function(value, element) {         var valid =

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

2009-04-10 Thread Ricardo
This (untested) is how I envision the code for that: $.fn.dragCheck = function(){ //this == the current jQuery element return this.each(function(){ //this == current element in the loop (table etc) $(this).bind('mousedown', function(e){ //don't do anything if you didn't

[jQuery] Re: Managing scripts in AJAX applications

2009-04-10 Thread Rick Faircloth
Hi, Eric... Can you give me an actual working example of how you include you're using $getScript to include jQ/js files dyanamically as you need them? I need to get some system of code management working that just including it all the in the page at once. I think if I can get code into various

[jQuery] Re: generate AJAX data based on number of select elements

2009-04-10 Thread Kinsbane
Hi Ricardo, Thanks! Will this serialize everything about the element with class of litqty? I will give it a shot. I'm sorry for not explaining to others in detail about what I need. Here it is: Each piece of literature that gets selected returns an ID telling us where to pull it from (documents

[jQuery] Re: tablesorter and using .each() on the rows of a table

2009-04-10 Thread james.kirin40
Thank you for confirming this! -j Since the tablsorter rewrites the order of the tr tags on the DOM, then it makes total sense that .each will return the rows in the order the appear on the screen

[jQuery] Re: select option hovering problem

2009-04-10 Thread Karl Swedberg
If you need to have this work in Internet Explorer, you're going to be very frustrated. The onmouseover event doesn't apply to option elements in IE. See http://msdn.microsoft.com/en-us/library/ms536949(VS.85).aspx (scroll down to Applies To section) Same goes for onmouseenter:

[jQuery] how to avoid load jquery several times?

2009-04-10 Thread ihomest...@gmail.com
Hi, Is there a way to avoid loading jquery multiple times? I have some javascript code which needs to use jquery and at the same time. This script is embeded in others' web site. One way I could do is to check and then decide whether to load jquery: if (typeof jQuery != 'undefined') { // do

[jQuery] Live events within plugin question

2009-04-10 Thread jay
I'm working on a multiselect plugin that uses only live events, and the way it works is the select element gets replaced by an input and div element. I would like to supply a callback function where the callback is tied to the input element. Is using the data method to store the callback the

[jQuery] Re: JQuery Cycle Plugin Multiple Pagers on one page

2009-04-10 Thread Mike Alsup
On Apr 10, 1:11 pm, Skinnyl l...@lefthandedmonkey.co.uk wrote: Hi Thanks so much for that it works perfectly... except... If I add a text filled div to be included in the cycle like this: div class=pics     img src=images/001.jpg /     img src=images/002.jpg /     img

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

2009-04-10 Thread jay
Just curious.. What is the difference between mouseover.dc and mouseover? On Apr 10, 1:44 pm, Ricardo ricardob...@gmail.com wrote: This (untested) is how I envision the code for that: $.fn.dragCheck = function(){   //this == the current jQuery element   return this.each(function(){    

[jQuery] Re: how to avoid load jquery several times?

2009-04-10 Thread jay
You can check the version with $().jquery. You can remove all instances of jquery from the current page using something like this: if(jQuery) $('script[src^=jquery]').remove(); There is also the noConflict method which might help. On Apr 10, 1:44 pm, ihomest...@gmail.com ihomest...@gmail.com

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

2009-04-10 Thread jay
Why not just surround it in: if (node){ ..code that uses a non-null node } On Apr 10, 3:59 am, mikemad madd...@gmail.com wrote: I'm getting the error 'parentNode' is null or not an object when using BlockUI (Latest version and latest Jquery). I'm also using Microsoft AJAX.NET. I'm blocking

[jQuery] Re: jquery treeview menu problem

2009-04-10 Thread jay
Can you post an example? I'm not sure I understand your question. On Apr 10, 5:23 am, Titti prima...@gmail.com wrote: Hi, i'm using jquery treeview (http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ ) menu in my website and i have a little problem: when i open a page from the

[jQuery] Dragable Limit

2009-04-10 Thread thertze...@gmail.com
Is there a way to limit the number of divs that can be placed inside my droppable div? I haven't found it on the docs. I'm sure its simple, I just cannot find an answer. Thanks!

[jQuery] JQGrid .setGridParam() causing error

2009-04-10 Thread Chuk
Hi. I'm relatively new to JQGrid, and I'm trying to create my first grid that is loaded based on what the user chooses in a select box. I've gotten it working for the first option that they choose. However, after the grid is populated, I cannot get the data to change by selecting a different

[jQuery] Re: jcarousel and text below image

2009-04-10 Thread jay
If you want it directly below the image the easiest thing to do would be to position it absolutely to this position when you hover over the image. Something like this might work: div = $(div style='display:none'blah/div) jcarousel.find(img) .hover( function(){

[jQuery] Re: jcarousel and text below image

2009-04-10 Thread globalpropertyonline....@gmail.com
Thank you for taking the time to respond to my question I am not vary good at Javascript and I am learning as I am going along. I do most of my stuff with ASP. Could you be so kind to tell me where I would place this code in the code that I supplied ? I managed to get this working by

[jQuery] Re: jcarousel and text below image

2009-04-10 Thread globalpropertyonline....@gmail.com
Me again I tried your code here like this. but it does not seem to work. Any pointers ??? script type=text/javascript function mycarousel_itemLoadCallback(carousel, state) { for (var i = carousel.first; i = carousel.last; i++) { if (carousel.has(i)) { continue;

[jQuery] Re: Managing scripts in AJAX applications

2009-04-10 Thread JBeckton
I feel your pain... The project I am working on could have went faster had I not used AJAX so much, But the only way to get better at it is to use it more and more. Then you have to deal with the browser support issues, but that.s another topic.I should have used Adobe Flex! Looking at your code

[jQuery] Re: jQuery SL - jQuery Silverlight Plugin Feedback

2009-04-10 Thread Thomas Creutz
Koistya `Navin schrieb: I am working on jQuery SL plugin: Which helps with embedding Silverlight files into web pages and also my 2 cent: sorry, but who is using Silverlight? It is limited to Windows, and so it cuts down more than 10 % of our visitors. Its again a good thing from M$ to get a

[jQuery] Re: Managing scripts in AJAX applications

2009-04-10 Thread Rick Faircloth
Look interesting! When you say that you can't communicate between two functions...are you talking about sharing variables? If so, then how do you currently get around send one variable and its value from one function to another? Thanks, Rick -Original Message- From:

[jQuery] Fade Pictures In and Out

2009-04-10 Thread PF
Hi everyone. I asked awhile ago about fading content in and out, now I am wondering how to fade images in and out. The images will be in the background of the page (css: background-image) so I am not quite sure how I could integrate this. Any help would be appreciated!

[jQuery] Re: Fade Pictures In and Out

2009-04-10 Thread PF
I should also add that the image has to change every few seconds once the page has loaded. On Apr 10, 3:14 pm, PF piercefree...@gmail.com wrote: Hi everyone. I asked awhile ago about fading content in and out, now I am wondering how to fade images in and out. The images will be in the

[jQuery] Re: Managing scripts in AJAX applications

2009-04-10 Thread JBeckton
It's the transferring variables between functions in separate js files is the big problem. If the functions are in the same file it's no problem. On Apr 10, 5:02 pm, Rick Faircloth r...@whitestonemedia.com wrote: Look interesting!  When you say that you can't communicate between two

[jQuery] Re: jQuery $.ajax and dataType

2009-04-10 Thread Mike Nichols
I posted on this and submitted on the ticket tracker to do this but it seems to have been denied (it was abandoned). There was a suggestion made to use the dataFilter but that misses the point since the xhr header doesn't get included as a parameter. To work around this I have a little patch I

[jQuery] Re: jQuery $.ajax and dataType

2009-04-10 Thread Snef
Well, is it a good suggestion? Or maybe it's possible to override (or extends) tjhe current ajax implementation? On 10 apr, 16:45, Snef sne...@gmail.com wrote: Hi, When using the $.ajax functionality i came across some things. You have to set the dataType option in order to get the correct

[jQuery] Re: jQuery $.ajax and dataType

2009-04-10 Thread Snef
Exactly what I also want! :) Think it needs minor update for 1.3.2 (different way of eval with json i think) Thanx! PS. Strange this was not included in jQuery itself. Mike Nichols schreef: I posted on this and submitted on the ticket tracker to do this but it seems to have been denied

[jQuery] Re: jQuery $.ajax and dataType

2009-04-10 Thread Mike Nichols
great glad it helped. I'll look at 1.3.2 to modify On Apr 10, 4:01 pm, Snef sne...@gmail.com wrote: Exactly what I also want! :) Think it needs minor update for 1.3.2 (different way of eval with json i think) Thanx! PS. Strange this was not included in jQuery itself. Mike Nichols

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

2009-04-10 Thread Dave Methvin
Doesn't that mean #prg is missing from the document then? That sounds like a logic error in your code.

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

2009-04-10 Thread Lwangaman
Ok first of all thanks for taking interest! Then, I've tried going through your code and applying it, and I have a few questions: -- Besides the mouseover.dc that I didn't get either... -- I'm supposing that $boxes would be a variable where all the checkboxes that are applicable have been stored

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

2009-04-10 Thread Jonathan
'mouseover.dc' is just a namespaced event. It allows you to unbind only that specific mouseover later by calling $boxes.unbind ('mouseover.dc'). It's a useful way of keeping track of events. On Apr 10, 4:17 pm, Lwangaman donjohn.f...@gmail.com wrote: Ok first of all thanks for taking interest!

[jQuery] Re: Want to use POST but how set remote.data property after validate() is called?

2009-04-10 Thread pbindagorge
I finally figured out how to do this: I set this.data to my json string inside the function assigned to the $.ajax beforeSend property. I then added a function for the $.ajax dataFilter property to convert the json response to an object (using jQuery JSON at http://code.google.com/p/jquery-json/)

[jQuery] Re: jcarousel and text below image

2009-04-10 Thread jay
You can put it at the very bottom and wrap it with script tags, or you could put it in the head in script tags like this: head script $(function(){ ..onload code goes here.. }); /script /head Also $(document.body).appendChild(div); can go after the div is declared instead. I would suggest you

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

2009-04-10 Thread jay
So if you have multiple mouseover events binded to the same DOM element you may selectively unbind them? On Apr 10, 7:26 pm, Jonathan jdd...@gmail.com wrote: 'mouseover.dc' is just a namespaced event. It allows you to unbind only that specific mouseover later by calling $boxes.unbind

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

2009-04-10 Thread Jonathan
Yep. Neat eh. On Apr 10, 4:54 pm, jay jay.ab...@gmail.com wrote: So if you have multiple mouseover events binded to the same DOM element you may selectively unbind them? On Apr 10, 7:26 pm, Jonathan jdd...@gmail.com wrote: 'mouseover.dc' is just a namespaced event. It allows you to unbind

[jQuery] Re: I'd like to commission a custom jQuery plugin

2009-04-10 Thread Jordon Bedwell
Is there any way you can elaborate what you are looking for? I might have a free library I've already made or there might be a free project I can help you embed that won't cost you as much as going the old-route of heavy custom programming. -Original Message- From:

[jQuery] Re: Managing scripts in AJAX applications

2009-04-10 Thread Rick Faircloth
Yeah, lack of communication between functions would be a problem. Have you tried global variables as a solution? -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of JBeckton Sent: Friday, April 10, 2009 6:26 PM To: jQuery (English)

[jQuery] How do get the ID of an element that has been clicked ?

2009-04-10 Thread thought
Hi all. This might be more of a javascript problem rather than a jquery problem, but I'm also wondering if there is a 'jquery way' of solving it. Given this code: DIV id=div_one/DIV DIV id=div_two/DIV DIV id=div_three/DIV DIV id=div_four/DIV Lets say that the user is invited to click one one

[jQuery] Re: How do get the ID of an element that has been clicked ?

2009-04-10 Thread Charlie Griefer
On Fri, Apr 10, 2009 at 5:46 PM, thought thou...@orcon.net.nz wrote: Given this code: DIV id=div_one/DIV DIV id=div_two/DIV DIV id=div_three/DIV DIV id=div_four/DIV Lets say that the user is invited to click one one of these divs. How do I get the id of the div that was clicked ?

[jQuery] Re: How do get the ID of an element that has been clicked ?

2009-04-10 Thread jay
$('div').click(function(){ alert(this.id); }); On Apr 10, 8:46 pm, thought thou...@orcon.net.nz wrote: Hi all. This might be more of a javascript problem rather than a jquery problem, but I'm also wondering if there is a 'jquery way' of solving it. Given this code: DIV id=div_one/DIV

[jQuery] Re: How do get the ID of an element that has been clicked ?

2009-04-10 Thread Jordon Bedwell
script type=text/javascript $(document).ready(function() { $(div[id^='div_']).click(function() { alert(this.id); }); }); /script Better not to use JQuery for such trivial things as getting the ID attribute since it's already apart of the

[jQuery] Re: How do get the ID of an element that has been clicked ?

2009-04-10 Thread thought
Thanks for the swift replies. I've got a lot to learn about javascript, and at this point, adapting charlies code, I get a strange effect that I didn't anticipate, and don't understand. $('.thumbnail').live(click, function(){ $(div[id^='thumbnail']).click(function() {

[jQuery] Re: How do get the ID of an element that has been clicked ?

2009-04-10 Thread jay
A live handler is different from a normal handler, and I'm not sure why you're putting a normal handler inside of a live handler. A live handler works by looking at the target of whatever is clicked and comparing it to the selector, in this case, the thumbnail class. I personally prefer to use

[jQuery] Re: Managing scripts in AJAX applications

2009-04-10 Thread JBeckton
This is interesting not sure I would create an entire document with it but would be fun for certain areas of code. Personally I try not to create too much of my DOM on the fly with js as it has it's own set of challenges with accessibility, automated QA tools and such.. hsjn does make me wonder

[jQuery] Re: How do get the ID of an element that has been clicked ?

2009-04-10 Thread thought
So then this behaviour is working because I'm using a live handler? In this case I am indeed using a live handler because elements of the thumbnail class don't exist when the document is initially created, but are conditionally added at a later point. I'm reasonably sure that this is an

[jQuery] Re: How do get the ID of an element that has been clicked ?

2009-04-10 Thread James
I think the approach you want is just: $(div[id^='thumbnail']).live(function() { alert( $(this).attr('id') ); }); On Apr 10, 4:00 pm, thought thou...@orcon.net.nz wrote: So then this behaviour is working because I'm using a live handler? In this case I am

[jQuery] Re: Dragable Limit

2009-04-10 Thread jay
It would be fairly trivial to roll your own drag-drop plugin, and this way you can have better control of the characteristics. For general info on how drag-drop works in javascript (in the event that you don't already know) I have found this web page invaluable (it is the first link that pops up

[jQuery] Re: How do get the ID of an element that has been clicked ?

2009-04-10 Thread brian
The problem is that you've got a handler inside of a handler. You want either of these: $('.thumbnail').live(click, function(){ alert( $(this).attr('id') ); }); $('.thumbnail').click(function() { alert( $(this).attr('id') ); }); Whether you use $('.thumbnail') or

[jQuery] Re: jcarousel and text below image

2009-04-10 Thread globalpropertyonline....@gmail.com
Thanks Jay, I have put a function Load() in the head and called it in body onload. and then add the two lines in Javascript just below the Div is declared but it seems to have a javascript error and no Bla is displayed. I tried to change a few things but no luck. This is what I have done.

[jQuery] Re: jcarousel and text below image

2009-04-10 Thread brian
There's no need for body onload= when using jquery. As long as the library is included, you need only do: $(function() { whatever(); }); Here, the whatever() function will run as soon as the DOM is loaded (generally, this occurs before the page is displayed). On Fri, Apr 10, 2009 at

[jQuery] Re: how to avoid load jquery several times?

2009-04-10 Thread Ricardo
Removing the script elements won't do anything, the code has already been executed. You can simply use 'delete jQuery; delete $;' for example. Having multiple jQuery instances is not a great idea either for performance or code clarity purposes. But a possible approach is to create an iframe and

[jQuery] Re: How do get the ID of an element that has been clicked ?

2009-04-10 Thread thought
Thanks guys. It looks like Brians first fragment addresses the problem I have. On Apr 11, 2:04 pm, brian bally.z...@gmail.com wrote: The problem is that you've got a handler inside of a handler. You want either of these: $('.thumbnail').live(click, function(){         alert(

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

2009-04-10 Thread Ricardo
I think you already got the .dc namespacing thing, so: the mousedown is not being bound to the checkbox, but to the container element (the table, or in my example below, the UL). When you click a checkbox the mousedown event will bubble up to the container and fire this handler. As I expected my