[jQuery] Re: Check if window exists before opening

2008-07-02 Thread Alexandre Plennevaux
On Thu, Jul 3, 2008 at 8:17 AM, Sam Sherlock <[EMAIL PROTECTED]> wrote: > this is some I am thinking about and an approach that I may take, have'nt > got to that stage yet but window.closed looks good > > http://bytes.com/forum/thread91209.html > > 2008/7/3 Bruce MacKay <[EMAIL PROTECTED]>: >> >>

[jQuery] Re: Check if window exists before opening

2008-07-02 Thread Sam Sherlock
this is some I am thinking about and an approach that I may take, have'nt got to that stage yet but window.closed looks good http://bytes.com/forum/thread91209.html 2008/7/3 Bruce MacKay <[EMAIL PROTECTED]>: > More searching has led me to a solution, and another question > > $("a.openW"

[jQuery] Re: Check if window exists before opening

2008-07-02 Thread Bruce MacKay
More searching has led me to a solution, and another question $("a.openW").click( function() { var sTarget = this.href; if (!winRef.open){ winRef=window.open(sTarget); return false; }else { wi

[jQuery] Re: tutorial: how to convert from thickbox to jqModal + how to load external url in jqModal

2008-07-02 Thread Brice Burgess
On Jul 1, 6:51 am, pixeline <[EMAIL PROTECTED]> wrote: > I hope that my little blurb will be useful to some of you: in this > article i explain how to usejqModalwith anchors pointing to external > url, or in "iframe" mode, to put it differently. I also describe how > to convert an old thickbox im

[jQuery] Re: jqModal dialog closes when clicked on

2008-07-02 Thread Brice Burgess
Zaroundus, I wasn't able to visit your test page, but can clearly see the offending code. On Jul 2, 7:53 pm, zaroundus <[EMAIL PROTECTED]> wrote: > var cfLoad = function(hash) { >         ... >         hash.w.load("jax/credForm.php"); >         hash.w.jqmAddClose(); > ... >         var

[jQuery] Re: jqModal - How to access the iframe from the parent

2008-07-02 Thread zaroundus
Excerpt from jqModal documentation: 2. Triggers and Closes are typically added on the fly via CSS class selections when $.jqm() is called on element(s). They can also be manually added. e.g. $(e).jqmAddTrigger(triggers) will add a "trigger" to open (show) dialog(s) attached to e, an

[jQuery] Re: Problem with .load

2008-07-02 Thread flycast
Wow, have I learned something here! The problem was not jQuery, the problem was that the page that was feeding the load had a couple of extra closing tags in the html. The browsers were choking on the extra closing tags. The thing that made it so hard to catch was when I would alert the data that

[jQuery] jqModal dialog closes when clicked on

2008-07-02 Thread zaroundus
I have a form in a jqModal dialog. When it is opened, if I click on the dialog background or any of the form elements the modal window closes. I cannot seem to figure out what's going on. The page can be seen at http://www.roundscapes.com/clients. Once you arrive click the link labelled: Click h

[jQuery] Re: I am making a Drag/Drop applications BUILDER (feedback appreciated)

2008-07-02 Thread lorlarz
It now is working completely at some level and the whole kit is downloadable. On Jul 1, 1:22 pm, lorlarz <[EMAIL PROTECTED]> wrote: > I am making a Drag/Drop applications BUILDER (feedback appreciated): > > http://mynichecomputing.com/GuideInfoandPlanner/UniversalDD.htm > > The user interface is

[jQuery] jQuery Tooltip with image map

2008-07-02 Thread C.Everson
Is it possible to trigger the jQuery tooltip (and also jQmodal) from an area on an image map? Any examples around? Thanks! Chuck

[jQuery] Re: Position cursor at end of textbox?

2008-07-02 Thread spicyj
This might be helpful: http://pastie.org/226790 // shamelessly stolen from the Masked Input plugin $(":text").bind("focus", function() { $(this).caret(this.value.length); }); Not tested, so I don't know if it works, but it might.

[jQuery] Re: cant upgrade from 1.2.3 to 1.2.6

2008-07-02 Thread Jeffrey Kretz
As a note, your "apparatusTooltips.js" script has a badly-formed array on lines 30-37. This doesn't affect FF but will kill IE. But onto the underlying problem. The actual issue seems to be with the grep method: // Go through the array, only saving the items 1197 // that pass the validator fun

[jQuery] Check if window exists before opening

2008-07-02 Thread Bruce MacKay
Hello folks, I can't find the answer I need in the archives (Nabble), so my question is how do I check to see if a window exists before I open it? When a user of my application clicks on a help link, I want the help file to load into a new window. I'm doing that via... $("a.openW")

[jQuery] Re: Position cursor at end of textbox?

2008-07-02 Thread Erik Beeson
No worries. Thanks for taking the time to test it :) Scoping is probably one of the most unobvious aspects of JavaScript. --Erik On 7/2/08, Brian J. Fink <[EMAIL PROTECTED]> wrote: > > > My apologies, Erik. Yours is the superior method. I must have been > remembering the behavior of IE5. > > > O

[jQuery] Re: Noob question about accessing element contents

2008-07-02 Thread Michael Geary
One answer: Use the technique you mentioned, or any of the techniques the others suggested. They will all work and are all fine to use. Another answer: In code that is performance critical, you may want to bypass all that and go right to the metal. Each of your "item" elements contains a single

[jQuery] Insert lines in form from server side

2008-07-02 Thread Web Specialist
I have a form(with jQuery ajaxForm Form Plugin) when user inserts a path to directory with several zip files. My server side ColdFusion routines search that directory, looping and extract all zip files to related client directory. After all display a message to user. What I'm looking for? After ev

[jQuery] Re: Position cursor at end of textbox?

2008-07-02 Thread Brian J. Fink
My apologies, Erik. Yours is the superior method. I must have been remembering the behavior of IE5. On Jul 2, 8:12 pm, "Erik Beeson" <[EMAIL PROTECTED]> wrote: > Ick! Global variables and eval'd code! How about (untested, logic should be > unchanged): > > $(function() { > $(':text').bind('foc

[jQuery] Re: Position cursor at end of textbox?

2008-07-02 Thread Brian J. Fink
I believe setTimeouts work outside the scope of the function they are called from. Test your way but I don't think it'll work. On Jul 2, 8:12 pm, "Erik Beeson" <[EMAIL PROTECTED]> wrote: > Ick! Global variables and eval'd code! How about (untested, logic should be > unchanged): > > $(function() {

[jQuery] Re: Position cursor at end of textbox?

2008-07-02 Thread Erik Beeson
Ick! Global variables and eval'd code! How about (untested, logic should be unchanged): $(function() { $(':text').bind('focus', function() { var o = this; if(o.setSelectionRange) { /* DOM */ setTimeout(function() {o.setSelectionRange(o.value.length,o.value.lengt

[jQuery] Re: cant upgrade from 1.2.3 to 1.2.6

2008-07-02 Thread darren
right. ok well this doesn't look like just an each() error, its happening with click() now too. here is the page with the errors: http://isebeta.uvic.ca/Library/Texts/AYL/M/Scene/1.1 generate the errors by clicking on "show" or "[+]" in the Commentary menu to the lower left of the page. The for

[jQuery] Re: possible bug in each()? moving from 1.2.3 to 1.2.6

2008-07-02 Thread Brian J. Fink
Is that the correct way to spell it? Maybe all lowercase would work. (I don't know. I use $ myself.) On Jul 2, 6:48 pm, darren <[EMAIL PROTECTED]> wrote: > Hi > > Im trying to use 1.2.6, moving from 1.2.3.  I have a working function > in 1.2.3 but it is not working with the updated jquery library

[jQuery] Re: possible bug in each()? moving from 1.2.3 to 1.2.6

2008-07-02 Thread Michael Geary
Try stepping *into* the .each() function instead of *over* it. That way you can see how it works and how it calls down into your callback function. There's not much to go wrong in .each() itself, so the error you're getting is probably coming from your callback function. You can set "Break on all

[jQuery] Re: unsubscribe me

2008-07-02 Thread Brian J. Fink
Look, we all know Rohit is confused... we don't need to make it THAT hard on him. On Jul 2, 6:39 pm, Colin Guthrie <[EMAIL PROTECTED]> wrote: > Brian J. Fink wrote: > > @Eric: He said he forgot his username and password. > > @Rohit: Then how did you log in to post this? > > I'm posting this witho

[jQuery] Re: Position cursor at end of textbox?

2008-07-02 Thread Brian J. Fink
And I checked my code again. It DOES work on FF3, FF2, and IE7. On Jul 2, 5:37 pm, Paul Malan <[EMAIL PROTECTED]> wrote: > Thanks for the code.  It doesn't work for me--still when I tab into a > textbox in either IE7 or FF3 the content is selected and the cursor > isn't positioned at the end of t

[jQuery] Re: Position cursor at end of textbox?

2008-07-02 Thread Brian J. Fink
Also be sure you have two sets of }); at the end of your function: }); }); The message displayed with the 2 of them separated, so the second one was easy to miss. On Jul 2, 5:37 pm, Paul Malan <[EMAIL PROTECTED]> wrote: > Thanks for the code.  It doesn't work for me--still when I tab into a >

