[jQuery] how to serialize an array?

2009-09-26 Thread Althalos
Hi I have an array in a Javascript/jQuery code, and I want to pass it to a php file. It has an arbitrary number of elements in it. So I figured I would use $.post, HOWEVER, I'm sure how I would convert my array into a suitable data-string? $.post(test.php, data); what should data be when I want

[jQuery] Re: Breadcumb, error in for-loop

2009-09-26 Thread Althalos
I'm not an expert either, so I may be wrong. But I doubt that BrCU really gives you what you want. find(a:first) will give you ONE element by definition... it will not return an array of elements. I think. Probably you need to do something like this: var el = ; var BrCu = here.parents('li');

[jQuery] Autocomplete plugin - customization

2009-09-14 Thread Althalos
Hi I'm trying to make a custom hack to the autocomplete plugin. I want it so that when you select a suggestion I can separate the data in that suggestion and insert parts of it into four different elements. I'll use split to get the data into an array and then use the Val function to set the

[jQuery] Handling result from the autocomplete plugin

2009-09-13 Thread Althalos
Hello I'm using the following autocomplete plugin: http://docs.jquery.com/Plugins/Autocomplete It's getting its data from an array, here are the first couple of values: data[0] = Magnesium (s) | R: 11, 15 | S: 7/8, 43; data[1] = Saltsyra 4M (aq) | R: 36/38 | S: 2. 28; data[2] = Natriumnitrat |

[jQuery] trouble with post function

2009-03-21 Thread Althalos
Hello. I've had this trouble all night and I can fix it I am using the code below and if I take away the arguments I want to pass, then it works fine and I get a result back from the script. However, when I try to pass the form values and the slider values (from the UI slider) to the script

[jQuery] Callback function not working

2009-01-24 Thread Althalos
Hello, I have a callback function belonging to a $.post that won't work. Anyone know why? This is my function: function(date) { $(#date_+$(this).attr(id)).html(Updating..); $.post(includes/updateleverans.php,{id:$(this).attr(id), date:date}, function (data) {

[jQuery] Re: Callback function not working

