[jQuery] Re: number of elements with a specific CSS class

2009-03-29 Thread Macsig
so easy ;) thank you man On Mar 28, 10:33 pm, Marco Elisio Oliveira Jardim marquinho.jar...@gmail.com wrote: A simple $('#slider .navigation li').length; will make it. ;) _ Lois Griffin: I’m a naughty girl and I need a spanking! Peter Griffin: And I'm a

[jQuery] Hide all elements after an element

2009-03-29 Thread iceangel89
I am a something like cascading drop down, except i am dealing with not only drop downs. - user must select 1st drop down, then 2nd drop down displays - when user selects 2nd drop down, 3rd drop down displays ... but when user changes the selection of 1st drop down, it will update the 2nd drop

[jQuery] Re: Adding scope support to .bind()

2009-03-29 Thread Azat Razetdinov
From the updated jQuery 1.4 Roadmap: If you need a different object for the scope, why not use the data argument to transport it? In OOP-style applications the handler is often not an anonymous function but a link to the current objects's prototype method: this._input.bind('change',

[jQuery] Re: jquery form plugin problem

2009-03-29 Thread dth
On 29 Mar., 02:46, Mike Alsup mal...@gmail.com wrote: Well there must be more to the story than what you're telling us.  The code you've shown above looks fine.  Perhaps there is a problem with the json response. Actually that was excactly the problem. It would be good to get some kind of

[jQuery] post form using jquery ajax

2009-03-29 Thread iceangel89
how can i post a form to server using jquery? $.post requires me to post data in key value pairs. if the form is big then that's a bit tedious. any better way?

[jQuery] Re: IDE for JQuery?

2009-03-29 Thread adelf
Free products - Eclipse + PDT + Spket plugin, NetBeans.. On Mar 28, 5:57 am, iceangel89 iceange...@gmail.com wrote: which IDE is best for JQuery? i mean like has code completion for JQuery, at least HTML, CSS, JavaScript. best if it can also code complete PHP/Zend Framework. or your custom

[jQuery] Re: IDE for JQuery?

2009-03-29 Thread 李民瑋
notepad : )

[jQuery] Re: jquery form plugin problem

2009-03-29 Thread Mike Alsup
Cool, you should mention that on the website :) Oh wait - this would kind of be the failure function mentioned above. I actually get parsererror as statustext in the complete function. Just didn't know about it :) You can use all of the normal ajax options with the Form plugin. success,

[jQuery] Re: .load() problems in ie

2009-03-29 Thread derrickkwa
Nope, didn't help. Any other thoughts? On Mar 27, 3:07 am, James james.gp@gmail.com wrote: Try changing: var toLoad = $(this).attr('href')+' #content-wrapper'; To: var toLoad = $(this).attr('href')+'#content-wrapper'; (remove the space before #) On Mar 26, 2:42 am, derrickkwa

[jQuery] css :hover problem

2009-03-29 Thread kostik
Hi, i just don't get it. This is what I have: a { background: url(../images/test.jpg) no-repeat scroll 0 0; } a:hover { background: url(../images/test.jpg) no-repeat scroll -228px 0; } Now, when I call $('a').css('background-position', '-500px 0'); the CSS forgets about

[jQuery] next / siblings issue

2009-03-29 Thread Dunc
I'm building cascading selects, but because they could come from mulitple locations within the HTML, I need to capture the ID of the parent select (easy enough) and the child select. This correctly displays the parent select: var ddlSource = this.id; alert(ddlSource); This enumerates all

[jQuery] Re: post form using jquery ajax

2009-03-29 Thread Dunc
Check out: http://www.dexign.net/post/2008/07/16/jQuery-To-Call-ASPNET-Page-Methods-and-Web-Services.aspx Makes it really simple. On 29 Mar, 09:34, iceangel89 iceange...@gmail.com wrote: how can i post a form to server using jquery? $.post requires me to post data in key value pairs. if the

[jQuery] Re: IDE for JQuery?

