[jQuery] Re: Json works in firefox but not in ie

2009-10-19 Thread Patrik
nd then trying to reference > it outside of that function. > > Try putting var options = ''; before that first line. > > On Oct 19, 10:22 am, Patrik wrote: > > > Hi, > > I have this code and it works well in firefox but in IE it dosn't. > > How do

[jQuery] Re: Json works in firefox but not in ie

2009-10-19 Thread Patrik
t; You are setting options inside a function and then trying to reference > it outside of that function. > > Try putting var options = ''; before that first line. > > On Oct 19, 10:22 am, Patrik wrote: > > > Hi, > > I have this code and it works well in fi

[jQuery] Json works in firefox but not in ie

2009-10-19 Thread Patrik
Hi, I have this code and it works well in firefox but in IE it dosn't. How do I make it work in IE? If I put alert(options) inside the loop I get all the values I want so this far it's working but outside the loop if i call alert(options) nothing happens. why? $("select#kod").change(function(){

[jQuery] Re: Only one

2009-04-19 Thread Patrik
the bottom. > > -Original Message- > From: jquery-en@googlegroups.com [<a rel="nofollow" href="mailto:jquery...@googlegroups.com">mailto:jquery...@googlegroups.com</a>] On > > Behalf Of Patrik > Sent: Sunday, April 19, 2009 10:02 AM > To: jQuer

[jQuery] Only one

2009-04-19 Thread Patrik
Hi Can you load jquery multiple times? Is there any way to only load jquery if it haven't already been included like if you use Wordpress some plugins needs and includes jquery then it can be loaded many times.

[jQuery] Re: Problems whith the variables for a click function

2009-03-19 Thread Patrik
Not what I know but i shouldn't be empty. pris is ex. 340,50:- and pris2 should then be 340.50 when i tried with the variables inside. I want pris to be the same and when you press the link the $ ('#productPrices').html(); get 25% smaller and when you press again it get it original value back. wh

[jQuery] Re: Problems whith the variables for a click function

2009-03-19 Thread Patrik
When I press #tax a nothing happens but if I put the variables inside it works but then the pris var changes every time i press #tax a On 19 Mar, 00:44, James wrote: > Could you explain what exactly that's not working? > > On Mar 18, 7:41 am, Patrik wrote: > > > Hi

[jQuery] Problems whith the variables for a click function

2009-03-18 Thread Patrik
Hi! I try to make a script to change the prize between with tax and without but I cant get it to work whats wrong? var sant = 'no'; var pris = $('#productPrices').html(); $('#tax a').click(function(){ if(sant == 'no'){ var pris2 = pris.replace(/[^0-9.,]+/g, '').replace(/[,]+/g, '.')

[jQuery] Re: neewbe help, Bassistance Validation Plugin

2008-03-10 Thread Patrik Nikkanen
If you only want one balloon, then try something like this code. Only problem is that if the error changes while the user edits the inputs, the balloon won't change. You might be able to solve this with some function that updates the balloon on keyup events, or something similar. $(function()

[jQuery] Re: neewbe help, Bassistance Validation Plugin

2008-03-07 Thread Patrik Nikkanen
I haven't used the validation plugin myself so I can't really say much about how it works internally. Can't you simply use the errorPlacement option to put the error messages in hidden balloons belonging to the respective fields, and then show/hide them using regular onfocus events? - Orig

[jQuery] Re: jQuery AJAX Dynamic File Download

2008-03-06 Thread Patrik Nikkanen
I would set these headers in the excel.php script, and create a link directly to it. It is more or less a straight file download, created dynamically. header("Cache-Control: no-cache"); header('Content-Type: application/octet-stream'); header("Content-Disposition: attachment; filename=MyExcelFi