2009-01-24 Thread Althalos
and also $(#date_+$(this).attr(id)).html(Updating..); works fine! On 24 Jan, 16:39, Althalos ca...@ekdahlproduction.com wrote: Hello, I have a callback function belonging to a $.post that won't work. Anyone know why? This is my function: function(date) {     $(#date_+$(this).attr(id)).html

[jQuery] Re: Code not working in IE but is working in FF

2008-12-28 Thread Althalos
, 2008 at 2:03 AM, Althalos ca...@ekdahlproduction.com wrote: Nope, I'm sorry but that doesn't seem to work. Note that setting opacity to zero works in both browsers. On 28 Dec, 01:25, Alexandre Plennevaux aplennev...@gmail.com wrote: really not sure, but maybe try A/ 1- (step/1

[jQuery] Re: Code not working in IE but is working in FF

2008-12-28 Thread Althalos
one ? so avoiding arguments.callee by using your function name instead? On Sun, Dec 28, 2008 at 2:03 AM, Althalos ca...@ekdahlproduction.com wrote: Nope, I'm sorry but that doesn't seem to work. Note that setting opacity to zero works in both browsers. On 28 Dec, 01:25, Alexandre

[jQuery] Code not working in IE but is working in FF

2008-12-27 Thread Althalos
I posted something similarly before but I posted wrong code. This time, everything is correct and I'll provide all the information needed. First of all, the URL to the site which is not working is http://uf.ekdahlproduction.com/itsvintage2/ The error: In FF everything works perfectly but in IE

[jQuery] Re: Code not working in IE but is working in FF

2008-12-27 Thread Althalos
);  instead of $(#slogan).css('opacity','0'); On Sun, Dec 28, 2008 at 1:04 AM, Althalos ca...@ekdahlproduction.com wrote: I posted something similarly before but I posted wrong code. This time, everything is correct and I'll provide all the information needed. First of all, the URL to the site

[jQuery] Re: working in FF but not in IE

2008-12-25 Thread Althalos
http://uf.ekdahlproduction.com/itsvintage2/ On 24 Dec, 15:46, Rick Faircloth r...@whitestonemedia.com wrote: I'd like to take a peek...what's the URL? -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Althalos Sent: Wednesday

[jQuery] Re: working in FF but not in IE

2008-12-24 Thread Althalos
= Math.floor( logo.css('opacity')*100 );      s.text( o );      if (o) setTimeout(update,30);   }   update(); }); - ricardo On Dec 23, 8:24 pm, Althalos ca...@ekdahlproduction.com wrote: So I got help to create a script this far: $(document).ready(function(){     var step = 4000

[jQuery] intro using fadeTo and setTimeout won't work

2008-12-23 Thread Althalos
I've been trying for a week and spent endless hours on a tiny little code, and I cannot take any more of it so please help... code nr 1. not working, but I think should: $(document).ready(function(){ $(#logo).css('opacity','0.01'); for (var i = 1; i0; i-=100) { setTimeout(function() {

[jQuery] Re: intro using fadeTo and setTimeout won't work

2008-12-23 Thread Althalos
It works like a charm! Thanks a lot! =) On 23 Dec, 16:24, Dave Methvin dave.meth...@gmail.com wrote: function changeFade(i) {   $(#logo).fadeTo(fast,1-i/1);   $(#percentage).html(i/100 + '%');   i += 100;   if (i=1)     setTimeout(changeFade(i),100); }

[jQuery] working in FF but not in IE

2008-12-23 Thread Althalos
So I got help to create a script this far: $(document).ready(function(){ var step = 4000; (function(){ step -= 40; $(#percentage).text(Math.round((1-step/4000)*100) + '%'); if ( step 0 ) $(#logo).fadeTo(40,1-step/4000, arguments.callee); })();

[jQuery] Re: link fade in / out

2008-11-12 Thread Althalos
*bump* On 11 Nov, 19:15, Althalos [EMAIL PROTECTED] wrote: Hi. I have a menu consisting of some simple text links. They start with an opacity of 0.33 then when I move my mouse over them they lit up. They worked well, however the effects wanted to stack up in a queue so that when I had swept

[jQuery] Re: link fade in / out

2008-11-12 Thread Althalos
this way but try $(a).bind(mouseenter,function(){  $(this).fadeTo(500,1);  } }); $(a).bind(mouseleave,function() {  $(this).fadeTo(300,0.33);  }); Althalos wrote: *bump* On 11 Nov, 19:15, Althalos [EMAIL PROTECTED] wrote: Hi. I have a menu consisting of some simple text links

[jQuery] link fade in / out

2008-11-11 Thread Althalos
Hi. I have a menu consisting of some simple text links. They start with an opacity of 0.33 then when I move my mouse over them they lit up. They worked well, however the effects wanted to stack up in a queue so that when I had swept my mouse over the links a couple of times fast they would keep

[jQuery] Re: My menu divs get behind content when shown on IE

2008-11-11 Thread Althalos
of them. On 6 Nov, 23:03, FG [EMAIL PROTECTED] wrote: Thanks. A high z value solved the issue. But in IE6 still can not get those divs to show. Will try without jQuery to see if it's the culprit. FG On Nov 6, 2:39 pm, Althalos [EMAIL PROTECTED] wrote: It doesn't work in Firefox for me

[jQuery] Re: combining slideup, post, slidedown

2008-11-09 Thread Althalos
or preventdefault() anywhere. Try this: $(a).click (function(event) {         event.preventDefault();         // rest of your code ... --Karl Karl Swedbergwww.englishrules.comwww.learningjquery.com On Nov 8, 2008, at 8:47 PM, Althalos wrote: Hi. I am trying to make a div slide

[jQuery] combining slideup, post, slidedown

2008-11-08 Thread Althalos
Hi. I am trying to make a div slide up, update through $.post and then slide down again. I have the following code: $(a).click (function() { $(#content).slideUp('slow', function () { $.post('http://uf.ekdahlproduction.com/itsvintage/text.php', {site: $(this).attr('rel')},

[jQuery] Re: My menu divs get behind content when shown on IE

2008-11-06 Thread Althalos
It doesn't work in Firefox for me... and I don't think it should. I had this problem as well with an autocomplete thingy, and I solved it using z-index so try that. Set it to 100 or something on your menu div. On 6 Nov, 20:29, FG [EMAIL PROTECTED] wrote: I'm using jQuery for showing hidden

[jQuery] Re: Show Function Disappering

2008-11-06 Thread Althalos
Example is right here: http://docs.jquery.com/Effects/show How are you hiding your div? It should (preferably) be done using css display:none; ... and then you have to make sure that what you do doesn't conflict with anything else you might've put on there.. which we can't know because you