Re: [jQuery] Help needed to find image dimensions

2010-01-05 Thread John Arrowwood
It would be wonderful if I am wrong, but I don't think you can get the image dimensions via JavaScript. But you don't need to... style a.preview { max-width: 200px; max-height: 200px; } /style This will force the image to fit within a 200px by 200px window without altering the image aspect

Re: [jQuery] vertical coverflow

2010-01-05 Thread John Arrowwood
Any idea how you intend to do the perspective shifts in pure JavaScript? Because I do not know if it can even be done. Maybe in a Canvas element, but I don't know much about that. On Mon, Jan 4, 2010 at 2:45 AM, John R rojanjo...@gmail.com wrote: Hi , I would like to create vertical coverflow

Re: [jQuery] Re: simple jquery question

2010-01-05 Thread John Arrowwood
But if this code will get executed more than once (e.g. in response to user actions), make sure you prefix it with code to remove all of the existing options in the dropdown, otherwise it will be additive. On Mon, Jan 4, 2010 at 5:23 AM, Karl Swedberg k...@englishrules.com wrote: this solution

[jQuery] Jquery color animation problem

2010-01-05 Thread Md. Ali Ahsan Rana
I am trying to do it: $(this).animate({opacity:1},700); it looks fine in firefox, but the texts getting very odd look in ie 6 and ie 7. Is there any way to fix it? Also, i trie to change color like $(this).animate({color:#FF},700); and its not working. Please help... --

[jQuery] Re: Element Exact Width

2010-01-05 Thread ShenoudaB
Thanks, that solutions works fine. thanks for your Help and Happy new year 2010 On Jan 2, 2:47 pm, Šime Vidas sime.vi...@gmail.com wrote: obj.html(obj.children().html()); obj.children() selects the SPAN that we created... obj.childern().html(), therefore, returns all the content of the SPAN,

[jQuery] Convert a string version of a json array to an actual json array

2010-01-05 Thread Dave
Hi Wonder how I can convert a string to a json array. //start code var arrCss = [a___{'color':'red','font-weight':'bold'}, h1,h2___ {'color':'blue'}]; for(var i = 0; i arrCss.length; i++){ var snip = arrCss[i].split(___); $(snip[0]).css(snip[1]); } //end code The problem is that

Re: [jQuery] Announce: jQuery Tablesorter 2.0.2 Released

2010-01-05 Thread Binod K M
Hi All, Have any one come up with the fixed header and scrollable rows with tablesorter plugin? Please let me know !!! Thanks in Advance Binod Steffan A. Cline wrote: on 3/14/08 7:17 AM, Christian Bach at christian.b...@polyester.se wrote: Hi list! I finaly got some time to work on

Re: [jQuery] Convert a string version of a json array to an actual json array

2010-01-05 Thread Md. Ali Ahsan Rana
for(var i = 0; i arrCss.length; i++){ var snip = arrCss[i].split(___); eval(var temp=+snip[1]); $(snip[0]).css(temp); } this may work, try it(although i didnt't try yet) -- http://ranacseruet.blogspot.com

[jQuery] Re: Convert a string version of a json array to an actual json array

2010-01-05 Thread Dave
It worked perfectly! Thanks a lot. Cheers / Dave On Jan 5, 11:53 am, Md. Ali Ahsan Rana ranacser...@gmail.com wrote: for(var i = 0; i arrCss.length; i++){   var snip = arrCss[i].split(___);   eval(var temp=+snip[1]);   $(snip[0]).css(temp); } this may work, try it(although i didnt't

[jQuery] Re: Convert a string version of a json array to an actual json array

2010-01-05 Thread RobG
On Jan 5, 8:10 pm, Dave messedupp...@gmail.com wrote: Hi Wonder how I can convert a string to a json array. From what you've posted below, you want to process a string and treat parts of it as JSON objects. //start code var arrCss = [a___{'color':'red','font-weight':'bold'}, h1,h2___

Re: [jQuery] Announce: jQuery Tablesorter 2.0.2 Released

2010-01-05 Thread aquaone
only with using a 2 table hack (one only shows thead, one only shows tbody) and a linked sort trigger... it's a dumb hack but it works. if you're looking for that kind of functionality natively, try one of the other table/grid plugins out there. aquaone On Tue, Jan 5, 2010 at 02:49, Binod K M

[jQuery] How to append a ul li to line of orphan text?

2010-01-05 Thread Tong
Hi, I have the following HTML: div id=text strongSome Text Here/strong: More Text Herebr / strongSome Text Here/strong: More Text Herebr / strongSome Text Here/strong: More Text Herebr / /div How could I use jQuery to wrap each line of text in a li and remove all the br / and finally wrap

[jQuery] Re: How to retrieve the selected cells

2010-01-05 Thread Kanpan
What you know is that you're assigning classes to the selected cells. Your best bet is to detect an onclick event on your button and then loop through the td elements with the class sel and get each of their value. Then take those values and submit them via ajax to your php script. Something

[jQuery] Jqury CoverFlow

2010-01-05 Thread Zamir Jan Hui
Hi friends. I am appreciating your kind help for happening it, the Vertical coverFlow with Jquery. Here is a example how it is working on Flex for horizontal coverFlow. http://dougmccune.com/blog/2007/11/19/flex-coverflow-performance-improvement-flex-carousel-component-and-vertical-coverflow/ I

[jQuery] Re: Superfish: drop down slide down / slide up effect - how to?

2010-01-05 Thread Angel
I got it, here it's how my code looks like: $(ul.menu).supersubs({ minWidth:10, // minimum width of sub-menus in em units maxWidth:25, // maximum width of sub-menus in em units extraWidth: 1 // extra width can ensure lines don't sometimes turn

[jQuery] blockUI for all buttons and a tags

2010-01-05 Thread mpgjunky
Hi, I have implemented blockUI for all buttons and a tags, using a custom message as shown: script type=\text/javascript\ $.unblockUI(); $(document).ready(function() { $.unblockUI(); $(':button,

[jQuery] retrieving textnode?

2010-01-05 Thread bundy
Hi, I'm new to jQuery, finding feet. I want to be able to say, if the text node of a certain child consists of certain string, do this with its css. Gotten as far as changing the css of all the children, thus: $(document).ready(function(){ $(div p::nth-child(6).css(color, red); }); but

[jQuery] $.post() can't work in IE7, but work in IE8

2010-01-05 Thread Tuba
Hey All, I wrote code below: $('a[rel*=showapformdata]').click(function(){ $.post(ajax/ajaxapform.php,{op: personalData, id: $ (this).attr(title)}, function(data){ $(#resultbox).hide(); $(#apformbox #tab1).html(data);

[jQuery] Re: Help needed to find image dimensions

2010-01-05 Thread devilmike
I believe John is correct on both counts. You can't get the image dimensions before loading the image and the css method will work unless you have to support versions of IE lower than 7. In any case this script should work. To prevent seeing the full size image before it resizes, hide the

[jQuery] Re: ajaxfileupload and additional data

2010-01-05 Thread Mean Mike
I'm not having any luck with this can someone point me in the right direction On Jan 4, 3:50 pm, Mean Mike mcgra...@gmail.com wrote: Hello all, I'm running this plug inhttp://www.phpletter.com/Our-Projects/AjaxFileUpload/ and I need to send along additional post data can anyone help ? here

[jQuery] jQuery Equivalent of Prototype Function.bind

2010-01-05 Thread Bruce
Is there a jQuery way of doing this Prototype bind? var func = myFunction; setTimeout(func.bind(this), 1000); Thanks.

[jQuery] Re: blockUI for all buttons and a tags

2010-01-05 Thread elubin
#1 is a well known issue in IE (the cursor doesn't change back). the fix is : $.blockUI({ message: blah blah blah css : { cursor: 'default', }, overlayCSS : { cursor: 'default' }, }); On Jan 5, 7:14 am, mpgjunky

Re: [jQuery] How to append a ul li to line of orphan text?

2010-01-05 Thread brian
On Tue, Jan 5, 2010 at 1:01 AM, Tong naateepart.premnitthip...@gmail.com wrote: Hi, I have the following HTML: div id=text  strongSome Text Here/strong: More Text Herebr /  strongSome Text Here/strong: More Text Herebr /  strongSome Text Here/strong: More Text Herebr / /div How could I

Re: [jQuery] New to JS and jQuery

2010-01-05 Thread brian
That works for me but I do see how this can be refactored: a id=stuff class=baritem href=#stuff_menuMy Account/a div id=stuff_menu class=SomeClass a href=##My Account/a a href=##More stuff/a a href=##Here is a menu item/a a href=##Here is a menu item/a a

[jQuery] Table works but not div within divs. Does jquery has an issue with divs inside divs?

2010-01-05 Thread Oliur
Hi, I am playing with these JQuery tabs (http://www.queness.com/post/106/ jquery-tabbed-interfacetabbed-structure-menu-tutorial) and trying to customize it. I want to be able to place different images or text and display them when user clicks on these tabs, make sense? This is a working version

Re: [jQuery] retrieving textnode?

2010-01-05 Thread brian
CSS only operates on tagged elements. You'll have to wrap the text node in a span (with a certain class, for example). On Tue, Jan 5, 2010 at 2:00 AM, bundy ctil...@hinet.net.au wrote: Hi, I'm new to jQuery, finding feet. I want to be able to say, if the text node of a certain child consists

[jQuery] Re: slideDown trouble in Safari/Chrome

2010-01-05 Thread Måns Björkman
On 4 Jan, 16:35, Paul Hutson hutsonphu...@googlemail.com wrote: Any ideas? Many thanks in advance. Without looking into it too much I can't see the cause of the problem... ... however, site design wise, would it not be better to have the buttons expand an area on the page to show the

[jQuery] Change opacity of item with class of selected

2010-01-05 Thread Paul Collins
Hi all I've been stuck on this for four hours, and I still can't solve it! I am trying to check if a list item has a class of selected, then is so change the opacity to 0.5. Here is my code: if ($(#portfolio #thumbs ul li).hasClass(.selected)) { $(this).css('opacity','0.5'); }

Re: [jQuery] Change opacity of item with class of selected

2010-01-05 Thread brian
Just put the class in the selector instead of testing for it first: $(#portfolio #thumbs li.selected).css('opacity','0.5'); If the class doesn't exist, jQuery will do nothing (instead of throwing an undefined error or similar). On Tue, Jan 5, 2010 at 12:45 PM, Paul Collins

[jQuery] jQuery not working on public server

2010-01-05 Thread zanm
Hi all, My form works just fine when testing on my local machine, but when I upload everything to the public server the form does not validate. Any thoughts/suggestions? Thanks in advance! mz

[jQuery] Re: jQuery not working on public server

2010-01-05 Thread zanm
Hi everyone, Scratch my question. Right after I posted I found that one of my included jQuery libriaries was missing the .js extension. Adding this fixed my issue. AH...this took me a few hours to notice. Duh! :) mz On Jan 5, 1:34 pm, zanm zanfardi...@gmail.com wrote: Hi all, My

[jQuery] Re: jQuery not working on public server

2010-01-05 Thread zanm
Hi everyone, Scratch my question. Right after I posted I found that one of my included jQuery libraries was missing the .js extension. Adding this fixed my issue. AH...this took me a few hours to notice. Duh! :) mz On Jan 5, 1:34 pm, zanm zanfardi...@gmail.com wrote: Hi all, My form

Re: [jQuery] Change opacity of item with class of selected

2010-01-05 Thread Paul Collins
Thanks very much for your help Brian. That works, but I think the problem may go deeper than I thought! I've put up a test page. I'm using the JQuery Opacity Rollover Script as a part of the Gallerific plugin http://www.twospy.com/galleriffic/#1 To try and keep this simple, when you hover over

Re: [jQuery] Change opacity of item with class of selected

2010-01-05 Thread Paul Collins
Sorry, the test page: http://paulcollinslondon.com/test/test.html 2010/1/5 Paul Collins pauldcoll...@gmail.com Thanks very much for your help Brian. That works, but I think the problem may go deeper than I thought! I've put up a test page. I'm using the JQuery Opacity Rollover Script as a

[jQuery] Re: New to JS and jQuery

2010-01-05 Thread Valerij
This still wont work.. I've even tried copy your example character by character and it still gives nothing.. I'm using this code on http://ferok.com/labs/test.html at the bottom bar, try clicking the My Account and the menu wont pop up. I had this working before, but I didn't have this dynamic

[jQuery] Re: New to JS and jQuery

2010-01-05 Thread MorningZ
You should pay attention to your selectors :) you have $('baritem').click(function() that looks for baritem DOM objects but $('#baritem').click(function() will find div id=baritem On Jan 5, 2:41 pm, Valerij valeri...@gmail.com wrote: This still wont work.. I've even tried copy your

[jQuery] How to gain reference to hyperlink that is clicked

2010-01-05 Thread CoffeeAddict
I understand that I can use the .click() method on a hyperlink element. But how do I know which element was clicked? First I have to gain reference to the hyperlink's ID. So lets say I have a page of hyperlinks like this in view source: ...someurl somebutton ...someurl somebutton

Re: [jQuery] How to gain reference to hyperlink that is clicked

2010-01-05 Thread Charlie Griefer
input type=button id=addButton1 class=myButton / input type=button id=addButton2 class=myButton / script type=text/javascript $(document).ready(function() { $('.myButton').click(function() { alert($(this).attr('id')); // alert(this.id) -- should also

[jQuery] Re: How to gain reference to hyperlink that is clicked

2010-01-05 Thread Scott Sauyet
On Jan 5, 3:43 pm, Charlie Griefer charlie.grie...@gmail.com wrote: Within the function triggered by the click event, $(this) or this are both references to the element that triggered the click. More precisely, this is a reference the to element. $(this) is a reference to a jQuery wrapper

[jQuery] highlighting

2010-01-05 Thread metalmini
Hi guys and galls, Im not really a jquery programmer but i build lots of sites and i love the jquery plugins that i can easily copy and paste. So anyway im building a new site and i am using alot of jquery to emprove usability. So i am using a little script that scrolls easy to the a name=p1/ a

[jQuery] keyup() fires multiple times?

2010-01-05 Thread Keith Hughitt
Hi all, I'm creating a method for the first time which causes some action to happen while a key is pressed. I've noticed, however, that the 'keyup' event which I would normally use to determine when the key is released is fired continually, even when the key is still being pressed. e.g.

[jQuery] Add a second trigger in this function

2010-01-05 Thread Jordan
I recently implemented the Image Cross Fade Transition (http:// jqueryfordesigners.com/image-cross-fade-transition/) It works great, and I'm hoping to add to the code to enhance the functionality. Currently, if I hover over the image, it runs the cross fade transition, which I would like to keep.

[jQuery] PROBLEM WITH ENCODING (HEBREW - WINDOWS-1255) USING REMOTE

2010-01-05 Thread Ronny Bar-Sinay
I'v been trying to use the remote option(ajax) and been experiencing difficulties. It dosen't bring the Hebrew chars (i'm getting gibrish). I put at the head of the remote page the right encoding (codepage-1255 and meta windows-1255). I dont have this problem when using the regualer ajax method

[jQuery] New to jQuery and JavaScript

2010-01-05 Thread jquery_newbee
Hello Group, Does anybody know which plugin in jQuery to use when dealing with forms with dependencies? What I mean is that a second and third input elements are dependent on the first input selection. The second and third elements would probably disabled or hidden first and will only be

Re: [jQuery] Re: How to gain reference to hyperlink that is clicked

2010-01-05 Thread Charlie Griefer
On Tue, Jan 5, 2010 at 1:10 PM, Scott Sauyet scott.sau...@gmail.com wrote: On Jan 5, 3:43 pm, Charlie Griefer charlie.grie...@gmail.com wrote: Within the function triggered by the click event, $(this) or this are both references to the element that triggered the click. More precisely,

[jQuery] Re: Need jQuery expert to slightly modify plugin

2010-01-05 Thread MikeTheVike
The code on that link is for jCarousel and not jCarousel Lite. I'm sure they are similar, but since I'm not a javascript guy, I don't know how to make it work, any ideas? On Jan 4, 9:19 am, Liam Potter radioactiv...@gmail.com wrote:

[jQuery] Re: New to JS and jQuery

2010-01-05 Thread Valerij
I have $('.baritem').. I thought that was to find class .baritem? As said, Im new to jQuery so I don't know.. All I wanna do is having this script being able to pop up (like on facebook) more than just 1 box (Depending on which button you click, like: IF you click on a button with ID of menu it

[jQuery] Re: PROBLEM WITH ENCODING (HEBREW - WINDOWS-1255) USING REMOTE

2010-01-05 Thread Dave Methvin
Ajax nearly always uses UTF-8 encoding. Can you switch to UTF-8 for the page and server?

[jQuery] removeClass() fires before anything else in a series of functions when I need it to fire last.

2010-01-05 Thread Kinsbane
So, there's a main column of content and to the left of the main column is an A element that is absolutely positioned. I have an announcement system that when there's an active announcement, a box is rendered above the main column, pushing the main column down. However, the A element that is

[jQuery] Re: removeClass() fires before anything else in a series of functions when I need it to fire last.

2010-01-05 Thread Kinsbane
er, jeez I'm sorry - i don't know how to format code on Google Groups : ( On Jan 5, 2:21 pm, Kinsbane kinsb...@gmail.com wrote: So, there's a main column of content and to the left of the main column is an A element that is absolutely positioned. I have an announcement system that when

[jQuery] Re: retrieving textnode?

2010-01-05 Thread bundy
I'm trying to avoid classes and ids if possible. If I have to use them I won't really need jQuery. What about something like var six = $(div p::nth-child(6) and then for (i=0; isix.length; i++) { if (six.item(i).textNode) == _ _ ) { six.item(i).style.color = red } ? On Jan 6, 3:04 

[jQuery] Jquery Iframe problem

2010-01-05 Thread cem
Hi I want to have an upload script in a page without page refresh. I coded the script and embedded in an iframe in my page. Everything works fine. It uploads the file without page refresh. But I want to show an image which says the page is loading in the iframe. When the page is loading is there

[jQuery] Re: removeClass() fires before anything else in a series of functions when I need it to fire last.

2010-01-05 Thread Johan Borestad
Hi! This is due to that the fadeOut function is asynchronous (and that's a good thing, otherwise the entire browser would freeze while animating). To solve your problem you could use a callback. That's a second parameter to the fadeOut method as a anonymous function

[jQuery] Re: Add a second trigger in this function

2010-01-05 Thread Johan Borestad
Hi! There are a number of nice implementations you could use for this. Example the jQuery trigger. http://docs.jquery.com/Events/trigger But for now, the simpliest solution is just to add another selector like this $('div.example, div.tv').hover( . / Johan On Jan 5, 8:33 pm, Jordan

Re: [jQuery] Re: retrieving textnode?

2010-01-05 Thread Karl Swedberg
You can't apply CSS to a text node, but you can find the text node, wrap it in a span, and then apply the css to that span. This should work: $('div p').contents().filter(function() { return this.nodeType == 3 this.nodeValue.indexOf('certain string') -1;

[jQuery] Re: Change opacity of item with class of selected

2010-01-05 Thread Johan Borestad
Hi Paul! This is a case where you really don't even should use Javascript, unless you're trying to do some fancy animations. Rely entirely on CSS with a simple css-rule #thumbs li.selected { filter:alpha(opacity=50); opacity:0.50; } This will also be much much faster than any other

[jQuery] Re: Jquery color animation problem

2010-01-05 Thread Johan Borestad
Hi! This is a known Internet Explorer bug (and a very annoying one aswell). Just adding a background color or image to the container element will fix this. / Johan On Jan 5, 9:43 am, Md. Ali Ahsan Rana ranacser...@gmail.com wrote: I am trying to do it: $(this).animate({opacity:1},700); it

[jQuery] Re: Jquery color animation problem

2010-01-05 Thread MorningZ
I just went through looking for color animation as well this plugin http://plugins.jquery.com/project/color did the trick.. works great On Jan 5, 3:43 am, Md. Ali Ahsan Rana ranacser...@gmail.com wrote: I am trying to do it: $(this).animate({opacity:1},700); it looks fine in firefox, but

[jQuery] Re: New to JS and jQuery

2010-01-05 Thread MorningZ
I have $('.baritem').. No, no you don't right now on the URL http://ferok.com/labs/test.html and the included js file http://ferok.com/labs/global.js you have $('baritem').click(function() i just copied and pasted that right from the JavaScript include file just like i did on my last

[jQuery] Re: jQuery Equivalent of Prototype Function.bind

2010-01-05 Thread Johan Borestad
I'm not that good at Prototype at all, but wouldn't this be equivalent? setTimeout(function(){ myFunction.apply(this) } , 1000) / Johan On Jan 5, 3:43 pm, Bruce brucejin...@gmail.com wrote: Is there a jQuery way of doing this Prototype bind? var func = myFunction;

[jQuery] Why isn't this working as it does the other 1000 times...

2010-01-05 Thread Rick Faircloth
I've been using this over and over on other sites, now this isn't working: I've got this element: div class=windowOverlay/div With this CSS: .windowOverlay { height:100%; position:fixed; overflow:auto; top:0; left:0; background-color:#000;

RE: [jQuery] Why isn't this working as it does the other 1000 times...

2010-01-05 Thread Rick Faircloth
Nevermind.had an included js file that referenced and overlay div and crossed things up.doh! From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Rick Faircloth Sent: Tuesday, January 05, 2010 8:43 PM To: jquery-en@googlegroups.com Subject: [jQuery] Why isn't

[jQuery] (autocoplete) problem with fast typers:)

2010-01-05 Thread Richard KLINDA
Hello All! I have a problem with the autocomplete plugin, if one types fast enough to hit enter before the autocomplete suggestions show up (which is not hard at all), then autocomplete doesn't run the result handler (and it definitely should), so nothing happens. So when user types foo into the

[jQuery] iTunes Style Slider

2010-01-05 Thread Matt Quackenbush
Hello, I found an iTunes style slider/rotator that has been done in blasphemyMooTools/blasphemy, demoed here: http://www.outcut.de/MooFlow/example-ajax.html. I was wondering if either a) such a thing already existed in a jQuery plugin, or b) if there was a jQuery master who could port it in

[jQuery] Re: How to retrieve the selected cells

2010-01-05 Thread MT
Thanks MorningZ for that wonderful demo. I think you have nailed my question here! Thank you so much! On Jan 5, 12:14 am, MorningZ morni...@gmail.com wrote: 1) How do I know if a cell is selected? Is there is is_selected( ) function in jQuery? There's the :selected selector, but it's for

[jQuery] Can jquery do this? font-colour

2010-01-05 Thread annie
I'm very very new to jquery so please be patient with my questions. I have a layout that has white colored text. When you turn images off the text disappears because the back background is completely white. So, with the scenario above is it possible to use jquery to do the following: font

[jQuery] Form submit success method not being called

2010-01-05 Thread Scott Brady
I'm having an issue using the jquery form plug-in. The form gets submitted just fine (I can see the response in Firebug). However, it looks like my success callback method isn't being called. Here's the basic JS code for the form submit in the document.ready section.: // Add form

[jQuery] urgent help

2010-01-05 Thread Sugi
I am using Jquery plugins like flowplayer,fancy plugin for image and video stuffs...It creates lot of erros with IE 6. Can any one help to fix compatability issue with IE6? Please reply..Very urgent

[jQuery] How to unsubscribe from this group?

2010-01-05 Thread Chikkis Corner
Please unsubscribe me from this group.

[jQuery] Re: How to retrieve the selected cells

2010-01-05 Thread MT
Thanks Kanpan, with your code I know where to make the ajax call. Combining with MorningZ's solution and your suggestion I am very certain that I will be able to get my task done! Thank you guys for your help! On Jan 4, 11:55 pm, Kanpan statler.da...@gmail.com wrote: What you know is that

[jQuery] Re: Refresh the tooltips content

2010-01-05 Thread Next2Heaven
I'm talking about the cluetip BTW. On Jan 5, 7:41 pm, Next2Heaven st...@next2heaven.com wrote: I use the tooltip in a social media site that allows users to mouseover a photo of another user and the tooltip will show options like 'Add to Friends List'.  After clicking it'd do an ajax call and

[jQuery] Need An Example On Parsing My XML

2010-01-05 Thread Simon
Hi there. I need an example in parsing the following XML using jQuery: ?xml version=1.0 encoding=UTF-8 standalone=yes? ns3:Account xmlns:ns2=http://oec.api.opsource.net/schemas/ organization .. ns3:userNamerdyer/ns3:userName ns3:fullNameJoe Public/ns3:fullName ns3:firstNameJoe/ns3:firstName

Re: [jQuery] Need An Example On Parsing My XML

2010-01-05 Thread Md. Ali Ahsan Rana
This should be done using alert($(data).find(ns3:userName).text()). Please try this out...(though i didn't try) -- http://ranacseruet.blogspot.com