[jQuery] Re: How to pass variables between jQuery plugins?

2009-02-21 Thread Stephan Veigl
Hi Vic, the global anArray works fine see: http://jsbin.com/ukesa/edit The problem is that you have to wait until the ASYNCHRONOUS callback of your get() function has been called. 1) minor style remark You could declare anArray outside of the ready function with a var statement. This makes the

[jQuery] Re: Jquery Ajax one request, multiple answers problem

2009-02-21 Thread Jsbeginner
Thanks, I haven't tested it much yet but it seems to have solved the problem :) ricardobeat a écrit : set cache: false in your $.ajax call to disable cacheing of responses. You can also add a random query parameter to the URL if that doesn't work. - ricardo On Feb 20, 8:53 am, Jsbeginner

[jQuery] Disaster with Png fix

2009-02-21 Thread David .Wu
IE6 doesn't support transparent png file, so people usually use javascript to fix it. This is what I choose http://www.twinhelix.com/css/iepngfix/ but when I use it with ui such as $.dialog() in IE6, the effect become pretty slow for example http://www.yuri.com.tw/member_register.php This is

[jQuery] How to loop through JSON data

2009-02-21 Thread newkid85
If I have JSON data like this: { 9: { title: Event 1, style: rock }, 11: { title: Event 2, style: pop }, 15: { title: Event 3, style: house }, 16: { title: Event 4, style: metal} } How can I loop through each item grabbing each key/value pair for outputting? Is this possible with $.each? I

[jQuery] Re: How to loop through JSON data

