[jQuery] Re: Animated resize of a thumbnails inside a table

2009-01-08 Thread vani
Great stuff Mike, thanx! On 3 sij, 18:47, Mike Alsup mal...@gmail.com wrote: Here's an example that may help: http://www.malsup.com/jquery/cycle/thumbs.html I decided to make a little plugin for this: http://jquery.malsup.com/hoverpulse/

[jQuery] Highlighting the first element in multiple DIVS

2009-01-08 Thread Martynas Brijunas
Hello, I am looking for some guidance on how to achieve a simple objective. I have multiple DIV elements on a page, and within each DIV there are 4 A elements. Within each A there is an IMG. My goal is to apply a class to each of these IMG upon rendering the page. div class=description a

[jQuery] Re: In a pickle -- JavaScript Pagination vs. PHP/MySQL Pagination

2009-01-08 Thread ripcurlksm
Could you post some example code if you get the chance Jeffrey? Jeffrey Kretz wrote: I solved this for my own project in this way: 1. Server-side code renders the first page of the grid, also passing a value of total results. 2. If the total results are few enough (season to taste),

[jQuery] Re: Highlighting the first element in multiple DIVS

2009-01-08 Thread Martynas Brijunas
Hi, I am looking for some guidance on how to achieve a simple objective. I have multiple DIV elements on a page, and within each DIV there are 4 A elements. Within each A there is an IMG. My goal is to apply a class to each of these IMG upon rendering the page. the above post has a typo.

[jQuery] Re: Highlighting the first element in multiple DIVS

2009-01-08 Thread Mauricio (Maujor) Samy Silva
$('.description a:first-child img').addClass('icon_selected'); The first image is child of the first child (A element) of the DIV. Maurício Hello, I am looking for some guidance on how to achieve a simple objective. I have multiple DIV elements on a page, and within each DIV there are 4 A

[jQuery] Re: Highlighting the first element in multiple DIVS

2009-01-08 Thread Mauricio (Maujor) Samy Silva
Hi, I just realize that your code works fine. It's verbose but works to me. I am looking for some guidance on how to achieve a simple objective. I have multiple DIV elements on a page, and within each DIV there are 4 A elements. Within each A there is an IMG. My goal is to apply a class to

[jQuery] Correct way using Jquery

