[jQuery] thickbox popup window loses scrollbars in IE7

2008-12-12 Thread JP
thickbox (3.1) popup window loses scrollbars in IE7 has anyone got a solution for this ?

[jQuery] Re: passing args to a delegate

2008-12-12 Thread Mike Nichols
Try this: success: function() { registerImageForms(id,key,type); } On Dec 12, 5:13 pm, "Jan Limpens" wrote: > Hello, > > I have the following code: > > var registerImageForms = function(id, key, type) { >     var sizes = ['small', 'medium', 'large']; >     $('#panel-images fieldset:visible').re

[jQuery] Re: Problems selecting elements...

2008-12-12 Thread SLR
Alright, I'm really confused now. On my index page, the body tag has an ID with a value of "Link0." On this page it works fine; only the first link in the navigation section is changed. Now on all the other pages where the body tag ID is another number (i.e. Link1, Link2, etc), everything just fa

[jQuery] Re: nextAll Chaining when nextAll is Empty

2008-12-12 Thread Reepsy
Ricardo, Sorry, but it is a development stage I am not permitted to share. But the markup is this (basically): HTML (this was a select menu that gets converted to a hidden field and 5 tags in an earlier step) 1 2 3 4 5 JS: var r = $('#the-rating'); /* THE HIDDEN FIELD STORES RATING */ $('a.

[jQuery] Re: Problems with more than one AJAX request at a time

2008-12-12 Thread hotdog...@gmail.com
On Dec 12, 5:07 pm, "Josh Nathanson" wrote: > It looks like what you are doing there is called long polling, check this > out: > > http://en.wikipedia.org/wiki/Comet_(programming) > > -- Josh Ah, thanks for pointing me to that. Unfortunately, it doesn't seem to work in jQuery. As far as I can t

[jQuery] Re: JQuery is really a nice tool

2008-12-12 Thread Charlie Griefer
yeah, i'm guessing this was little more than just some spam for the URL in question. On Fri, Dec 12, 2008 at 5:21 PM, Geuis wrote: > > Ok, there's no freaking jquery on that page. More so, the html of the > page is absolutely HORRIBLE. Right-click disabled. Html above the > doctype. No closing b

[jQuery] Problems selecting elements...

2008-12-12 Thread SLR
I've been beating my head over this code for quite some time. I was hoping somewhere here can send me on the right direction... Here is my jQuery Code: $(document).ready(function() { // Dynamically Configures the active link based on ID attribute in body tag var pageIndex = $("body").attr(

[jQuery] Re: JQuery is really a nice tool

2008-12-12 Thread Geuis
Ok, there's no freaking jquery on that page. More so, the html of the page is absolutely HORRIBLE. Right-click disabled. Html above the doctype. No closing body or html tags. On Dec 12, 10:30 am, Sid wrote: > Just look at this URLhttp://googlelance.com > > You see the login and button click on i

[jQuery] nested tabs

2008-12-12 Thread lukas
Does anybody know about a lightweight nested tab solution? I don't need any easing gimmicks. I also stumbled over ajaxtabs (http:// www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/ajaxtabs_suppliment2.htm) Thank you!

[jQuery] Dequeue Animations with multiple Aniamtions Occuring at the Same Time (JCarousel)

2008-12-12 Thread Jason
To see my current bug, click multiple thumbnails in rapid succession and notice the scrolling effects above - the animations will go out of sync. Demo page: http://www.jasonstockman.com/mockup/help.html JS: http://www.jasonstockman.com/mockup/js/custom2.js LINES 33 - 72 Upon initializing the 2

[jQuery] passing args to a delegate

2008-12-12 Thread Jan Limpens
Hello, I have the following code: var registerImageForms = function(id, key, type) { var sizes = ['small', 'medium', 'large']; $('#panel-images fieldset:visible').remove(); $.each(sizes, function(i, item) { var $clonedForm = $('#panel-images fieldset:hidden').clone();

[jQuery] Re: Problems with more than one AJAX request at a time

2008-12-12 Thread Josh Nathanson
It looks like what you are doing there is called long polling, check this out: http://en.wikipedia.org/wiki/Comet_(programming) -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of hotdog...@gmail.com Sent: Friday, December 12, 2

[jQuery] Re: radio value on submit

2008-12-12 Thread Kaleb Pomeroy
$("input[name='transmission']:checked").val() On Dec 12, 2008, at 3:48 PM, Chiste wrote: > > I have a problem here. No matter which radio a click, I'm always > getting the value of the firts one. How could I get the value of the > selected radio? > > > One > Two > Three label> > Four label>

[jQuery] Re: Problems with more than one AJAX request at a time

2008-12-12 Thread hotdog...@gmail.com
On Dec 12, 1:02 pm, "Josh Nathanson" wrote: > Yes, you should be able to fire the other requests.  Maybe you could post a > little code. Ah, thank you for your quick response! Here's the relevant part of my code: http://paste2.org/p/114906 This is in the section of my page. What I'm trying to d

[jQuery] Re: radio value on submit

2008-12-12 Thread Charlie Griefer
var tran = $("input:radio[name='transmission']:checked").val(); On Fri, Dec 12, 2008 at 1:48 PM, Chiste wrote: > > I have a problem here. No matter which radio a click, I'm always > getting the value of the firts one. How could I get the value of the > selected radio? > > > One > Two > Three

[jQuery] radio value on submit

2008-12-12 Thread Chiste
I have a problem here. No matter which radio a click, I'm always getting the value of the firts one. How could I get the value of the selected radio? One Two Three Four Five $("#continuar").click( function(){ var tran = $("input:radio[name='transmision']").val();

[jQuery] Re: Konqueror problems?

2008-12-12 Thread John Moore
2008/12/12 MorningZ > > "Are there known problems with Konqueror?" > > To start with, it's not supported > > http://docs.jquery.com/Browser_Compatibility > > "jQuery generally works with Konqueror and Firefox 1.0.x, but there > may be some unexpected bugs since we do not test them as regularly as

[jQuery] Re: BlockUI unchecks checkboxes

2008-12-12 Thread Mike Alsup
> " Could you possibly post a demo page somewhere?" > > Mike, this code:http://paste.pocoo.org/show/95075/ > > shows what he means, i even tried to change ".click" to ".change" and > it still never checks the box Why can't I duplicate this behavior? http://www.malsup.com/jquery/block/dec12.

[jQuery] Re: Confused by Hierarchal Selectors

2008-12-12 Thread MorningZ
Think of a family tree: "Parent > Child" will select items under the parent that are *only directly* children of the parent (hence the term "children") "ancestor descendant" will select *any* descendant under the parent (so it could be a child, grandchild, grandchild's child, etc etc so with

[jQuery] Re: validation plugin question

2008-12-12 Thread Jörn Zaefferer
In that demo this line hides the default messages for the required method: $.validator.messages.required = ""; Jörn On Fri, Dec 12, 2008 at 9:17 PM, Sean Allen wrote: > > playing around with it. > > don't want to get error messages displayed. > > i'm just putting in a general error message at t

[jQuery] Re: jQuery selector fails when in FOR loop

2008-12-12 Thread MorningZ
Can you show what your for loop currently looks like? Answer for question #2: using the ".each" method, a paramenter is passed to the anonymous function that is the current 0-based index of the item in the collection without seeing your code, i will take a guess at helping you though $("div[

[jQuery] jQuery selector fails when in FOR loop

2008-12-12 Thread raskren
I have a set of s that are created using jQuery. My script sets an ID for each and appends a counter variable to this ID. For example, defName0, defName1, defName2, etc. Within the same for loop that generates the IDs I would also like to assign a jQuery function to the header. However, it see

[jQuery] DOM not populating in IE7

2008-12-12 Thread Ishmael
Hi, I'm trying to implement jCarousel with some additional features like displaying titles on hover. I have it set to circular mode and am dynamically populating the list using javascript. Everything renders fine in Firefox, however in IE7 the DOM doesn't get populated correctly and I just end up

[jQuery] Confused by Hierarchal Selectors

2008-12-12 Thread bram1028
I'm confused by two of the hierarchal selectors: "ancestor descendant" and "parent > child". From the documentation and samples, they seem to provide the same results. Am I missing something? Thanks for anyone who can clarify these.

[jQuery] validation plugin question

2008-12-12 Thread Sean Allen
playing around with it. don't want to get error messages displayed. i'm just putting in a general error message at top and highlighting required fields. but the label for errors gets created with a display: inline set on the element which is thwarting me from not showing it. looking at the

[jQuery] Re: jqGrid Metadata

2008-12-12 Thread CarmelFrank
Sanjiv, It has been a few months since you made this post, but I have come up with a method to create the colNames and colModel dynamically. Here's an example of how to do it in JavaScript: var NameList = new Array(); NameList.push("'Id'"); NameList.push("'Name'"); NameList.pus

[jQuery] Re: jquery ajax-built page with embedded ajax code issue

2008-12-12 Thread ray
I've implemented the changes you've suggested, but I'm seeing the same issue (clicks are not being intercepted by JQuery). :-/ I do understand what you suggested, but I'm now very confused as to why it isn't working. Is there a way to see, at the current time, what links have the click handler

[jQuery] how to detect node removal in IE?

2008-12-12 Thread Geuis
I'm working on a plugin that extends the change event to detect when non-input elements are modified. For example, when a span tag has new content added/changed/removed. I've got some of the basic behaviors working well using DOM Mutation events in FF, Safari, and Chrome. IE 6/7 is being its typi

[jQuery] Documentation stylesheets

2008-12-12 Thread 703designs
Just wanted to let you guys know that your documentation CSS is jacked up: http://docs.jquery.com/Plugins/Validation/validate Print stylesheet's no better (arguably worse, given the media). Thomas

[jQuery] Re: .parent().parent() ... better way to get parents' parent

2008-12-12 Thread Joel Taylor
Ok - just wanted to make sure. Thanks! On Dec 11, 11:36 am, ricardobeat wrote: > Nope. > > You can use parents() but that will give you *all* parents up to the > unless you filter() or stop it some other way (you can pass a > selector too): > > >     >         >     > > > $('#cat').parents('.

[jQuery] Re: Selectors

2008-12-12 Thread Diogo Neves
ok... now that i'm not working anymore, and i'm thinking slower, i believe it make some sense because css3 should work in same way... and now that i know how this work, then i want always the last level and it make my code yet simpler :P $( '#div_pdfs div:last' ) will always get the empty node wh

[jQuery] Re: Tabs - External link not working on remote tab in IE 7

2008-12-12 Thread strummer75
Klaus, Thanks for the response and I hope you enjoyed your vacation! The tab I am puling in is not cross domain... all the same domain so I am hoping I did not misrepresent remote tabs. The issue only occurs with IE 7 (a browser that is finicky at the wrong times... not the right ones). I found a

[jQuery] Re: JQuery is really a nice tool

2008-12-12 Thread Andy Matthews
No jQuery on that page. It's just using a collection of dHTML scripts found online. -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Sid Sent: Friday, December 12, 2008 12:31 PM To: jQuery (English) Subject: [jQuery] JQuery is really a

[jQuery] Re: Selectors

2008-12-12 Thread brian
On Fri, Dec 12, 2008 at 2:41 PM, Diogo Neves wrote: > hi brian, > > thanks for your help! > > well... i only suspected that $( '#div_pdfs div:last div:last' ) worked > because $( '#div_pdfs div:eq(1) div:eq(1)' ) worked perfectly... > > that HTML is generated by javascript, it has as much levels

[jQuery] Re: JQuery is really a nice tool

2008-12-12 Thread Charlie Griefer
you sure? On Fri, Dec 12, 2008 at 10:30 AM, Sid wrote: > > Just look at this URL http://googlelance.com > > You see the login and button click on it then you find that > > a pop up appears in middle of your page for login > > that is done with Jquery > > -- I have failed as much as I have suc

[jQuery] Re: jquery ajax-built page with embedded ajax code issue

2008-12-12 Thread brian
On Fri, Dec 12, 2008 at 2:24 PM, ray wrote: > > could you show me an example of what you mean here by this, either > using the code above or another example? That sounds like the > 'correct' way to do it. > > [ set the click handler to be a separate function and ensure that > any new links a

[jQuery] Re: Problems with more than one AJAX request at a time

2008-12-12 Thread Josh Nathanson
Yes, you should be able to fire the other requests. Maybe you could post a little code. -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of hotdog...@gmail.com Sent: Friday, December 12, 2008 10:48 AM To: jQuery (English) Subject

[jQuery] Multiple plugins in same namespace?

2008-12-12 Thread Marion
I'm trying to create a plugin with two entry points. You would use it like this: $('#someid').myPlugin.doThis(options); $('#anotherid').myPlugin.doThat(options); I've looked hard at http://docs.jquery.com/Plugins/Authoring and http://www.learningjquery.com/2007/10/a-plugin-development-pattern to

[jQuery] Strange behaviour when changing images using jQuery

2008-12-12 Thread Martin Edlman
Hello, I have a strange problem with jQuery which I'm not able to solve. I have several nested divs, each containing tag which opens/closes nested div. There are next to which I want to change when is clicked. Divs are opening/closing fine, but not only the one but even another images are repl

[jQuery] JQuery is really a nice tool

2008-12-12 Thread Sid
Just look at this URL http://googlelance.com You see the login and button click on it then you find that a pop up appears in middle of your page for login that is done with Jquery

[jQuery] Problems with more than one AJAX request at a time

2008-12-12 Thread hotdog...@gmail.com
Hello there! I'm sending an AJAX request using jQuery that could take a minute to complete. However, I also want to send other smaller ajax requests to the same host at the same time just after the first one starts. The problem is, the smaller requests block until the first one finishes. Is there

[jQuery] Re: Would anyone care to critique my approach/code to this login scheme?

2008-12-12 Thread Rick Faircloth
Thanks, Brian! Rick > -Original Message- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > Behalf Of brian > Sent: Friday, December 12, 2008 2:43 PM > To: jquery-en@googlegroups.com > Subject: [jQuery] Re: Would anyone care to critique my approach/code to this

[jQuery] Re: Would anyone care to critique my approach/code to this login scheme?

2008-12-12 Thread brian
On Fri, Dec 12, 2008 at 2:13 PM, Rick Faircloth wrote: > > Hi, Brian, and thanks for the feedback. > > This solution mixes jQuery and CF, so I posted it to the CF-Talk list, as > well. > Haven't heard from anyone there, yet. Maybe they can figure out why the > session.manager_id > isn't being

[jQuery] Re: Selectors

2008-12-12 Thread Diogo Neves
hi brian, thanks for your help! well... i only suspected that $( '#div_pdfs div:last div:last' ) worked because $( '#div_pdfs div:eq(1) div:eq(1)' ) worked perfectly... that HTML is generated by javascript, it has as much levels as needed... i only do this like that because some browsers will re

[jQuery] Re: Jquery hover and .animate(opacity)

2008-12-12 Thread superuntitled
Perfect. Thank you for helping me with this. On Dec 10, 9:26 am, Karl Swedberg wrote: > If you're able to change the HTML, I'd suggest putting the inside   > the link: > > >     >       alt='' /> >      grass roots >     > > > that way you can do this: > > $(document).ready(function(){ > >  

[jQuery] Re: selectChain Plugin - Fires on Page Load

2008-12-12 Thread Matt Quackenbush
Bump (again). :-) Is my question that difficult, or just that stupid? ;-) On Tue, Dec 9, 2008 at 8:04 PM, Matt Quackenbush wrote: > Hello, > > I am using Remy's most excellent selectChain plugin ( > http://remysharp.com/2007/09/18/auto-populate-multiple-select-boxes/), but > I do not want it

[jQuery] Re: can one detect if the current tab is still visible?

2008-12-12 Thread Klaus Hartl
Have you tried to add a blur handler to the window object? --Klaus On 12 Dez., 05:21, Rene Veerman wrote: > I've got a slideshow that polls the server each 7 seconds for new images > to display, and want to pause it when the tab that the user is on isn't > visible.. > I have little hope of it

[jQuery] Re: jquery ajax-built page with embedded ajax code issue

2008-12-12 Thread ray
could you show me an example of what you mean here by this, either using the code above or another example? That sounds like the 'correct' way to do it. [ set the click handler to be a separate function and ensure that any new links also get the click handler attached (in your success block

[jQuery] Re: Would anyone care to critique my approach/code to this login scheme?

2008-12-12 Thread Rick Faircloth
Hi, Brian, and thanks for the feedback. This solution mixes jQuery and CF, so I posted it to the CF-Talk list, as well. Haven't heard from anyone there, yet. Maybe they can figure out why the session.manager_id isn't being set. Any other problems or issues that you see? Thanks, Rick > -

[jQuery] Re: jquery ajax-built page with embedded ajax code issue

2008-12-12 Thread brian
This is probably the most asked question wrt jQuery. The reason why your newly-created links are not being handled by the ajax function is because they did not exist when the click handler was attached. Either set the click handler to be a separate function and ensure that any new links also get

[jQuery] Re: Would anyone care to critique my approach/code to this login scheme?

2008-12-12 Thread brian
Because your server var is not being set (or saved to the session, or whatever), this really is a Coldfusion issue. On Fri, Dec 12, 2008 at 12:14 PM, Rick Faircloth wrote: > > Hello, all... > > I appreciate everyone's help in getting my first ColdFusion/Ajax/jQuery > code working for this login

[jQuery] Re: Is there a createElement equivalent in jQuery?

2008-12-12 Thread brian
I'm a bit like you in that specifying HTML feels a bit funny. I always preferred to add attributes, etc. to an object(though it could be quite tedious before jQuery). Anyway, one still needs to specify some HTML but this is a bit better: $('') .attr('href', '#') .attr('id', 'myytp

[jQuery] Re: Selectors

2008-12-12 Thread brian
Thats a lot of divs. You didn't say which div you're aiming to to get at. But, I think :last doesn't work the wy you're expecting (which was my initial expectation, as well). If you add some IDs you can see how it's working:

[jQuery] Re: change input[type=button] value

2008-12-12 Thread brian
On Fri, Dec 12, 2008 at 6:52 AM, Richard D. Worth wrote: > > 2) Don't forget you can use .val(newValue) instead of .attr("value", > newValue) Yeah, I'd tried that first, then attr() because the first wasn't working. I felt like a terniary n00b.

[jQuery] mod'ing pseudo-classes...possible?

2008-12-12 Thread D A
I'm using a sprite as a background image for a collapsible pane. It has for states closed off, closed on, open off, open on. When the pane opens, I want to move the background image so it's in the 'open off' state, and then, on mouse-over, whos teh 'open on' state. I can easily get former to wor

[jQuery] jquery ajax-built page with embedded ajax code issue

2008-12-12 Thread ray
i've got a page where the body is dynamically generated/regenerated using ajax with clickable links, using the following snippet to replace the maintext div w/ the output from the ajax.php script: $('.ajax_link').click(function() { clicked_link_id = $(this).attr("id"); $.ajax({

[jQuery] Re: Konqueror problems?

2008-12-12 Thread MorningZ
"Are there known problems with Konqueror?" To start with, it's not supported http://docs.jquery.com/Browser_Compatibility "jQuery generally works with Konqueror and Firefox 1.0.x, but there may be some unexpected bugs since we do not test them as regularly as Firefox 1.5+, IE6+, Opera 9+ and Sa

[jQuery] Re: BlockUI unchecks checkboxes

2008-12-12 Thread MorningZ
" Could you possibly post a demo page somewhere?" Mike, this code: http://paste.pocoo.org/show/95075/ shows what he means, i even tried to change ".click" to ".change" and it still never checks the box Results.ashx just returns "hello world" in plain text and works fine in FireFox On

[jQuery] Re: What's the correct way to write this code?

2008-12-12 Thread Rick Faircloth
Thanks, Kyle... Rick > -Original Message- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > Behalf Of KyleFarris > Sent: Friday, December 12, 2008 9:21 AM > To: jQuery (English) > Subject: [jQuery] Re: What's the correct way to write this code? > > > Umm... a

[jQuery] Re: Submit a form automatically

2008-12-12 Thread Liam Potter
you could do something like this... $(document).ready(function () { document.NAME_OF_FORM_HERE.submit(); }); Rick Faircloth wrote: Sorry I don't have an answer for you, Adam. (I'm new to js and jQuery) But I was just curious as to what you were trying to do with a dynamically created (and d

[jQuery] Re: [treeview] Would like to limit toggle to the plus/minus icons

2008-12-12 Thread Jörn Zaefferer
The treeview binds click events on span-elements. If you remove or replace those, you should get the desired behaviour. Jörn On Fri, Dec 12, 2008 at 4:55 PM, Syntaxis wrote: > > A few feature requests: > > 1. I want to be able to click on the text inside an LI-tag without > toggling the tree. Ju

[jQuery] Re: What's the correct way to write this code?

2008-12-12 Thread Rick Faircloth
Thanks, Eric! > -Original Message- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > Behalf Of Eric > Sent: Friday, December 12, 2008 11:13 AM > To: jQuery (English) > Subject: [jQuery] Re: What's the correct way to write this code? > > > If you're looking for

[jQuery] Re: Submit a form automatically

2008-12-12 Thread Rick Faircloth
Sorry I don't have an answer for you, Adam. (I'm new to js and jQuery) But I was just curious as to what you were trying to do with a dynamically created (and dynamically filled?) form that submits immediately? Rick > -Original Message- > From: jquery-en@googlegroups.com [mailto:jquery..

[jQuery] Would anyone care to critique my approach/code to this login scheme?

2008-12-12 Thread Rick Faircloth
Hello, all... I appreciate everyone's help in getting my first ColdFusion/Ajax/jQuery code working for this login...except for one minor (sarcasm) point. The cf line of code in the first page below (PRE_LOGIN.CFM), which should prevent the login dialog from appearing after someone logs in, is not

[jQuery] Re: BlockUI unchecks checkboxes

2008-12-12 Thread fabianofranz
I had exactly the same issue here, with Chrome: - You check a checkbox via javascript - Make an ajax request, then blockUI - blockUI uncheckes you previously checked checkbox Best regargs, Fabiano Franz http://fabianofranz.com On 23 out, 21:44, Mike Alsup wrote: > What exactly is the proble

[jQuery] jQuery Cycle Plugin: 1 pager to control 2 slideshows

2008-12-12 Thread Neil
Is there a way in the jQuery Cycle Plugin to have have 1 pager control 2 slideshows? Where one slideshow has a scrollLeft effect and the other has a fade effect.

[jQuery] jQuery Cycle Plugin: 1 pager to control 2 slideshows

2008-12-12 Thread Neil
I have been searching for a way to have 1 pager to control 2 slideshows with the same number of slides. Where one slideshow can have a scrollLeft and another just with a fade. Is this possible with the current plugin?

[jQuery] [treeview] Would like to limit toggle to the plus/minus icons

2008-12-12 Thread Syntaxis
A few feature requests: 1. I want to be able to click on the text inside an LI-tag without toggling the tree. Just like in a filesystem, I want to select the folder, but not necessarily expand it's view. 2. Please keep up the good work!

[jQuery] Rounded corners plugin with image support for IE?

2008-12-12 Thread da
I've been playing with jquery.corners.js and like it. Seems to work well. The only gotcha is that it doesn't seem to support the rounding of objects that are using a background image in IE. In IE, it 'adds' to the top of the object to create the rounded corners, and moves the background image do

[jQuery] Re: Is there a createElement equivalent in jQuery?

2008-12-12 Thread Jozz
I found this plugin that work well.. http://plugins.jquery.com/project/DOMEC On Dec 4, 5:20 am, Yansky wrote: > Hi, I was just wondering if there was a createElement equivalent in jQuery. > e.g. var el = document.createElement('div'); > > I know I can create it with the inbuilt innerHTM

[jQuery] Konqueror problems?

2008-12-12 Thread romeo
I have a site using JQuery which works a treat using Firefox, Opera and IE, on Windows and Linux (as well as Safari), but which does not work at all with Konqueror on Kubuntu (Gutsy, 7.10). Using fadeIn animations, nothing fades in - the elements remain invisible. Are there known problems with Kon

[jQuery] Re: Opacity for a menu background, but not for the element inside

2008-12-12 Thread ricardobeat
This will be easier sometime around 2012 when RGBA and HSLA colors are widely supported :) On Dec 12, 1:22 pm, Liam Potter wrote: > Jim, read the question again ;) > > Anyway. > There is no simple solution to this problem, I'd advise using a PNG > image as it is the cleanest way to achieve this.

[jQuery] Change URL in beforeSend

2008-12-12 Thread vtjiles
I have an app and want to change the url for all ajax requests to give them a relative path. I tried to set up a global change using ajaxSetup and beforeSend, but the url was only updated in the config, not the request object. Any thoughts on how to do this? $.ajaxSetup({ beforeSend : functio

[jQuery] Re: What's the correct way to write this code?

2008-12-12 Thread KyleFarris
Umm... also make sure you are using the double equals sign when doing comparisons... Like: if (response.login = "Login Successful") { top.location.href = "site_manager.cfm"; } else { $('#contentdiv').empty().fadeIn(1000).append(response.login); } On Dec 12, 9:07 am, MorningZ wrote: >

[jQuery] Re: JSONP and callback function name

2008-12-12 Thread jtuchscherer
Thanks, Eric, for the reply. But I am only writing the receiving part, the client. The server is out of my hands. I need to obey the authentication that they have already in place which leads me to my problem, that I still haven't figured out. On Dec 11, 10:15 am, "Eric Garside" wrote: > If you

[jQuery] Re: How do I use getjson to make two attribute pairs

2008-12-12 Thread ricardobeat
According to the API the URL is in item.link, so you just need to wrap the image in an anchor: function(data){ $.each(data.items, function(i,item){ $("").attr("src", item.media.m) .appendTo("#images") .wrap('"); if ( i == 4 ) retur

[jQuery] Re: Cycle plugin: some images not loading

2008-12-12 Thread TNTitan
> I think this is just a result of some of your images not yet being > downloaded to the browser when Cycle transitions them in. You can > either add images dynamically (see the 'add' demos on the Cycle page) > or wait until the window 'load' event fires (instead of using the > 'ready' event) to

[jQuery] Re: Jquery autocomplete with spring MVC

2008-12-12 Thread anny
Thank you so much. It works great. On Dec 11, 5:05 pm, "Jörn Zaefferer" wrote: > Though in this case you don't really need JSON, just a line-delimited list. > > searchVal =  ServletRequestUtils.getStringParameter(request, "q"); > list= service.getResult(searchVal ); > for (String entry : list) {

[jQuery] Re: nextAll Chaining when nextAll is Empty

2008-12-12 Thread ricardobeat
Do you have a test page we can look at? nextAll returns an empty object if there is no 'next', but it doesn't interrupt the chain, there may be something else going on. I couldn't reproduce your situation here, nextAll().andSelf() returns me the original element. - ricardo On Dec 12, 10:39 am,

[jQuery] Re: getJSON not triggering success callback

2008-12-12 Thread ricardobeat
Check the status in the XHR object you get back, it's probably not successfull. On Dec 12, 11:06 am, "Javier Martinez" wrote: > I'm making some calls with getJSON on another domain, and the callback is > not firing. > My code is the next: > > var url = > 'http://localhost:8080/cometd/cometd?mes

[jQuery] Re: What's the correct way to write this code?

2008-12-12 Thread Rick Faircloth
Thanks, Diogo! Rick From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Diogo Neves Sent: Friday, December 12, 2008 10:24 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: What's the correct way to write this code? You can simplify $('#contentdiv').e

[jQuery] Re: What's the correct way to write this code?

2008-12-12 Thread Rick Faircloth
Thanks for the info, Eric! Rick > -Original Message- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > Behalf Of Eric Garside > Sent: Friday, December 12, 2008 10:11 AM > To: jQuery (English) > Subject: [jQuery] Re: What's the correct way to write this code? >

[jQuery] Re: Iterating through .data() elements...

2008-12-12 Thread ricardobeat
There are other alternatives: 1. Store everything as an object in data() $(element).data('yourdata',{mydata1:'something, mydata2:'something'}) var data = $(element).data('yourdata'); $(element).data('yourdata', $.extend(data, { mydata3:'something' }); Then you can iterate over that obje

[jQuery] Re: What's the correct way to write this code?

2008-12-12 Thread Eric
If you're looking for a fast, but thorough, intro to Javascript, I recommend Douglas Crockford's "The Javascript Programming Language" video, which can be seen in four parts over at Yahoo Video: http://video.yahoo.com/search/?p=crockford+javascript&t=video Here's a link to part 1: http://video.ya

[jQuery] Re: Submit a form automatically

2008-12-12 Thread Jim D
Do you have an example of the code you're using to load the form? On Dec 12, 11:02 am, Adam wrote: > I have a dynamically created form that I'd like to submit > automatically after it loads.  It doesn't look like forms have an > onload event.  I would use the window onload, but the form isn't >

[jQuery] Re: Selector difficulty/removeClass

2008-12-12 Thread ricardobeat
And in case you wanted to remove the class only from the label elements *with* that ID form you would use $('#quiz label[id*=fb]').removeClass('qyes'); that's plenty of help, isn't it? :) On Dec 12, 2:25 am, Bruce MacKay wrote: > Hello folks, > > I want to remove a css class (.qyes) from every

[jQuery] Submit a form automatically

2008-12-12 Thread Adam
I have a dynamically created form that I'd like to submit automatically after it loads. It doesn't look like forms have an onload event. I would use the window onload, but the form isn't necessarily around when the window loads - it is created later in a jquery popup. Any suggestions? I am usi

[jQuery] Re: Selectors

2008-12-12 Thread Diogo Neves

[jQuery] Re: nextAll Chaining when nextAll is Empty

2008-12-12 Thread Reepsy
Paul, Thanks for the reply. I do not wish to use a container here, if I can help it, but I do have a unique class name to hook onto, and your solution works just fine with it. So my code became: $('a.star:gt(' + ($("a.star").index(this)-1) + ')').removeClass ('star_selected').triggerHandler('mou

[jQuery] loader for ajax/load

2008-12-12 Thread hcvitto
hi i want to show/hide a loader when using load() function. With this script: $('#load') .ajaxStart(function() { $(this).show(); }) .ajaxStop(function() { $(this).hide(); }); $('#colCont').load('myFile.php?id=myId #colContIns'); $('#categorie a').click(function(){

[jQuery] nextAll Chaining when nextAll is Empty

2008-12-12 Thread Reepsy
Perhaps this is naive of me, but I was expecting this to work: $(this).nextAll('a').andSelf().removeClass ('star_selected').triggerHandler('mouseout'); It is used in a rating system I wrote, where there are 5 tags in a row. If you click on one, this fires (adds a class name on all previous and

[jQuery] Re: nextAll Chaining when nextAll is Empty

2008-12-12 Thread Paul Mills
Hi Michael, Try this. It uses the index of the within the and then removes the class from all elements equal or greater than it. The code is a bit cumbersome but I think it works. lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum $('#links a').click(function(){ $('a:gt('+($("#li

[jQuery] Re: What's the correct way to write this code?

2008-12-12 Thread Diogo Neves
You can simplify $('#contentdiv').empty().fadeIn(1000).append(response.login); To $('#contentdiv').html(response.login).fadeIn(1000); Or if you like too short your code you can do all that in: success: function(response){ response.login == 'Login Successful' ? top.location.href = 'site_manag

[jQuery] Re: Opacity for a menu background, but not for the element inside

2008-12-12 Thread Liam Potter
Jim, read the question again ;) Anyway. There is no simple solution to this problem, I'd advise using a PNG image as it is the cleanest way to achieve this. Jim D wrote: You can use the CSS 'opacity' property. It accepts a value between 0.0 and 1.0. For example, if you wanted to set the opa

[jQuery] Re: Opacity for a menu background, but not for the element inside

2008-12-12 Thread Jim D
You can use the CSS 'opacity' property. It accepts a value between 0.0 and 1.0. For example, if you wanted to set the opacity of an element to 40%, you would use: opacity: 0.4; However, in true MS style, you have to do something different to get it to work in IE. Internet Explorer accepts the

[jQuery] Re: What's the correct way to write this code?

2008-12-12 Thread Eric Garside
If you haven't already, I'd check out the w3c schools intro to Javascript. It's a pretty great way to learn the basic mechanics. http://www.w3schools.com/JS/default.asp On Dec 12, 9:51 am, "Rick Faircloth" wrote: > Thanks for the re-write, Hobo!  I like the case syntax. > > Also, the tip on the

[jQuery] Re: Simple FadeIn with Appending

2008-12-12 Thread ksun
This is one way to do it. Not sure if it can be done more elegantly. $(document).ready(function() { $('label').after(''); $('#button').click(function(){ $('label :input').each(function(){

[jQuery] Re: What's the correct way to write this code?

2008-12-12 Thread Rick Faircloth
Thanks for the re-write, Hobo! I like the case syntax. Also, the tip on the "==" vs "=" is good too. I'm just hacking up code that I find trying to make things work. I think it's time for a basic JS primer! Thanks again, Rick > -Original Message- > From: jquery-en@googlegroups.com [

[jQuery] Re: What's the correct way to write this code?

2008-12-12 Thread Hobo
success: function(response){ switch (response.login){ case 'Login Successful': top.location.href = 'site_manager.cfm'; break; case 'Login Unsuccessful': $('#contentdiv').empty().fadeIn(1000).append (response.login);

[jQuery] Re: What's the correct way to write this code?

2008-12-12 Thread Rick Faircloth
Awww, be nice, now... I'm just learning basic JS syntax. Thanks for the help, MorningZ and Liam... it's working. > -Original Message- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > Behalf Of MorningZ > Sent: Friday, December 12, 2008 9:08 AM > To: jQuery (En

  1   2   >