[jQuery] Re: Accessing a JSON property from an unknown variable?

2009-02-14 Thread seasoup
It's not really an associative array. It is the property of an object, there are two notations for getting at an objects properties: foo.bar and foo['bar'] though you could even: eval('foo.' + fooProp); foo.bar is the preferred method, but if the property name has a space in it or needs to

[jQuery] transform div into a textfield to change its value nicely

2009-02-14 Thread Chris
Hi guys, I was wondering how this is usually done if I have a div container and want to change its value (e.g. a name of a person) just by pressing the left mouse button for a short moment so that it'll transform itself into a textfield and well... back when I'm done editing. Whats the usual

[jQuery] Re: dynamically inserted droppable

2009-02-14 Thread Chris
Thanks, it works. However, it there any way I can design this more nicely so there won't be unnecessary code repetitions? It just feels a little odd to pass over all the options again. On Feb 9, 1:41 am, Richard D. Worth rdwo...@gmail.com wrote: After you add the element to the page, just call

[jQuery] wait end of slideUp()

2009-02-14 Thread Alain Roger
Hi, i have 2 divs (one on the top and one below). when user click on top div, the bottom div is SlidingUp slowy and the top div class should change. this works well, but to make it perfect i would like to be sure that my bottom div is completly slided Up before to change class of my top div. how

[jQuery] Re: Problem reading rss link tag

2009-02-14 Thread Karl Rudd
link tags only have attributes, they don't contain anything. Karl Rudd On Sat, Feb 14, 2009 at 11:31 AM, Karthik karthick.vijayara...@gmail.com wrote: Hi, I am trying to parse a rss feed. My code seems to be able to extract the value for any tag in the feed except the link tag. I am using

[jQuery] Re: wait end of slideUp()

2009-02-14 Thread FCY-Pierre
Hi, The slideUp effect has a callback function. It was called when the animation is complete. So, this code should works $('#myDiv').slideUp('slow',function(){$('myTopDiv').addClass('myclass');}); pierre Alain Roger a écrit : Hi, i have 2 divs (one on the top and one below). when user

[jQuery] Re: wait end of slideUp()

2009-02-14 Thread Alain Roger
Thanks a lot Pierre. On Sat, Feb 14, 2009 at 11:28 AM, FCY-Pierre fcy...@gmail.com wrote: Hi, The slideUp effect has a callback function. It was called when the animation is complete. So, this code should works $('#myDiv').slideUp('slow',function(){$('myTopDiv').addClass('myclass');});

[jQuery] Re: Would some please tell me what's wrong with this syntax?

2009-02-14 Thread Rick Faircloth
Hi, Michael...and thanks for the reply. Yes, with everything but the first line stripped out, it still throws the error. However, I can't see anything wrong and no matter what changes I make to the first line, I still get an error. Is there a problem with using dot notation in the variables?

[jQuery] Re: Would some please tell me what's wrong with this syntax?

2009-02-14 Thread Rick Faircloth
Alright...that fixed it. Thanks Ricardo and Michael! I didn't understand the proper way to use the variables. Since they were being passed from the response section of another function as response.MONTH and response.YEAR, I figured they would have to be received that way. Live and learn...

[jQuery] Re: Safari and .remove()

