[jQuery] Re: Triggering a link with no click event

2009-01-30 Thread Andy789
As I can see quite many posts on this subject I wanted to explain why I need this. I generate links for RokBox modal window - something like test next, I need to trigger these links from jscript function (from the external flash application). I could not figure out the way how to call RokBox dir

[jQuery] Re: $.ajax bug ?!? Maybe i've not understand somethings ....

2009-01-30 Thread Ricardo Tomasi
That's a closure to save the 'callback' variable in it's own scope. Actually it's not needed :) The way that works is we create an anonymous function that will run immediately, accepting as a parameter the callback name, and then return a function which will be assigned to window[callback]; Like

[jQuery] Re: White spots while fading images

2009-01-30 Thread Samyak Bhuta
Hi Ricardo, What should be the image format ? I am using .jpg as of now. Thanks for the help. Samyak On 1/31/09, Ricardo Tomasi wrote: > > It's a known IE bug, the solutions are 1) change your image format, 2) > set the container background color to black, that will hide the > failure. > >

[jQuery] Triggering a link with no click event

2009-01-30 Thread Andy789
HI All, It could be a silly question, but I cannot find a simple answer... I need to trigger a link with href via an external function, i.e. Emulating click my link function linkClick(){ $("#test").click(); } It does not work and returns nothing. I understanbd that it is because the a#test d

[jQuery] Re: Why no padding controls for ThemeRoller?

2009-01-30 Thread Ricardo Tomasi
http://groups.google.com/group/jquery-ui On 30 jan, 23:07, ferodynamics wrote: > Maybe this is the wrong place to suggest this, but I think it would be > helpful if the ThemeRoller had some padding controls, for example, to > resize the tabs to make them bigger or smaller.  I assume this will >

[jQuery] Re: White spots while fading images

2009-01-30 Thread Ricardo Tomasi
It's a known IE bug, the solutions are 1) change your image format, 2) set the container background color to black, that will hide the failure. On 31 jan, 04:44, Samyak Bhuta wrote: > Hello All, > > I am using the animated innerfade pluggin > (http://www.openstudio.fr/Animated-InnerFade-with-JQ

[jQuery] White spots while fading images