2009-03-29 Thread Chan Pen Cheong
I am using Eclipse with APTANA plugins that support JQuery. On Sun, Mar 29, 2009 at 7:00 PM, adelf adel.f...@gmail.com wrote: Free products - Eclipse + PDT + Spket plugin, NetBeans.. On Mar 28, 5:57 am, iceangel89 iceange...@gmail.com wrote: which IDE is best for JQuery? i mean like has

[jQuery] [Validate] Support for Validation Grouping

2009-03-29 Thread jmarnold
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 the plugin now with regards to ASP.NET's concept of CausesValdiation and ValidationGroup. I envision having some sort of grouping mechanism of rules

[jQuery] DatePicker / Calendar Problem

2009-03-29 Thread acatejr
Hello, I need to show a calendar in my web app. The application has a database that has a table of with a list of dates for when events have happened in the past. When the calendar is displayed it needs to show these existing dates in the date event table using a different color. Is there a

[jQuery] Unbind form submit after it has been submitted

2009-03-29 Thread koichirose
Hi! I'm using the jQuery form plugin ( http://malsup.com/jquery/form/ ). I have a form with this fields: form id=insertcomment action=insertcomment.php method=post textarea name=bodytext cols=50/textareabr / input type=submit id=submitme name=submit value=Submit / And this script:

[jQuery] Re: css :hover problem

2009-03-29 Thread donb
'background-position' is really a shorthand expression for background- position-x and background-position-y I would try switching to the -x proprety to see what happens. On Mar 29, 1:27 am, kostik i...@kostik.de wrote: Hi, i just don't get it. This is what I have: a {         background:

[jQuery] Re: ASP.Net style validation group

2009-03-29 Thread menevets
Just wanted to thank you for posting this - it saved me alot of time. I initially mistakenly used the id attribute, but once I used name, it worked. Hopefully I can get some testing in and if I find anything worth mentioning, I'll post back. On Mar 16, 5:47 pm, Sam sam.critch...@shivam.com.au

[jQuery] Re: next and previous links with thumbs on mouseover

2009-03-29 Thread Victor Nogueira
Hi Mike, Can you please help me making a list of thumbs without links, that have a class to the thumb for next image and prev image? I just wanted to identify next/prev thumbs dinamically (with classes), so I can hide the others and display next/prev on mouseover. Thank you a lot for the answer.

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