2009-01-08 Thread jq noob
Sorry this might be really simple but there is a reason my nickname is jq noob! I was wondering how to convert this JS function into proper Jquery code. function uncheckRadio(obj) { var choice = eval(document.editResource. + obj.name); for (i = 0; i choice.length; i++)

[jQuery] Re: Highlighting the first element in multiple DIVS

2009-01-08 Thread Martynas Brijunas
Hi Mauricio, $('.description a:first-child img').addClass('icon_selected'); the complete not-working example can be found here: http://0.latest.gentlecolours.appspot.com/albums?album_name=Leigh_on_sea Two things come to my mind: the statement is placed in the wrong place or it clashes with

[jQuery] Re: Highlighting the first element in multiple DIVS

2009-01-08 Thread Mauricio (Maujor) Samy Silva
Hummm! Tks for the link. There are others elements in the DOM tree of the document. Try: $('.description img:eq(0)').addClass('icon_selected') // add class to the 1st image element whitin div.description Maurício -Mensagem Original- De: Martynas Brijunas mbri...@gmail.com Para:

[jQuery] bind the same functionality to load and change event

2009-01-08 Thread lsblsb
hi there, i want to execute the same lines of code when the site has finished loading AND when an onchange-event is fired. i tried something like $(#properties div select).bind(ready change,function(e){ $(#properties div select).bind(load change,function(e){ but this does not work :/ can you

[jQuery] jqGalScroll in Joomla

2009-01-08 Thread ozz
Installed jQuery into Joomla article, portfolio scroll, looks awesome, works fine! Only one problem, it shows bullets beside each image and pagination... It's fine on a regular html page Can you guys help??? What should i do?

[jQuery] Joomla and jqGalScroll

2009-01-08 Thread Alex Osipov
Hi there, i am not sure if i am writing to the right place:) Installed jquery into the joomla, posted, works great Only one thing it's shows the bullets beside every image, and between pagination numbers It works fine on regular html page... Please help?? Best Regards, Alex 778.991.3593

[jQuery] [tooltip] catch images before showing them

2009-01-08 Thread kannibal
Hi, Im using jQuery tooltip to show a preview of links using http://url2jpg.nu/ First time it takes a long time, how can i cache all images before hovering the link? Regards Stefan

[jQuery] help me in jquery show( speed, [callback] ) effects

2009-01-08 Thread nage
hi I am new to jquery, i have on form with 3 images, i want call show( speed, [callback] ) function when clicking particuler image only for example img src=welcome.gif width=61 height=63 border=1 id=dd/ img src=welcome2.gif width=61 height=63 border=1 id=dd2/ img src=welcome2.gif

[jQuery] Re: image caching problem

2009-01-08 Thread Janis
Note, that your images will not be cached

[jQuery] Simulate BackSpace key

2009-01-08 Thread RSol
I read that I can simulate keypress with code: $('#editor').trigger(keypress, [],null,{which: 8,pageX:e.pageX,pageY:e.pageY}); This code dont work. Please help me solve this.

[jQuery] Re: jqGrid with JSON - blank table?

2009-01-08 Thread waiting
You can alse try use Array stead of string,such as (in PHP format): include_once 'include/JSON.php'; /* * @category * @package Services_JSON * @author Michal Migurski mike-j...@teczno.com * @author Matt Knapp mdknapp[at]gmail[dot]com * @author Brett Stimmerman

[jQuery] Re: click(function) in an iframe

2009-01-08 Thread Janis
You can place transparent div on top of iframe

[jQuery] Re: Highlighting the first element in multiple DIVS

2009-01-08 Thread Martynas Brijunas
  $('.description img:eq(0)').addClass('icon_selected') // add class to the 1st image element whitin div.description Now it selects the first image of the first div only. I have updated the test website with your change. Martin

[jQuery] Re: jquery cycle; click for next image

2009-01-08 Thread Mike Alsup
Hi there, I've got some next/prev links going with my jquery cycle and I'm trying to also include the div .folio_cycle to be clickable for next image; can someone help me with that reference? http://rejectedrobot.com/portfolio/new.html This should work: $('.folio_cycle').each(function() {

[jQuery] Re: bind the same functionality to load and change event

2009-01-08 Thread MorningZ
Move you common functionality into it's own function like function DoSomething() { var $drp = $(#properties div select); var val = $drp.val(); var txt = $drp.find(option:selected).text(); // Do some code with the select } and as long as the code is inside $(document).ready,

[jQuery] Re: Correct way using Jquery

2009-01-08 Thread MorningZ
What's the HTML look like? On Jan 8, 5:57 am, jq noob sammil...@alliancecom.net wrote: Sorry this might be really simple but there is a reason my nickname is jq noob! I was wondering how to convert this JS function into proper Jquery code. function uncheckRadio(obj) {         var choice

[jQuery] Re: Correct way using Jquery

2009-01-08 Thread jq noob
input type=radio ondblclick=javascript:uncheckRadio(this); name= %=variable% value=1 input type=radio ondblclick=javascript:uncheckRadio(this); name= %=variable% value=2 name is any number of radio groups contained in form named editResource. Number of radio buttons per group is 2 or 3 per

[jQuery] Re: Correct way using Jquery

2009-01-08 Thread Henry
jq noob wrote: Sorry this might be really simple but there is a reason my nickname is jq noob! I was wondering how to convert this JS function into proper Jquery code. Correct and proper are going to be very much influenced by various people's opinions. You have not explained what - obj - is

[jQuery] Re: Highlighting the first element in multiple DIVS

2009-01-08 Thread Mauricio (Maujor) Samy Silva
Hi Martin Sorry my fault. :-( Let's loop the div.description using the each() method. $('.description') .each(function(){ $('img:eq(0)', this).addClass('icon_selected'); }); Maurício ... Now it selects the first image of the first div only. I have updated the test website with your

[jQuery] Ajax: how to choose between post, get or ajax() ??

2009-01-08 Thread pixeline
I need to silently update an xml file to store some user's usage statistics, basically i pass an object to a php script, which generates the xml and stores it in a file. Now, looking at the ajax chapter of the docs, i'm not quite sure what's the best method to do that: $.get, $.post or $.ajax ?

[jQuery] Re: In a pickle -- JavaScript Pagination vs. PHP/MySQL Pagination

2009-01-08 Thread Eric Garside
I've always been a big fan of javascript for doing any pagination. Firstly, because it allows live, comparatively fast sorting of results. Secondly, because mysql is a bunch faster if it's not ordering or filtering results itself, and rather just returning a chunk of them. Thirdly, it's a lot

[jQuery] Re: Correct way using Jquery

2009-01-08 Thread Eric Garside
$('input[name=' + obj.name + ']').attr('checked', false); On Jan 8, 8:45 am, Henry rcornf...@raindrop.co.uk wrote: jq noob wrote: Sorry this might be really simple but there is a reason my nickname is jq noob! I was wondering how to convert this JS function into proper Jquery code.

[jQuery] Re: bind the same functionality to load and change event

2009-01-08 Thread lsblsb
okay. thank you! using an extra function was a way i thought about too. so i wasnt too wrong at least. On 8 Jan., 14:12, MorningZ morni...@gmail.com wrote: Move you common functionality into it's own function like function DoSomething() {     var $drp = $(#properties div select);     var

[jQuery] Re: Validation: Which and why...

2009-01-08 Thread Jörn Zaefferer
I've updated the Goals section a bit: http://docs.jquery.com/Plugins/Validation/Reference#Goals Jörn On Wed, Jan 7, 2009 at 11:24 PM, Tristan Burch m...@tristanburch.com wrote: It seems like a good idea to to both. That way if the user does have JavaScript disabled, there is still validation

[jQuery] Re: Correct way using Jquery

2009-01-08 Thread Henry
Eric Garside wrote: $('input[name=' + obj.name + ']').attr('checked', false); snip And if the same page contains INPUT elements with the same name either inside another form or outside of any form? It seems like a good idea to use - obj.form - to restrict the context of the search, and even if

[jQuery] Re: newbie code assessment please?

2009-01-08 Thread Eric Garside
Okay, the first step here is to be smart about how you write your html, and manage your hide/show. Use HTML to group your elements together, so you only ever need to hide a single element, and use the ref tag on your anchor (a) tags to store a code-readable value of the popup you want to fire.

[jQuery] Re: Correct way using Jquery

2009-01-08 Thread Eric Garside
And if the same page contains INPUT elements with the same name either inside another form or outside of any form? Then you made a poorly coded page. :P The only reason to have a name is so you can do something with the form data after submitting it. I assumed he was going to key off the name.

[jQuery] Re: Simulate BackSpace key

2009-01-08 Thread Eric Garside
What are you trying to achieve? That bit of looks... bad at best for achieving something. What's the goal? On Jan 8, 5:57 am, RSol viacheslav.rud...@gmail.com wrote: I read that I can simulate keypress with code: $('#editor').trigger(keypress, [],null,{which: 8,pageX:e.pageX,pageY:e.pageY});

[jQuery] Re: (smooth) scroll to anchor but...

2009-01-08 Thread Karl Swedberg
Hi there, Here's a quick and dirty way to do it, off the top of my head. Totally untested, but should get you started, at least: // determine left and top position of img var imgLeft = $('#yourImage').offset().left; var imgTop = $('#yourImage').offset().top; // on click, grab the coords

[jQuery] ajaxForm with validate plugin - doubleclick form submit issue...

2009-01-08 Thread Raghu
Hi, I am having a strange issue with ajaxForm...this form load normally without ajax call but I use ajaxForm for form submit. This form get submitted only on *double click of submit button*...Any idea why this behaviour? I am using validate plugin for form validation... Here is my code... //

[jQuery] Re: Correct way using Jquery

2009-01-08 Thread jq noob
So thanks for the input. Here is what I have as of right now. function uncheckRadio(obj) { var i; var choice = obj.form[ obj.name ]; for (i = 0; i choice.length; i++) { $('input[name=' + obj.name + ']').attr('checked', false); } } I

[jQuery] Re: Simulate BackSpace key

2009-01-08 Thread RSol
I write WYSWYG editor. Need to replace ':)' to image on the fly. I use execCommand('InsertImage',false,img) in 'keyup' evens, but I need to remove ':)', otherwise execCommand put image each time I press the key. On 8 янв, 17:20, Eric Garside gars...@gmail.com wrote: What are you trying to

[jQuery] Re: Correct way using Jquery

2009-01-08 Thread Eric Garside
What are you actually attempting to achieve? On Jan 8, 10:23 am, jq noob sammil...@alliancecom.net wrote: So thanks for the input. Here is what I have as of right now. function uncheckRadio(obj) {         var i;         var choice = obj.form[ obj.name ];         for (i = 0; i

[jQuery] Re: Correct way using Jquery

2009-01-08 Thread jq noob
I guess we posted at the same time. I was initially confused thinking that your one line needed to be in a loop, but I see now that it doesn't and that I could get by with function uncheckRadio(obj) { $('input[name=' + obj.name + ']').attr('checked', false); } On Jan 8, 9:17 am, Eric

[jQuery] Re: having a child div inherit a parent width

2009-01-08 Thread Karl Swedberg
This might be a little cleaner: $(document).ready(function(){ var cellWidth = [80, 110, 145, 70, 100, 100, 236]; for (var i=0, cl= cellWidth.length; icl; i++) { $('td:nth-child(' + (i+1) + ')').width(cellWidth[i]) .children().css({overflow: 'hidden'}).width(cellWidth[i]);

[jQuery] Re: help me in jquery show( speed, [callback] ) effects

2009-01-08 Thread RSol
To all images: $('img').show() To welcome.gif only: $(img[src='welcome.gif']) Please read docs. On 8 янв, 12:30, nage r.nagendra...@gmail.com wrote: hi  I am new to jquery,   i have on form with 3 images,  i want  call show( speed, [callback] ) function  when  clicking particuler  image

[jQuery] Re: ajaxForm with validate plugin - doubleclick form submit issue...

2009-01-08 Thread Jörn Zaefferer
Replace ajaxForm with ajaxSubmit. A demo for that is here: http://jquery.bassistance.de/validate/demo/ajaxSubmit-intergration-demo.html Jörn On Thu, Jan 8, 2009 at 4:23 PM, Raghu techhel...@gmail.com wrote: Hi, I am having a strange issue with ajaxForm...this form load normally without ajax

[jQuery] Re: Correct way using Jquery

2009-01-08 Thread jq noob
I am trying this and it does not work input type=radio name=%variable% value=1 input type=radio name=%variable% value=2 $(document).ready(function(){ $(':radio').dblclick(function(){ $(this).attr('clicked', false); }); }); It seems that I should be using ~

[jQuery] Re: Highlighting the first element in multiple DIVS

2009-01-08 Thread Ricardo Tomasi
Those br /s make it all more difficult, why not use proper p elements? If you wrap the colour anchors in a DIV, you can remove both colour and icon classes, and the script gets simpler: div class=colours a href=#FF img src=images/icons/snowwhite.png alt=... / /a a href=#FF

[jQuery] Re: Correct way using Jquery

2009-01-08 Thread Eric Garside
Yep. My bad. _ You can even trim down the document.ready function syntax from $ (document).ready(function(){}); to: $(function(){ $(':radio').dblclick(function(){ $(this).attr('checked', false); }); }); That should do what you're lookin for. On Jan 8, 10:54 am, jq noob

[jQuery] cycle plugin calling onclick function automatically

2009-01-08 Thread Mike Dodge
I've posted troubles with this site in the past. I'm still having some problems with the cycle plugin. Here is the URL: http://adc4web.adceval.com/#_contact-us What happens when you go to that url is that it first goes to the home page and then uses the cycle plugin to transition to the Contact

[jQuery] Re: Correct way using Jquery

2009-01-08 Thread Ricardo Tomasi
That's right, you want to change the 'checked' attribute, there is an even simpler way: $(':radio').dblclick(function(){ this.checked = false; }); And speaking of attributes, the XHTML standard is checked=checked, not true.

[jQuery] Re: Simulate BackSpace key

2009-01-08 Thread Eric Garside
Ah, I think I see the issue. Am I right in assuming that you don't want to simulate the backspace, but detect it? Also, how are you keeping track of the replacement? It seems to me that you could do yourself a big favor and make what the user enters not what you show the user, so when they

[jQuery] Re: newbie code assessment please?

2009-01-08 Thread Ricardo Tomasi
I bet this will only confuse you, but this is the way I'd do the popup part: ul id=menu li class=onea href=#web/a/li li class=two alta href=#content/a/li li class=threea href=#pc/a/li li class=four alta href=#blog/a/li li class=fivea href=#me/a/li

[jQuery] Re: Correct way using Jquery

2009-01-08 Thread Eric Garside
Thanks Ricardo. For some reason I thought jQuery was set up to handle the standard so setting false/true would set those special xhtml attributes to their proper values. But alas, it was either some other framework of yesteryear, or merely a dream I concocted. On Jan 8, 11:18 am, Ricardo Tomasi

[jQuery] Simplemodal causes validators to fire on webform

2009-01-08 Thread tawright915
When I click the close button on my modal message box it causes the required field validators to fire on my form. Is there a way to stop this from happening? Tom

[jQuery] Re: newbie code assessment please?

2009-01-08 Thread Eric Garside
Why not simplify it a bit more and avoid the whole class lookup? div id=popBoxes div id=web class=popBox /div div id=content class=popBox /div div id=pc class=popBox /div /div jQuery(function($){ $('.menu li').click(function(){

[jQuery] Re: Searching a DataGrid PlugIn

2009-01-08 Thread Tony
Hello Stefan, I'm not sure if you have read the docs of jqGrid, but with a little effort you can simulate this with jqGrid. I suppose you have enclose the grid in div, then you can use onresize to calculate the new width and height of the element and use the setGridWidth and setGridHeight methods

[jQuery] Problem setting html in iframe.

2009-01-08 Thread m.ugues
Hallo all. I would like to set the html content of on iframe via jquery, I have a page where is defined the iframe: ... body iframe id=operativita height=500 width=100/ div id=myDiv class=block/div /body and via jquery I set the html like

[jQuery] Re: Call object method onclick

2009-01-08 Thread fatslags2...@gmail.com
Thanks for the solution, works great. On Jan 4, 7:02 pm, Balazs Endresz balazs.endr...@gmail.com wrote: Hmm, I don't think you should do this: Viewer = new Viewer; this will overwrite your class and you can't instantiate it again! rather:     initialize: function()     {         var

[jQuery] Re: Problem setting html in iframe.

2009-01-08 Thread Jörn Zaefferer
Try this: $(iframe)[0].contentDocument.body.innerHTML = HELLO Jörn On Thu, Jan 8, 2009 at 5:41 PM, m.ugues m.ug...@gmail.com wrote: Hallo all. I would like to set the html content of on iframe via jquery, I have a page where is defined the iframe: ... body

[jQuery] Re: adding a class to an object if the next object has the same attribute value.

2009-01-08 Thread peet
Nice Works perfectly. Exactly what i need. Never considered the function each for this purpose!. On Jan 7, 5:07 pm, Ricardo Tomasi ricardob...@gmail.com wrote: In this line: $(.row div).next([Type=+$(this).attr(Type)+]) 'this' is refering to the 'window' object or some other context, not

[jQuery] Re: Get TD Position [X, Y]

2009-01-08 Thread dbzz
maybe you could skip the positioning and just put the sub menu in the td - $(.left_menu_td).mouseover(function(){ $(#sub_menu).prependTo( this ).show(); });

[jQuery] Is there any plugin or script for making a tree view multi-select

2009-01-08 Thread Pradeep Garikipati
Hi Friends, I am using jQuery tree-view plugin for generating a tree from a list. It worked with-out problems, but now I have a requirement where I have to provide multi-select option in that tree. I researched for quite some time to figure out a way to include multi-select functionality in the

[jQuery] Re: sent a message, nothing visible

2009-01-08 Thread jQuery Lover
I am not receiving messages. So I am testing if my messages are going out :) On Thu, Jan 8, 2009 at 3:47 PM, lsblsb lsb...@gmx.de wrote: just send a message here, but it doesnt appear since 2 hours. so this is a test... -- jQuery HowTo Resource http://jquery-howto.blogspot.com

[jQuery] Between document communication...

2009-01-08 Thread pejot
Hi, I have not easy stuff to do...maybe you know solution. I have simple jquery page. There are button and ui.tabs widget with ajax mode page (a href=page.html..) Button has $(#button).click() ( function and never might be clicked directly by mouse button. This function should be

[jQuery] Re: jqGalScroll in Joomla

2009-01-08 Thread jQuery Lover
Set css style for your unordered list items to none; ul{ list-style:none; } On Thu, Jan 8, 2009 at 8:33 AM, ozz osipov.a...@gmail.com wrote: Installed jQuery into Joomla article, portfolio scroll, looks awesome, works fine! Only one problem, it shows bullets beside each image and

[jQuery] jQuery - Binding to Ajax Event

2009-01-08 Thread goodsanket
Hi all I am developing a portal and i am kind of stuck. I am using multiple AJAX calls to get data dynamically from a JSON file. In one page I am making 2 AJAX calls, and I want to call a function on call back from AJAX. I found out a way to do it, its something like this,

[jQuery] Re: Tutorials or examples of jQuery and ColdFusion?

2009-01-08 Thread Rick Faircloth
Hi, Andy...and thanks for the reply. Nothing specific at this point, but just anything to help me see how ajax does its thing. It's a little confusing how the data flows. I mean, I can make it work...I'd just like to understand it better. And I'd like to see some examples of best or at least

[jQuery] Re: showErrors and errorPlacement [validation]

2009-01-08 Thread morraine
Hi jörn thanks for the reply; OK yes i have seen than demo and ive played about with it as well but it seems to only update the amount when you click the submit button. I want it to update on every validation event (keyup, focus etc) so that when you enter the correct information for 5

[jQuery] How to force processing of ColdFusion code when using .load

2009-01-08 Thread Rick Faircloth
How can I force the processing of ColdFusion code in a menu segment when I have some login and I replace the menu HTML. I had some conditional code like: cfif isdefined(session.announcements) and session.announcements eq 1 lia

[jQuery] Re: how to select all first td's inside all tr in a table

2009-01-08 Thread Chandan Luthra
$('tr').find('td:eq(0)') this will work.. With Regards, Chandan Luthra Intelligrape Software Pvt. Ltd. On Fri, Jan 9, 2009 at 4:04 AM, Mauricio (Maujor) Samy Silva css.mau...@gmail.com wrote: $('tr td') // match ALL td's that are children of a tr. $('tr td:first-child') // match ONLY