[jQuery] Re: unsubscribe me

2008-07-02 Thread Colin Guthrie
Brian J. Fink wrote: > @Eric: He said he forgot his username and password. > @Rohit: Then how did you log in to post this? I'm posting this without logging in. And I read the mail without logging in aren't I clever. Hint: gmane.org - provided you use the same email address in e.g. Thun

[jQuery] possible bug in each()? moving from 1.2.3 to 1.2.6

2008-07-02 Thread darren
Hi Im trying to use 1.2.6, moving from 1.2.3. I have a working function in 1.2.3 but it is not working with the updated jquery library, and I'm wondering if i have found a bug. The trouble call is this: jQuery('#apparatus .annotation').each( function(i){ ... When stepping over

[jQuery] Re: cant upgrade from 1.2.3 to 1.2.6

2008-07-02 Thread Jeffrey Kretz
That part of the code is the $.each iteration. What is the call stack when the error is thrown? Without a better context, it's going to be really hard to see what's going on. Do you have a demo page with this error? Even if you can't post the full page for security reasons, if you can reproduc

[jQuery] Re: cant upgrade from 1.2.3 to 1.2.6

2008-07-02 Thread Alexandre Plennevaux
On Wed, Jul 2, 2008 at 11:59 PM, darren <[EMAIL PROTECTED]> wrote: > > Hi > > I'm trying to upgrade a project from jquery 1.2.3 to 1.2.6, but doing > so is causing a error in my script Firebug gives the error: > > object is undefined > var name, i = 0, length = object.length; > http://../

