Hi Vic,
the global anArray works fine see:
http://jsbin.com/ukesa/edit
The problem is that you have to wait until the ASYNCHRONOUS callback
of your get() function has been called.
1) minor style remark
You could declare anArray outside of the ready function with a var
statement. This makes the
Thanks, I haven't tested it much yet but it seems to have solved the
problem :)
ricardobeat a écrit :
set cache: false in your $.ajax call to disable cacheing of responses.
You can also add a random query parameter to the URL if that doesn't
work.
- ricardo
On Feb 20, 8:53 am, Jsbeginner
IE6 doesn't support transparent png file, so people usually use
javascript to fix it.
This is what I choose
http://www.twinhelix.com/css/iepngfix/
but when I use it with ui such as $.dialog() in IE6, the effect become
pretty slow
for example
http://www.yuri.com.tw/member_register.php
This is
If I have JSON data like this:
{ 9: { title: Event 1, style: rock }, 11: { title:
Event 2, style: pop }, 15: { title: Event 3, style:
house }, 16: { title: Event 4, style: metal} }
How can I loop through each item grabbing each key/value pair for
outputting? Is this possible with $.each?
I
Your Loop should probably look like this:
$.each(results, function(key,val) {
event += 'div' + val.title + ' ' + val.style + '\/div';
});
On 21 Feb., 12:51, newkid85 newki...@googlemail.com wrote:
If I have JSON data like this:
{ 9: { title: Event 1, style: rock }, 11: { title:
Hi,
first i would rather suggest to not use numbers as array name... in your
example you will have problem while debuggin code and i'm not sure that it
will work correctly.
so i would suggest instead of using 9 to use something else but with
characters.
you can do something like that (where
Let's say I have on object with my options:
options = jQuery.extend({
title: 'xy',
date: 'xy'
}, opts);
And some JSON data:
({ items: [
{
title: IMGP3817,
date: 2008-10-18T10:35:17-08:00
},
{
title: IMGP3826,
Sorry, I mean if (item.key.indexOf(val) != -1) {.
But anyway, any ideas? I know my approach probably makes no sense at
all...
Thanks nik although I ended up using
function(){$(this).css(z-index ,24);});
paul
On Feb 20, 7:33 pm, Nikola nik.cod...@gmail.com wrote:
I made a typo it's 'zIndex' not 'zindex' - disregard the quotes
there...
On Feb 20, 2:32 pm, Nikola nik.cod...@gmail.com wrote:
You can use a callback
I'm reading about http://jqueryui.com/demos/droppable/#photo-manager
When i try to use sortable in the same element!
I can not make it happen! When i move element to other place to sort it, the
original element alwasy got back to original place! When i remove
.dragable(), i can use .sortable!
Does
Thanks Carol,
that at least gives me a good feeling, I'm not the only one :-)
If I find any solution with my as good as none experience in jQuery,
or just through pure luck I will off course not hesitate to post it.
Oliver Prater
On Feb 21, 12:16 am, carol carolgjenk...@hotmail.com wrote:
hi all,
i m submitting a form inside cluetips and want to close cluetips after
submitting the form
please suggest me as soon as possible
thanks,
abrar
Hi,
I'm using the JQuery star rating plugin (v2.61) from
http://www.fyneworks.com/jquery/star-rating/. Everything's going
well, but I'd like to disable the stars when a user has voted.
Currently my users select their rating and click the mouse. This
updates my database through an AJAX call.
Dear all,
I'm new to jquery and am just started to use the Ajax tabs in a site I
am building. However I do notice that if I disable javascript the tabs
just open the pages normally, which is no good as then inserted pages
don't contain any navigation or other elements.
Is there a way to get the
This doesn't work:
$.getJSON(wheremydatais, function(data){
$.each(data.items, function(i,item){
$.each(options, function(key,val){
if (item.key.indexOf(options.key) != -1) {
console.log('everything ok');
In the submit handler of the form, you could trigger a click on the
close link. Something like this:
$('yourform').submit(function() {
// do your business here.
$('#cluetip-close').trigger('click')
});
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On
What is key? That's not in either one of your data structs.
Oops, sorry, didn't look closely enough. But you can't use 'key' that
way. Try this:
if (item[key].indexOf(options[key]) != -1)
Not sure what you're after with the indexOf though.
I wonder if this demo helps:
http://jqueryui.com/demos/draggable/#sortable
Rather than calling .draggable() and .sortable() on the same element, you
can connect draggables to sortables. No need to call .draggable() on the
sortable as they're already draggable.
Also note: There's a separate
Hi,
I have a group of animations, which once they are finished I would
like to change all the image ids and then the src attribute. My code
is as follows:
$(#right).click(function(){
$(#i0).fadeIn(1500);
$(#i1).animate({width: '98px', left: +=86px}, 1500);
...
Great, that's it. Thanks a lot!
The indexOf is just an example. The options are actually some kind of
filters and I want to check each item against each filter. Depending
on the filter It could be indexOf.
On 21 Feb., 14:44, Mike mal...@gmail.com wrote:
What is key? That's not in either
The 'j' in Ajax is 'JavaScript'. Bottom line is, if the browser has
JavaScript disabled, you cannot use Ajax.
You could use the callback function (http://docs.jquery.com/Effects/
animate#paramsdurationeasingcallback).
$(#right).click(function(){
$(#i1).animate({width: '98px', left: +=86px}, 1500, function
(){
var id = $(this).attr('id').split('i')[1];
id = id -1;
You have to solve this on the server side. If you put a normal link on
the tab you can deliver an appropriate site on reloading.
On 21 Feb., 13:26, Playtime p@btopenworld.com wrote:
Dear all,
I'm new to jquery and am just started to use the Ajax tabs in a site I
am building. However I
Thanks - would it not be easier to set up a loop that is executed
after all the animations have been finished? As I have 8 numbered form
0 to 8, will there not be a conflict when you end up with 2 objects
with id1?
Thanks
paul
On Feb 21, 2:29 pm, Thomas Jaggi thomas.ja...@gmail.com wrote:
I'm not sure if this is a problem since all the animations are
executed at the same time (as far as I know).
On 21 Feb., 15:42, paul.mac paul.mcma...@uuconstruct.co.uk wrote:
Thanks - would it not be easier to set up a loop that is executed
after all the animations have been finished? As I
But It would probably be better changing the class instead of the id.
On 21 Feb., 15:42, paul.mac paul.mcma...@uuconstruct.co.uk wrote:
Thanks - would it not be easier to set up a loop that is executed
after all the animations have been finished? As I have 8 numbered form
0 to 8, will there
Hi,
I am using jQuery Form Plugin's ajaxForm method to upload a file to a
third party server. Uploading is working fine, using this approach as
I am able to see the file uploaded in the third party server. But I
need to get hold of the response coming back from the server as I need
to save some
Hi Oliver,
Your switch statement looks a bit strange to me - I've never coded one
that way before.
Try redoing it as a couple of if {} else {} statements.
IE is must fussier about syntax than FF so I always check for syntax
errors when IE starts misbehaving.
Hope that helps.
Paul
On Feb 21,
After searching the web with no answer, I really need some help about
attributes in jquery
Here's the plan:
I want to retrieve ALL the attributes from a tag for applying them to
another tag.
Problem#1: i don't know how many attributes the tag will possess.
Problem#2: i don't know what
You can use PHP or most other languages to manage your tabs.
For example you could do something like this :
tab links :
http://yoursite.com?t=1 For tab 1
http://yoursite.com?t=2 For tab 2
http://yoursite.com?t=3 For tab 3
and an simple PHP code :
?php
if($_GET['t'] == 3){ ?
h2This is tab3
I am building a ajax website i am showing a status of request as
request moves from readystate 1,2,3,4(complete), now uptil now i was
not using jquery for sending request , now i am planning move to
jquery but i seen jquery $.ajax function which provides declaration of
only one callback method
I think it's choking on the following statement, telling me Object
doesn't support this property or method :
slide=a.find('.slideshow-content *:eq('+c+')');
Any ideas?
On Feb 20, 3:21 pm, Mike mal...@gmail.com wrote:
I'm trying to implement the jQuery (a)Slideshow plugin
I think this is the line IE is choking on; it says Object doesn't
support this property or method:
slide=a.find('.slideshow-content *:eq('+c+')');
I can't seem to find this string in any of the javascript files; any
Ideas?
On Feb 20, 3:21 pm, Mike mal...@gmail.com wrote:
I'm trying to
Hello,
I've written a simple function for a hover event but I can't seem to
specify what $(this) is properly. Here's a little example I put
together, any input would be great.
Thanks..
http://jsbin.com/ezeye/edit
Wow, I just uploaded a simple plugin that does this:
http://plugins.jquery.com/project/getAttributes and then saw your
post.
On Feb 21, 9:07 am, RotinPain rotinpain@gmail.com wrote:
After searching the web with no answer, I really need some help about
attributes in jquery
Here's the
whether the structure of the jQuery object like this :
$('p')
if the tag p only one, the structure is :
[ [attr = value ]]
if the tag p has two , the structure is :
[ [ attr = value], [attr = value] ]
Thanks
Alex
@Paul: I changed the switch to if{} statements, but got the same
result so changed it back. The bug is somewhere else ...
The code that does the exact same as my switch. (It works in FF just
like the switch but in IE still the same bugs come up)
code: ---
$(this) is no problem.
hover_in() and hover_out() should place in each method.
if hover_in() and hover_out() placed outside each method, $this in
hover_in() and hover_out() is all li tag.
are u understand ?
you should write like this :
=
sorry for my poor english, i hope you can understand my mean.
On Feb 22, 5:12 am, Alex blackange...@gmail.com wrote:
$(this) is no problem.
hover_in() and hover_out() should place in each method.
if hover_in() and hover_out() placed outside each method, $this in
hover_in() and
Oh
Thank you! I've tried so many different things, like defining _this
after the event but I never thought of writing it this way. Thanks
much, this explains it.
On Feb 21, 4:18 pm, 浩翔 blackange...@gmail.com wrote:
sorry for my poor english, i hope you can understand my mean.
On
no problem !
you could be more careful next time. :)
On Feb 22, 5:20 am, Nikola nik.cod...@gmail.com wrote:
Oh
Thank you! I've tried so many different things, like defining _this
after the event but I never thought of writing it this way. Thanks
much, this explains it.
On Feb
Thanks again, I understand what's happening now and I've been able to
correct my code. The plugin I'm working on is functioning perfectly -
I no longer need to filter out results or toggle classes.
On Feb 21, 4:20 pm, Nikola nik.cod...@gmail.com wrote:
Oh
Thank you! I've tried so
Pleas AnyBody send me Working examle of UI/Uploader on php.
UI/Uploader hsn't any docs
Hello,
I'm using the following versions of jquery:
- jquery-1.3.1.min.js
- jquery-ui-personalized-1.6rc6.min.js
Can somebody help me with this?
I can't figure out how to bind different functions for multiple remote
tabs.
Iam adding remote tabs by clicking a link on my page like in this
Yeeaha! you're great !
Thanx for posting this ( at the right moment :D ) it's really what i
needed and after some testing, my attributes problem is totally
solved !! thank you very much for this essential plugin.
I won't forget to use it anytime i'll work with attributes!!!
On 21 fév, 20:15,
I think it does:
http://docs.jquery.com/UI/Uploader
On 21 פברואר, 22:01, Joac ja.sor...@gmail.com wrote:
Pleas AnyBody send me Working examle of UI/Uploader on php.
UI/Uploader hsn't any docs
var Jquery = 1.3.2
$(this).amazing({
// thanks John Resig
});
Cheers
Mario
macm
2009/2/20 James james.gp@gmail.com
Thanks! So far it seems to be working without issues on my projects,
including those with UI 1.6rc6. :)
On Feb 20, 4:01 pm, John Resig jere...@gmail.com wrote:
On Sat, Feb 21, 2009 at 5:28 PM, Shedokan shedo...@yahoo.com wrote:
I think it does:
http://docs.jquery.com/UI/Uploader
That's a really old page and will be removed as Uploader is not a jQuery UI
plugin. See
http://jquery.webunity.nl/jQuery.uploader/landing
- Richard
On 21 פברואר,
Hi - I'm new to the group. This is my first post. I'm a tech writer
who's just starting to move into web development.
I use Dreamweaver - but some complain that Spry Widgets are lame - and
aren't as accessible to keyboard navigation as they should be. I had
hoped that by leaning jQuery I
Hi all,
I've found a bug in jQuery 1.3.2 (or maybe Dialog/Tabs in UI 1.6rc6).
In my application, I have a dialog with tabs inside of it. I create
the dialog and build/setup the elements inside it before it is
displayed to the user. Up to jQuery 1.3.1 I haven't had a problem
with this.
appericate for anyone comments/many thanks.
Hmmm... I guess I did something wrong.. looks good in Firefox but
doesnt work at all in IE and I got this warning with firebug:
reference to undefined property opt.queue
parent = elem.parentNode;
Can anyone spot what is wrong with this script??
$(document).ready(function(){
$(dd).hide();
var
Thank you Mike for taking the time to trouble shoot this with me. I really
appreciate it.
Susie BogusRed Sahim
http://www.PaperDemon.com
On Thu, Feb 19, 2009 at 3:58 AM, Mike Alsup mal...@gmail.com wrote:
Hooray! I'm so happy its fixed!!!
Excellent, Susie. So glad to hear it!
by using the includeMany 1.0.0 plugin you can add multiple files with
different callbacks for each one and also a global callback after all
are loaded
check it here:
http://www.arashkarimzadeh.com/index.php/jquery/17-includemany-jquery-include-many.html
Arash Karimzadeh
Anybody ?
On Feb 22, 4:04 am, Alex blackange...@gmail.com wrote:
whether the structure of the jQuery object like this :
$('p')
if the tag p only one, the structure is :
[ [ attr = value ] ]
if the tag p has two , the structure is :
[ [ attr = value], [attr = value] ]
55 matches
Mail list logo