2009-02-14 Thread Karl Rudd
In the past Safari has been a bit... slow to render changes sometimes. Sometimes it needed a bit of a kick to look at the styles again and re-layout the page. After a change (that Safari didn't recognise at once) I used to do something like this:

[jQuery] Re: Why won't this unbind work?

2009-02-14 Thread Rick Faircloth
.expandable is a reference to the functionality of a plug-in. It's included in the top of the page by script src=jquery.expandable.js/script and it's code provides the functionality to auto-expand and shrink a textarea. When I click hide, I want to disable the plug-in's functionality on the

[jQuery] Re: transform div into a textfield to change its value nicely

2009-02-14 Thread Rick Faircloth
Hi, Chris... I'm not sure how that would be coded, but here's a plug-in that enables editing-in-place, as you've specified. http://www.appelsiini.net/projects/jeditable/default.html Rick -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On

[jQuery] Re: How to make a secured login form

2009-02-14 Thread phicarre
OK. I understood now. Thank's On 13 fév, 20:07, James james.gp@gmail.com wrote: Okay, here's a simple way to understand it. Suppose in your login.php, if the user login is successful, you have login.php echo '1'. If not, echo something else, like '0'. This response will become stored in

[jQuery] Re: How to make a secured login form

2009-02-14 Thread phicarre
@james: I forgot to answer to your question ... what I want ? web2.0 style with a solution as you suggested it On 14 fév, 12:03, phicarre gam...@bluewin.ch wrote: OK. I understood now. Thank's On 13 fév, 20:07, James james.gp@gmail.com wrote: Okay, here's a simple way to understand it.

[jQuery] Re: Why won't this unbind work?

2009-02-14 Thread Rick Faircloth
And my question becomes a mute point when I simply surround the textarea with a div with hide and show that div instead of the textarea... simple solution. Rick -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Michael Geary Sent:

[jQuery] JQuery swapImage

2009-02-14 Thread Nick Y.
http://code.google.com/p/jquery-swapimage/ Anyone tried it is working in Firefox 1.x? I have tested at Firefox 2 3, it is okay, but not working in Firefox 1.5... poor...

[jQuery] Re: transform div into a textfield to change its value nicely

2009-02-14 Thread Andras Kende
Try this: http://davehauenstein.com/code/jquery-edit-in-place/ script type=text/javascript src=/js/jquery.js/script script type=text/javascript src=/js/jquery.inplace.js/script script language=javascript type=text/javascript jQuery(document).ready(function() { jQuery(.edit1).editInPlace({

[jQuery] Re: How to make a secured login form

2009-02-14 Thread EugeneS
location.href (simply redirection) is so called web 2.0 ? :) web 2.0 is like a google mail where no redirection at all and all the content loaded dynamically. simplest realization can look like: 1) you will have one main script lets name it manager.php to this script you will send different

[jQuery] Datepicker Plugin Quesiton

2009-02-14 Thread Hellofrom
Hello every one Can some one help me setting the datepicker plugin with the following options min date =today date format =-mm-dd thanks

[jQuery] Re: onclick event on a href calls a function , where to return false to prevent redirection

2009-02-14 Thread goldy
ok but, where to put this $('a.ToggleClose').click? ready is ready ok but, after the questionnable a href? cause like that I cannot control the arguments of this function, cause in the beginning I don't know these values, and btw, there are multiple links.toggle, and everyone is with different

[jQuery] Re: onclick event on a href calls a function , where to return false to prevent redirection