[jQuery] Re: Position cursor at end of textbox?

2008-07-02 Thread Brian J. Fink
Funny, it worked for me on IE7. And FF2. I didn't test it on 3 yet. BTW if you already have a $ or $(document).ready, you must take the code inside the curly braces and insert that into it. On Jul 2, 5:37 pm, Paul Malan <[EMAIL PROTECTED]> wrote: > Thanks for the code. It doesn't work for me--s

[jQuery] cant upgrade from 1.2.3 to 1.2.6

2008-07-02 Thread darren
Hi I'm trying to upgrade a project from jquery 1.2.3 to 1.2.6, but doing so is causing a error in my script Firebug gives the error: object is undefined var name, i = 0, length = object.length; http://../script/jquery-1.2.6.js Line 725 I'm going to try to step through my code and narro

[jQuery] Re: Targeting an element with multiple classes

2008-07-02 Thread jez_p
Cheers Carl. I resolved this in an earlier post (I reposted due to the post-appearing lag, and then not seeing my original post) - I had tried this first, but couldn't get it to work due to a stupid mistake. Thanks anyways. On Jul 2, 9:44 pm, Carl Von Stetten <[EMAIL PROTECTED]> wrote: > jez_p >

[jQuery] Re: jqModal - How to access the iframe from the parent

2008-07-02 Thread Alexandre Plennevaux
On Wed, Jul 2, 2008 at 11:42 PM, Hypolite <[EMAIL PROTECTED]> wrote: > > > I'm still stuck with my jqModal iframe closing problem. > > But this time it's the other way I can't figure out. > > Here is my HTML/JS code for the parent windows : > > src="form.html"> > > $().ready(function() { > $('#d

[jQuery] Re: Passing a variable into the $('selector') function

2008-07-02 Thread Erik Beeson
If msg is '#myDiv' and you have element with id="myDiv", then $(msg) will select it. If you think that's what you're doing and it isn't working for you, either your id is wrong or msg doesn't hold what you think (maybe it has a trailing \n?). --Erik On 7/2/08, Stompfrog <[EMAIL PROTECTED]> wrot