2009-03-29 Thread Merindol
Great option ! And the text is no affected. Thanks to you. Mike Alsup a écrit : Thanks for the tip. Removing the cleartype solves the issue but indeed the text is ugly (I'm using Cycle on paragraphs of text). Actually, instead of removing cleartype, I just added the CSS rule background:

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

2009-03-29 Thread Shedokan
I am trying to create something like ms paint in jquery and I want it to support 1000X1000 and that's a lot of pixels(one million to be exact). each pixel is a div so I need a way for handling that much divids. I currently map an array as an image and then create an element for each pixel. but

[jQuery] Re: next / siblings issue

2009-03-29 Thread mkmanning
Adding the expr just filters the matched elements further. Try .nextAll ('select'). On Mar 29, 2:42 am, Dunc duncan.we...@gmail.com wrote: I'm building cascading selects, but because they could come from mulitple locations within the HTML, I need to capture the ID of the parent select (easy

[jQuery] Re: IE not passing ajax value in form

2009-03-29 Thread webguy262
I can post the full ajax script but it is fairly standard so in the interest of space I omitted it. webguy262 wrote: I have two forms on a page (www.eastexhaust.com/inventory.php). One uses ajax to generate a part number by selecting values from a series of selection boxes. The other

[jQuery] Re: post form using jquery ajax

2009-03-29 Thread Abdullah Rubiyath
Hi, I believe you can post form either using $.post or $.ajax method and there's a function called serialize( ), which serializes form data, instead of typing it's data in key value pairs manually. Serialize: http://docs.jquery.com/Ajax/serialize $.post and $.ajax:

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

2009-03-29 Thread Lars Schöning
Hello, Apologies if this turns out to be a trivial question. I currently am working with jQuery on a set of elements assigned to colored categories via a 'cat_[id]' class. Categories can change colors and if they do I want to update the color of every elements belonging to it. I want the same to

[jQuery] bassistance tooltip (for images): height issue

2009-03-29 Thread kneidels
hey there i am using the tooltip plug (jquery.bassistance.de/tooltip/demo) and it works pretty good. the best pasrt of the option to draw the image SRC straight from the REL attirbute! it offers you the option to set a width for the tooltip. my issue is that while it does resize the width - the

[jQuery] Validation

2009-03-29 Thread iceangel89
whats the best way/plugin for validation in jquery? just wondering whats the best practice for validation if user disables js?

[jQuery] Grid/Paging

2009-03-29 Thread iceangel89
whats the best way for a grid/table with paging in jquery? will it be better to do it in server side?

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

2009-03-29 Thread donb
Use the Canvas facility instead? It's a drawing 'canvas,' after all. On Mar 29, 10:11 am, Shedokan shedo...@yahoo.com wrote: I am trying to create something like ms paint in jquery and I want it to support 1000X1000 and that's a lot of pixels(one million to be exact). each pixel is a div

[jQuery] UI Datepicker: block out weekends?

2009-03-29 Thread jaybee
using the latest jquery UI datepicker, is it possible to block out certain days, like Sat and Sun. our office doesn't open on the weekend, so there's no point in letting people pick those days for appointment.

[jQuery] Dragging image out of scrolling Div?

2009-03-29 Thread simusch
Hi there Can anybody tell me, how to get an image dragged out of a scrolling div (css: overflow:scroll) no matter how i define the z-index, the dragged image is always behind the divs around... when i define the div as overflow:hidden, it works like i want. hope to get some help here :)

[jQuery] Re: Image/map Viewer

2009-03-29 Thread Todd
What I am trying to do is simular to http://www.netzgesta.de/shiftzoom/ I have tried panView http://motherrussia.polyester.se/jquery/panview/ but can not seem to get it to work, even when I copy the code on the site . I have tried $(#draggable).animate({ marginTop: 25px,marginLeft: 25px,}, 1000

[jQuery] Hide problem

2009-03-29 Thread LaUr3nTiU
//This might be a double post, I'm not sure... I've already posted this message about 10 minutes ago and it didn't show up yet... so... dunno Hello. I have a div with the id 'menu', inside it i have a ul, and in that i've inserted 7 li tags, each with display: inline. In each li I have a link.

[jQuery] Counting Divs (IE6)

