[jQuery] Images shrinking?!?!

2009-03-30 Thread Jen
Hi there, I have a couple of image slideshows on my site and in IE occasionally the images appear shrunk down like thumbnails instead of full size. Any ideas why that might happen and what i could do to stop it? http://www.bonsaibranding.com/riverstone/home.html Thanks Jen

[jQuery] Re: Ugly code causing problems in IE

2009-03-30 Thread bgthomson
MorningZ, For sure - there was a lot of context missing in the original post. The problem is in the load() part. In IE, when the click event loads, the fade effect malfunctions and doesn't load the content. You can see what I mean by clicking on the link edcp impact on

[jQuery] Re: Get element's html and the element

2009-03-30 Thread Steven Yang
well html() just gets the innerHTMLso your out of luck there there is actually a plugin for getting the actually container html I remember coming across it on the jquery plugin pages you can try finding it there All i can say is its doesnt seem hard, but also not as easy as you think ^^

[jQuery] Re: Why isn't there any list widget?

2009-03-30 Thread ryan.j
obviously adding content to an element is simple enough in jQuery that you don't really need a plugin to do it, and providing you have some way of tracking them removing them isn't a hassle either. what additional functionality are you looking for? On Mar 29, 5:38 am, Zach zsoa...@gmail.com

[jQuery] Re: Hide problem

2009-03-30 Thread LaUr3nTiU
Yes, floating them to the left worked, thanks :)

[jQuery] handler is undefined error

2009-03-30 Thread macsig
Hello guys, I'm trying to create an horizontal accordion using the code below: $(document).ready(function(){ lastBlock = $(#a1); maxWidth = 210; minWidth = 75; $(.accordion_trigger).hover(function(){ $(lastBlock).animate({width: minWidth+px}, { queue:false, duration:400

[jQuery] Re: JQuery form validation not working with jsp

2009-03-30 Thread Jörn Zaefferer
Looks like you copied too much demo code. Remove the errorPlacement-option - you don't have a table layout. Jörn On Sat, Mar 28, 2009 at 5:09 PM, Smruti Pragyan Misra smruti...@gmail.com wrote: Hi John,    Thanks for ur reply.presently I am able to call validate() method for both

[jQuery] Re: [Validate] Support for Validation Grouping

2009-03-30 Thread Jörn Zaefferer
You can add class=cancel to any submit button to skip validation. Jörn On Sun, Mar 29, 2009 at 6:08 AM, jmarnold rncodep...@gmail.com wrote: I'm working on integrating the validate plugin with ASP.NET. I have the basic validation working just fine but I'm running into a few limitations of

[jQuery] Re: handler is undefined error

2009-03-30 Thread Macsig
Update: looks like the issue is related to the function hover: if I change it with click I don't get the error but I want to use hover instead click Thanks for any help. On Mar 30, 1:16 am, macsig sigbac...@gmail.com wrote: Hello guys, I'm trying to create an horizontal accordion using the

[jQuery] Re: Validation

2009-03-30 Thread Jörn Zaefferer
As the author, I recommend this plugin: http://bassistance.de/jquery-plugins/jquery-plugin-validation/ You always have to write serverside validation. Clientside validation must be entirely optional. Thats pretty much all there is. Jörn On Sun, Mar 29, 2009 at 4:05 PM, iceangel89

[jQuery] .upload doesn't work on a mac??

2009-03-30 Thread 123gotoandplay
Hi all, I am having problems with //$('#upload_link').click(function() {alert(Upload clicked)}); $('#upload_link').upload({ when i use .upload it doesn't work with apple mac?? I doesn't open up the folder/file browser any tips, suggestions grtz

[jQuery] ie6 and ie7 don't load image well when using Cycle plugin

2009-03-30 Thread mangajin
I found that using cycle plugin by http://jquery.malsup.com/cycle/ is very nice while seeing the page with FF and the rest. However, ie6 and ie7 sometime can't load the slide show well. To explain in details, ie6 and 7 at the firsttime loading page can't load the image for my website. However the

[jQuery] Bugs in jquery-1.3.2-vsdoc2.js ajax events

2009-03-30 Thread hwiechers
Hi These bugs are present in vsdoc version of jquery, jquery-1.3.2- vsdoc2.js, not in jquery-1.3.2.js. The ajax events (ajaxStart, ajaxError etc.) are broken. When you try to call them you get 'f' is undefined. Looking at the offending code... //-- // [vsdoc] The following section has been