[jQuery] Re: unsubscribe me

2008-07-02 Thread Erik Beeson
Obligatory bash.org quote: http://bash.org/?244321 --Erik On 7/2/08, Greg Hemphill <[EMAIL PROTECTED]> wrote: > > > and your password is... just kidding I don't know your password. > > > On Jul 2, 2008, at 1:07 PM, spicyj wrote: > > > > > Your username is [EMAIL PROTECTED] > > > > On Jul 2, 11:0

[jQuery] Re: Jquery validation

2008-07-02 Thread Jörn Zaefferer
Take a look at the highlight/unhighlight options! Documented here: http://docs.jquery.com/Plugins/Validation/validate#toptions Jörn On Wed, Jul 2, 2008 at 10:39 PM, konda <[EMAIL PROTECTED]> wrote: > > HI, > We are trying to use Jquery validation plugin for client side > validation. It is w

[jQuery] Jquery validation

2008-07-02 Thread konda
HI, We are trying to use Jquery validation plugin for client side validation. It is working okay. The error message displays if the form validation fails. But we need the error display to highlight the entire row including the label and the input element. Is there a way to do this in JQuery

[jQuery] Re: Targeting an element with multiple classes

2008-07-02 Thread Carl Von Stetten
jez_p Try $('.green') This will select only elements that have the "green" class assigned, even if other classes are also assigned to the same elements. Carl jez_p wrote: > How do I target a specific class when elements may belong to multiple > classes? > > For example: > > blah blah blah > b

[jQuery] Passing a variable into the $('selector') function

2008-07-02 Thread Stompfrog
Hi all, I have a problem that I can't crack. I have a function similar to this.. $.ajax({ type: "POST", url: "some.php", data: "name=John&location=Boston", success: function(msg){ alert( "Data Saved: " + msg ); } }); The data that gets passed back to the function from som

[jQuery] Re: jqModal - How to access the iframe from the parent

2008-07-02 Thread Hypolite
I'm still stuck with my jqModal iframe closing problem. But this time it's the other way I can't figure out. Here is my HTML/JS code for the parent windows : $().ready(function() { $('#div_modal').jqm(); //Initialization of the modal box $('#iframe').contents().find('input').click(funct

[jQuery] Re: unsubscribe me

2008-07-02 Thread Greg Hemphill
and your password is... just kidding I don't know your password. On Jul 2, 2008, at 1:07 PM, spicyj wrote: > > Your username is [EMAIL PROTECTED] > > On Jul 2, 11:05 am, "Rohit Mandlik" <[EMAIL PROTECTED]> wrote: >> Hi, >> >> How can i unsubscribe from this forum so i will not get more mails >

[jQuery] Re: Position cursor at end of textbox?

2008-07-02 Thread Paul Malan
Thanks for the code. It doesn't work for me--still when I tab into a textbox in either IE7 or FF3 the content is selected and the cursor isn't positioned at the end of the text, even when I pull out everything but this function and two textboxes to test. I think I may just give up--it was a mino

[jQuery] Re: Position cursor at end of textbox?

2008-07-02 Thread Brian J. Fink
There may be a jQuery way to do this, but I don't know what it is. However, I do know 2 ways to accomplish this: one DOM way, one IE way. Both methods must be employed. $(function() { $('input[type="text"]').bind('focus',function() { window.o=this; if (o.setSelectionRange) /* DOM */

[jQuery] Re: [validate] jquery.delegate.js is missing?

2008-07-02 Thread Jörn Zaefferer
Ah, thanks for the pointer. I'll update that. Jörn On Wed, Jul 2, 2008 at 10:09 PM, jez_p <[EMAIL PROTECTED]> wrote: > > Thanks for replying Jörn. > > I was confused by the line: > > jquery.delegate.js - special event delegation, required > > which is under the heading of "Javascript files used"

[jQuery] jCarousel intergration

2008-07-02 Thread Havoc
Hi there, I'm trying to implement the jCarousel at: . My carousel has multiple containers. When a user presses a button the main container gets swapped with another one. Is there a way to clear the main container and reload the carousel? Something like this: var main_List = [ Pictures

[jQuery] Re: [validate] jquery.delegate.js is missing?