2009-03-29 Thread lardlad
I am having a problem counting the number of divs inside a container, var cellCount = $(#cellCont).children().length; cellCount is coming up undefined in IE6. Any idea why? here's the html: div class=block id=cellCont div class=cell id=cellFirst?php include('design/print/

[jQuery] Re: IE Problem Animating opacity on a Alpha PNG

2009-03-29 Thread Corgalore
I'm having the same problem. I noticed it while using FaceBox. During the fadeout the borders fade to black before fading out. The same thing happens when I swap the border pngs for my own. Does anyone know a workaround for this? On Feb 27, 5:13 am, Liam Potter radioactiv...@gmail.com wrote:

[jQuery] String to Array

2009-03-29 Thread Pronojit
Hi, Is it possible to convert a string into array Like this var x = '[1,2,3],[1,2],[a],[[1],[asw]]'; This is equal to var x = [1,2,3],[1,2],[a],[[1],[asw]]; Thanks Regards, Pronojit Roy

[jQuery] Re: UI Datepicker: block out weekends?

2009-03-29 Thread MorningZ
I think the beforeShowDay event would be what you need http://www.jqueryui.com/demos/datepicker/#event-beforeShowDay The function takes a date as a parameter and must return an array with [0] equal to true/false indicating whether or not this date is selectable So your true/false would be

[jQuery] Ugly code causing problems in IE

2009-03-29 Thread bgthomson
Hello, I am a jquery newbie, and I am trying to get an effect off the ground. It works fine in Mozilla but not in IE. Does anyone know what I'm doing wrong. Many apologies for the ugly code - I'm not really a jquery programmer, so not sure how to make it more efficient. At the moment, I'm just

[jQuery] adding dynamic buttons to code slider

2009-03-29 Thread macsig
Hello guys, I'm trying to make some changes to the coda slider created by Remy at jqueryfordesigner.com but I have hard time so figure out that is wrong with my code. I hope someone can help me out with this issue. I want to change dynamically the left and right buttons according to the current

[jQuery] PHP and hide()

2009-03-29 Thread talasan.nichol...@gmail.com
How would I go about creating something that would have multiple divs, and if you clicked one of them it'd show something. But they're not specifically named, it's created by PHP. The ID would be like rawr123123414 based on the count() in the database.

[jQuery] Re: iframe ang jQuery

2009-03-29 Thread Themba Ntleki
Thanks, guys, basically, I want an iframe auto-resize, how can use use Ajax to load the other website in a div. I want to embed a php driven page in a asp.net website. I found this script online, but the script does not work:

[jQuery] Re: css :hover problem

2009-03-29 Thread Karl Swedberg
On Mar 29, 2009, at 9:09 AM, donb wrote: 'background-position' is really a shorthand expression for background- position-x and background-position-y I would try switching to the -x proprety to see what happens. It depends on the browser. Firefox 3.0.x doesn't recognize background-

[jQuery] Re: next / siblings issue

2009-03-29 Thread Dunc
Nope, it would seem I'm failing jQuery101. I've tried: var ddlSource = this.id; // this works perfectly alert(ddlSource); var ddlTarget = $(this).nextAll('select'); alert('target1: ' + ddlTarget.id); ddlTarget = $(ddlSource).nextAll('select'); alert('target2: ' + ddlTarget.id); ddlTarget =

[jQuery] Re: next / siblings issue

2009-03-29 Thread mkmanning
Given this html: table class=form tr td class=label width=200Category*/td td select name=ctl00$cphMain$repSkills $ctl00$ddlSkillCategory_ID id=ctl00_cphMain_repSkills_ctl00_ddlSkillCategory_ID class=SkillCategory option value=-1Skill or Service/option

[jQuery] Re: Ugly code causing problems in IE

2009-03-29 Thread MorningZ
Might help others help you if you point out what is not working the .load() part? adjusting the CSS? On Mar 29, 2:26 pm, bgthomson bjorn.thom...@gmail.com wrote: Hello, I am a jquery newbie, and I am trying to get an effect off the ground. It works fine in Mozilla but not in IE. Does

[jQuery] Re: iframe ang jQuery

2009-03-29 Thread bjorsq
If you want a website loaded in a div, then that would be a little bit difficult - I was really talking about loading content from another website (not the whole thing with stylesheets, images, video, scripts, etc.). I think it would be possible if you could run scripts in both the parent

[jQuery] Re: next / siblings issue

2009-03-29 Thread Dunc
Urgh. Thanks very much for your help, I've found the issue. I didn't think of changing my testing methodology; it would seem that a number of things I'd tried would have worked. The confusion (and I clear this up only for the other people who read this who have the same problem as me) was that

[jQuery] ajax problem in IE

2009-03-29 Thread webguy262
I have two forms on a page (www.eastexhaust.com/inventory.php). One uses ajax to generate a part number by selecting values from a series of selection boxes. The other form emails the part number so we can reply with a quote. Everything works fine in FFox, but does not work in IE. Therefore,

[jQuery] return position in an array

2009-03-29 Thread Victor Nogueira
I want to find out if an element who has the class .example is positioned as last-child. So I can add this condition to a if. I need to figure out if the element is the last in the list, comparing it's position in the array with array length. Any ideas?

[jQuery] Re: return position in an array

2009-03-29 Thread Victor Nogueira
In other words, I need to check the position of the element who has the .example class. (It's really difficult to make people understand me in english. ;P) On Mar 29, 6:07 pm, Victor Nogueira victor.carcr...@gmail.com wrote: I want to find out if an element who has the class .example is

[jQuery] Re: bind to front of event stack

2009-03-29 Thread sliver
Thanks Eric! I made some adjustments to your code (to make it a bit more readable for me and to essentially just splice in the bound function to the stack in the desired location). You can check out the changes here: http://snipplr.com/view/13556/jquery-event-stack-binder/ On Mar 27, 10:19 

[jQuery] Re: click(function() works only once per page load?

2009-03-29 Thread Mr. Zeph
Thanks On Sun, Mar 29, 2009 at 1:25 AM, Ricardo ricardob...@gmail.com wrote: That's as simple as changing $(.ajax_homes_primary_img).click (function(){ to $(.ajax_homes_primary_img).live('click', function() Thanks, tried it, and even used livequery (amazing how fast this stuff is to pick

[jQuery] Re: return position in an array

2009-03-29 Thread mkmanning
$(selector_for_your_element).is(:last-child) will return a boolean, which it sounds like you'd want for your conditional anyway? On Mar 29, 2:14 pm, Victor Nogueira victor.carcr...@gmail.com wrote: In other words, I need to check the position of the element who has the .example class. (It's

[jQuery] [validate] Support for Validation Grouping

2009-03-29 Thread jmarnold
I'm not sure why the subject isn't showing up properly? On Mar 29, 12:08 am, jmarnold rncodep...@gmail.com wrote: I'm working on integrating the validate plugin with ASP.NET. I have the basicvalidationworking just fine but I'm running into a few limitations of the plugin now with regards to

[jQuery] Re: css :hover problem

2009-03-29 Thread kostik
Thanks, Karl!

[jQuery] Re: Hide problem

2009-03-29 Thread Hector Virgen
Instead of calling .hide() and .show(), try setting the css manually with .css({display: 'none'}) and .css({display: 'inline'}) Or, if you want to keep the animations, you can float left the LI elements instead of making them inline. On 3/29/09, LaUr3nTiU laurentiu.ter...@gmail.com wrote:

[jQuery] Re: String to Array

2009-03-29 Thread sliver
This is more of a general javascript question rather than jQuery... To answer your question though: first, you would need to make the string resemble an actual array structure: var x = '[[1,2,3],[1,2],[a],[[1],[asw]]]'; then you could simply use eval(x). On Mar 29, 11:31 am, Pronojit

[jQuery] Re: IDE for JQuery?

2009-03-29 Thread Earth
(Open)Komodo has it all or Netbeans if your computer is powerful enough. On Mar 28, 2:57 am, iceangel89 iceange...@gmail.com wrote: which IDE is best for JQuery? i mean like has code completion for JQuery, at least HTML, CSS, JavaScript. best if it can also code complete PHP/Zend Framework.

[jQuery] Re: IDE for JQuery?

2009-03-29 Thread gabriel balint
NetBeans rocks, komodo it's not there yet On Sun, 2009-03-29 at 16:27 -0700, Earth wrote: (Open)Komodo has it all or Netbeans if your computer is powerful enough. On Mar 28, 2:57 am, iceangel89 iceange...@gmail.com wrote: which IDE is best for JQuery? i mean like has code completion for

[jQuery] trouble with tooltip, i know soem ways to fix but not how to implement

2009-03-29 Thread Mathew
hi i am having trouble finding an answer to this by searching. i have this tooltip script for blowing up thumbnails. the original would positioon the element based on offset mouse position but that would take my element off the screen if the thumbnail was on the right or left. now i have it fixed

[jQuery] Re: Star rating plugin problems

2009-03-29 Thread Sergey
Hello Diego, Have recently installed it on one my hobby site and I have a small problem on plugin and cant find what is wrong. it works perfectly in FF, IE but not in safari and chrome. Using split and it display all half parts of star. If you have a min to tell where should i look at will be

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

2009-03-29 Thread Christian Cibelli
Hey Mike, I have the same problem on my site. I added the cleartypeNoBg but nothing happens, it just was fixed when i use cleartype but, the text goes ugly :( any idea? thanks a lot, On Mar 29, 11:09 am, Merindol rndme...@gmail.com wrote: Great option ! And the text is no affected. Thanks

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

2009-03-29 Thread Mike Alsup
I have the same problem on my site. I added the cleartypeNoBg but nothing happens, it just was fixed when i use cleartype but, the text goes ugly :( any idea? No ideas other than what I already posted. Maybe you could post a link to your site?

[jQuery] Re: Position Div over Quicktime Movie

2009-03-29 Thread Nic Hubbard
Seriously? On Mar 26, 2:57 pm, Saira Zaheer sairazaheer...@gmail.com wrote: http://tinyurl.com/dar2ld http://tinyurl.com/cvjkqa http://tinyurl.com/ae56nz On 3/26/09, Nic Hubbard nnhubb...@gmail.com wrote: Anyone? On Mar 24, 4:41 pm, Nic Hubbard nnhubb...@gmail.com wrote: Does

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

2009-03-29 Thread Ricardo
No normal browser/computer has enough power to deal with that many elements without getting slow. The fastest way to do it would be something like this (array join, append a single element, use innerHTML directly): var html = [], i = 0; html[i++] = 'div id=container'; for(var ln = 500*500;i ln;

[jQuery] Re: Position Div over Quicktime Movie

2009-03-29 Thread Mike Alsup
Does anyone know of any jQuery/javascript trickery that can help with positioning a div over a quicktime movie?  So far, I found found that it is not possible.  But, it seems that there has to be some way to do this! Has anyone done this before? Have you tried using an iframe? Or maybe

[jQuery] Re: Hide all elements after an element

2009-03-29 Thread Ricardo
$('#dropdown').nextAll().hide() will hide all elements that follow. http://docs.jquery.com/Traversing or using CSS selectors: $('#mydiv select:eq(1) ~ select').hide(); http://www.w3.org/TR/css3-selectors/#general-sibling-combinators On Mar 29, 4:00 am, iceangel89 iceange...@gmail.com wrote: I

[jQuery] Problem setting input value from SimpleModal Box

2009-03-29 Thread John
Hello all, My dilemma is this. I have a simple form with several text fields, checkboxes, and textareas. I also have a SimpleModal box that opens from a hyperlink on the form. In this Modal box, I have a simple search form that returns search data from a mysql database. The returned search data

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

2009-03-29 Thread RobG
On Mar 30, 11:14 am, Ricardo ricardob...@gmail.com wrote: No normal browser/computer has enough power to deal with that many elements without getting slow. The fastest way to do it would be something like this (array join, append a single element, use innerHTML directly): var html = [], i

[jQuery] Re: bind to front of event stack

2009-03-29 Thread sliver
Actually, I need to make some changes... I wasn't correctly setting the events object to the new order. On Mar 29, 5:23 pm, sliver sliver2...@gmail.com wrote: Thanks Eric! I made some adjustments to your code (to make it a bit more readable for me and to essentially just splice in the bound

[jQuery] Re: Problem setting input value from SimpleModal Box

2009-03-29 Thread Eric Martin
John, I don't see where you are calling the modal, but you may be having issues if you aren't binding/looking for the data in on of the callbacks, like onShow. -Eric On Mar 29, 7:38 pm, John jmcl...@birchrunsoccer.org wrote: Hello all, My dilemma  is this. I have a simple form with several

[jQuery] Get element's html and the element

2009-03-29 Thread will
Hi, Trying to grab an element from the page and save it to a file. I'm able to get its contents with .html() but I can't figure out how get the container itself (and its contents) without resorting to wrappers. Basically, I want $(div#container).html(); to output div id=containerall the

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

2009-03-29 Thread Shedokan
thanks for all of your comments, I will try them all. As for canvas, I can't really use it because I want to support pixel editing and when resizing the canvas I'll need to re render it again and again. and as for flash, when I try to add that much pixels it gives me a warning about stopping