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
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
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
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
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
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
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');});
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?
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...
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:
.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
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
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
@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.
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:
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...
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({
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
Hello every one
Can some one help me setting the datepicker plugin with the following
options
min date =today
date format =-mm-dd
thanks
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
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);
*http://noorullah-newcomputer.blogspot.com/
* http://noorullah-newcomputer.blogspot.com/
*http://noorullah-newcomputer.blogspot.com/*
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
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.
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
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:
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
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)
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
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
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
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 /
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
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
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...
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
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
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
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
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
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..
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
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
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
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
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
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
Are you saying that IE changes its UA string depending on whether
ClearType is enabled or not?
No.
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
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);
...
}
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: {
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
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.
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
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).
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
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
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(){
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
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
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
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
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
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 ||
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();
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
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
68 matches
Mail list logo