2008-07-02 Thread jez_p
Thanks for replying Jörn. I was confused by the line: jquery.delegate.js - special event delegation, required which is under the heading of "Javascript files used" at the bottom of the demo page: http://jquery.bassistance.de/validate/demo/ , which is also in the demo folder in the download.

[jQuery] Re: Firefox/css/jquery..

2008-07-02 Thread Aaron
ok thanks, It works now, i was told from soneone on a linux forum that firefox dosen't use z-index lol . Thanks alot. Another question. How do you make website display settings friendly?? like I want people that have different display settings to still view the website how it supposed to. For m

[jQuery] Re: Star Rating Plugin

2008-07-02 Thread C.Everson
On Wed, 2 Jul 2008 07:32:14 -0700 (PDT), Diego A. wrote: > Thanks for pointing that out. > > Silly me thought it would be OK to test using the "Simulate IE7" > feature in IE8. > Turns out not even that works in IE... LOL - I can believe that. I don't even have IE8 beta installed right now as i

[jQuery] Re: Firefox/css/jquery..

2008-07-02 Thread Aaron
OK found out the problem. It was my domain name hosting service provider they added a ipaddress thinking I was using their website hosting service so I just deleted that record all should work find. Thanks for telling me about this. On Jul 2, 3:09 pm, Peter Higgins <[EMAIL PROTECTED]> wrote: > Hm

[jQuery] Re: Firefox/css/jquery..

2008-07-02 Thread Aaron
what is that 68.178.232.100 ip address is that yours?? over here I done the same and found that ip and above it was my external ip and then the one that you see with the 192.ect. I never assigned any 68.178...ect ip address. On Jul 2, 3:09 pm, Peter Higgins <[EMAIL PROTECTED]> wrote: > Hmm looks

[jQuery] Re: Firefox/css/jquery..

2008-07-02 Thread Kevin Scholl
The z-index value need not be in quotes. You have: z-index: "1" which should be simply: z-index: 1 Also, you need a doctype in your HTML document, or you're going to run into all manner of display issues. On Jul 2, 2:32 pm, Aaron <[EMAIL PROTECTED]> wrote: > the website is supposed to show a

[jQuery] Re: Firefox/css/jquery..

2008-07-02 Thread Peter Higgins
Hmm looks like you have a DNS mishap? [EMAIL PROTECTED]:~$ host www.chillenvillen.com www.chillenvillen.com is an alias for chillenvillen.com. chillenvillen.com has address 68.178.232.100 chillenvillen.com has address 192.168.1.101 ... and here I though you had plagiarized my dev server ;) Rega

[jQuery] Re: [validate] jquery.delegate.js is missing?

