[jQuery] Create array from li text

2009-04-05 Thread Nic Hubbard
What would be the correct method to create an array from the text inside items? Is below, the best method, or would it even work? var array_test = $(#test li).text().makeArray();

[jQuery] treeview , default collapsable

2009-04-05 Thread yogee
Hi , I want to have the tree as default collapsed , what can be the way? Thanks yogesh

[jQuery] Re: listening for any dom change

2009-04-05 Thread will
Thank you Ricardo. I could do a callback but there are a number of different types of things that get inserted so it's spread out across a number of functions. And these will likely grow with time. I think what I'm realizing is that what started as a "what would happen if I..." idea has now turne

[jQuery] Re: Use jquery before the DOM is ready?

2009-04-05 Thread Hector Virgen
Just curious, why would you want to avoid document.write()? -Hector On Sat, Apr 4, 2009 at 9:49 PM, Ricardo wrote: > > If you want to avoid document.write, append should work just as well > (the head element already exists): > > $('head').append('#mainimage > { visibility:hidden }'); > > On Apr

[jQuery] How to tell apart focus event

2009-04-05 Thread bob
Hi, Name: Is it possible to tell apart focus event? jQuery("#my_name").focus(function (evt) { if( ??? ){ //execute this if focus was triggered by user clicking on the text field } else { //execute this if focus was triggered b

[jQuery] Another newbie "how do I"

2009-04-05 Thread Jerry
Hi all. I'm totally new to jQuery, but have been assured this is the place to "do stuff". I'm still trying to work through the most basic basics, but in the meantime, hoping I can find an example of how to do this. On a given web page, the user sees two side-by-side areas of text (i.e. two colu

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

2009-04-05 Thread RobG
On Apr 5, 2:43 am, Joe wrote: > I'm all for migrating to the jQuery.support() utility method, but > there is not definitive test available to detect IE6 specifically.  Do > we have a consensus on this yet? I think conditional comments are the best way to go, there are a number of solutions. D

[jQuery] long polling and XMLHttpRequest.responseText size

2009-04-05 Thread japvca
Hello, I have a HTTP server that answers a CGI request with a never endind ascii stream of data. I would like to make a async ajax call to that CGI and process the data as it arrives without having to wait endlessly for the end of the reply. So far I have got this: $(function(){ var a

[jQuery] Re: Simple way to check for duplicate menu values in jquery?

2009-04-05 Thread MorningZ
What do you want to do if you find a duper? - remove the first? - remove the second? - something else? what is the HTML like? your post is way too vague to really provide some help On Apr 5, 5:54 pm, "laredotorn...@zipmail.com" wrote: > Hi, > > I have a number of select menus on my page, eac

[jQuery] Re: Combining Selectors

2009-04-05 Thread Nic Hubbard
This worked! Thank you! On Apr 5, 4:06 pm, "Michael Geary" wrote: > To help troubleshoot, take jQuery out of the picture and replace your alert > with: > > alert( this + " input[type='submit']" ); > > That will make it clear what the problem is. > > Since concatenating "this" to a string doesn'

[jQuery] Re: Superfish Question

2009-04-05 Thread Schalk Neethling
Awesome, glad I could help out. twinskies...@gmail.com wrote: Thank you for your help! I got it working! For future reference, here's the CSS code I ended up using: .sf-menu li:hover, .sf-menu li.sfHover, .sf-menu a:focus, .sf-menu a:hover, .sf-menu a:active { background:

[jQuery] Re: Superfish Question

2009-04-05 Thread twinskiesnow
Thank you for your help! I got it working! For future reference, here's the CSS code I ended up using: .sf-menu li:hover, .sf-menu li.sfHover, .sf-menu a:focus, .sf-menu a:hover, .sf-menu a:active { background: #1a2618; outline:0; } .sf-menu li ul li:

[jQuery] Re: Superfish Question

2009-04-05 Thread Schalk Neethling
Hi there Ian, Your best bet would be to target your second level li and a's specifically so that you end up with the default as you currently have it but then also: .sf-menu li ul li, .sf-menu li ul li a { background-color:#330; /* different from the top level */ } You can of course

[jQuery] Re: Combining Selectors

2009-04-05 Thread Michael Geary
To help troubleshoot, take jQuery out of the picture and replace your alert with: alert( this + " input[type='submit']" ); That will make it clear what the problem is. Since concatenating "this" to a string doesn't work, how do you fix it? Use the second argument to the $ function: $( selector

[jQuery] Superfish Question

2009-04-05 Thread Tipem
Hi, Here's my Superfish menu: [code]

[jQuery] Re: Combining Selectors

2009-04-05 Thread Mauricio (Maujor) Samy Silva
De: "Nic Hubbard" I am confused why the following is returning undefined: alert($(this + " input[type='submit']").attr('id')); Try the following: Get rid of the blank space before input. from: ... " input[type='submit'] ... to: ... "input[type='submit'] ... Regards, Maurício

[jQuery] Re: submit() question

2009-04-05 Thread debussy007
What do you mean by "wrap 'submit()' that is built in 'form object'" ? Sorry I didn't understand ) kcis...@hotmail.com wrote: > > > I guess you'd better wrap 'submit()' that is built in 'form object'. > before the submit() is called, you should set the values. > > > > On 4월5일, 오후1시48분, d

[jQuery] Combining Selectors

2009-04-05 Thread Nic Hubbard
I am confused why the following is returning undefined: alert($(this + " input[type='submit']").attr('id')); This is within the context of a plugin that I built. Removing the this makes it correctly find the input, why I want to narrow the scope.

[jQuery] Simple way to check for duplicate menu values in jquery?

2009-04-05 Thread laredotorn...@zipmail.com
Hi, I have a number of select menus on my page, each containing the same list of options (values and text). What is the simplest way to check that a value in one select menu is unique? My goal is to verify that all menu values are unique. Thanks, - Dave

[jQuery] Re: listening for any dom change

2009-04-05 Thread Ricardo
Firefox has events for node insertion etc: https://developer.mozilla.org/En/DOM_Events but they are not available to IE, and can incur in significant overhead for the page. If you're in control of the whole app's code, couldn't you just add a callback for when a widget is added? On Apr 5, 2:08 

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

2009-04-05 Thread Ricardo
You're still missing the point. You'll never be able to securely detect a browser version with $.support, it's not meant for that. In your case you still need *browser* detection (unless you figure out a way of testing if transparent PNGs are supported or not): if ($.browser.msie && $.browser.ver

[jQuery] Re: submit() question

2009-04-05 Thread kci
I guess you'd better wrap 'submit()' that is built in 'form object'. before the submit() is called, you should set the values. On 4월5일, 오후1시48분, debussy007 wrote: > Hi, > > In my submit() callback function, I want to set two new values in some > hidden input fields right before the post data

[jQuery] Re: code review for short snippet

2009-04-05 Thread Ricardo
We're drifting off-topic here, but I think you can escape the $ in interpreted strings: "This is some text with a php $var and some text with a dollar sign \ $epc in it" On Apr 5, 4:02 pm, John H wrote: > > Although not jquery related - I would suggest always using php > > variables outsite a s

[jQuery] NEWBIE - IE7 vs FireFox, Safari, etc...

2009-04-05 Thread Jerry
Hi all I'm just getting started with jQuery, and trying to use the slideToggle () function. I have this working on a test page of my site. On Firefox 3.0x, Safari, etc. this works great, looks great. On IE7 (and older), the function works but with a major difference in how the text is laid out

[jQuery] Re: Is there a way to use this function without clicking the link twice?

2009-04-05 Thread Rick Faircloth
Thanks, T.J. That looks like what I'm need to solve the issues. I'll give it a whirl! Rick -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of T.J. Crowder Sent: Sunday, April 05, 2009 1:07 PM To: jQuery (English) Subject: [jQuery] Re: I

[jQuery] Re: code review for short snippet

2009-04-05 Thread John H
> Although not jquery related - I would suggest always using php > variables outsite a string and use single quotes. > It enables proper syntax highlighting in editors and makes the code > easier to read for you and any future developers. I completely agree about concatenating variables in php st

[jQuery] Re: jQuery in Firefox extension is broken in v1.3.2

2009-04-05 Thread Jeff Jones
What add-ons do you have installed in Firefox? And do you have a public page we can test with our Firefox clients? On Apr 4, 9:07 am, "bjorn.frant...@gmail.com" wrote: > I've seen this post now, but I can's see my problem mentioned there. > > My extension breaks the toolbar in Firefox if I hav

[jQuery] submit() question

2009-04-05 Thread debussy007
Hi, In my submit() callback function, I want to set two new values in some hidden input fields right before the post data is submitted, based on the values the user inputs in some input fields. However it seems already too late, the server will never have those values unfortunately. So I wonder

[jQuery] Re: [autocomplete] showing a 'no results' message

2009-04-05 Thread brian
Good idea. That seems related to this: http://groups.google.com/group/jquery-en/browse_frm/thread/b09b3cb98a2638eb/79d223033c3e32b3 On Sun, Apr 5, 2009 at 11:45 AM, Ido Schacham wrote: > > Hi, > > In case there is no matched result when using the autocomplete plugin, > is there a way to show

[jQuery] Re: jquery media bug in IE? (jquery.media)

2009-04-05 Thread Mike Alsup
On Apr 5, 12:49 pm, Bro wrote: > I've got the same problem :( > > On 19 mar, 23:45, Steve wrote: > > > Hi all, > > > I am getting a Javascripterrorwhen using the media plugin (http:// > > plugins.jquery.com/project/media) in IE at the page: > > >http://www.bbhscanners.com/products/ngenuity/ >

[jQuery] Re: Newbie--can't get cycle plugin to work with anchor

2009-04-05 Thread Mike Alsup
> There's a lot more to the code (of course), but I selected what I > thought was necessary--if you want, I could put my whole entire > website into a zip file and send it to you. You should give the anchors a 'block' display style: #slideshow a { display: block } If that doesn't work then ple

[jQuery] Re: jquery media bug in IE? (jquery.media)

2009-04-05 Thread Bro
I've got the same problem :( On 19 mar, 23:45, Steve wrote: > Hi all, > > I am getting a Javascripterrorwhen using the media plugin (http:// > plugins.jquery.com/project/media) in IE at the page: > > http://www.bbhscanners.com/products/ngenuity/ > > (works fine in FF and other browsers).  The sc

[jQuery] jCarousel as Marqee Test

2009-04-05 Thread spiceflo
Hello together, I wanna use jCarousel as you can see it here http://www.dslproviderwechsel.de in the header (the scrolling company logos). Do you know the parameters for jCarousel to display the plugin as in the example. Currently I have the following problems: - the autoscroll function does no

[jQuery] Re: Cannot call a function within the callback part of $.get in IE7

2009-04-05 Thread Bro
I've got the same problem What's the extra comma problem ? On 31 mar, 23:16, Jacob wrote: > I replied earlier that I had the same problem.  I got my problem > resolved - the issue was in my external function, which had the IE > "extra comma" problem.  Maybe there is a similar situation with your

[jQuery] Re: Dynamically changing the source of SWF call

2009-04-05 Thread kevinlearynet
Thanks Mike, I was in Andy's situation and was able to use jQuery 1.3.1's live click event to reload your Media plugin and get this situation to work. Here's the final outcome: http://www.similarsounds.com/?terms=mgmt The YouTube movie thumbnails all function using code similar to Andy's. I e

[jQuery] [autocomplete] showing a 'no results' message

2009-04-05 Thread Ido Schacham
Hi, In case there is no matched result when using the autocomplete plugin, is there a way to show a 'no results' message to the user in the results div, one that wouldn't be selectable and possibly in a different style? I've read the documentation and searched the forum for this issue but couldn

[jQuery] Re: Is there a way to use this function without clicking the link twice?

2009-04-05 Thread T.J. Crowder
Hi Rick, > Question...I've begun to use named functions so that > I can target them from multiple locations. Kind of like > the old subroutines I programmed 29 years ago in BASIC. > > Is there a way to be able to target them besides using > "onClick" and remaining unobtrusive? > ... > Using my t

[jQuery] Re: Newbie--can't get cycle plugin to work with anchor

2009-04-05 Thread yulucyhan2008
Um, anyone . . . ? I kinda need help asap. On Apr 1, 8:41 pm, yulucyhan2008 wrote: > Hi!  I'm really new to web building in general, so I'm guessing that > this is a really newbie question, but I can't get thecycleplugin to > work withanchor.  I followed the example given > fromhttp://www.mals

[jQuery] [treeview] location persistance + ajax load problem

2009-04-05 Thread dip...@gmail.com
[SORRY!, this is a proper message, the first one i forgot to add a topic] hey all, having a problem with treeview by Jörn Zaefferer. I load the content from json, but i lose persistance of location. i get the tree folded and i don't know what branch i'm on to. i managed to fix this by pasting

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

2009-04-05 Thread Joe McCann
I've tried multiple combinations of the $.support method's properties and have had zero success with properly detecting IE6. Does IE6 have a specific feature that IE7 and IE8 do not have? On Apr 5, 6:21 am, akzhan wrote: > Also I suppose that jQuery.support can add key handling browser mode. >

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

2009-04-05 Thread Joe McCann
Ricardo, Good point, but it still doesn't answer the question for how to handle applying say a png fix to IE6. I can't simply say: if (!$.support.leadingWhitespace) { // apply pngfix } Because this is for ALL IE versions. This is unacceptable. We still need to know the version of IE and the

[jQuery] sendmail with attachment using jquery ajax

2009-04-05 Thread alex.zeta
Hello to everybody, following the instruction here http://nettuts.com/javascript-ajax/submit-a-form-without-page-refresh-using-jquery/ http://nettuts.com/javascript-ajax/submit-a-form-without-page-refresh-using-jquery/ i was able to send form contents through ajax. But how can you make this

[jQuery] tabs effect in teh new UI??

2009-04-05 Thread Arnold
Hello there! I am trying to add an effect to the tabs from jquery UI. Like in the 'old' version: http://stilbuero.de/jquery/tabs/ In the section I have: In a scrips.js I have: // Tabs $('#tabs').tabs({ fx: { opacity: 'toggle' } }); How do I add an effect like 'blind' to my tabs? Thanks in

[jQuery] Re: Is there a way to use this function without clicking the link twice?

2009-04-05 Thread Rick Faircloth
Thanks for the info, Donny! Perhaps as my coding technique advances with jQuery and, especially AJAX, I'll find better ways to streamline function use. Question...I've begun to use named functions so that I can target them from multiple locations. Kind of like the old subroutines I programmed 2

[jQuery] Re: Common Problem :: Access Restricted for URI

2009-04-05 Thread Donny Kurnia
Shouvik-S-Mazumdar wrote: > > hi , > > well i have searched a lot for this , perhaps i am just unlucky enough not > to hit the bulls eye , so i ask again in this forum ... > > > Well i am using jquery for calling a remote function . I am also using the > CODEIGNITER MVC . i write something

[jQuery] Re: Nested sortable unordered list - parent li moves along with nested list

2009-04-05 Thread andy
One more thing I forgot to add. I am not trying to add the ability to move list items from one list to another, just reorder the items within their own list.

[jQuery] Re: Is there a way to use this function without clicking the link twice?

2009-04-05 Thread Donny Kurnia
Rick Faircloth wrote: > Strange question, I know…and perhaps stranger coding, but… > I’m trying to trigger a function with a text link and it works, but with the > function coded as is, the link has to be clicked twice. > > I’d like to keep the function coded starting with “function > ajaxCreateS

[jQuery] Re: code review for short snippet

2009-04-05 Thread hjb
Excellent use of trigger to fire the function once on page load > Yes, yes, you are correct. I am outputting the javascript from php, > which was interpreting $epc because the inline string was wrapped in > double quotes. I reversed everything (using double quotes internally) > and now the varia

[jQuery] Common Problem :: Access Restricted for URI

2009-04-05 Thread Shouvik-S-Mazumdar
hi , well i have searched a lot for this , perhaps i am just unlucky enough not to hit the bulls eye , so i ask again in this forum ... Well i am using jquery for calling a remote function . I am also using the CODEIGNITER MVC . i write something like this : $.post("index.php/login/ajaxlo

[jQuery] [treeview]

2009-04-05 Thread dip...@gmail.com
hey all, having a problem with treeview by Jörn Zaefferer. I load the content from json, but i lose persistance of location. i get the tree folded and i don't know what branch i'm on to. i managed to fix this by pasting the location code in .async.js, var sm = current.

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

2009-04-05 Thread akzhan
Also I suppose that jQuery.support can add key handling browser mode. WebKit, Mozilla and IE works different on key events. On Apr 5, 8:45 am, Ricardo wrote: > jQuery.support is for feature detection. The whole point of it is to > avoid browser detection - which is still available via jQuery.br

[jQuery] Is there a way to use this function without clicking the link twice?

2009-04-05 Thread Rick Faircloth
Strange question, I know.and perhaps stranger coding, but. I'm trying to trigger a function with a text link and it works, but with the function coded as is, the link has to be clicked twice. I'd like to keep the function coded starting with "function ajaxCreateStoryTitle() {" rather than

[jQuery] Re: code review for short snippet

2009-04-05 Thread John H
> Note that, clicking "More options", you can delete your posts. Thanks Steve. I have removed the repeated posts.

[jQuery] Re: code review for short snippet

2009-04-05 Thread John H
> > I had to remove the dollar sign from $epc otherwise Firefox > > reported "missing variable name". > > That doesn't sound right - there must have been something else causing that. Yes, yes, you are correct. I am outputting the javascript from php, which was interpreting $epc because the inline