2009-02-14 Thread goldy
hmm, a have tried this a class=ToggleClose id=ToggleClose?= $did ? href=descriptionsadd.php?add=2did=?= $did ?showhtml=2/a script type=text/javascript $('a#ToggleClose?= $did ?').click(function(){ buildingedit('#descr', 'descriptionsadd.php', 'did', ?= $did ?, 2,this);

[jQuery] NEWCOMPUTER

2009-02-14 Thread noorullah m
*http://noorullah-newcomputer.blogspot.com/ * http://noorullah-newcomputer.blogspot.com/

[jQuery] NEWCOMPUTER

2009-02-14 Thread noorullah m
*http://noorullah-newcomputer.blogspot.com/*

[jQuery] Re: transform div into a textfield to change its value nicely

2009-02-14 Thread Chris
Thanks thats just fine. On Feb 14, 11:58 am, Rick Faircloth r...@whitestonemedia.com wrote: Hi, Chris... I'm not sure how that would be coded, but here's a plug-in that enables editing-in-place, as you've specified. http://www.appelsiini.net/projects/jeditable/default.html Rick

[jQuery] anyone tried alternatives to setting wmode on objects (lightbox on top issue)?

2009-02-14 Thread hedgomatic
I'm working for an alt-weekly paper, and we have some animated flash ads that come from various sources, which aren't setting the WMode of their flash ads. further complicating things, our ad server backend is a shared platform, so I can't go modifying the script that generates the object tags.

[jQuery] Re: Superfish: Error: jQuery(ul.sf-menu).superfish is not a function

2009-02-14 Thread manuef
Hello Same error for me, have you found solution ? Thanks for your help emmanuelle roel a écrit : Hi, I'm running a Joomla site with the superfish menu (http:// www.sdspaintball.nl) Menu works fine except when I go to the forum section. It displays the menu, but without the downarrow

[jQuery] Changing scope of a function

2009-02-14 Thread Allan Jardine
Hello all, I'm running into a few problems with a plug-in I'm developing. What I would like to do is to take a function (which is in any old scope, global for example) and then execute it in the scope of my plug-in. I rather thought I would be able to do something like in my constructor:

[jQuery] Lightbox working local not live?

2009-02-14 Thread Gavin
Hello, I'm currently working on my own website and I got everything to work perfect locally, but when I upload live, lightbox fails to work. My jFlow still works, it's just lightbox. As far as I can see it should be working, but I'm not super familiar with javascript, so I could have something

[jQuery] Re: triggering a link event that has an image tag?

2009-02-14 Thread Paul Mills
Hi, In jQuery 1.3 there is a new .live() method that is a subset of the livequery plugin. http://docs.jquery.com/Events/live#typefn I tried this and it works OK - I get 2 alert messages: $(.flickr-photo a img) .live(click, function() { alert('img click'); }); $(.flickr-photo a)

[jQuery] Re: Changing scope of a function

2009-02-14 Thread Michael Geary
JavaScript uses lexical scoping: The scope chain for a function is determined solely by the location of the function definition in the source code. Evaling the function's source code is a clever solution, and probably the only way to do this. With eval() you're creating a new function from

[jQuery] Re: How to make an element *not* have a function attached...

2009-02-14 Thread QuadCom
Here's my understanding. unbind will work for events. The expandable function you applied is not an event. What I would do in this instance is on the hide button, remove the textarea with the expandable and then insert a new textarea with the same id. That would appear to remove the expandable

[jQuery] Re: How to make an element *not* have a function attached...

2009-02-14 Thread QuadCom
Actually an even easier trick would be to have 2 textareas that mirror each others content. Hide one without the expandable. Show the other with expandable. On the hide button, just do a reversal, show the noexpandable, hide the expandable. You can add a check on the submit of the form to delete

[jQuery] getting border with without em or px

2009-02-14 Thread Alain Roger
Hi, i know how to get border width with jQuery but every time it retrieves also the format (px or em). is there an easy way to get the border width without the px or em ? or should i do a substring ? thx. -- Alain --- Windows XP x64 SP2 /

[jQuery] Re: Feature Detection Best Practice?

2009-02-14 Thread Chris
On Feb 13, 2:34 am, Klaus Hartl klaus.ha...@googlemail.com wrote: That will not avoid IE's ClearType issue, since IE is supporting opacity and you still end up in the else branch. I think it's one of he rare cases where you need to do browser sniffing. I don't think there's a way to find

[jQuery] Generate Session ID

2009-02-14 Thread Tim Johnson
I'm transitioning from old-style CGI programming to using jQuery to access the server via Ajax. It is customary for me to have the CGI script generate a random string to use as a session ID. Using Ajax with jQuery - would it be practical and safe for the document to generate a Session ID in the

[jQuery] Re: How to make an element *not* have a function attached...

2009-02-14 Thread Rick Faircloth
Thanks for the tips! Rick -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of QuadCom Sent: Saturday, February 14, 2009 2:19 PM To: jQuery (English) Subject: [jQuery] Re: How to make an element *not* have a function attached...

[jQuery] Re: getting border with without em or px

2009-02-14 Thread mtsmit2
Hey, There might might be an easier/better way but I always do the following when I get number values from CSS: parseInt($(.someclass).css(left)); On Feb 14, 2:30 pm, Alain Roger raf.n...@gmail.com wrote: Hi, i know how to get border width with jQuery but every time it retrieves also the

[jQuery] Re: Changing scope of a function

2009-02-14 Thread theallan
Hi Mike, Thanks very much for your reply and the information. What I'm hoping to be able to do is to provide a plug-in API for my jQuery plug-in which will allow the new API functions to be able to access the private methods which I use. I know you can't force something to expose private methods

[jQuery] Re: Generate Session ID

2009-02-14 Thread C.Everson
On Sat, 14 Feb 2009 10:41:05 -0900, Tim Johnson wrote: Using Ajax with jQuery - would it be practical and safe for the document to generate a Session ID in the onload or document.ready phase and pass it to the server-side script? Tim, IMHO the ONLY way to ensure a unique session ID is to

[jQuery] Re: Generate Session ID

2009-02-14 Thread Tim Johnson
On Saturday 14 February 2009, C.Everson wrote: On Sat, 14 Feb 2009 10:41:05 -0900, Tim Johnson wrote: Using Ajax with jQuery - would it be practical and safe for the document to generate a Session ID in the onload or document.ready phase and pass it to the server-side script? Tim, IMHO

[jQuery] Re: Changing scope of a function

2009-02-14 Thread Mike Alsup
Thanks very much for your reply and the information. What I'm hoping to be able to do is to provide a plug-in API for my jQuery plug-in which will allow the new API functions to be able to access the private methods which I use. I know you can't force something to expose private methods (or

[jQuery] [superfish] how do i make a menu disappear as user clicks on it?

2009-02-14 Thread rokomotibu
now menus disappear from screen only after user moves cursor away from menu, but i want it to disappear right after user has chosen an item..

[jQuery] jquery.corner remove problem..

2009-02-14 Thread merihsaka...@yahoo.com
Hi all, I am using jQuery corner plugin (version 1.92) and I am adding corner style using onclick method.. But I didnt remove it. function addCorner(){ jQuery('#divName).corner(fray 8px); } function removeCorner(divName){ jQuery('#divName).corner(none); } Actually I also tried to

[jQuery] Need help with scrambled open/shut script

2009-02-14 Thread David Blomstrom
I downloaded jQuery a few months ago and used it to make a simple open-shut script. While redesigning/upgrading my websites, I messed it up. I'm not sure if I deleted a critical file, nixed the link to a critical file or what. I published a simplified version of a page at

[jQuery] case insensitive :contains()

2009-02-14 Thread Patrick Aljord
Hey all, I tried various solutions to have a case insensitive :contains() on google but couldn't find one that works with jquery 1.3: http://dev.jquery.com/ticket/278 http://mkhairul.com/2008/11/26/making-jquery-selectorcontains-case-insensitive/ any suggestion? also it would be good to

[jQuery] simple getting elements from ajax response not working

2009-02-14 Thread pedalpete
I've got what should be a very simple script, but I can't seem to get anything but 'null' or 'undefined' when trying to get an elements html or id. The 'html(response) gets filled with ther response, but I can't get either html or attribute id from the li. The response has 10 li's, so I'm trying

[jQuery] Re: simple getting elements from ajax response not working

2009-02-14 Thread Mike Alsup
The 'html(response) gets filled with ther response, but I can't get either html or attribute id from the li. The response has 10 li's, so I'm trying to get all of them, but figured I would do an 'each' or something if I could just manage to grab one. But I can't get that work? Is there

[jQuery] Re: simple getting elements from ajax response not working

2009-02-14 Thread pedalpete
Hi Mike, yes, the response is an html with just a bunch of li's with a bunch of other within each li. On Feb 14, 3:40 pm, Mike Alsup mal...@gmail.com wrote: The 'html(response) gets filled with ther response, but I can't get either html or attribute id from the li. The response has 10

[jQuery] Re: Feature Detection Best Practice?

2009-02-14 Thread Klaus Hartl
Are you saying that IE changes its UA string depending on whether ClearType is enabled or not? No.

[jQuery] Re: Feature Detection Best Practice?

2009-02-14 Thread Klaus Hartl
On 14 Feb., 20:31, Chris cpot...@siolon.com wrote: On Feb 13, 2:34 am, Klaus Hartl klaus.ha...@googlemail.com wrote: That will not avoid IE's ClearType issue, since IE is supporting opacity and you still end up in the else branch. I think it's one of he rare cases where you need to do

[jQuery] Re: simple getting elements from ajax response not working

2009-02-14 Thread Mike Alsup
Hi Mike, yes, the response is an html with just a bunch of li's with a bunch of other within each li. Ok, then I would think this should work: success: function(response) { var $li = $('div/').append(response).find('li.show'); var id = $li.attr('id); ... }

[jQuery] jQuery.validate not working properly?

2009-02-14 Thread Mark
If I leave all the fields blank, the errors show up as they should. But if I correctly fill out even just one of them, the form gets submitted. Why is this happening? Here's the JS: script type=text/javascript $(document).ready(function() { $(form).validate({ rules: {

[jQuery] Can't Get Data Back from $.ajax() Call in IE7?

2009-02-14 Thread Vik
I've been testing this past few weeks in IE7, and I've got one specific case where $.getJSON() seems to call the server intermittently, and usually not at all. I use $.getJSON() a lot. In FF and Safari it always works, and even in IE7 it usually seems to work, but not in this case for some

[jQuery] Tablesorter support

2009-02-14 Thread Jthomas
Can anyone get tablesorter's default pager function to work? The pager functions don't show up for me. The actual pager div is empty. It DOES limit my table to 10 rows, but when I click on a header to sort a row, my tbody is all the sudden empty. Never have I actually seen the pager control.

[jQuery] getting element numbers

2009-02-14 Thread introvert
Hello. I have a simple div list where one of the inner divs is being passed as a this element to the function. How can I get the total number of divs (divisions) inside the div list? In this case it would be 3. div id=list divfirst/div divsecond/div div.../div /div How to get number of the

[jQuery] click events on links

2009-02-14 Thread introvert
Hello. I have a simple anchor href link on which I put on click event handler: a href=# id=pause/a $(#pause).click(function () { //do something }); When I click the link the action will be preformed and the browser would scroll to the top of the page (because of # in the href attribute).

[jQuery] undefinedjquery.block.js

2009-02-14 Thread Neil Bailey
I am just getting started w/ jQuery, so if this is just a ridiculous question that has been answered a million times, I apologize in advance. I googled, and didn't find ANYTHING, so I am hoping that maybe someone on this list has seen it. I have the following code: html

[jQuery] strange loop with livequery click

2009-02-14 Thread pedalpete
I've got a page that I'm loading via ajax, and the first time I load the page, the click function works great. If I make a second ajax request and load new data, the clicks are triggering the function twice. Even though I empty the div before loading the new data, and then call livequery on the

[jQuery] why my ajax call is not working in IE?

2009-02-14 Thread cindy
Following code works in firefox, but doesn't work in IE. why? sendRequest:function(mode, request, argument) { if(mode==prototype) return $.ajax({ url: xml/+request+.xml, error: function(){

[jQuery] Re: click events on links

2009-02-14 Thread pedalpete
i've done this before just leaving out the href in the a tag. if you aren't going to use it, you may as well not put it in. On Feb 14, 5:48 pm, introvert aljaz.faj...@gmail.com wrote: Hello. I have a simple anchor href link on which I put on click event handler: a href=# id=pause/a

[jQuery] Re: Can't Get Data Back from $.ajax() Call in IE7?

2009-02-14 Thread Rick Faircloth
Hi, Vik... You appear to have much more experience with AJAX than I do, but, so far, I've always put returnFormat=json at the end of my URL's, rather than just return=json... Don't know if that makes any difference or not. Rick -Original Message- From: jquery-en@googlegroups.com

[jQuery] Re: click events on links

2009-02-14 Thread Rick Faircloth
add return false; to your code... $('#pause').click(function() { do something; return false; }); See if that helps... Rick -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of pedalpete Sent: Saturday, February 14, 2009

[jQuery] Re: undefinedjquery.block.js

2009-02-14 Thread Rick Faircloth
Hi, Neil. I know you've checked your jQuery source file links, but the error seems to indicate that you need to include a src link to a jquery.block.js file. I haven't used the blocking function, so I'm not sure if that should be a separate file or not. That's what the error seems

[jQuery] Re: undefinedjquery.block.js

2009-02-14 Thread David Andrews
Hi Neil, Check this out In the following code I'm including more than what is necessary for AjaxCFC to function. The only bits required for AjaxCFC to work are: json.js, wddx.js, and wddxDes.js (depending on which you intend to use for serialization). I just include json.js because I

[jQuery] Re: case insensitive :contains()

2009-02-14 Thread Dave Methvin
I tried various solutions to have a case insensitive :contains() on google but couldn't find one that works with jquery 1.3: This seems to work fine: $.extend($.expr[:], { containsNC: function(elem, i, match, array){ return (elem.textContent || elem.innerText ||

[jQuery] JQuery XML parsing is not working in IE?

2009-02-14 Thread cindy
Hi, all, I have used following code to parse XML file, it works very well for firefox, but not for IE. Can any one told me why and solution ? Thanks! (rXml).find(wired_port).each(function() { var o=new Object();

[jQuery] How to set before and after callbacks properly

2009-02-14 Thread MH1988
I am using the jQuery cycle plugin which is working perfectly. However, I would like to add some more functionality to the image gallery I have created. What I would like to do is after an image fades in, I would like a caption to be display along with the image as well. I think the easiest way

[jQuery] optimizing

2009-02-14 Thread Bob O
hello, Im trying to figure out a better way to do this. it works but its very sluggish, so i think theyre might be a better way to iterate? i have an input field = .searchbox and then i have a YUI datatable that contains about 65 rows. when i start to type in the search field, it iterates over