[jQuery] Re: Focus First 'visible' field

2008-04-22 Thread Jacky See
Someone found that this method does not handle visibility correctly. When a visibility:hidden parent with a visibility:show child, the child would override its parent's property (of course!). So the script only need to check display:none parent, which would introduce another filter:

[jQuery] Re: Focus First 'visible' field

2008-04-22 Thread Erik Beeson
Your inner $(this).filter(...) doesn't make sense to me. This works for me on FF2/Mac: $(':input:visible').filter(function() { return $(this).parents(':hidden').length == 0; }).slice(0,1).focus(); That is: Select all visible inputs elements, filter out any who have parents which are

[jQuery] Re: jMaps3 RC1 Released

2008-04-22 Thread Tane Piper
HI there, I've just added a removeMarker function to the codebase last night and is in the tip version: http://hg.sharesource.org/jmaps/raw-file/5f67642a1526/docs/index.html#removemarker It's a bit of a quick fix, so might change - I'm thinking adding support for multiple markers instead of

[jQuery] New and Learning JQuery

2008-04-22 Thread binro01
I been going through JQuery to add it to my knowledge base so I can integrate some of its functionality to our new web 2.0 UI for our applications which use to reside in RPG on IBM system i. I have created is a zebra list that I want to click on the list to help build the next page. There is a

[jQuery] Re: Focus First 'visible' field

2008-04-22 Thread Jacky
This is my very first implementation. But it fails on visibility:hidden parent which has a visibility:show child. You may try the updated demo page. Box 11 would still be visible even when you toggle its parent's visibility. http://www.seezone.net/dev/focusField.html ':hidden' selector would try

[jQuery] problem closing browser events (unload funtion)

2008-04-22 Thread pere roca
hi, I want a simple ajax event to be fired when user closes the browser; the code below sometimes works, sometimes not... and don't know the reason. someone has an idea why does it happen? I suppose it's about browser behaviour... (tested by firefox 2.0) And if I wanna apply this when a user

[jQuery] Re: New and Learning JQuery