2009-02-21 Thread Thomas Jaggi
Your Loop should probably look like this: $.each(results, function(key,val) { event += 'div' + val.title + ' ' + val.style +  '\/div'; }); On 21 Feb., 12:51, newkid85 newki...@googlemail.com wrote: If I have JSON data like this: { 9: { title: Event 1, style: rock }, 11: { title:

[jQuery] Re: How to loop through JSON data

2009-02-21 Thread Alain Roger
Hi, first i would rather suggest to not use numbers as array name... in your example you will have problem while debuggin code and i'm not sure that it will work correctly. so i would suggest instead of using 9 to use something else but with characters. you can do something like that (where

[jQuery] Loop through JSON data and check for each option specified

2009-02-21 Thread Thomas Jaggi
Let's say I have on object with my options: options = jQuery.extend({ title: 'xy', date: 'xy' }, opts); And some JSON data: ({ items: [ { title: IMGP3817, date: 2008-10-18T10:35:17-08:00 }, { title: IMGP3826,

[jQuery] Re: Loop through JSON data and check for each option specified

2009-02-21 Thread Thomas Jaggi
Sorry, I mean if (item.key.indexOf(val) != -1) {. But anyway, any ideas? I know my approach probably makes no sense at all...

[jQuery] Re: Queuing jQuery animations

2009-02-21 Thread paul.mac
Thanks nik although I ended up using function(){$(this).css(z-index ,24);}); paul On Feb 20, 7:33 pm, Nikola nik.cod...@gmail.com wrote: I made a typo it's 'zIndex' not 'zindex' - disregard the quotes there... On Feb 20, 2:32 pm, Nikola nik.cod...@gmail.com wrote: You can use a callback

[jQuery] how to use sortable and dragable on the same element?

2009-02-21 Thread Vincent Nguyen
I'm reading about http://jqueryui.com/demos/droppable/#photo-manager When i try to use sortable in the same element! I can not make it happen! When i move element to other place to sort it, the original element alwasy got back to original place! When i remove .dragable(), i can use .sortable! Does

[jQuery] Re: Something broke in IE7

2009-02-21 Thread oliver.pra...@googlemail.com
Thanks Carol, that at least gives me a good feeling, I'm not the only one :-) If I find any solution with my as good as none experience in jQuery, or just through pure luck I will off course not hesitate to post it. Oliver Prater On Feb 21, 12:16 am, carol carolgjenk...@hotmail.com wrote:

[jQuery] how can i close cluetips without using crose button.

2009-02-21 Thread abu
hi all, i m submitting a form inside cluetips and want to close cluetips after submitting the form please suggest me as soon as possible thanks, abrar

[jQuery] JQuery star rating plugin - how to disable stars after submission

2009-02-21 Thread planetjones
Hi, I'm using the JQuery star rating plugin (v2.61) from http://www.fyneworks.com/jquery/star-rating/. Everything's going well, but I'd like to disable the stars when a user has voted. Currently my users select their rating and click the mouse. This updates my database through an AJAX call.

[jQuery] Ajax tabs in non JavaScript browsers

2009-02-21 Thread Playtime
Dear all, I'm new to jquery and am just started to use the Ajax tabs in a site I am building. However I do notice that if I disable javascript the tabs just open the pages normally, which is no good as then inserted pages don't contain any navigation or other elements. Is there a way to get the

[jQuery] Re: Loop through JSON data and check for each option specified

2009-02-21 Thread Mike
This doesn't work: $.getJSON(wheremydatais, function(data){         $.each(data.items, function(i,item){                 $.each(options, function(key,val){                         if (item.key.indexOf(options.key) != -1) {                                 console.log('everything ok');      

[jQuery] Re: how can i close cluetips without using crose button.

2009-02-21 Thread Karl Swedberg
In the submit handler of the form, you could trigger a click on the close link. Something like this: $('yourform').submit(function() { // do your business here. $('#cluetip-close').trigger('click') }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On

[jQuery] Re: Loop through JSON data and check for each option specified

2009-02-21 Thread Mike
What is key?  That's not in either one of your data structs. Oops, sorry, didn't look closely enough. But you can't use 'key' that way. Try this: if (item[key].indexOf(options[key]) != -1) Not sure what you're after with the indexOf though.

[jQuery] Re: how to use sortable and dragable on the same element?

2009-02-21 Thread Richard D. Worth
I wonder if this demo helps: http://jqueryui.com/demos/draggable/#sortable Rather than calling .draggable() and .sortable() on the same element, you can connect draggables to sortables. No need to call .draggable() on the sortable as they're already draggable. Also note: There's a separate

[jQuery] Stringing functions within a click event

2009-02-21 Thread paul.mac
Hi, I have a group of animations, which once they are finished I would like to change all the image ids and then the src attribute. My code is as follows: $(#right).click(function(){ $(#i0).fadeIn(1500); $(#i1).animate({width: '98px', left: +=86px}, 1500); ...

[jQuery] Re: Loop through JSON data and check for each option specified

2009-02-21 Thread Thomas Jaggi
Great, that's it. Thanks a lot! The indexOf is just an example. The options are actually some kind of filters and I want to check each item against each filter. Depending on the filter It could be indexOf. On 21 Feb., 14:44, Mike mal...@gmail.com wrote: What is key?  That's not in either

[jQuery] Re: Ajax tabs in non JavaScript browsers

2009-02-21 Thread Matt Quackenbush
The 'j' in Ajax is 'JavaScript'. Bottom line is, if the browser has JavaScript disabled, you cannot use Ajax.

[jQuery] Re: Stringing functions within a click event

2009-02-21 Thread Thomas Jaggi
You could use the callback function (http://docs.jquery.com/Effects/ animate#paramsdurationeasingcallback). $(#right).click(function(){ $(#i1).animate({width: '98px', left: +=86px}, 1500, function (){ var id = $(this).attr('id').split('i')[1]; id = id -1;

[jQuery] Re: Ajax tabs in non JavaScript browsers

2009-02-21 Thread Thomas Jaggi
You have to solve this on the server side. If you put a normal link on the tab you can deliver an appropriate site on reloading. On 21 Feb., 13:26, Playtime p@btopenworld.com wrote: Dear all, I'm new to jquery and am just started to use the Ajax tabs in a site I am building. However I

[jQuery] Re: Stringing functions within a click event

2009-02-21 Thread paul.mac
Thanks - would it not be easier to set up a loop that is executed after all the animations have been finished? As I have 8 numbered form 0 to 8, will there not be a conflict when you end up with 2 objects with id1? Thanks paul On Feb 21, 2:29 pm, Thomas Jaggi thomas.ja...@gmail.com wrote:

[jQuery] Re: Stringing functions within a click event

2009-02-21 Thread Thomas Jaggi
I'm not sure if this is a problem since all the animations are executed at the same time (as far as I know). On 21 Feb., 15:42, paul.mac paul.mcma...@uuconstruct.co.uk wrote: Thanks - would it not be easier to set up a loop that is executed after all the animations have been finished? As I

[jQuery] Re: Stringing functions within a click event

2009-02-21 Thread Thomas Jaggi
But It would probably be better changing the class instead of the id. On 21 Feb., 15:42, paul.mac paul.mcma...@uuconstruct.co.uk wrote: Thanks - would it not be easier to set up a loop that is executed after all the animations have been finished? As I have 8 numbered form 0 to 8, will there

[jQuery] Success Callback Method is not firing.

2009-02-21 Thread Prasenjit
Hi, I am using jQuery Form Plugin's ajaxForm method to upload a file to a third party server. Uploading is working fine, using this approach as I am able to see the file uploaded in the third party server. But I need to get hold of the response coming back from the server as I need to save some

[jQuery] Re: Something broke in IE7

2009-02-21 Thread Paul Mills
Hi Oliver, Your switch statement looks a bit strange to me - I've never coded one that way before. Try redoing it as a couple of if {} else {} statements. IE is must fussier about syntax than FF so I always check for syntax errors when IE starts misbehaving. Hope that helps. Paul On Feb 21,

[jQuery] problem finding all atributes, attributes length, retrieve all attributes

2009-02-21 Thread RotinPain
After searching the web with no answer, I really need some help about attributes in jquery Here's the plan: I want to retrieve ALL the attributes from a tag for applying them to another tag. Problem#1: i don't know how many attributes the tag will possess. Problem#2: i don't know what

[jQuery] Re: Ajax tabs in non JavaScript browsers

2009-02-21 Thread Jsbeginner
You can use PHP or most other languages to manage your tabs. For example you could do something like this : tab links : http://yoursite.com?t=1 For tab 1 http://yoursite.com?t=2 For tab 2 http://yoursite.com?t=3 For tab 3 and an simple PHP code : ?php if($_GET['t'] == 3){ ? h2This is tab3

[jQuery] How check ready state for ajax request

2009-02-21 Thread sunix
I am building a ajax website i am showing a status of request as request moves from readystate 1,2,3,4(complete), now uptil now i was not using jquery for sending request , now i am planning move to jquery but i seen jquery $.ajax function which provides declaration of only one callback method

[jQuery] Re: (a)slideshow in IE

2009-02-21 Thread and80
I think it's choking on the following statement, telling me Object doesn't support this property or method : slide=a.find('.slideshow-content *:eq('+c+')'); Any ideas? On Feb 20, 3:21 pm, Mike mal...@gmail.com wrote: I'm trying to implement the jQuery (a)Slideshow plugin

[jQuery] Re: (a)slideshow in IE

2009-02-21 Thread and80
I think this is the line IE is choking on; it says Object doesn't support this property or method: slide=a.find('.slideshow-content *:eq('+c+')'); I can't seem to find this string in any of the javascript files; any Ideas? On Feb 20, 3:21 pm, Mike mal...@gmail.com wrote: I'm trying to

[jQuery] How can I specify what $(this) is within a function?

2009-02-21 Thread Nikola
Hello, I've written a simple function for a hover event but I can't seem to specify what $(this) is properly. Here's a little example I put together, any input would be great. Thanks.. http://jsbin.com/ezeye/edit

[jQuery] Re: problem finding all atributes, attributes length, retrieve all attributes

2009-02-21 Thread mkmanning
Wow, I just uploaded a simple plugin that does this: http://plugins.jquery.com/project/getAttributes and then saw your post. On Feb 21, 9:07 am, RotinPain rotinpain@gmail.com wrote: After searching the web with no answer, I really need some help about attributes in jquery Here's the

[jQuery] whether the structure of the jQuery object like this

2009-02-21 Thread Alex
whether the structure of the jQuery object like this : $('p') if the tag p only one, the structure is : [ [attr = value ]] if the tag p has two , the structure is : [ [ attr = value], [attr = value] ] Thanks Alex

[jQuery] Re: Something broke in IE7

2009-02-21 Thread oliver.pra...@googlemail.com
@Paul: I changed the switch to if{} statements, but got the same result so changed it back. The bug is somewhere else ... The code that does the exact same as my switch. (It works in FF just like the switch but in IE still the same bugs come up) code: ---

[jQuery] Re: How can I specify what $(this) is within a function?

2009-02-21 Thread Alex
$(this) is no problem. hover_in() and hover_out() should place in each method. if hover_in() and hover_out() placed outside each method, $this in hover_in() and hover_out() is all li tag. are u understand ? you should write like this : =

[jQuery] Re: How can I specify what $(this) is within a function?

2009-02-21 Thread 浩翔
sorry for my poor english, i hope you can understand my mean. On Feb 22, 5:12 am, Alex blackange...@gmail.com wrote: $(this) is no problem. hover_in() and hover_out() should place in each method. if hover_in() and hover_out() placed outside each method,   $this in   hover_in() and

[jQuery] Re: How can I specify what $(this) is within a function?

2009-02-21 Thread Nikola
Oh Thank you! I've tried so many different things, like defining _this after the event but I never thought of writing it this way. Thanks much, this explains it. On Feb 21, 4:18 pm, 浩翔 blackange...@gmail.com wrote: sorry for my poor english,  i hope you can understand my mean. On

[jQuery] Re: How can I specify what $(this) is within a function?

2009-02-21 Thread 浩翔
no problem ! you could be more careful next time. :) On Feb 22, 5:20 am, Nikola nik.cod...@gmail.com wrote: Oh Thank you!  I've tried so many different things, like defining _this after the event but I never thought of writing it this way.  Thanks much, this explains it. On Feb

[jQuery] Re: How can I specify what $(this) is within a function?

2009-02-21 Thread Nikola
Thanks again, I understand what's happening now and I've been able to correct my code. The plugin I'm working on is functioning perfectly - I no longer need to filter out results or toggle classes. On Feb 21, 4:20 pm, Nikola nik.cod...@gmail.com wrote: Oh Thank you!  I've tried so

[jQuery] Working examle of UI/Uploader

2009-02-21 Thread Joac
Pleas AnyBody send me Working examle of UI/Uploader on php. UI/Uploader hsn't any docs

[jQuery] How can i bind different functions for each remote tab?

2009-02-21 Thread Paidz
Hello, I'm using the following versions of jquery: - jquery-1.3.1.min.js - jquery-ui-personalized-1.6rc6.min.js Can somebody help me with this? I can't figure out how to bind different functions for multiple remote tabs. Iam adding remote tabs by clicking a link on my page like in this

[jQuery] Re: problem finding all atributes, attributes length, retrieve all attributes

2009-02-21 Thread RotinPain
Yeeaha! you're great ! Thanx for posting this ( at the right moment :D ) it's really what i needed and after some testing, my attributes problem is totally solved !! thank you very much for this essential plugin. I won't forget to use it anytime i'll work with attributes!!! On 21 fév, 20:15,

[jQuery] Re: Working examle of UI/Uploader

2009-02-21 Thread Shedokan
I think it does: http://docs.jquery.com/UI/Uploader On 21 פברואר, 22:01, Joac ja.sor...@gmail.com wrote: Pleas AnyBody send me Working examle of UI/Uploader on php.  UI/Uploader hsn't any docs

[jQuery] Re: jQuery 1.3.2 Released

2009-02-21 Thread Mario Moura
var Jquery = 1.3.2 $(this).amazing({ // thanks John Resig }); Cheers Mario macm 2009/2/20 James james.gp@gmail.com Thanks! So far it seems to be working without issues on my projects, including those with UI 1.6rc6. :) On Feb 20, 4:01 pm, John Resig jere...@gmail.com wrote:

[jQuery] Re: Working examle of UI/Uploader

2009-02-21 Thread Richard D. Worth
On Sat, Feb 21, 2009 at 5:28 PM, Shedokan shedo...@yahoo.com wrote: I think it does: http://docs.jquery.com/UI/Uploader That's a really old page and will be removed as Uploader is not a jQuery UI plugin. See http://jquery.webunity.nl/jQuery.uploader/landing - Richard On 21 פברואר,

[jQuery] jQuery and Dreamweaver CS4

2009-02-21 Thread Evelyn Lee Barney
Hi - I'm new to the group. This is my first post. I'm a tech writer who's just starting to move into web development. I use Dreamweaver - but some complain that Spry Widgets are lame - and aren't as accessible to keyboard navigation as they should be. I had hoped that by leaning jQuery I

[jQuery] jQuery 1.3.2 + Dialog + Tabs = Bug

2009-02-21 Thread mgl
Hi all, I've found a bug in jQuery 1.3.2 (or maybe Dialog/Tabs in UI 1.6rc6). In my application, I have a dialog with tabs inside of it. I create the dialog and build/setup the elements inside it before it is displayed to the user. Up to jQuery 1.3.1 I haven't had a problem with this.

[jQuery] Re: jquery.corners.js peformance issue

2009-02-21 Thread Davis
appericate for anyone comments/many thanks.

[jQuery] Re: hoverIntent and Accordion

2009-02-21 Thread zac
Hmmm... I guess I did something wrong.. looks good in Firefox but doesnt work at all in IE and I got this warning with firebug: reference to undefined property opt.queue parent = elem.parentNode; Can anyone spot what is wrong with this script?? $(document).ready(function(){ $(dd).hide(); var

[jQuery] Re: Form Plugin with file upload

2009-02-21 Thread Susie Sahim
Thank you Mike for taking the time to trouble shoot this with me. I really appreciate it. Susie BogusRed Sahim http://www.PaperDemon.com On Thu, Feb 19, 2009 at 3:58 AM, Mike Alsup mal...@gmail.com wrote: Hooray! I'm so happy its fixed!!! Excellent, Susie. So glad to hear it!

[jQuery] include multiple css, js ,html on demand with jQuery

2009-02-21 Thread a.karimzadeh
by using the includeMany 1.0.0 plugin you can add multiple files with different callbacks for each one and also a global callback after all are loaded check it here: http://www.arashkarimzadeh.com/index.php/jquery/17-includemany-jquery-include-many.html Arash Karimzadeh

[jQuery] Re: whether the structure of the jQuery object like this

2009-02-21 Thread 浩翔
Anybody ? On Feb 22, 4:04 am, Alex blackange...@gmail.com wrote: whether the structure of the jQuery object  like this : $('p') if the tag p only one,  the structure is :   [      [    attr = value   ]    ] if the tag p has two , the structure is : [ [ attr = value], [attr = value] ]