2008-07-02 Thread Jörn Zaefferer
Hi Jez, the delegate plugin is bundled within jquery.validate.js since the 1.2.1 release (early Februar this year). You don't have to manually include it. It sounds like you got an outdated release, where did you find that? The current plugin page doesn't mention the dependency anywhere (http://

[jQuery] Re: Firefox/css/jquery..

2008-07-02 Thread Aaron
ya well take a look at the website, type in www.chillenvillen.com and you will see it. On Jul 2, 11:00 am, MorningZ <[EMAIL PROTECTED]> wrote: > "I just noticed that firefox dosen't support the z-index" > > Of course FF supports z-index... > > something is wrong with your code/markup, not with Fi

[jQuery] Re: Firefox/css/jquery..

2008-07-02 Thread Aaron
the website is supposed to show a texted image, which is behind a table, that table is like a light blueish looking box, and the text is behind it yet I want it in front on top of that box. On Jul 2, 11:00 am, MorningZ <[EMAIL PROTECTED]> wrote: > "I just noticed that firefox dosen't support the

[jQuery] problems in Firefox 3, Opera 9.5 with jQuery Corner plugin on images

2008-07-02 Thread MarmaladeToday
Hi, I've been having problems in Firefox 3 and Opera 9.5 when I try to use the excellent corner plugin as per this example: http://www.malsup.com/jquery/corner/image.html I found the example via an earlier discussion show here: http://www.nabble.com/rounded-corners-on-images-with-jquery--td14375

[jQuery] FF doesn't recognize elements created with .append?

2008-07-02 Thread JohnieKarr
Hello all, I am working on this form (http://www.datamt.org/vornado/test.htm) and everything works fine in IE, but in FF it does not. What is supposed to happen is you select an item from the drop down and it auto generates the description for you. You can also click Add An Item button to add a

[jQuery] Re: Superfish Question: Menu Disappear onclick

2008-07-02 Thread KClough
Thanks Joel, you rock. I ended up going with $(document).ready(function() { $('ul.nav').superfish().click(function(){ $(this).find("ul").hide(); }); }); So the original menu is still there, sometimes new items open in a new window, so I didn't want

[jQuery] Re: .removeClass() performance is very low on IE7

2008-07-02 Thread Brian J. Fink
Why are you using an ID on 2 different elements? On Jul 2, 11:51 am, Evert <[EMAIL PROTECTED]> wrote: > //only 2 elements to remove > $("#id").removeClass('onesimpleclassonly'); > > It took almost 3 ~ 4 seconds to remove the class. > What can I do to speed up the process?

[jQuery] Re: Modifying table cell text

2008-07-02 Thread P
Thank you! Problem solved. On Jul 2, 5:41 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote: > $(".highest-rated td.rating").each(function() { >   var rating = $(this).text(); >   $(this).html(''); > > }); > > - Richard > > On Wed, Jul 2, 2008 at 11:02 AM, P <[EMAIL PROTECTED]> wrote: > > > I have

[jQuery] SUPERFISH IE 6 help

2008-07-02 Thread ethayer594
I'm having problems with the DDNAV in IE 6. First off, I think it's causing my headers width to display smaller. Second, the DDNAV extends the entire width of the browser. This is the first time I have used this style DD menu so any help is appreciated. Thanks site: http://www.goldfishnw.biz/T

[jQuery] Re: Noob question about accessing element contents

2008-07-02 Thread Brian J. Fink
This forum is about using jQuery, so our answers will usually be focused on the best JQUERY way, not necessarily the BEST way. On Jul 2, 11:51 am, ml1 <[EMAIL PROTECTED]> wrote: > I'm trying to find out the "best practice" for getting the contents of > one particular element. I know about the ea

[jQuery] Re: unsubscribe me

2008-07-02 Thread spicyj
Your username is [EMAIL PROTECTED] On Jul 2, 11:05 am, "Rohit Mandlik" <[EMAIL PROTECTED]> wrote: > Hi, > > How can i unsubscribe from this forum so i will not get more mails from this > forum. > I forgot my username and password. > please help me > > thanks > Rohit

[jQuery] Re: unsubscribe me

2008-07-02 Thread Bil Corry
Rohit Mandlik wrote on 7/2/2008 12:05 PM: > How can i unsubscribe from this forum so i will not get more mails from this > forum. > I forgot my username and password. How are you sending and receiving email from your gmail account if you don't know your username and password? Your username and

[jQuery] Re: Newbe: Why can't I reference $('#...') in functions?

2008-07-02 Thread Brian J. Fink
$() is exactly the same as $(document).ready() On Jul 2, 12:20 pm, spicyj <[EMAIL PROTECTED]> wrote: > I haven't tried it myself, but does it help if you replace the first > three lines with: > > $(document).ready(function() { > $("#button").click(filldiv); > > }); > > Just a first thought. >

[jQuery] Re: unsubscribe me

2008-07-02 Thread Brian J. Fink
@Eric: He said he forgot his username and password. @Rohit: Then how did you log in to post this? On Jul 2, 1:56 pm, Eric Martin <[EMAIL PROTECTED]> wrote: > Click the "Edit my membership" on the right, then click the > "Unsubscribe" button... > > On Jul 2, 10:05 am, "Rohit Mandlik" <[EMAIL PROTE

[jQuery] Re: Using ASCII characters in textfield

2008-07-02 Thread Brian J. Fink
Apparently the Autocomplete plugin is escaping the & character. This may be a bug, or may be done intentionally, I don't know. I'm not sure what the workaround would be. On Jul 2, 10:02 am, Gearóid O'Ceallaigh <[EMAIL PROTECTED]> wrote: > I'm using an autocomplete function on a textfield but I'm

[jQuery] Position cursor at end of textbox?

2008-07-02 Thread Paul Malan
By default it seems browsers select all the text in a textbox when it gains focus by way of a tab-press. I would like the cursor to be positioned at the end of any existing text in the input, instead. The examples I'm turning up on Google don't work and seem needlessly complex, and since jQuery

[jQuery] Re: Superfish Question: Menu Disappear onclick

2008-07-02 Thread Joel Birch
Arrghh! Third time lucky maybe: $(document).ready(function() { $('ul.nav').superfish(/*options if required*/).click(function() { $(this).find('li.sfHover').hideSuperfishUl(); }); }); Fairly confident this time :) Joel Birch.

[jQuery] Re: Noob question about accessing element contents

2008-07-02 Thread Brian J. Fink
Let's say you've got the element stored in a variable as an XMLElement, then it would be a simple matter to refer to the jQuery object of the element itself, for example, for variable elem: $(elem,xml).text() On Jul 2, 12:10 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote: > $('item', xml).eq(1

[jQuery] Re: Issue using a long array in jquery autocomplete

2008-07-02 Thread Abba . Bryant
Check that there isn't a comma at the end of the last item in your array. I had the same problem with autocomplete and it turned out that I had a comma at the end of the last item due to an oversimplified loop serverside to output the array. IE [ 'item', 'item', 'item', ] will break in IE but no

[jQuery] Re: hasElementClass

2008-07-02 Thread John Resig
jQuery(element).hasClass('classname') --John On Wed, Jul 2, 2008 at 12:18 PM, Harald Armin Massa <[EMAIL PROTECTED]> wrote: > > hello, > > I am in the process of converting some MochiKit code to jquery. > > I was used to a comfortable funciton > > hasElementClass(element, 'classname') > > which

[jQuery] Re: Using ASCII characters in textfield

2008-07-02 Thread Jörn Zaefferer
Set encoding of the enclosing page to UTF-8 and encode the page and the data, no matter if local data or retrieved via ajax, as UTF-8. Avoid using entity encodings entirely - as long as the encoding is right, you won't need them anyway. It may be hard to get there, but its more then worth the tro

[jQuery] Re: Superfish Question: Menu Disappear onclick

2008-07-02 Thread Joel Birch
Sorry - I interpreted your request wrong I think. Try this instead: $(document).ready(function() { $('ul.nav').superfish(/*options if required*/).find('li').click(function() { $(this).hideSuperfishUl(); }); }); ...untested, but you never know your luck. Actually, you can probably

[jQuery] Re: unsubscribe me

2008-07-02 Thread Eric Martin
Click the "Edit my membership" on the right, then click the "Unsubscribe" button... On Jul 2, 10:05 am, "Rohit Mandlik" <[EMAIL PROTECTED]> wrote: > Hi, > > How can i unsubscribe from this forum so i will not get more mails from this > forum. > I forgot my username and password. > please help me

[jQuery] Re: inserting class into table element

2008-07-02 Thread Richard D. Worth
in that case you want $("table").addclass("tablesorter"); though that will add the tablesorter class to all tables. If you want to add it only to one table, best to have an id on the table, then do: $("#myTableId").addClass("tablesorter"); - Richard On Wed, Jul 2, 2008 at 1:26 PM, Robert Djura

[jQuery] Re: inserting class into table element

2008-07-02 Thread Robert Djurasaj
Hi Richard, I currently have ...and i would like to change it into will this do the trick? robert On Jul 2, 1:13 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote: > $("table.tablesorter").addClass("newclass"); > > - Richard > > On Wed, Jul 2, 2008 at 12:41 PM, Robert Djurasaj <[EMAIL PROTECT

[jQuery] Re: inserting class into table element

2008-07-02 Thread Robert Djurasaj
curently i have and i would like to end up with ... will this do it?? On Jul 2, 1:13 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote: > $("table.tablesorter").addClass("newclass"); > > - Richard > > On Wed, Jul 2, 2008 at 12:41 PM, Robert Djurasaj <[EMAIL PROTECTED]> > wrote: > > > > > Does a

[jQuery] Re: inserting class into table element

2008-07-02 Thread Richard D. Worth
$("table.tablesorter").addClass("newclass"); - Richard On Wed, Jul 2, 2008 at 12:41 PM, Robert Djurasaj <[EMAIL PROTECTED]> wrote: > > Does anyone know how can i add a class into existing table element > using jQuery?? > > ex: >

[jQuery] unsubscribe me

2008-07-02 Thread Rohit Mandlik
Hi, How can i unsubscribe from this forum so i will not get more mails from this forum. I forgot my username and password. please help me thanks Rohit

[jQuery] Re: Superfish Question: Menu Disappear onclick

2008-07-02 Thread Joel Birch
Hello, How about this - or something very like it: $(document).ready(function() { $('ul.nav').superfish().click(function(){ $(this).hide(); }); }); I guess clicking anywhere in the nav is suitable. Might not need to attach the click handler to the links really. You may want to e

[jQuery] Superfish 1.4.2 released - plus new optional 'Supersubs' add-on plugin

2008-07-02 Thread Joel Birch
Hi everyone, I've just updated the Superfish plugin to version 1.4.2. There are substantial changes to the example CSS files - the main example file in particular. The CSS in that file is greatly simplified which should make creating new menus based upon it quite a lot easier. I have brought the

[jQuery] Re: .removeClass() performance is very low on IE7

2008-07-02 Thread spicyj
Can you give a sample page? I'm confused about what you mean by "only 2 elements to remove". On Jul 2, 9:51 am, Evert <[EMAIL PROTECTED]> wrote: > //only 2 elements to remove > $("#id").removeClass('onesimpleclassonly'); > > It took almost 3 ~ 4 seconds to remove the class. > What can I do to spe

[jQuery] inserting class into table element

2008-07-02 Thread Robert Djurasaj
Does anyone know how can i add a class into existing table element using jQuery?? ex:

[jQuery] inserting class into table element

2008-07-02 Thread Robert Djurasaj
Does anyone know how can i add a class into existing table element using jQuery?? ex:

[jQuery] hasElementClass

2008-07-02 Thread Harald Armin Massa
hello, I am in the process of converting some MochiKit code to jquery. I was used to a comfortable funciton hasElementClass(element, 'classname') which checked if the element has at least the css_class named "classname" what is the best way to have this in jQuery? Harald

[jQuery] Re: Newbe: Why can't I reference $('#...') in functions?

2008-07-02 Thread spicyj
I haven't tried it myself, but does it help if you replace the first three lines with: $(document).ready(function() { $("#button").click(filldiv); }); Just a first thought. ~Ben lwoods wrote: > Why can't I reference the DIV using the jQuery format? Here is the > example (minus opening HTML

[jQuery] Re: zebra striping + flashing/blinking effect?

2008-07-02 Thread sketchy
ahh i didn't know about , but the setInterval I think is what i'm looking for. I couldn't get it to work tho. I don't think i inserted the code right. This is what i did: $(document).ready( function() { $("table.striped tbody tr").mouseover( function() { $(this).animate({

[jQuery] Superfish Question: Menu Disappear onclick

2008-07-02 Thread KClough
I've got a request from a client to have the menu disappear after an item is clicked so the user knows that their click was registered. Ideally, the next page would come up fast enough where the user wouldn't need this visual cue, but many of these pages contain a lot of data and take a few second

[jQuery] Re: Newbe: Why can't I reference $('#...') in functions?

2008-07-02 Thread Richard D. Worth
On Wed, Jul 2, 2008 at 11:53 AM, lwoods <[EMAIL PROTECTED]> wrote: > > Why can't I reference the DIV using the jQuery format? Here is the > example (minus opening HTML): > > >

[jQuery] Re: Newbe: Why can't I reference $('#...') in functions?

2008-07-02 Thread Liam Byrne
Would've thought it should be $("#info").html("Test"), but nevertheless that example that you gave works fine for me. Are you sure that the jquery file referenced in the first script tag is in that location, i.e js/jquery-1.2.3.pack.js and that it's using that filename ? L lwoods wrote:

[jQuery] Re: Noob question about accessing element contents

2008-07-02 Thread Richard D. Worth
$('item', xml).eq(1).text() - Richard On Wed, Jul 2, 2008 at 11:51 AM, ml1 <[EMAIL PROTECTED]> wrote: > > I'm trying to find out the "best practice" for getting the contents of > one particular element. I know about the each() call. > > As I said I can use ways that seem not so efficient to get

[jQuery] Jquery toggle fast

2008-07-02 Thread jquerysk
We just upgraded to the latest version 1.2.6 and start having problem with toggle("fast") It was working until certain time. If i call it without parameter, it still works. I checked the release note for 1.2.6 but didn't find anything about not accepting these parameters( "fast","slow"..).

[jQuery] Newbe: Why can't I reference $('#...') in functions?

2008-07-02 Thread lwoods
Why can't I reference the DIV using the jQuery format? Here is the example (minus opening HTML):