2009-01-30 Thread Samyak Bhuta
Hello All, I am using the animated innerfade pluggin ( http://www.openstudio.fr/Animated-InnerFade-with-JQuery.html?lang=en ) to provide the image transistion using fade-in/fade-out effects. Every thing is working fine in other browser but IE is showing some white pixels here and there on the ima

[jQuery] Re: Possible remote and/or messages bug

2009-01-30 Thread James
Could you provide more information, like code and browser specs? On Jan 30, 2:21 pm, WizADSL wrote: > I wanted to post this here first and see if anyone has seen this. > This is easy to reproduce. > > The Prep: > > Create a form with a few fields, on form field 2 add > remote="somepasge.htm" an

[jQuery] [Validate] Possible remote and/or messages bug

2009-01-30 Thread WizADSL
I wanted to post this here first and see if anyone has seen this. This is easy to reproduce. The Prep: Create a form with a few fields, on form field 2 add remote="somepasge.htm" and make it required, create somepage.htm and put true as the only content of the page and of course set the for to v

[jQuery] Why no padding controls for ThemeRoller?

2009-01-30 Thread ferodynamics
Maybe this is the wrong place to suggest this, but I think it would be helpful if the ThemeRoller had some padding controls, for example, to resize the tabs to make them bigger or smaller. I assume this will require adding padding somewhere with CSS, hopefully I can make the modification within m

[jQuery] Re: cfdiv and jQuery

2009-01-30 Thread boermans
On Jan 31, 8:33 am, Richard wrote: > so I use $('.userListItem:eq(0)') to select the first occurence of a > div with the userListItem class. This doesn't work when the item is > within a cfdiv, but it does work if I put the item outside a cfdiv. > Sorry, what is a cfdiv?

[jQuery] Re: trouble with adding functions

2009-01-30 Thread James
I think that issue usually happens with and . Try adding a CSS background to the element to see how much it spans on your document, and you may see that the spans 100% horizontally. I usually find using instead to fix the issue. On Jan 30, 8:23 am, surreal5335 wrote: > Ok, well I was able to

[jQuery] Re: Using $_POST to transmit large key/pair

2009-01-30 Thread James
I think if you use the {key:val} data in $.get() it'll be considered GET data, but I haven't tried it before. On Jan 30, 2:26 pm, Mark Livingstone wrote: > ah, I thought that { key : pair } was just a replacement for > &key=pair... > > On Jan 30, 2:25 pm, Beres Botond wrote: > > > As shown in

[jQuery] Re: Using $_POST to transmit large key/pair

2009-01-30 Thread Mark Livingstone
ah, I thought that { key : pair } was just a replacement for &key=pair... On Jan 30, 2:25 pm, Beres Botond wrote: > As shown in the docs (link I gave you), it should work > > $.post("order_send_email.php", >        {order_message : order_message}, // {key : variable} >        function(data) >  

[jQuery] Re: $.ajax bug ?!? Maybe i've not understand somethings ....

2009-01-30 Thread Stefano Corallo
:) in effect i've investigated but i'm not a guru of js so i need some help ... thanks. last but not least :D can you explain this code: self[callback] = window[callback]; window[callback] = (function(callback){ return function(data){ (window[callback] = self[callback])(data);

[jQuery] Re: 1.3 and toggle()

2009-01-30 Thread John Resig
It looks like you're trying to use a jQuery UI effect - maybe that's why? --John 2009/1/30 gmacgregor : > > Consider this markup: > > > Foo > > Hello! > > > > Since upgrading to 1.3, this no longer works: > > $('div.holder h4').click(function() { >$(this).toggleClass('close'); >

[jQuery] 1.3 and toggle()

2009-01-30 Thread gmacgregor
Consider this markup: Foo Hello! Since upgrading to 1.3, this no longer works: $('div.holder h4').click(function() { $(this).toggleClass('close'); $(this).next('.bar').toggle("blind", {direction: "vertical"}, 600); return false; }); If I simply call $(this).next('.b

[jQuery] Re: jQuery Curvy Corners

2009-01-30 Thread Nikola
Thanks, I am going to take a look at this. JRC is worth mentioning as well, it's seems to be a bit faster than curvy corners but it also breaks down with nested HTML and for some reason it's interfering with the UI Dialog call... http://jrc.meerbox.nl/?p=13&cpage=1#comment-1312 Also, any input i

[jQuery] Re: problem in removing and moving

2009-01-30 Thread Ricardo Tomasi
var $fields = $('#div'); // not a good idea for an id var firstDL = $fields.find('dl:first-child')[0]; $(XXX).each(function(){ if ( $(this).prev('dl').is( firstDL ) ) blowUp(); }); or if ( $fields.index( $(this.prev('dl')[0] ) == 0 ) or if ( $(this.prev('dl')[0] == $('#div dl:first')[0]

[jQuery] Re: $.ajax bug ?!? Maybe i've not understand somethings ....

2009-01-30 Thread Ricardo Tomasi
Ah, an oversight of mine. I forgot to add the parameter when rewriting the callback. Fixed as you can see at http://jsbin.com/eliwu Never use someone else's code without inspection ;) On Jan 30, 4:34 pm, Stefano Corallo wrote: > On 30 Gen, 19:25, Ricardo Tomasi wrote: > > > We can't access th

[jQuery] Re: callback :passing $_POST values after completing form

2009-01-30 Thread James
If you're using a straight-forward form submission, make the form action submit to a script and process it server-side. If you're doing it through AJAX, the following Jquery functions maybe of use to you: serialize() : http://docs.jquery.com/Ajax/serialize serializeArray() : http://docs.jquery.co

[jQuery] Re: Having a problem with checkboxes

2009-01-30 Thread James
Which version of Jquery are you using? >From version 1.3 on has the @ in selectors deprecated, so the following is not valid anymore: $("inp...@name=paradigm]") Just remove the @. http://docs.jquery.com/Release:jQuery_1.3#Upgrading On Jan 30, 5:27 am, heohni wrote: > Hi, > > I am using this

[jQuery] cfdiv and jQuery

2009-01-30 Thread Richard
Hi All, I have a cfdiv which is bound to a page that displays the results of a query. on the same page as the cfdiv I have a form which get submited using ColdFusion.Ajax.submitForm once the process has been finished I use ColdFusion.navigate to refresh the cfdiv to display the updated query resu

[jQuery] Re: How PHP script can return two variables ?

2009-01-30 Thread James
I prefer this JSON method also. Just remember to define the dataType as JSON! I've made mistakes many time of forgetting that and keep wondering why my JSON objects are always undefined. On Jan 30, 10:01 am, Eric Garside wrote: > That XML is a lot of unnecessary work. If you're running with PHP

[jQuery] Re: Damn ie7!

2009-01-30 Thread david.0pl...@gmail.com
Ok, thank you very much i got this! Also, just to know is there any site/books that specifically 'speaks' about the limitations of the various web browsers? On Jan 30, 8:31 pm, MorningZ wrote: > So what he talks about > > function showHide() { >   if ($(this).val() == "1") { $('#datasingola').hi

[jQuery] Re: Superfish IE6

2009-01-30 Thread usableweb
I'm having a very similar problem. Here's a short screencast of the issue. http://screencast.com/t/ifi0GiudW First, I show how the menus are supposed to work (in Firefox), then I flip over to Internet Explorer 6. Thanks for any help anyone can provide.

re[jQuery] trieve $_POST vars after submit

2009-01-30 Thread megakiek
this is me using jquery for the first time, and i found the following script that's working. But there is a problem on what to do now. when the required fields are filled correctly, I receive the message that it is correct... but i would like that the page is redirected, together with the inputt

[jQuery] Re: problem in removing and moving

2009-01-30 Thread Jack Finger
Anybody knows?

[jQuery] Re: jQuery + Cycle Pager Nav Issue in IE

2009-01-30 Thread Matt M.
Thanks, Mike. That was it. I appreciate the help! On Jan 30, 12:08 pm, Mike Alsup wrote: > > I'm having a weird problem where IE is adding twice as many nav pager > > elements. As you can see, the script works nicely in FF/Safari, but > > when viewed in IE, the nav gets wonky. I'm having troub

[jQuery] Re: jQuery + Cycle Pager Nav Issue in IE

2009-01-30 Thread Mike Alsup
> I'm having a weird problem where IE is adding twice as many nav pager > elements. As you can see, the script works nicely in FF/Safari, but > when viewed in IE, the nav gets wonky. I'm having trouble figuring it > out, so any help is appreciated. Thanks! > > http://70.32.114.139/bases/naval-base

[jQuery] jQuery + Cycle Pager Nav Issue in IE

2009-01-30 Thread Matt M.
I'm having a weird problem where IE is adding twice as many nav pager elements. As you can see, the script works nicely in FF/Safari, but when viewed in IE, the nav gets wonky. I'm having trouble figuring it out, so any help is appreciated. Thanks! http://70.32.114.139/bases/naval-base-kitsap-ban

[jQuery] jQuery + Cycle Plugin (Duplicating Problem with Pager Anchors in IE)

2009-01-30 Thread Matt M.
I'm having an issue where the pager is building twice as many anchors as there are pics. I only have this issue in IE. The script is working great in FF/Safari. You can see the difference on the page below. Any help is appreciated. Thanks! http://70.32.114.139/bases/naval-base-kitsap-bangor (Usi

[jQuery] Re: How PHP script can return two variables ?

2009-01-30 Thread Eric Garside
That XML is a lot of unnecessary work. If you're running with PHP5, simply print on success: echo json_encode(array('success' => true, message => '')); or on failure: echo json_encode(array('success' => false, message => '')); And for the jQuery bit: $.post('somurl.php', function (data){

[jQuery] Re: Getting the height of a hidden div in Firefox

2009-01-30 Thread rob303
Oh, one other thing. If I call .css('display', 'block') on the element before using height() FF gives me the correct value of 240px. Obviously, that breaks the accordion because I want the element hidden! /me scratches head ... Rob. On Jan 30, 7:57 pm, rob303 wrote: > Thanks for the reply Eri

[jQuery] Re: Getting the height of a hidden div in Firefox

2009-01-30 Thread rob303
Thanks for the reply Eric. But what have different box models got to do with it? I'm not setting any border or padding properties on my hidden div that would effect the height. And the difference between the two browsers is huge. IE says 240px and FF says 160px. I certainly don't have 80px wor

[jQuery] Re: jquery slider- make handle clickable

2009-01-30 Thread m...@fonolo.com
Ah- nice- that makes sense- changing it to values worked- Now, is there a way to actually get the index of the handle that was clicked on? short of just figuring it out based on the start value? Thanks for all your help Richard, Mike On Jan 29, 8:22 pm, "Richard D. Worth" wrote: > On Thu, Ja

[jQuery] Re: Getting the height of a hidden div in Firefox

2009-01-30 Thread Eric Garside
Different box models. I'd read up more on the difference between the IE/FF box models to point you in the right direction. I'd give you a quick tutorial, but I get out at 3 on Fridays! :D On Jan 30, 1:52 pm, rob303 wrote: > Hi, > > I've been working on this for days.  The chaps on IRC couldn't f

[jQuery] Re: Damn ie7!

2009-01-30 Thread MorningZ
So what he talks about function showHide() { if ($(this).val() == "1") { $('#datasingola').hide('slow'); } } and then Nessuno..Ciao... takes the out of the equation, which as you are finding out, isn't very manipulatable in IE On Jan 30, 1:43 pm, GreatBigBore wrote: > If adding a click

[jQuery] Re: Using $_POST to transmit large key/pair

2009-01-30 Thread Beres Botond
As shown in the docs (link I gave you), it should work $.post("order_send_email.php", {order_message : order_message}, // {key : variable} function(data) { alert(data); // do something }); On Jan 30, 4:03 pm, Mark Livingstone wrote: > Thanks, B

[jQuery] Re: what would be the opposite of top.frames as a jquery selector context?

2009-01-30 Thread jquertil
it ended up being quite easy actually: $('#'+self.name, top.document).hide(); usually whenever I try to so something and it requires more than 1 line of code it's my fault, not jquery's...

[jQuery] Re: Can JQuery solve the iframe height=100% problem?

2009-01-30 Thread jquertil
I think you're going down the wrong path - you shouldnt need to script anything to get a CSS attribute to work. usually when I run into this problem it is because somewhere in my document tree there is a parent lement that has no height attribute set. So if you have html > someDiv > anotherDiv >

[jQuery] Getting the height of a hidden div in Firefox

2009-01-30 Thread rob303
Hi, I've been working on this for days. The chaps on IRC couldn't find an answer so I thought I'd post it here just in case anyone knows what's going on. I have a basic accordion type feature. The designer wants to be able to open more than one of hidden the sections at once ... So, here is m

[jQuery] Re: Unload issue with Firefox

2009-01-30 Thread dberthia
Thanks, Ricardo. I'll give that a look. On Jan 30, 12:31 pm, Ricardo Tomasi wrote: > jQuery will remove all event handlers on unload to avoid memory leaks. > > You should consider event delegation, see the docs for > live():http://docs.jquery.com/Events/live > It will speed up your loading/unlo

[jQuery] Re: Damn ie7!

2009-01-30 Thread GreatBigBore
If adding a click handler in $(document).ready() doesn't work, you could always add a change handler to the and just check the value. I did this in a recent project and it works fine.

[jQuery] Re: Damn ie7!

2009-01-30 Thread GreatBigBore
I have found that IE7 is very uncooperative about nodes. I recommend that you remove onClick, and attach the click handler inside $(document).ready(). Good luck.

[jQuery] Re: $.ajax bug ?!? Maybe i've not understand somethings ....

2009-01-30 Thread Stefano Corallo
On 30 Gen, 19:25, Ricardo Tomasi wrote: > We can't access the success function of the $.ajax call without > messing with jQuery source code, because the vars that name it are > inside the jQuery function scope. > ok > In JSONP, the JSON object is passed as an argument to the callback > functio

[jQuery] Re: Unload issue with Firefox

2009-01-30 Thread Ricardo Tomasi
jQuery will remove all event handlers on unload to avoid memory leaks. You should consider event delegation, see the docs for live(): http://docs.jquery.com/Events/live It will speed up your loading/unloading times considerably. cheers, - ricardo On Jan 30, 2:58 pm, dberthia wrote: > I've got

[jQuery] Re: $.ajax bug ?!? Maybe i've not understand somethings ....

2009-01-30 Thread Ricardo Tomasi
We can't access the success function of the $.ajax call without messing with jQuery source code, because the vars that name it are inside the jQuery function scope. In JSONP, the JSON object is passed as an argument to the callback function. In the example I posted: jsonFlickrFeed = function(dat

[jQuery] Re: validation with jquery 1.3

2009-01-30 Thread Jörn Zaefferer
Have you updated to 1.5.1? http://bassistance.de/2009/01/14/releases-jquery-13-and-validation-plugin-151/ Jörn On Fri, Jan 30, 2009 at 5:17 PM, andré wrote: > > Hello, > Thanks for your fabulous validation form. > But I 've a problem.When I use jquery 1.2.6, my form works well on IE, > firefox

[jQuery] Re: trouble with adding functions

2009-01-30 Thread surreal5335
Ok, well I was able to get to work, but I cant figure out now how to reduce the hover area. For some reason hovering on any part of the screen that is horizontal with the text will cause the hover event to trigger. How can I stop this? This the current jquery haddling the event $("p#make

[jQuery] Unload issue with Firefox

2009-01-30 Thread dberthia
I've got a jQuery 1.2.6 script that attaches a click handler to every hyperlink on a page. We have a small number of pages where the number of link are massive (5000+, and yes I know this is ridiculous). On these pages, when I try to navigate AWAY from them, Firefox will be unresponsive for a coup

[jQuery] Re: How PHP script can return two variables ?

2009-01-30 Thread GreatBigBore
Have your PHP script return an XML document, and then parse that XML with JQuery: PHP: /* */ $document = DOMImplementation::createDocument(); $document->formatOutput = true; $document->preserveWhitespace = true;

[jQuery] Damn ie7!

2009-01-30 Thread david.0pl...@gmail.com
Hi to everybody, it's my first post here so it's nice to introduce myself: "my name is David, i currently live in Italy, nice to meet you all and many thank for this wonderful jquery!". I'm starting to get a grasp of jquery (i used prototype before and i find jquery a lot more easy to work with) b

[jQuery] Re: Condense this function

2009-01-30 Thread Ricardo Tomasi
Well, it's simply a matter of choice. Using setTimeout is shorter, simpler, more readable and offers the same performance. I consider these advantages. Maybe in some other context setInterval would be a better fit, but in this case I'd go for simplicity. cheers, - ricardo On Jan 30, 3:56 am, Ro

[jQuery] Re: How PHP script can return two variables ?

2009-01-30 Thread Nguyễn Quốc Vinh
Very simple! Please use JSON to return JSON string! With JSON, we can return value easier than XML! With XML, you must echo correct tag=)) 2009/1/31 GreatBigBore : > > Have your PHP script return an XML document: > > PHP: > >/* > > > >*/ >$

[jQuery] Re: next() working in ff but not in iex

2009-01-30 Thread Ricardo Tomasi
That's invalid mark-up, you can only have LIs as child elements of a list. The browser is creating a LI and putting those DIVs inside, that's why you're not finding them. Your code should be like this: Analysis Lorem Ipsum .. On Jan 30, 9:35 am, elduderino wrote: > H

[jQuery] trouble with adding functions

2009-01-30 Thread surreal5335
I am having troubles trying to get this function to work. I got the first part to work but trying to get the take a whole nother action upon hover out. Here is the jquery I am using $("p#makered").hover(function(){ $(this).addClass("red"); }, function() {

[jQuery] Re: Form Plugin with file upload

2009-01-30 Thread phicarre
Hi Mike, This thread seems to be similar to my problem submitted by email (subjet: about url) On 30 jan, 18:37, Mike Alsup wrote: > > No, you are not supposed to do anything at all with the iframe.  The > > plugin handles all of that for you.  I'll try to take a look at your > > page tomor

[jQuery] Re: noob question

2009-01-30 Thread Bohdan Ganicky
Hi bart, let me cite from the spec: "get(): Access all matched DOM elements. This serves as a backwards- compatible way of accessing all matched elements (other than the jQuery object itself, which is, in fact, an array of elements). It is useful if you need to operate on the DOM elements themsel

[jQuery] Re: How PHP script can return two variables ?

2009-01-30 Thread GreatBigBore
Have your PHP script return an XML document: PHP: /* */ $document = DOMImplementation::createDocument(); $document->formatOutput = true; $document->preserveWhitespace = true; $functionResult = $document->createEl

[jQuery] Attribute selectors different for XML than for HTML?

2009-01-30 Thread GreatBigBore
I ran into a problem today trying to select elements in an XML tree. I finally got it to work, but I had to make my XML handling different from my HTML handling. Can someone help me to understand whether this is a jquery bug or just a gap in my understanding? To select my desired node in my HTML

[jQuery] Re: Change URL in beforeSend

2009-01-30 Thread vtjiles
Figured out a way to do this so wanted to update with what I found. This basically cancels the initial request and creates a new one with all the same values except what you override in the extend function. By doing this, any callback functions, etc, are kept. In addition, I put in an 'if' statem

[jQuery] Re: Form Plugin with file upload

2009-01-30 Thread Mike Alsup
> No, you are not supposed to do anything at all with the iframe.  The > plugin handles all of that for you.  I'll try to take a look at your > page tomorrow. Well, I have to admit that I'm not sure why your page isn't working. However, I did create a very simple test case here: http://jquery.m

[jQuery] Re: cancel jQuery binded event handlers

2009-01-30 Thread Dave Methvin
> Exactly. Does any body know how can I reach jQuery created event > object in first handler. I think this could be a solution... Event delivery order is an implementation detail so you can't be guaranteed which will fire first. However, if the a4j handler is set by the time .ready() fires you co

[jQuery] Re: validation plugin: how to add custom messages for groups

2009-01-30 Thread Mihai Danila
Sorry, the third validator must only get "activated" if both are empty (in other words, it must return true if either is not empty): function validateNameInputs(value, element) { return firstNameInput.value || lastNameInput.value; } On Jan 30, 11:19 am, Mihai Danila wrote: > There was a small

[jQuery] [autocomplete] making it work with JSON web service data source

2009-01-30 Thread Nekura Neko
I'm trying to replace a MS AJAX.NET autocomplete control with something a bit lighter and more cache-and-compress friendly and I really love how smoothly the Autocomplete plug-in generally works (http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/). I had to change a couple of things

[jQuery] Large images IE ready event

2009-01-30 Thread Alex
In IE 6 through 8, whenever I use $(document).ready(function(){ });, it doesn't get triggered if there are still images trying to load. I use a graphic engine to draw huge graphs and it can take up to 5 seconds parsing the images and the code between the ready event doesnt get triggered until the

[jQuery] Re: jQuery Curvy Corners

2009-01-30 Thread Rusco
Hi, I also tried a lot of rounded corners plug-ins and found out that each one reveals its weakness once you begin nesting html-tags and messing around with css. The only somewhat reliable rounded corners plugin is imho: http://labs.parkerfox.co.uk/cornerz/ Rusco. On 30 jan, 07:57, Nikola

[jQuery] How PHP script can return two variables ?

2009-01-30 Thread FlashWebHost.com
I use jQuery $.ajax to submit user comment to a PHP Script. The PHP script validate the user data, if it is OK, user comment is written to mysql database. If not it will show error message. Now the script print error message and success message same way. I need PHP script pass one more value, t

[jQuery] validation with jquery 1.3

2009-01-30 Thread andré
Hello, Thanks for your fabulous validation form. But I 've a problem.When I use jquery 1.2.6, my form works well on IE, firefox and safari. But When I use jquery 1.3 in IE the error message doesn't work Can you help me ? my script : $().ready(function() { // validate signup form on keyup

[jQuery] noob question

2009-01-30 Thread bart
Somehow I don't get the concept of get() right. The following expression gives an error; $('p.fl').get(0).css('background', 'red'); Now what I'm trying to do here is select the first paragraph from all the paragraphs with a class of "fl". After that I'm just trying to get a visual id by making i

[jQuery] Re: [treeview]

2009-01-30 Thread himanshu khatri
exactly the point.. the file is there...its just being blocked or something but the webhost... On Fri, Jan 30, 2009 at 9:11 PM, Jörn Zaefferer < joern.zaeffe...@googlemail.com> wrote: > > The jquery.cookie.js file is missing. You didn't upload it, or it > links to the wrong location. > > Jörn

[jQuery] Re: validation plugin: how to add custom messages for groups

2009-01-30 Thread Mihai Danila
There was a small typo in validateLastNameInput. Here's the corrected code. jQuery.validator.addMethod('first-name-input', validateFirstNameInput, 'First name is missing.'); jQuery.validator.addMethod('last-name-input', validateLastNameInput, 'Last name is missing.'); jQuery.validator.addMetho

[jQuery] Re: validation plugin: how to add custom messages for groups

2009-01-30 Thread Mihai Danila
I think you can put three validators on the fields, with jQuery.validator.addMethod. I don't know if you can add multiple validators for the same CSS class, so I'm putting extra CSS classes on the inputs: jQuery.validator.addMethod('first-name-input', validateFirstNameInput, 'First name is mis

[jQuery] Re: [jquery.form.js v2.18] file upload field and standard fields

2009-01-30 Thread phicarre
I replace my code by this one: "; var_dump($_POST); ?> and the result is: VAR DUMP:array(3) { ["nom"]=> string(0) "" ["prenom"]=> string(0) "" ["MAX_FILE_SIZE"]=> string(6) "10" } File: 2.gif (6160 bytes)VAR DUMP:array(3) { ["nom"]=> string(0) "" ["prenom"]=> string(0)

[jQuery] Re: Jquery remove dd problem

2009-01-30 Thread NicholasPufal
Yes. That was the problem. After I did post it here, I did realize the dumb mistake I've done :ninja: Thanks a lot for the reply! amuhlou wrote: > > > It looks like $("#list_sucesso dt dd").remove(); is the problem. The > way you've written the selector, it would look inside the for the

[jQuery] Re: All is well except in IE - links initially not clickable

2009-01-30 Thread precar
Hi, Yes, I'm using the bind() method with 'click'. Is that the correct approach? Precar. On Jan 28, 9:47 am, amuhlou wrote: > It looks like it's not appending the "selected" class to the li > onClick in IE7.  Are you using the bind() method to apply the click > functionality? > > On Jan 28,

[jQuery] Re: Having a problem with checkboxes

2009-01-30 Thread heohni
Does it work, to write all checked id's into a hidden field? Which then gets submitted? On 30 Jan., 16:27, heohni wrote: > Hi, > > I am using this: > > > > $(document).ready(function(){ >         $("#paradigm_all").click(function(){ >                 var > checked_status=this.checked;$("inp...

[jQuery] Re: changing value of hidden input

2009-01-30 Thread Michael
Anyone? I've been playing around with it, and the following will work if I want to set the hidden value to "test"... $("#account").result(function(event, data, formatted) { $("#account_value").val("test"); }); ...but I'm still not sure how to get the value from the "id" key value of the

[jQuery] Re: [treeview]

2009-01-30 Thread Jörn Zaefferer
The jquery.cookie.js file is missing. You didn't upload it, or it links to the wrong location. Jörn On Fri, Jan 30, 2009 at 3:48 PM, himanshu khatri wrote: > jorn didnt quiet get what you meant... > the only hint i have found is > http://drupal.org/node/271463 > > i hope this helps ot

[jQuery] Having a problem with checkboxes

2009-01-30 Thread heohni
Hi, I am using this: $(document).ready(function(){ $("#paradigm_all").click(function(){ var checked_status=this.checked;$("inp...@name=paradigm]").each (function(){ this.checked=checked_status; }); }); }); to check and u

[jQuery] Initial Event Registration

2009-01-30 Thread James Hughes
Hi, Is there a plugin kicking around anywhere that would let me declare events on object in a more declarative manner eg instead of $('#button1').click(function(){..}).blur(function(){...}) $('#button2').click(function(){..}) etc etc $('#button3').click(function(){..}) Doing it this way $

[jQuery] Re: [treeview]

2009-01-30 Thread himanshu khatri
jorn didnt quiet get what you meant... the only hint i have found is http://drupal.org/node/271463 i hope this helps others aswell who have this error>> $.cookie is not a function On Fri, Jan 30, 2009 at 7:30 PM, Jörn Zaefferer < joern.zaeffe...@googlemail.com> wrote: > > See http://

[jQuery] Re: Jquery remove dd problem

2009-01-30 Thread amuhlou
It looks like $("#list_sucesso dt dd").remove(); is the problem. The way you've written the selector, it would look inside the for the to remove. $("#list_successo dl dd").remove(); should get the one you're after.

[jQuery] Editable new feature $(selector).editable('disable')

2009-01-30 Thread a.karimzadeh
This new version of editable supports $(selector).editable(options) $(selector).editable('disable') $(selector).editable('enable') $(selector).editable('destroy') for more information check: http://arashkarimzadeh.com/index.php/jquery/7-editable-jquery-plugin.html or read how to extend for suppo

[jQuery] Re: High Point Village Website

2009-01-30 Thread kim3er
Thanks mcologne, appreciated. On Jan 30, 2:09 pm, mcologne wrote: > nice work, i like it! > > without going into details of programming, the site differs from that > classic style often seen > nowadays on many websites... > > you know what i mean... buttons, tabs... > > i like the big graphics i

[jQuery] Re: High Point Village Website

2009-01-30 Thread kim3er
Thanks for your feedback. With this project we wanted to create something that was interesting to but still functional without reliance on either JS or Flash. The end result, I hope, is a website that is functional and fully styled without JS turned on. With JS turned on, the site becomes more in

[jQuery] Re: High Point Village Website

2009-01-30 Thread mcologne
nice work, i like it! without going into details of programming, the site differs from that classic style often seen nowadays on many websites... you know what i mean... buttons, tabs... i like the big graphics in the backgrounds... best regards m cologne On Jan 30, 2:38 pm, kim3er wrote: >

[jQuery] Re: Using $_POST to transmit large key/pair

2009-01-30 Thread Mark Livingstone
Thanks, Beres. I am reading this order_message from a DIV. How do I 'POST' it? By using form? Also, to url encode... do I use "escape()"? On Jan 30, 3:08 am, Beres Botond wrote: > You want to use POST, but you are sending your data as GET (without > url encoding). > So I'm pretty sure it

[jQuery] Re: Problem with superfish example

2009-01-30 Thread Kieren
Cheers I think my IE6 problem was due to not having the right path to jquery specified in the tag too. So using IE7 fixed that as a side- effect. I might have a Z index problem to ask shortly, but I'll save that for a time other than 1am :) On Jan 30, 9:58 pm, Joel Birch wrote: > Hi Kieren,

[jQuery] Re: validate the field, but not required

2009-01-30 Thread Jörn Zaefferer
Using the validation plugin (http://bassistance.de/jquery-plugins/jquery-plugin-validation/), just specify rules for fields, but leave out required: jQuery.validator.addMethod("lettersonly", function(value, element) { return this.optional(element) || /^[a-z]+$/i.test(value); }, "Letters o

[jQuery] Re: [treeview]

2009-01-30 Thread Jörn Zaefferer
See http://www.trinityindia.org/jquery.cookie.js Jörn On Fri, Jan 30, 2009 at 11:05 AM, kryptos wrote: > > Greets ... > > when i run the tree~menu locally .it works like a breeze. > when i load it up on the webserverit freezes.firebug tells me > the error is at line 176 in >> jq

[jQuery] Jquery remove dd problem

2009-01-30 Thread NicholasPufal
Hi, I'm currently using the plugin jQueryForm. With it I want to retrieve some info from the Ajax request. In order to do that, each time the user submit the form, I need to clean the information retrieved previously. In my XHTML code I have some div in charge of those messages, which is this:

[jQuery] jqUploader using action does not work with HTTP.

2009-01-30 Thread Zerutreck
This form action not working: http://localhost/argofile/ index.php/upload/do_upload" method="POST" class="a_form"> I'm using code igniter framework, this type of url is the path for the "file" : http://localhost/argofile/index.php/upload/do_upload When i click the upload button, this error happe

[jQuery] Re: Long Image Scroller (jCarousel)

2009-01-30 Thread Liam Byrne
Glad to help! Use the background-image approach is only to make calculating the position easier - it allows you to use percentages and avoid messy calculations. But as long as it was some help to you. Liam Sbudah wrote: I declare you a God. It works although I still need to change it from

[jQuery] Re: High Point Village Website

2009-01-30 Thread kim3er
Thanks for the feedback. Things get a bit shaky in FF2 & FF3, I understand this is because FF redraws every frame of an animation. The sole occasion I've encountered when ie6 provides a better end result, though I'm sure Mozilla have there reasons. In order to improve things on the home page, a co

[jQuery] Re: Delay triggering modal on mouseover

2009-01-30 Thread Richard D. Worth
hoverIntent is your guy http://plugins.jquery.com/project/hoverIntent - Richard On Thu, Jan 29, 2009 at 11:21 PM, jdinkelmann wrote: > > Hi I have been searching for a way to not fire off the displaying of a > popup/modal box on mouse over. I have found a couple things that get > me halfway,

[jQuery] Re: High Point Village Website

2009-01-30 Thread kim3er
Thank you for the feedback, it really is very much appreciated. I'm aware of the considerable amount of requests, especially with respect to the amount of JS files we have referenced. Rich On Jan 29, 8:50 pm, Sam Sherlock wrote: > That is a great piece of work, a huge amount of http requests - b

[jQuery] Re: High Point Village Website

2009-01-30 Thread kim3er
Hi ksun, Thanks for the feedback. There are two intros, one constructed in JS and one for users with flash installed, browsers with JS disabled will not see an intro. I have tested the intros in ie6, ie7, ie8rc1, ff2, ff3, s3, c1 and 09, across XP, Vista, OS X and Ubuntu. Is your experiance cont

[jQuery] Re: issue with ajax function

2009-01-30 Thread Beres Botond
Yes, jquery tries to interpret it as JSON data, but that is XML and not JSON, thus the 'parserror'. XML that contains JSON in its "string" node. You should set your datatype to xml, but even then I'm not sure if that will work quite well. In best case you can extract the value of xml string node

  1   2   >