[jQuery] slideToggle: IE vs. Firefox, etc.

2009-03-30 Thread Jerry
Hi all. I'm an absolute newbie to jquery (as of about 5 hours or so), using version 1.3.2., and haven't touched any code in about 5 years. From the starterkit, I'm using the following code in a site I'm working on: $(document).ready(function() {

[jQuery] Re: ie6 and ie7 don't load image well when using Cycle plugin

2009-03-30 Thread Mike Alsup
I found that using cycle plugin byhttp://jquery.malsup.com/cycle/is very nice while seeing the page with FF and the rest. However, ie6 and ie7 sometime can't load the slide show well. To explain in details, ie6 and 7 at the firsttime loading page can't load the image for my website. However

[jQuery] Catch generic events

2009-03-30 Thread julio
Hi, in my code I use typically something like this to catch events in DOM elements: $wnd.$(document).bind('click', function(event) {...} $wnd.$(document).bind('mouseover', function(event) {...} $wnd.$(document).bind('mouseout', function(event) {...} etc. is it possible instead catch a generic

[jQuery] TreeView Appears as prepopulated

2009-03-30 Thread Coder555
Hi falks I'm using jquery treeview plug in. I'm using cookie based persistence. My problem is that when I reload the page , the treeview appears as expanded rather than collapsed. So what could be the work around for this? Please Help

[jQuery] Re: Catch generic events

2009-03-30 Thread Eric Garside
Nope. You have to specify the type of event you want to bind. On Mar 30, 8:04 am, julio antongiuli...@gmail.com wrote: Hi, in my code I use typically something like this to catch events in DOM elements: $wnd.$(document).bind('click', function(event) {...}

[jQuery] Re: .upload doesn't work on a mac??

2009-03-30 Thread 123gotoandplay
oh forgot to mention it's the upload plugin from http://www.michaelmitchell.co.nz On Mar 30, 11:14 am, 123gotoandplay wesweatyous...@gmail.com wrote: Hi all, I am having problems with //$('#upload_link').click(function() {alert(Upload clicked)}); $('#upload_link').upload({ when i use

[jQuery] Download problem UI 1.7.1

2009-03-30 Thread mick
Hi I'm trying to download a theme in jquery ui 1.7.1. version. The downloaded file is broken due to a fault in the path (in the developement directory) Anyone got this problem? Michael

[jQuery] Re: handler is undefined error

2009-03-30 Thread Eric Garside
Could you give a bit more information? I'm not exactly understanding what your issue is. On Mar 30, 4:38 am, Macsig sigbac...@gmail.com wrote: Update: looks like the issue is related to the function hover: if I change it with click I don't get the error but I want to use hover instead click

[jQuery] a keydown problem? :)

2009-03-30 Thread liec
$(window).keydown(function(e){ if (e.keyCode == 13) sendmsg(); }); It works well on firefox and chrome but It is not work on IE7.0 ?

[jQuery] Re: Download problem UI 1.7.1

2009-03-30 Thread MorningZ
There's a dedicated group for the UI stuff http://groups.google.com/group/jquery-ui?hl=en On Mar 30, 3:06 am, mick michaelsperbe...@gmail.com wrote: Hi I'm trying to download a theme in jquery ui 1.7.1. version. The downloaded file is broken due to a fault in the path (in the

[jQuery] Re: ie6 and ie7 don't load image well when using Cycle plugin

2009-03-30 Thread johan . borestad
I can only guess that you've set the loop-delay too soon, and don't control if the image have been loaded. That would explain why it looks better the next time you arrive, since the image will be in the browsercache. There's a couple of ways to go around this: 1) Load the cycle plugin onload

[jQuery] Re: a keydown problem? :)

2009-03-30 Thread ryan.j
i've lifted this from something i wrote t'other day which was working in ie7... $(document).keypress(function(e){ var key; if (!e) e = window.event if ((!e.charCode)|(e.charCode == 0)) { key =

[jQuery] Re: a keydown problem? :)

2009-03-30 Thread ryan.j
IE also had issues with $(window) over $(document) but i can't remember exactly what the problem was. On Mar 30, 2:33 pm, ryan.j ryan.joyce...@googlemail.com wrote: i've lifted this from something i wrote t'other day which was working in ie7...         $(document).keypress(function(e){      

[jQuery] Re: Images shrinking?!?!

2009-03-30 Thread johan . borestad
1) Your site doesn't validate correct 2) You're using very large images, around 450kb on frontpage = causing slowdowns, especially in IE 3) Set an correct hardcoded height/width on the images, either in the tag directly or width CSS. 4) You seems to be using some kind of filter on the footer

[jQuery] AJAX - ignore mime type

2009-03-30 Thread the_woodsman
Hi, My ajax requests return xml, with the corresponding mime type. I'm using $.get, as so: $.get( $(this).attr('href'), function(data, textStatus)

[jQuery] Re: Counting Divs (IE6)

2009-03-30 Thread johan . borestad
Does your entire page validate? No mysterious unclosed divs somewhere? Johan On 29 Mar, 18:16, lardlad chris.mloa...@gmail.com wrote: I am having a problem counting the number of divs inside a container,         var cellCount = $(#cellCont).children().length; cellCount is coming up

[jQuery] How to wait for getJSON to complete before continue?

2009-03-30 Thread iceangel89
can i want for getJSON to complete before excecuting code? cos i am validating my input. and i need some values from server 1st. so apart from putting all code that is to be executed after getJSON() inside .getJSON(url, function(json) { // *** here *** }); can i have it outside? and how can

[jQuery] Re: jqmodal Ajax issue

2009-03-30 Thread Tad
OK, I've tried the onShow and no dice. I keep getting errors that are more of an issue than the ones I'm trying to avoid. So for now I'm just going to have to live with it as is and try to make sure no one uses those links with my .pop-up class. Thanks for your input Alexandre. On Mar 25, 2:55 

[jQuery] Re: How to wait for getJSON to complete before continue?

2009-03-30 Thread Joseph Le Brech
.getJSON(url, function_name(json) {}); /* elsewhere */ function function_name(json){ } _ View your Twitter and Flickr updates from one place – Learn more! http://clk.atdmt.com/UKM/go/137984870/direct/01/

[jQuery] Re: How to wait for getJSON to complete before continue?

2009-03-30 Thread ryan.j
could you assign the data object to a global variable with the callback event? On Mar 30, 2:44 pm, iceangel89 iceange...@gmail.com wrote: can i want for getJSON to complete before excecuting code? cos i am validating my input. and i need some values from server 1st. so apart from putting all

[jQuery] Re: How to wait for getJSON to complete before continue?

2009-03-30 Thread Martijn Houtman
On Mar 30, 2009, at 3:53 PM, ryan.j wrote: could you assign the data object to a global variable with the callback event? And how would you synchronize that? I'd go for Joseph's suggestion. Regards, -- Martijn.

[jQuery] Re: How to wait for getJSON to complete before continue?

2009-03-30 Thread ryan.j
heh you're too quick for me! i realized that wasn't what he was asking about 3 seconds after hitting send :| On Mar 30, 2:55 pm, Martijn Houtman martijn.hout...@gmail.com wrote: On Mar 30, 2009, at 3:53 PM, ryan.j wrote: could you assign the data object to a global variable with the

[jQuery] Re: How to wait for getJSON to complete before continue?

2009-03-30 Thread Joseph Le Brech
get rid of the curly braces at the end of the delegate call also :) i accidentally left them in. From: martijn.hout...@gmail.com Subject: [jQuery] Re: How to wait for getJSON to complete before continue? Date: Mon, 30 Mar 2009 15:55:40 +0200 To: jquery-en@googlegroups.com On Mar 30,

[jQuery] How to access variable outside function

2009-03-30 Thread iceangel89
i sometimes do something like var i; $.getJSON(url, function (json) { // update i i = json.var; }); how can i access the updated i outside the function(json)...?

[jQuery] Re: How to wait for getJSON to complete before continue?

2009-03-30 Thread iceangel89
hmm... is there a diff bet .getJSON(url, function_name); function function_name(json) { } and getJSON(url, function(json){ ... }); On Mar 30, 10:05 pm, Joseph Le Brech jlebr...@hotmail.com wrote: get rid of the curly braces at the end of the delegate call also :) i accidentally left them

[jQuery] Re: How to access variable outside function

2009-03-30 Thread iceangel89
can i do this at all? i think maybe becos getJSON will be async, i wont be able to do this? btw, background is i am doing some validation. within this validation i need to get some value from server so i did function validate() { var validated = true; // some validation ... //

[jQuery] Re: How to wait for getJSON to complete before continue?

2009-03-30 Thread Joseph Le Brech
the first *might* use an extra cycle of processor but the reusability and readability of the code is key. the second is an anonymous function, it's not reusable as theres only one entry point. if what you are doing is a never-to-be-used again one liner go for the second option, but

[jQuery] Re: How to wait for getJSON to complete before continue?

2009-03-30 Thread Martijn Houtman
On Mar 30, 2009, at 4:16 PM, iceangel89 wrote: hmm... is there a diff bet .getJSON(url, function_name); function function_name(json) { } and getJSON(url, function(json){ ... }); Well, $.getJSON(url, function_name); function function_name(json) { ... }; and $.getJSON(url,

[jQuery] Re: How to access variable outside function

2009-03-30 Thread Martijn Houtman
On Mar 30, 2009, at 4:20 PM, iceangel89 wrote: can i do this at all? i think maybe becos getJSON will be async, i wont be able to do this? btw, background is i am doing some validation. within this validation i need to get some value from server so i did function validate() { var

[jQuery] Enable a disabled button by id

2009-03-30 Thread Thierry
I can disable button with specific id with the following code: jQuery(#click_me:button).attr(disabled, true); If I want to re-enable the button, the following doesn't work: jQuery(#click_me:button).attr(disabled, false); Does anyone know what I'm missing?

[jQuery] Re: jQuery and !important

2009-03-30 Thread segarva
Hi Martinjn, in my CSS file I have: *{ background-color:#ff!important; } .destacado{ background-color:green!important; } and, in my jQuery code: $(a).click(function(){ $(p:last).addClass(destacado); } and it's working fine! the last paragraph is converted to green using ! important and

[jQuery] Re: Enable a disabled button by id

2009-03-30 Thread Martijn Houtman
On Mar 30, 2009, at 4:44 PM, Thierry wrote: jQuery(#click_me:button).attr(disabled, false); jQuery(#click_me:button).removeAttr(disabled); Regards, -- Martijn.

[jQuery] Re: Enable a disabled button by id

2009-03-30 Thread Leonardo K
Shoud be: jQuery(#click_me:button).attr(disabled, disabled); and to re-enable jQuery(#click_me:button).removeAttr(disabled); On Mon, Mar 30, 2009 at 11:44, Thierry lamthie...@gmail.com wrote: I can disable button with specific id with the following code:

[jQuery] Re: jQuery and !important

2009-03-30 Thread Martijn Houtman
Hey Sebastian, On Mar 30, 2009, at 4:49 PM, segarva wrote: in my CSS file I have: *{ background-color:#ff!important; } .destacado{ background-color:green!important; } and, in my jQuery code: $(a).click(function(){ $(p:last).addClass(destacado); } and it's working fine! the last

[jQuery] [beginner] passing variables to a Jquery function

2009-03-30 Thread Peter Van Dijck
Hi all,I couldn't find a good answer to this, although it has probably been answered before, apologies! I have a link a id=doit href=/bla/something.php?id=123type=456do it/a And some jQuery code $(#doit).click(function(){ // upon click $.get(this.href); // call the URL

[jQuery] Dynamic Form - Best practice

2009-03-30 Thread Kreeves
There is plenty of discussion on Dynamic form validation in this group, but my question is of a slightly different nature. I'm attempting to create a page that will build the form based on user input. IE: User is prompted with one search box with several options. They can then hit an Add

[jQuery] Re: Enable a disabled button by id

2009-03-30 Thread Jonathan Vanherpe (T T NV)
Thierry wrote: I can disable button with specific id with the following code: jQuery(#click_me:button).attr(disabled, true); If I want to re-enable the button, the following doesn't work: jQuery(#click_me:button).attr(disabled, false); Does anyone know what I'm missing? I think

[jQuery] Error in IE8

2009-03-30 Thread Schockwelle
Hi, I use blockui on my website www.rbl-check.com and i have an error in the internet explorer 8. Row: 227 Sign: 17 Code: 0 URI: http://www.rbl-check.com/ajax/jquery.blockui.js In e.g. Firefox blockui works fine... Can anybody help me? Best regards from Germany

[jQuery] Catching document.forms['formid'].submit() with jquery validator

2009-03-30 Thread Yeuker
For those of you who frequent the jqueryhelp.com pages, forgive my question here as well. I am using the excellent jquery validation plugin found here: http://docs.jquery.com/Plugins/Validation It works incredibly well and am very happy with it (thanks). My problem is that sometimes my forms

[jQuery] Re: How to access variable outside function

2009-03-30 Thread Joseph Le Brech
because you are updating i asyncronously it will be overwritten asynconously. what you could do is add your purged data to an array, and read that array elsewhere in a loop. Date: Mon, 30 Mar 2009 07:20:21 -0700 Subject: [jQuery] Re: How to access variable outside function From:

[jQuery] Re: How to load redirected content in dialog?

2009-03-30 Thread Adam
Anyone? On Mar 27, 4:39 pm, Adam apcau...@gmail.com wrote: I have some content that loads in a dialog popup via ajax.  For some reason when the URL redirects (i.e. 301, 302, etc.), the content never loads in the dialog.  Is this normal behavior for ajax, or should the redirected content

[jQuery] Re: tooltip container flowing off page in Safari 4, not resizing as should

2009-03-30 Thread roryreiff
Does anyone know if this can be easily addressed? It is Safari 4 Mac, to be precise. Thanks, On Mar 10, 8:52 am, roryreiff roryre...@gmail.com wrote: Hi there, In my implementation of the tooltip plugin, I have notice that in Safari 4 the tooltip does not resize when the cursor moves

[jQuery] Re: HELP: a = $('pfoo/ppbar/p'); a.after('bxyz/b') not adding element

2009-03-30 Thread stephen
Thanks (late) to everybody for answering.Saw your posts just now. I overlooked that line in the documentation...RTFM to me! Sorry about that. However, do you know if there is another way to achieve the same result, without inserting the nodes in the DOM first? By chance, i've found the add()

[jQuery] Re: tooltip container flowing off page in Safari 4, not resizing as should

2009-03-30 Thread roryreiff
Does anyone know if this can be easily addressed? It is Safari 4 Mac, to be precise. Thanks, On Mar 10, 8:52 am, roryreiff roryre...@gmail.com wrote: Hi there, In my implementation of the tooltip plugin, I have notice that in Safari 4 the tooltip does not resize when the cursor moves

[jQuery] Re: HELP: a = $('pfoo/ppbar/p'); a.after('bxyz/b') not adding element

2009-03-30 Thread Joseph Le Brech
do not underestimate the power of $() Date: Mon, 30 Mar 2009 08:36:48 -0700 Subject: [jQuery] Re: HELP: a = $('pfoo/ppbar/p'); a.after('bxyz/b') not adding element From: stephen.cant...@gmail.com To: jquery-en@googlegroups.com Thanks (late) to everybody for answering.Saw your posts

[jQuery] Re: ie6 and ie7 don't load image well when using Cycle plugin

2009-03-30 Thread joy
Hi Johan, Thanks a lot for your reply. It's true that i should move the code for cycle plugin to onload instead of Dom ready. I did test with window.onload = functionA; However the problem is the png transparency that use my other jquery script won't load if i use window.onload =functionA; Are

[jQuery] Passing parameters to XSLT's

2009-03-30 Thread moocher
Hi, I'm writing some JQuery that uses the google plugin (http:// www.jongma.org/webtools/jquery/xslt/#demo) to call an xslt. This works great except that I need to somehow pass parameters to the xslt. I've read through the documentation and there is no mention that this can be done. Does anyone

[jQuery] Re: Get element's html and the element

2009-03-30 Thread mkmanning
Resort to wrappers :). They don't actually have to be in the DOM: var outerhtml = $('div').append($('#container').clone()).html(); outerhtml -- div id=containerall the content/div On Mar 30, 12:40 am, Steven Yang kenshin...@gmail.com wrote: well html() just gets the innerHTMLso your out of

[jQuery] [autocomplete] onselect handler

2009-03-30 Thread Diego Plentz
Hey guys, here I'm again. Is there a way to associate a callback function with the select event of an autocomplete? I want to do something like this: on select item from autocomplete, set the value of field x and hide div xpto. I looked at the format* callbacks, but it won't work in my case. Any

[jQuery] Anyone have jQuery emulation of box-sizing: border-box for IE?

2009-03-30 Thread Eric
I've searched around a bit. I can't find any jQuery script/plugin to emulate box-sizing: border-box on IE. Border-box is fantastic for form fields: .input { width: 100%; -moz-box-sizing: border-box; /* plus other vend-specific ones */ padding: 5px; } The inputs still take up 100% width

[jQuery] [tooltip]

2009-03-30 Thread jmmccoy...@googlemail.com
Hi, im using your jquery tooltip although I have a question about doing something bespoke I call the code to my page via $(function() { $('a,div,span,img,td,input').tooltip({ etc. Which works fine, however, if using ajax I populate a div with external content, any title tags from

[jQuery] Work on one specific node and not on the window.document

2009-03-30 Thread tij_dev
Hi guys ! I assume this is a really basic question but I'm a JQuery rookie :) so please be indulgent :) I would like to get an element by its id but just on a specific node. I only see on the web things like that : $(#myId). That is the equivalent of window.document.getElementById(myId). But

[jQuery] Re: Enable a disabled button by id

2009-03-30 Thread Gilles
HTML way == input type=button disabled XHTML way == input type=button disabled=disabled if you set attribute to false input type=button disabled=false Button is still disabled So like said before, remove the attribute completly :) On Mar 30, 3:47 pm, Jonathan Vanherpe (T T NV)

[jQuery] [tooltip]

2009-03-30 Thread jmmccoy...@googlemail.com
Hi, im using your jquery tooltip although I have a question about doing something bespoke I call the code to my page via $(function() { $('a,div,span,img,td,input').tooltip({ etc. Which works fine, however, if using ajax I populate a div with external content, any title tags from

[jQuery] jCarousel Flickr API /.I VANT THE FULL LIST BUT HOW??(All items not in the visible range are removed from the list to keep the list small.)

2009-03-30 Thread ::rg::
jCarousel Flickr API /.I VANT THE FULL LIST BUT HOW??(All items not in the visible range are removed from the list to keep the list small.) SOMEBODIE CAN HELP ME OUT PLESE NWITH A WERSION OF THIS SCRIPT WITHOUT REMOVING THE NOT VISISBLE PARTS... I NEED THE FULL LIST... All items not in the

[jQuery] Re: Cycle plugin adds white background in ie6 and ie7

2009-03-30 Thread Smoggy
It also seems to only be an issue with the latest release I am using an older version of cycle and it works fine I will try the issues mentioned above also. On Mar 29, 6:07 pm, Christian Cibelli chcibe...@gmail.com wrote: Hey Mike, I have the same problem on my site. I added the cleartypeNoBg

[jQuery] Re: Get element's html and the element

2009-03-30 Thread will
Thanks. I did resort to wrappers. I actually wound up going the other direction. I won't bore you with my app but I inserted an inner wrapper and then grabbed the html. $('#content').wrapInner('div id=template/div') var stuffToSave = $('#content').html(); then after some back and forth with

[jQuery] Re: Cycle plugin adds white background in ie6 and ie7

2009-03-30 Thread Smoggy
I just added cleartypeNoBg: true and that removed the background on the newest version if cycle On Mar 30, 11:47 am, Smoggy nate.scave...@gmail.com wrote: It also seems to only be an issue with the latest release I am using an older version ofcycleand it works fine I will try the issues

[jQuery] Which attributes of a file input pass to a .php or .aspx using $.getJSON() ?

2009-03-30 Thread StErMi
Hi all, i'm using jQuery to pass a file to a .php or .aspx page using $.getJSON() function. My problem is: how can i pass all the input file data to that page? Which attributes of the input file have i to pass? I think that i have to pass the name of the file ( and here ok, i can get it with

[jQuery] JQuery Cycle

2009-03-30 Thread gmca...@gmail.com
I am trying to use the JQuery Slider from http://www.malsup.com/jquery/cycle/ When i run this page in IE, the images dont load so It only has the first picture in the slide show for each example. When i tried to make a simple example it did the same thing in IE7 Everything works in Firefox,

[jQuery] Animate children of element?

2009-03-30 Thread Patrick Jarrett
What I have is a simple series of divs, and in the divs I have a few items of content, here's an example: div class=block in-focus h3Corporate Responsibility/h3 img src=place1.png width=133 height=95 pLorem ipsum dolor sit amet. Sit amo mortus

[jQuery] Using Ajax with Redirects

2009-03-30 Thread Adam
I have some content that loads in a dialog popup via ajax. For some reason when the URL redirects (i.e. 301, 302, etc.), the content never loads in the dialog. Is this normal behavior for ajax, or should the redirected content load? Thanks. a href=url_that_redirects class=myDialogdo

[jQuery] Re: simplemodal help - dynamic load of modal content breaks close button

2009-03-30 Thread dbonneville
This does not work quite yet. Anything look wrong? - #button-sales is a button on the page - in firebug, I can see all the loaded data (a small chunk of HTML) in the http-request pane, but it's only in memory - doesn't show up anywhere. How do I get the data into the #modalContentInstSales div?

[jQuery] Re: Which attributes of a file input pass to a .php or .aspx using $.getJSON() ?

2009-03-30 Thread James
You cannot upload a file using XMLHttpRequest (aka. AJAX), which means you cannot pass a file using $.getJSON(). Doing what you want to do requires a workaround for uploading files in a AJAX-style manner through using iframes. On your page you have an iframe somewhere, maybe 1x1px in size so it's

[jQuery] Re: Dynamic Form - Best practice

2009-03-30 Thread Jörn Zaefferer
There probably isn't a best practice. The example you link to is just that, an example. But I see no reason why you shouldn't use that to get started and build whatever you need above it. The validation plugin itself is a good choice anyway. Jörn On Mon, Mar 30, 2009 at 2:01 PM, Kreeves

[jQuery] Re: Catch generic events

2009-03-30 Thread James
I don't think there's a simple way for that, but you can combine them though: $(document).bind('click mouseover mouseout', function(event) {...} On Mar 30, 2:42 am, Eric Garside gars...@gmail.com wrote: Nope. You have to specify the type of event you want to bind. On Mar 30, 8:04 am, julio

[jQuery] Re: Dynamic Form - Best practice

2009-03-30 Thread Kreeves
Exactly what I wanted to know. I'm a bit new to the jQuery scene and I was not certain if there might be a cleaner way of accomplishing this behavior. Thanks! On Mar 30, 2:20 pm, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: There probably isn't a best practice. The example you link to

[jQuery] Re: Catching document.forms['formid'].submit() with jquery validator

2009-03-30 Thread Jörn Zaefferer
The only approach I see is to find all those inline event handlers and replace them with something that goes through the jQuery event chain, including validation. Something like this: $(a[onclick]).each(function() { this.onclick = function() {}; $(#form).submit(); }); Jörn On Mon, Mar 30,

[jQuery] Re: Modifying CSS classes with jQuery (or '.live()' for '.css')

2009-03-30 Thread James
Documentation: http://docs.jquery.com/CSS $(#myElem).css('color', '#ff'); It would probably be better if 'cat_[id]' is the element's ID rather than a CLASS, provided that it's unique in the whole document: div id=cat_12.../div Using that, you can easily update a whole set of 'cat_[id]' in

[jQuery] Re: $.post problem

2009-03-30 Thread James
Where are you defining the 'click'? Before the $.post, in the success callback function of $.post, or after the $.post? On Mar 28, 5:10 am, paljo constantinos_...@hotmail.com wrote: Hi, I' m using $.post in this form: $.post(rpc.php,{data:data},function (result){$('.aDiv').html(result);});

[jQuery] Re: Sync response in ajax forms

2009-03-30 Thread James
Do a search on how to use the setTimeout() function. You can set a timeout on when each of the text will be displayed. On Mar 28, 9:41 am, Josip Lazic jlaz...@gmail.com wrote: Is it possible to display response from ajax script err something like this: I call ajax.php and usually i takes

[jQuery] Re: Fire up on field focus

2009-03-30 Thread Ed J
Hi Andrea, I have updated my local version of the plugin to support the behavior that we both want. In the unminified version 1.02 of the autocomplete plugin, change line 165 from: if ( hasFocus++ 1 !select.visible() ) { to: if ( hasFocus++ 0

[jQuery] .draggableDisable vs .draggable('disable') ?

2009-03-30 Thread nmiddleweek
Hello, I've got the jQuery in Action book and it talks about .draggableDisable() but it doesn't disable the dragging in my code... I can only get it to work with .draggable('disable') Am I missing something? Thanks...

[jQuery] Basic - chaining multiple selectors?

2009-03-30 Thread M4rc0
Hi there! Please bare with me if this question is too basic :) I have the following code: $(function(){ $(form a.option).click(function(){ $(form input.fileimage:visible).slideUp(slow); $(form

[jQuery] Re: onselect handler

2009-03-30 Thread James
Use the autocomplete's 'result' function: http://docs.jquery.com/Plugins/Autocomplete/result#handler On Mar 30, 6:47 am, Diego Plentz diego.pi...@gmail.com wrote: Hey guys, here I'm again. Is there a way to associate a callback function with the select event of an autocomplete? I want to do

[jQuery] Re: [tooltip]

2009-03-30 Thread Jörn Zaefferer
Check out http://docs.jquery.com/FAQ#Why_do_my_events_stop_working_after_an_AJAX_request.3F Jörn On Mon, Mar 30, 2009 at 4:13 PM, jmmccoy...@googlemail.com jmmccoy...@googlemail.com wrote: Hi, im using your jquery tooltip although I have a question about doing something bespoke I call the

[jQuery] Re: Basic - chaining multiple selectors?

2009-03-30 Thread James
Maybe something along the lines of: $(form a.option).click(function() { var $input = $(form input.fileimage); if ( $(form input.fileimage).is(:visible) ) { $input.slideUpslow); $(this).text(I want to...); } else { $input.slideDown(slow);

[jQuery] Re: Fire up on field focus

2009-03-30 Thread Ed J
I've posted the 'single click' jquery autocomplete plugin here. Both full and minified versions are updated: http://www.edwardotis.com/public_files/js/jquery-autocompleteplugin/autocomplete-single-click-dropdown-option.zip enjoy, Ed On Mar 30, 12:41 pm, Ed J edwardo...@gmail.com wrote: Hi

[jQuery] Re: Fire up on field focus

2009-03-30 Thread Ed J
Also, I used jquery-1.3.2.js when I tested the patch. On Mar 30, 12:55 pm, Ed J edwardo...@gmail.com wrote: I've posted the 'single click' jquery autocomplete plugin here. Both full and minified versions are updated: http://www.edwardotis.com/public_files/js/jquery-autocompleteplugin/a...

[jQuery] Re: Sync response in ajax forms

2009-03-30 Thread Josip Lazic
I don't think that is solution. I need realtime response, from php script. Finding solution... Computing infi was just for example :) Real output is a bit more informational Resizing image 001.jpg... Adding do db... Resizing image 002.jpg... And so on... On Mar 30, 9:38 pm, James

[jQuery] Re: simplemodal help - dynamic load of modal content breaks close button

2009-03-30 Thread dbonneville
I have this example too. I have the data loaded, and onShow will trigger an alert if I put one in, but the close button still does not work: $(#button-sales).click(function(event) { $(#modalContentInstSales).load(includes/institutional- sales.html);

[jQuery] Re: Basic - chaining multiple selectors?

2009-03-30 Thread Ricardo
Marco, you don't need the end() in that statement you posted, that's meant to return the object to it's previous state after you do traversing/filtering on it. A condensed version: $(form a.option).click(function() { var $input = $(form input.fileimage), visible =

[jQuery] Triggering a pop up when javascript function call originates from Flash

2009-03-30 Thread RR_QQ
Ok...so I found this cool site http://dev.iceburg.net/jquery/jqModal/ I'm trying to follow an example with the javascript that looks like this: alert(called successfully); $('#ex3a').jqm({ trigger: '#ex3aTrigger', overlay: 30, /* 0-100 (int) : 0 is

[jQuery] Re: fastest way to create a million div's?

2009-03-30 Thread Hector Virgen
IMHO Canvas is still the best choice for pixel editing. Take a look at some of Google's achievements with the canvas tag: http://www.chromeexperiments.com/detail/javascript-canvas-raytracer/ -Hector On Sun, Mar 29, 2009 at 10:50 PM, Shedokan shedo...@yahoo.com wrote: thanks for all of your

[jQuery] [validate] Duplicate error msgs (and no re-validation) in FF/Opera. Works in IE6/7

2009-03-30 Thread MKDRF
I'm using the Validation plugin - http://bassistance.de/jquery-plugins/jquery-plugin-validation/ In IE6/7, it works fine. In FF/Opera, there are two (possibly related) problems: 1) If I submit the blank form, the validation seems to work. All of the required fields have the error message

[jQuery] Stop on mouseover, restart on mouseout

2009-03-30 Thread flcarneiro
I'm replacing another developer on the tail-end of a development project, and I've run into a snag. The page I'm working on has a div named media-scrollcontainer which has a property of overflow: hidden and holds another div named media-scroll. Within media-scroll are four divs which hold

[jQuery] Stop on mouseover, restart on mouseout

2009-03-30 Thread flcarneiro
I'm coming in on the tail end of the development of a site, and I'm having to replace another developer. I'm experiencing an issue with a snippet of code that causes a div to periodically move in order to show other content (similar to the main flash panel of hulu.com). There is one div named

  1   2   >