2008-04-22 Thread Shawn
I *think* you are after something like this: script type=text/javascript $(.stripeMe tr).click(function() { var MyVal = $(#LNAME, this).val(); javascript:location.href='test.htmlMyval=' + MyVal; }); /script having a line that says $this(); doesn't really do

[jQuery] [ TOOLTIP ] - Can I PULL IN the CONTENTS of the URL into the tooltip itself?

2008-04-22 Thread Hermann
One of the tooltip-demos shows this embedded HTML, but somehow this is much more sophisticated than what I need. Is there a way how I can make the tooltip show the CONTENT of the url in the tooltip. For example, if the link points to x.html, and x.html contains Hello World, I want to see Hello

[jQuery] Re: Adding load to ajax POST function

2008-04-22 Thread webber
thanks On Apr 20, 3:28 pm, Sephi-Chan [EMAIL PROTECTED] wrote: Hello, You can look the code of the load function in the jQuery source. It's what i did few days ago whereas i want do this (filter the response). I make something like this : $.ajax({ url : 'remotePage.php',

[jQuery] Re: post a list of values from a function

2008-04-22 Thread webber
I found my answer - I needed to use options $.ajax({ type: post, url: Proc.asp, data: cmd=ups+ mystring, success: function(data){

[jQuery] Re: Confused...is JQuery and EXT still being integrated together?

2008-04-22 Thread webber
the beauty of jquery is to keep it simple . On Apr 21, 8:35 pm, Rey Bango [EMAIL PROTECTED] wrote: For the foreseeable future, we're focusing our efforts on jQuery UI and ensuring that the rich set of functionality in the library is top notch. The jQuery adapter which allows Ext to use

[jQuery] Re: New and Learning JQuery

2008-04-22 Thread binro01
Thanks Shawn! This explanation of (this) helped me a great deal! And helped my application! Rob On Apr 22, 5:33 am, Shawn [EMAIL PROTECTED] wrote: I *think* you are after something like this: script type=text/javascript $(.stripeMe tr).click(function() { var MyVal =

[jQuery] BBC.co.uk style image switcher

2008-04-22 Thread vneal
Hi there, hope you can help. I'm looking for some javascript to create the same sort of effect the bbc.co.uk site has, when you roll over one of the news articles, the image changes. Is there anything in jquery js that does this? I'm a complete newbie to js i'm not sure where to start looking.

[jQuery] Re: Cycle plugin with many image tabs

2008-04-22 Thread Mike Alsup
I'm using the cycle plugin and have set it up to automagically create the tabs for changing to the next image. http://www.actionhobby.ca/index.php?q=/node/524 But, this particular page has 32 images (possibly more to come). The tabs are generated in a single row, and do not wrap at the

[jQuery] Re: BBC.co.uk style image switcher

2008-04-22 Thread ad4m
Hi there, I'm not sure if there is a plugin defineing exatcly the behaviour you need. You can check it here: http://plugins.jquery.com/. Nevertheless it's easy to implement such behaviour with jQuery. First of all you need to make a html code that will present a single link with picture. Make it

[jQuery] Re: AJAX Cancel? (sorry, hit post before I was done)

2008-04-22 Thread livefree75
Thanks, What I ended up doing was grabbing the current time before I make the AJAX call, and then storing it in a latest_keypress_time data variable in the textbox jQuery object. Then, in the callback, compare the keypress_time from before the AJAX call to the latest_keypress_time data

[jQuery] Re: New and Learning JQuery

2008-04-22 Thread Wizz
And just to point something out... Duplicate id's are never good on a page... I think you're better off by setting either the 'name' or the 'class' attribute of the hidden input. A page will never pass validation if it has duplicate id's on it and some of your javascript my freak out. Greetz,

[jQuery] Re: bug tracker error

2008-04-22 Thread Jeremy Stanton
Same problem here. Please help, folks. On Apr 21, 11:33 am, PragueExpat [EMAIL PROTECTED] wrote: I can only open the link one or two times. Refreshing the page again gives me the error. Am I the only one? (tested FF2 on linux and windows) On Apr 17, 4:39 pm, PragueExpat [EMAIL PROTECTED]

[jQuery] Make Readonly input text

2008-04-22 Thread Andri
Hi, I'm newbie here there is two input form, checkbox and text. i want if I checked the chekbox, the input text will become readonly, and if i checked again, the input text back to normal. I'm trying make this function function makeReadOnly(a) { if

[jQuery] Re: bug tracker error

2008-04-22 Thread PragueExpat
I found that if you remove all cookies from dev.jquery.com, you can reload the page. On Apr 22, 4:12 pm, Jeremy Stanton [EMAIL PROTECTED] wrote: Same problem here. Please help, folks. On Apr 21, 11:33 am, PragueExpat [EMAIL PROTECTED] wrote: I can only open the link one or two times.

[jQuery] Re: SOT: Using iframe to load in a Flash movie with dynamic height

2008-04-22 Thread Andy Matthews
Just messed with it for about an hour or so and it's not the overflow. Tried every possible combination of values and nothing. I think I've narrowed it to down to the Flash movie, and not Javascript. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On

[jQuery] ie still stalling at html rewrite

2008-04-22 Thread [EMAIL PROTECTED]
I hope someone more experienced can tell me where I'm going wrong with this? I have PHP generate the jQuery for an .html() rewrite of links, replacing the less-jazzy non-javascript show/hide alternative. It works like a charm in FF, but ie refuses at this point will not go any further. The

[jQuery] Re: Make Readonly input text

2008-04-22 Thread [EMAIL PROTECTED]
Use the attr function On Apr 22, 3:19 pm, Andri [EMAIL PROTECTED] wrote: Hi, I'm newbie here there is two input form, checkbox and text. i want if I checked the chekbox, the input text will become readonly, and if i checked again, the input text back to normal. I'm trying make this function

[jQuery] Re: Cycle plugin an absolute positioning

2008-04-22 Thread Ken Gregg
Thanks helped a lot. An added note. For Firefox the $('div.pics a').each(function() { $(this).css({left: '50%', marginLeft: -$(this).width()/ 2}); }); needs to happen before you start the cycle plugin. Otherwise for some reason only the first photo is centered.

[jQuery] Re: Problem positioning an absolute element

2008-04-22 Thread AsymF
And what is with this post showing up 7 times?? I only hit the submit button once on Google Groups. Hope no one thinks I am spamming. :( On Apr 17, 8:01 pm, AsymF [EMAIL PROTECTED] wrote: I recently implemented the following CSS layout on a site in place of a previous table

[jQuery] Re: SOT: Using iframe to load in a Flash movie with dynamic height

2008-04-22 Thread rolf m
Andy,Are you talking about the scroll bar appearing? As Dan pointed out, you can get rid of that by setting the padding and margin of the body of the page INSIDE the iframe to 0, and do the same for the form. They're taking on their default values. I was able to do this with firebug. I see that

[jQuery] Help Needed Passing Checkbox Values to SELECT Element

2008-04-22 Thread drewbacca
I'm not the world's greatest Jquery coder so I'm hoping someone can help me with this. I have a client that needs me to pass the VALUES of certain items checked in one form, to a select box in another form. I've been successful at doing this between two select elements, but can't seem to get it

[jQuery] Getting value of input type=file

2008-04-22 Thread hubbs
I am using ajax to post a form that has an image upload input field. I tried getting the value as I do with other inputs, but it does not seem to work, and returns undefined: var imageUpload = $(#image_0).val(); input type=file name=image_0 class=sq-form-field / Am I missing something here?

[jQuery] Re: Problem positioning an absolute element

2008-04-22 Thread mrpollo
i see no div called box at leats firebug doesnt On Apr 22, 9:53 am, AsymF [EMAIL PROTECTED] wrote: And what is with this post showing up 7 times?? I only hit the submit button once on Google Groups. Hope no one thinks I am spamming. :( On Apr 17, 8:01 pm, AsymF [EMAIL PROTECTED] wrote: I

[jQuery] Re: SOT: Using iframe to load in a Flash movie with dynamic height

2008-04-22 Thread Andy Matthews
Rolf... The interior page also has an iframe, but that's a non-issue. It's what we use to store history state for the Flash app. If you view the main interior page in IE outside of the frameset, you'll see that after it loads, the height of the Flash movie increases. When it's inside the

[jQuery] Re: Getting value of input type=file

2008-04-22 Thread Chris J. Lee
You are currently accessing that input by id. You currently don't have an id in that particular input field. You have the name as image_0. the selector is actually $('[name=image_0]').val(); so try: var imageUpload=$('[name=image_0]').val(); You understand why right? On Apr 22, 1:57 pm,

[jQuery] Re: [validate] value is trimmed before getting to validation function

2008-04-22 Thread Jörn Zaefferer
sebastian schrieb: Hi, i'm developing a costum validation method for a password field, the password must not contain spaces. I thought my method worked fine until during a test i put a space at the end of the password, my method returned that the password was correct, and i noticed that the

[jQuery] Re: [validate] validation doesn't work for radio buttons associated with hidden field

2008-04-22 Thread Jörn Zaefferer
sebastian schrieb: Hi, the problem i have is that I have a group of radio buttons associated with a hidden field like this: input type=hidden name=data[User][gender] value= id=UserGender_ / input type=radio name=data[User][gender] id=UserGenderF value=f / label for=UserGenderFFemale/label

[jQuery] Re: Getting value of input type=file

2008-04-22 Thread hubbs
Yes, I understand. I am just being a dummy and not looking at it closely. Thanks, I will try this. On Apr 22, 11:26 am, Chris J. Lee [EMAIL PROTECTED] wrote: You are currently accessing that input by id. You currently don't have an id in that particular input field. You have the name as

[jQuery] Re: [Validation] Validate differently based on different action

2008-04-22 Thread Jörn Zaefferer
Jacky See schrieb: [...] Any better way to do this? Or I should not use validation plugin under this situation? The plugin is certainly not the best fit for this kind of validation. You could try to implement your own plugin, reusing parts of the validation plugin, especially validation

[jQuery] Re: [Validation]How to make two field check output one message?

2008-04-22 Thread Jörn Zaefferer
Jacky schrieb: I see... the group's key is not related to the rules/method. So the group would force the underlying fields to only display one message? This would be a problem because a field would also have its own message (like date format is incorrect). I tried my old demo, inputting

[jQuery] Re: Make Readonly input text

2008-04-22 Thread Andri
instead of making it readonly, i try to disabled it function makeReadOnly(a) { if ($(a:contains('disabled'))) { $(a).attr(disabled,disabled); } else {

[jQuery] Re: New and Learning JQuery

2008-04-22 Thread binro01
Thanks Wizz, I'll try that out too. On Apr 22, 9:13 am, Wizz [EMAIL PROTECTED] wrote: And just to point something out... Duplicate id's are never good on a page... I think you're better off by setting either the 'name' or the 'class' attribute of the hidden input. A page will never pass

[jQuery] My jquery-powered project:

2008-04-22 Thread [EMAIL PROTECTED]
Hi guys, I just wanted to show off my new project realised with jquery: http://www.tubesearch.de What do you think?? Any suggestions regarding improvements, design or handling??

[jQuery] Re: [treeview] Mix of sync and asynced tree.

2008-04-22 Thread Jörn Zaefferer
dbruensicke schrieb: Hi, i am using Jörns TreeView Plugin (http://bassistance.de/jquery-plugins/ jquery-plugin-treeview/). I try to use the async version of it, because i need lazy loading (more than 9000 elements) but i want to render the starting ul with the following elements: root +

[jQuery] Re: searching css id

2008-04-22 Thread Josh Nathanson
Try doing if ( $('#specialSection').length ) in your conditional. -- Josh - Original Message - From: Sharique [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Tuesday, April 22, 2008 12:22 PM Subject: [jQuery] searching css id Hi, What I'm trying to is

[jQuery] searching css id

2008-04-22 Thread Sharique
Hi, What I'm trying to is that when there is certain css id appears in area. then it should hide right sidebar and change the width of center area. if($('#specialSection')) { $('#sidebar-right').hide(); $('#center').css('width','760px'); } But this code is not working

[jQuery] flexgrid plugin

2008-04-22 Thread bryanl
I'm looking for the flexgrid plugin that used to live at http://webplicity.net/flexigrid/. The site is down, and I really want to use it! Anyone know of a backup site or have an archive to send me?

[jQuery] Re: [Tooltip] How to implement an fadeIn and fadeout?

2008-04-22 Thread Jörn Zaefferer
[EMAIL PROTECTED] schrieb: Hi! I use the tooltip from here: http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ I use Jquery 1.2.3 and wish to know how to implement an fadeIn and fadeOut into it.[...] I've commited a patch that addes a fade-option:

[jQuery] Re: Autocomplete multiple entries

2008-04-22 Thread Jörn Zaefferer
dineshv schrieb: I know this is a simple question but ... In the Autocomplete multiple cities example (http://dev.jquery.com/view/trunk/plugins/ autocomplete/) how do you send the final set of chosen entries to the server ie. all the values in the input box when Get Value is clicked? [...]

[jQuery] Re: getScript is great to add scripts dynamically, but how might you remove scripts?

2008-04-22 Thread Jake McGraw
Which begs the question, Why would you want to remove scripts? Once a script has been included, it should have executed, so what do you gain by removing it? - jake On Mon, Apr 21, 2008 at 6:41 PM, cfdvlpr [EMAIL PROTECTED] wrote: Is it possible to remove a script from a page dynamically?

[jQuery] Safari won't load jquery.js

2008-04-22 Thread sethd
I'm looking into porting my current ad-hoc javascript solution to jQuery. I added a little bit of jQuery to the project and it works just fine on IE, Firefox, and Opera, but when I tried it on Safari the file seems to not load. When I look into the web inspector jquery.js has a long gray bar

[jQuery] Info about tablesorting plugin

2008-04-22 Thread patrick91
Hi, how can I 'select' the sorting 'factor'? For example: I have a cell that contains this markup: 28-09-2007, 08:41:09 ambr / by a href=#patrick91/a now I need to sort the table by the date 28-09-2007, 08:41:09 am but I don't how to do it, can you help me? Ps. Sorry if my english is hateful but

[jQuery] event question

2008-04-22 Thread Brian Ronk
I have a click even that I add to a certain class when the page is created. There is the possibility of dynamically adding another element with that class, and I would like to have the same click even added. I'm just wondering what would happen if I registered the click event for that class,

[jQuery] Re: event question

2008-04-22 Thread Jake McGraw
The default behavior: $(.classname).click(function(){ alert(Hello, world!); }); $(body).append('span class=classnameClick Me!/span'); Clicking Click Me! would do nothing. Using the liveQuery plugin (http://brandonaaron.net/docs/livequery/): $(.classname).livequery(click, function(event) {

[jQuery] Re: searching css id

2008-04-22 Thread Hamish Campbell
Because this wasn't immediately obvious to me when I started out, here is why: The jQuery selector will always return an object. Eg: typeof($(#doesntExist)) == object. That means if( $(#doesntExist) ) will evaluate true. This is intentional - ie, if you do something like this:

[jQuery] Re: flexgrid plugin

2008-04-22 Thread Web Specialist
Flexigrid is so good that creator site reach his bandwidth limit. Paulo Marinas, please change your bandwidth size. ;-) Cheers Marco Antonio On 4/22/08, bryanl [EMAIL PROTECTED] wrote: I'm looking for the flexgrid plugin that used to live at http://webplicity.net/flexigrid/. The site is

[jQuery] Ajax Replacing HTML Using JSON

2008-04-22 Thread s.ross
I'm having a strange problem using $.ajax. Better to illustrate with the code: function ajaxBind(trigger) { trigger.click(function(){ $.ajax({ type: POST, url: $(this).attr('href'), data: { 'authenticity_token': $ ('input[name=authenticity_token]').val() },

[jQuery] Re: Im having trouble with selectors

2008-04-22 Thread justclint
Oh my gosh, I know better than that. What was I thinking. Ok, I will try some alternative method. Thanks for pointing that out. I do appreciate it. If I can not figure my problem out I will repost new issue. Thanks again. Cheers, Clint -- View this message in context:

[jQuery] Re: Cycle plugin with many image tabs

2008-04-22 Thread Shawn
Thanks Mike. That did the trick. http://www.actionhobby.ca/index.php?q=/node/524 Also had to throw in some code to make sure the image navigation DIV was in place (add it if it wasn't). TinyMCE likes to remove empty DIVs Shawn Mike Alsup wrote: I'm using the cycle plugin and have

[jQuery] Re: Ajax Replacing HTML Using JSON

2008-04-22 Thread tlphipps
I'm just guessing here, but I would think it would be related to your xhr.setRequestHeader line. I don't really understand why you need that anyway in this case. What happens if you completely remove the beforeSend: parameter from your $.ajax? On Apr 22, 3:51 pm, s.ross [EMAIL PROTECTED]

[jQuery] Re: Help with fadeIn / fadeOut

2008-04-22 Thread Jörn Zaefferer
[EMAIL PROTECTED] schrieb: Hi, If you look at this page http://elearningrd.info/jrl/policies.php and click on each of the links next to the arrow graphics, you'll see the center text switches out. However, it is choppy. It seems that as one div is fading out, the other is fading in at the

[jQuery] Why is form submit action not being invoked?

2008-04-22 Thread [EMAIL PROTECTED]
Hi, When I submit the contact form http://elearningrd.info/jrl/contact.php I would like to validate the email address and possibly check non- empty values for the other fields. I'm using this code to try and check things upon form submission: $(document).ready(function() {

[jQuery] Re: Why is form submit action not being invoked?

2008-04-22 Thread Joe
Check the form plugin. May be of some use. Also, I'm no expert, but is passing a jquery object to validateForm function causing an issue? http://www.malsup.com/jquery/form/#getting-started Joe www.subprint.com On Apr 22, 4:57 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, When I

[jQuery] Re: Help with fadeIn / fadeOut

2008-04-22 Thread Donald J Organ IV
This should do it. function swapDivs(oldDivId, newDivId) { $(# + oldDivId).fadeOut(slow, function() { $(# + newDivId).fadeIn(slow); } // swapDivs ); [EMAIL PROTECTED] wrote: Hi, If you look at this page

[jQuery] Re: Help with fadeIn / fadeOut

2008-04-22 Thread ripple
You have to use a callback: $(a).click(function () {$(div).fadeIn(3000, function () { $(div).fadeOut(100);});return false; }); Look it up in the jQuery documentation. It's quite simple to use. http://2whoa.com/dominate/

[jQuery] Re: [validate] value is trimmed before getting to validation function

2008-04-22 Thread sebastian
Thank you very much!!! On Apr 22, 1:27 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote: sebastian schrieb: Hi, i'm developing a costum validation method for a password field, the password must not contain spaces. I thought my method worked fine until during a test i put a space at the end of

[jQuery] Re: [validate] validation doesn't work for radio buttons associated with hidden field

2008-04-22 Thread sebastian
Thank you very much for your answer!!! On Apr 22, 1:31 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote: sebastian schrieb: Hi, the problem i have is that I have a group of radio buttons associated with a hidden field like this: input type=hidden name=data[User][gender] value=

[jQuery] Re: Make Readonly input text

2008-04-22 Thread [EMAIL PROTECTED]
Try using this code instead: function makeReadOnly(a) { if ($(a:contains('disabled'))) { $(a).attr(disabled,disabled); } else { $(a).removeAttr(disabled);

[jQuery] TableSorter 2.0 - jQuery.noConflict() breaks Tablesorter appendCache in Firefox

2008-04-22 Thread [EMAIL PROTECTED]
Hi, I'm using TableSorter 2.0 with the pager plugin, and then appending table rows. This works fine when run without prototype.js, when run with prototype.js (but jQuery then breaks our prototype calls), and always works in IE 6. We had to add jQuery.noConflict() to the top of our script, and

[jQuery] Re: Make Readonly input text

2008-04-22 Thread Andri
still doesn't work :( can't go back to normal On Apr 23, 5:19 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Try using this code instead: function makeReadOnly(a) { if ($(a:contains('disabled'))) { $(a).attr(disabled,disabled);

[jQuery] Re: Make Readonly input text

2008-04-22 Thread Karl Rudd
To change disabled or readonly you can use boolean values (true and false) and the attr() function. So if a is a jQuery selected text box (or a checkbox or any other form input), you can write: // Disable a a.attr('disabled', true); // Enable a a.attr('disabled', false); // Make a read-only

[jQuery] Re: Make Readonly input text

2008-04-22 Thread Andri
even i changed the code become function makeReadOnly(a) { if ($(a:contains('disabled'))) { $(a).attr(disabled,true); } else { $(a).attr(disabled,false);

[jQuery] Re: Make Readonly input text

2008-04-22 Thread Karl Rudd
What is the HTML you are using? You are doing something strange. The code $(a:contains('disabled')) means: Select all a elements (links) that have the text disabled in the text. For example: a href=blahThis has disabled in it and so will be selected/a The code $(a:contains('disabled'))

[jQuery] Re: Make Readonly input text

2008-04-22 Thread Karl Rudd
Mistake in my JavaScript code, should be: $(document).ready(funtion() { $('#myCheckbox').click( function() { // Disable myTextBox when myCheckbox is checked $('#myTextBox').attr('disabled', this.checked); }); }); Karl Rudd On Wed, Apr 23, 2008 at 10:42

[jQuery] Re: Make Readonly input text

2008-04-22 Thread Andri
I'm have checkbox and input text like this input type=checkbox name=f1corporation value=1 onclick=makeReadOnly('#f1corporationstate');/ Corporation input name=f1corporationstate id=f1corporationstate size=5 type=text / I want, if I check the f1corporation, the f1corporationstate

[jQuery] Re: Make Readonly input text

2008-04-22 Thread Karl Rudd
Ok first the intrusive version (that is with the onclick handler directly in the HTML code) which I really don't recommend: label input type=checkbox name=f1corporation value=1 onclick=changeState('#f1corporationstate', this.checked) / Corporation /label input name=f1corporationstate