[jQuery] change method on hidden fields

2007-02-19 Thread Jon Ege Ronnenberg
Hi all! I've been sizzling a little with the change method but I can't seem to get it to work. I have two hidden fields that gets updated by numerous links and it works fine but the function I have tired to the onchange event is never fired. Here is some code snippets from my code: $(function(){

[jQuery] Accordion trouble

2007-02-13 Thread Jon Ege Ronnenberg
Hi all. I've just found the Accordion plug-in and it seems pretty straight forward to implement but I get an $(:first-child, this)[0] has no properties in firebug when the page load and the navigation doesn't work. My code is really simple but maybe it could be thickbox or I'm just tired.. ...

Re: [jQuery] Accordion trouble

2007-02-13 Thread Jon Ege Ronnenberg
That's true. It's easy to forget that jQuery can't do EVERYTHING for you ('cause it's awesome). Thanks On 2/13/07, Sam Collett [EMAIL PROTECTED] wrote: On 13/02/07, Jon Ege Ronnenberg [EMAIL PROTECTED] wrote: Hi all. I've just found the Accordion plug-in and it seems pretty straight forward

[jQuery] ASP.NET MaintainScrollPositionOnPostback

2007-02-09 Thread Jon Ege Ronnenberg
Hi all. I just realize that the MaintainScrollPositionOnPostback property in the ASP.NET Page class interfere with jQuery, causing an error in jQuery. I don't know if there is a way of preventing this in error from jQuerys perspective. My workaround is simply to remove

Re: [jQuery] ISO 8859-1 encoding

2007-02-06 Thread Jon Ege Ronnenberg
Thanks. it works now On 2/6/07, Pje [EMAIL PROTECTED] wrote: I think you need to save your file in UTF-8 too. This setting will depend in which text editor you are using. Hope it helps. On 2/5/07, Jon Ege Ronnenberg [EMAIL PROTECTED] wrote: I bow for you. You're absolutely right

[jQuery] display inline vs block

2007-02-06 Thread Jon Ege Ronnenberg
When using hide(), show, fadeIn() etc. jQuery make the elements display:block, while I'm sure there is a good reason for this I wonder is there anyway to get jQuery to set them as display:inline? Regards, Jon. ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] display inline vs block

2007-02-06 Thread Jon Ege Ronnenberg
if it was necessary. Just use a setInterval or setTimeout and call css('opacity', num) -- Brandon Aaron On 2/6/07, Jon Ege Ronnenberg [EMAIL PROTECTED] wrote: When using hide(), show, fadeIn() etc. jQuery make the elements display:block, while I'm sure there is a good reason for this I wonder

[jQuery] ISO 8859-1 encoding

2007-02-05 Thread Jon Ege Ronnenberg
Hi guys! I need to handle danish characters which can be found in the iso 8859-1 specifications but jQuery use encodeURIComponent which always encode to UTF-8 (doesn't contain the danish characters). Do any of you know of a work around or do I have to change my version of jQuery to use escape

Re: [jQuery] ISO 8859-1 encoding

2007-02-05 Thread Jon Ege Ronnenberg
encode with but I think I'll write my own little function. That seems to be the only way. If the charset is define to iso 8859-1 and I use normal post I don't have this problem... Thanks anyway. On 2/5/07, Fil [EMAIL PROTECTED] wrote: @ Jon Ege Ronnenberg [EMAIL PROTECTED] : Hi guys! and girls

[jQuery] Access formData in ajaxForm

2007-01-29 Thread Jon Ege Ronnenberg
Hi all. I can find no documentation on how to access the form data in a beforeSubmit function in the Form plugin. I can see in Firebug that all my fields is populated correct and it's no problem to fetch the data on the server. But I have no idea how the syntax is in the beforeSubmit function. I

Re: [jQuery] Access formData in ajaxForm

2007-01-29 Thread Jon Ege Ronnenberg
I think I figured it out.. Something along these lines: function validate(formData, jqForm){ var tmp; for(f in formData) { tmp += 'f.' + formData[f].name + ' = ' + formData[f].value + '\n'; } alert(tmp); ... On 1/29/07, Jon Ege Ronnenberg [EMAIL PROTECTED] wrote: Hi all. I can find

Re: [jQuery] Access formData in ajaxForm

2007-01-29 Thread Jon Ege Ronnenberg
Whoa! What?!? Did you just update your site? All I've seen is the ajaxForm and ajaxSubmit tabs. Anyway, thanks - it was just what I needed! On 1/29/07, Mike Alsup [EMAIL PROTECTED] wrote: I can find no documentation on how to access the form data in a beforeSubmit function in the Form

Re: [jQuery] Access formData in ajaxForm

2007-01-29 Thread Jon Ege Ronnenberg
Am I right if I say that this only applies to input types that is submitted with the form? I've tried to get to a div with id=response: $('#response', jqForm).appendTo(Error message); return false; but in vain. I can write to a input element but not anything else, right? On 1/30/07, Mike Alsup

Re: [jQuery] Access formData in ajaxForm

2007-01-29 Thread Jon Ege Ronnenberg
This is so cool! But I have my div in the form and nothing is updated... Sorry if I am little thick headed but what should I look for? My code look like this: $(document).ready(function() { //#region Form submitting var options = { target: '#response', beforeSubmit: validate,

Re: [jQuery] Access formData in ajaxForm

2007-01-29 Thread Jon Ege Ronnenberg
In firebug I added $('#response', jqForm) and it contains the div as expected.. If I step through the code I can see the div is getting updated but then the page reloads, even though I return false? Again - what am I missing? You can see the page at http://www.postcards.dk/jon-test/index.htm

Re: [jQuery] Access formData in ajaxForm

2007-01-29 Thread Jon Ege Ronnenberg
Yes! Perfecto! Now it works - thanks for all the help and the killer plug-in On 1/30/07, Mike Alsup [EMAIL PROTECTED] wrote: $('#response', jqForm).appendTo(Nyhedsbrev type er ikke...); This looks like the problem. I think you want append not appendTo. After looking at your page you

Re: [jQuery] Access formData in ajaxForm

2007-01-29 Thread Jon Ege Ronnenberg
yes. I've changed the code just before you wrote. Still the same problem though On 1/30/07, Mike Alsup [EMAIL PROTECTED] wrote: $('#response', jqForm).appendTo(Nyhedsbrev type er ikke...); This looks like the problem. I think you want append not appendTo.

Re: [jQuery] Effect function runs twice

2007-01-25 Thread Jon Ege Ronnenberg
of a tiny label? make the label much larger and try hide(1) for a very very slow hide! On 1/21/07, Jon Ege Ronnenberg [EMAIL PROTECTED] wrote: Uhh I forgot to tell ya that you can see it live here: http://www.postcards.dk/jon-test/newsletter.php Regards, Jon

[jQuery] Effect function runs twice

2007-01-21 Thread Jon Ege Ronnenberg
Hi all. I'm new to jQuery so bare with me if I'm a bit slow. As the subject implies I'm havning trouble with the function hide because it runs twice when I would think I've only set it to run once. Here's the code in question: $(document).ready(function(){ // #region Deregister

[jQuery] Effect function runs twice

2007-01-21 Thread Jon Ege Ronnenberg
Uhh I forgot to tell ya that you can see it live here: http://www.postcards.dk/jon-test/newsletter.php Regards, Jon. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/