[jQuery] Re: How to make this work for multiple elements with same class

2009-01-13 Thread MorningZ
to start: you have $('this') it should be without the ticks $(this) On Jan 13, 2:50 pm, "Rick Faircloth" wrote: > Here's the code that I'm trying to make function > for multiple links on a page with the class of "update-link" > > How would I change this to make it work for the specific > .upd

[jQuery] How to make this work for multiple elements with same class

2009-01-13 Thread Rick Faircloth
Here's the code that I'm trying to make function for multiple links on a page with the class of "update-link" How would I change this to make it work for the specific .update-link element that I click? $(document).ready(function() { $('.up

[jQuery] Re: What am I getting this error?

2009-01-13 Thread Rick Faircloth
Nope...neither of those worked. I finally just gave up on creating vars from the code and used the straight code itself...no errors. Can't figure out why it wouldn't work to var them, however. Rick > -Original Message- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.c

[jQuery] Re: .animate() queue without pause between animations

2009-01-13 Thread Nikola
Also, you might want to try posting questions like this one in the jQuery UI group as .animate is part of jQuery UI. http://groups.google.com/group/jquery-ui?hl=en&pli=1

[jQuery] Re: Event code in different .js files

2009-01-13 Thread MorningZ
"However, I assume if I do this in two different .js files, the second one will replace the first one" and your assumption is not correct < javascript1.js -> $(window).load(function() { alert("Alert in One"); }); <--> < javascript2.js -> $(wi

[jQuery] Re: Code simplification?

2009-01-13 Thread MorningZ
If you have control on the HTML, it would be a LOT easier/cleaner/make- more-sense if you separate classes for instance to That would make your jQuery life much easier, plus it makes the items actually have "common" class characteristics Now when you want to manipulate them a

[jQuery] Re: $('.classname') returns NULL in IE

2009-01-13 Thread MorningZ
Without seeing more of your HTML, it's next to impossible to recommend anything. if document.getElementById("someid") references something and $ ("#someid") doesn't, then that points to jQuery not being properly loaded and/or used On Jan 13, 10:06 am, DEfusion wrote: > I have a document w

[jQuery] Re: .animate() queue without pause between animations

2009-01-13 Thread Nikola
It's hard to tell without having a look at the code. You may want to try http://paste.pocoo.org to post code like this. Are you chaining the animations? ie. $(this).animate({},speed).animate ({},speed).animate({},speed); You could always try setting a delay on your second animation with setTime

[jQuery] html() function remove attribute double quote in IE

2009-01-13 Thread cc96ai
alert( $(content).html() ); - html code: http://www.google.ca"; target="_new">test link http://www.google.ca"; target="_new">test link2 - it will return in IE6 http://www.google.ca"; t

[jQuery] Re: Once validated..

2009-01-13 Thread Nikola
I see, you set a js var to equal the var in php, that's very good to know. Thank you.

[jQuery] Re: What am I getting this error?

2009-01-13 Thread Kean
Escape your quotes or use a different quote Escape quote var tour-info-div = '$(\'this\').prev(\'.tour-info-div\')' ; var update-div = '$(\'this\').prev(\'.update-div\')' ; Use double quote var tour-info-div = "$('this').prev('.tour-info-div')"; var update-div = "$('this').prev(

[jQuery] Re: What am I getting this error?

2009-01-13 Thread Rick Faircloth
Thanks for the reply, Brian, but that didn't solve it. I figured I had a case of "quotitus" :o) Here's what I have now (even took quote out of the top (this)) and still get the same error: $(document).ready(function() { $('.update_button').click(function(){

[jQuery] Re: IE Problem with (function($)

2009-01-13 Thread Sagar Arya
may be i should check with the other files and let you know... thanks for the information.. Cheers ! Aryan On Tue, Jan 13, 2009 at 7:06 PM, Karl Swedberg wrote: > I'm not seeing anything obvious. Taking a stab in the dark here ... I've > received a similar error in the past when a reference to on

[jQuery] Re: What am I getting this error?

2009-01-13 Thread brian
You have too many quotes in these 2 lines: var tour-info-div = '$('this').prev('.tour-info-div')' ; var update-div = '$('this').prev('.update-div')' ; try: var tour-info-div = $(this).prev('.tour-info-div') ; var update-div = $(this).prev('.update-div'); On Tue, Jan 13, 2009 at

[jQuery] What am I getting this error?

2009-01-13 Thread Rick Faircloth
Hi, all... Why am I getting this error: missing ; before statement var tour-info-div = '$('this').prev('.tour-info-div')' ; \n from this code: ??? $(document).ready(function() { $('.update_button').click(function(){

[jQuery] Re: Masked Input Plugin

2009-01-13 Thread brian
I think this misses the point of having a mask. You should decide which format *you* want the data in and force the user to follow suit. Probably the best way in your case would be to force 4 digits for the year. Unless, of course, you're dealing with existing IDs or something, where the year mig

[jQuery] Re: getJSON problem - Urgent

2009-01-13 Thread g...@getsharepoint.com
All of the links are hard coded. Someone on another board suggested I use the click event handler instead. Problem is the links vary in value so I'd probably have to wait until the document loaded then grab anything with an Onclick attrib containing that code, remove the attribute and attach the c

[jQuery] Re: getJSON problem - Urgent

2009-01-13 Thread brian
Are any of these links dynamically generated? That is, are any of them not in the page when its first loaded for the user? It may be a binding issue. On Tue, Jan 13, 2009 at 8:05 AM, g...@getsharepoint.com wrote: > > Hi, > > I've got a deadline to get a project working and I'm stuck with a > get

[jQuery] Re: Code simplification?

2009-01-13 Thread Diane Nardozzi
You could add the offscreen class to the appropriate menu item and then remove the sibling classes all at once $(.nav_sub_products).siblings().removeClass('onscreen'); You would just have to be sure that all the menu items are true siblings. On Tue, Jan 13, 2009 at 11:36 AM, r...@lighthouseuk.net

[jQuery] Code simplification?

2009-01-13 Thread r...@lighthouseuk.net
Hi, I'm new to jQuery and liking what I've seen so far. I'm curious as to whether I can reduce my code, using chaining perhaps? Example... $('.nav_company').hoverIntent(function() { // toggle display of company sub menu content panel $('.nav_sub_default').removeClass('onscreen').addClas

[jQuery] $('.classname') returns NULL in IE

2009-01-13 Thread DEfusion
I have a document which is almost valid HTML (with the HTML 4 transitional doctype), the only warnings I'm currently getting are about ampersands in query strings. When I try $('.classname') in every browser I get the object expected, in IE 6 & 7 I get null, I've also tried $('#someId') and get t

[jQuery] .animate() queue without pause between animations

2009-01-13 Thread Miloš Rašić
I'm using .animate() for a rotating navigation menu of 5 items, where the currently selected item is in the center. When I click on an icon next to the central everything works ok, but when I click on an icon to the far left or far right, two calls to .animate() are needed per icon for all icons t

[jQuery] Masked Input Plugin

2009-01-13 Thread Joel Lobo
I need a customization in my mask. The mask does not have a fixed format. As the user types in the it can be changed. The year(after the bar) can be with 2 or 4 digits. Initial mask "9.99/99-99" If the user type another character mask must change to "9.99/-99" versions: Mas

[jQuery] Event code in different .js files

2009-01-13 Thread Krommenaas
I'm relatively new to jQuery and ran into a problem. I use a framework (CakePHP) and want some of my jQuery to be included by the layout (the general template for the site) and some by the current view (which is page specific). This means the actual html page will use two (or more) .js files. I n

[jQuery] Rotating images "AJAX like" on a page

2009-01-13 Thread Chris Stewart
I'm looking to produce functionality just like what's displayed here (http://medienfreunde.com/lab/innerfade/) in the "A list with images and links" section. I downloaded the JQuery plugin supplied but it was giving me problems with IE7. It worked fine with FF3 and Safari. So, does anyone know

[jQuery] Re: Cycle Pluging "next up" text

2009-01-13 Thread amuhlou
I actually fiddled around with it a bit and I think I have it fixed. I added in a couple more lines and it seems to find the right slide name: else if (!fwd && index == 0) $nextSlide = $slides.eq(opts.slideCount-1); Unfortunately, I don't think I like how i

[jQuery] Re: using setTimeout to apply fade-in effect to multiple divs in sequence

2009-01-13 Thread Balazs Endresz
I've actually made a bit nicer abstraction as a jQuery plugin a while ago, I think it's much more useful for such things, I almost forgot about it: http://jsbin.com/unini/edit This is how your code looks like with it: $("#container :first-child").asyncEach(function(){ $(this).fadeIn('slow'); }

[jQuery] How to Validate Forms in both sides using PHP and jQuery

2009-01-13 Thread AdrianMG
Hi there guys! I have finished a new tutorial for yensdesign.com We are going to learn how to validate your forms using PHP and jQuery in both sides: client side (using javascript with jQuery) and server side (using PHP). This is the link: http://yensdesign.com/2009/01/how-validate-forms-both-s

[jQuery] Re: To check if an element value is of a particular class type

2009-01-13 Thread MorningZ
Your problem isn't very clear but regardless, there is a ".hasClass" function http://docs.jquery.com/Attributes/hasClass#class so $("#element_id").hasClass(emailSuffix) would give you true/false . . . On Jan 13, 4:39 am, Santo wrote: > Hello All > > This is what I am trying to do. I hav

[jQuery] Re: Javascript performance testing? In need of some help...

2009-01-13 Thread Ricardo Tomasi
http://www.letmegooglethatforyou.com/?q=event+delegation On Jan 13, 2:39 am, "websiteguy2...@gmail.com" wrote: > Hello: > > We have an ajax/js-heavy website that relies on Jquery.  Some of the > events throughout the site seem to get sluggish as the objects on the > page grow.  Is anyone interes

[jQuery] Re: jQuery scripts not working with php ext.

2009-01-13 Thread Ricardo Tomasi
Both look alright here, except that the SSI version is throwing an error right under the main slideshow. On Jan 13, 3:10 am, Mikehobo wrote: > Hello, > > On the site I am working on (http://www.pjhconstruction.net/) I have a > couple scripts that I am using. Anyways at the moment I am using an >

[jQuery] Re: To check if an element value is of a particular class type

2009-01-13 Thread Ricardo Tomasi
$('.emailSuffix').click(function(){ var field = $('#element'); if (field.val() == 'something'){ //ok } else { //not ok } }); On Jan 13, 7:39 am, Santo wrote: > Hello All > > This is what I am trying to do. I have defined an "email suffix" class > for a particular textbox element

[jQuery] Re: using setTimeout to apply fade-in effect to multiple divs in sequence

2009-01-13 Thread legofish
Thank you so much for the reply. I had figured it out but your way is much more elegant. here's what I had done: $(".box").hide(); var currentBox = $("#container :first-child"); fadeMyBoxes(currentBox); function fadeMyBoxes(thisbox){ thisbox.fadeIn('slow');

[jQuery] Re: jQuery Form Plugin - after ajaxSubmit call, ajax submitting seems to be disabled

2009-01-13 Thread Isaac Raway
malsup wrote: > > Sorry, I read your first message too quickly. Is 'edit_card_jq' bound > as a submit handler? If so, you should return false form that fn. If > not, could you post a little more code or provide a link? > Here's a link that shows what I'm doing: http://blueapples.org/test/

[jQuery] jQuery Interface - Multiple Windows (Chrome/Safari problems...)

2009-01-13 Thread Luke Moody
Hi all, I'm fairly new to jQuery (and CSS, come to think of it!), so this question might have a very simple fix, but I'm at my wits end with two browsers (Google Chrome & Safari [both on PC]). I'm using the Interface plugin (http://interface.eyecon.ro/). The site in question is here: http://www

[jQuery] jQuery Interface - Multiple Windows (Chrome/Safari problems...)

2009-01-13 Thread Luke Moody
Hi all, I'm fairly new to jQuery (and CSS, come to think of it!), so this question might have a very simple fix, but I'm at my wits end with two browsers (Google Chrome & Safari [both on PC]). I'm using the Interface plugin (http://interface.eyecon.ro/). The site in question is here: http://www

[jQuery] Resizable() work incorrectly with Iframe in all browsers

2009-01-13 Thread Aleksandr Dorohovich
Hi guys. I have a problem with the resizable() function. When its use with iframe, vertical resizing work incorrectly. Who knows how fix it? Here is the code: title body { padding: 0;

[jQuery] Resizable() work incorrectly with Iframe

2009-01-13 Thread Aleks Dorohovich
Hi guys. I have a problem with the resizable() function. When its use with iframe, vertical resizing work incorrectly. Who knows how fix it? Here is the code: title body { padding: 0;

[jQuery] getJSON problem - Urgent

2009-01-13 Thread g...@getsharepoint.com
Hi, I've got a deadline to get a project working and I'm stuck with a getJSON call problem. Here's what's happening. Visitors come to a landing page on domain A (domaina.com). All of the links and form submits on this page are coded with a javascript call to a function which calls getJSON on a c

[jQuery] Re: IE Problem with (function($)

2009-01-13 Thread Karl Swedberg
I'm not seeing anything obvious. Taking a stab in the dark here ... I've received a similar error in the past when a reference to one of my JavaScript files was resulting in a 404. The browser would try to parse the file as JavaScript, but of course it would be met with a syntax error on lin

[jQuery] Re: anyone knows vertical carousel ?

2009-01-13 Thread Karl Swedberg
you're welcome. as you look through the code, keep in mind that I added the ajax stuff for pulling in large images at the very end of the process, and I'm sure it could be done a lot more elegantly. A number of people on the list have offered better solutions, in fact. If that part of the c

[jQuery] hoverIntent like delays when using mouseenter, mouseleave

2009-01-13 Thread Ted
Is it possible to setup hoverIntent like delays when using mouseenter, mouseleave? I did some digging in to hoverIntent, but didn't see any support for the mouseenter/mouseleave triggers. Is there a way to do this in Jquery? I've got the following bit of code triggering a menu, but I'd like a smal

[jQuery] Re: Smooth animation

2009-01-13 Thread Angel Kolev
Thanks for your answers. Ill check the discussion you mentioned. 2009/1/13 Balazs Endresz > > It's hard to tell anything else than I've just said based on this > information. If you use .animate() with each coordinates you get then > you have to set the duration to a smaller number as jQuery que

[jQuery] Help needed with Jquery Slideviewer: Making images change onclick

2009-01-13 Thread godsgimp
Hi I'm very new too website design and building, but have managed to hack together a website for my g/f as a Christmas present. Unfortunately being a woman she pointed out a whole lot of changes that she wanted made. One of those changes I just can't seem to get right. There are three galleries

[jQuery] Multiple instace of Dialog

2009-01-13 Thread Ayah
Hi, Im building a search engine for my website. And i want to have a button on each searchresult that a dilog will showup with more info. Like this: Searchresult: Google.se (button) -- Yahoo.com (button) and so on... But i dont know how to crate a "dynamic" javascript for the dia

[jQuery] Re: Smooth animation

2009-01-13 Thread Balazs Endresz
It's hard to tell anything else than I've just said based on this information. If you use .animate() with each coordinates you get then you have to set the duration to a smaller number as jQuery queues up sequential animations by default, so the new one is only executed if the previous one is fini

[jQuery] Re: Can I get the contents from respose by ajax

2009-01-13 Thread David .Wu
never mind, it's really work now, filter is great, thanks. On 1月13日, 下午7時19分, "David .Wu" wrote: > nope, it's doesn't work, I type the wrong character but something > interesting happened > > $('#response').html($(res).filter('#a').text()); <- it's not work > $('#response').html($(res).filter('

[jQuery] Re: To check if an element value is of a particular class type

2009-01-13 Thread Saif ullah
http://tinyurl.com/99oc99 http://tinyurl.com/9kmtvp http://tinyurl.com/7nw2mz http://tinyurl.com/7yebhu On Tue, Jan 13, 2009 at 2:39 PM, Santo wrote: > > Hello All > > This is what I am trying to do. I have defined an "email suffix" class > for a particular textbox element so that it accepts val

[jQuery] Javascript performance testing? In need of some help...

2009-01-13 Thread websiteguy2...@gmail.com
Hello: We have an ajax/js-heavy website that relies on Jquery. Some of the events throughout the site seem to get sluggish as the objects on the page grow. Is anyone interested in a consultative gig to look through our site and point to ways to improve our Jquery implementation, etc? You can de

[jQuery] Re: Meta Data within elements

2009-01-13 Thread Saif ullah
*http://tinyurl.com/99oc99* On Mon, Jan 12, 2009 at 8:46 PM, alexquery wrote: > > > I am creating a product/category tree using jquery. I would like to be able > to store additional data within each node. > > The nodes in my tree are basicaly list elements. How would I add data to > these elemen

[jQuery] IE Problem with (function($)

2009-01-13 Thread Aryan
I have a problem with Internet Explorer ( all versions ) . The following is my JQuery Code , which executes perfectly in mozilla and chrome.. But it doesn't work in Internet Explorer. It says : Syntax error ( line 1 )... Can anyone help me out here.. Thanks for your time in reading this. (functi

[jQuery] Jeditable submitting to function question

2009-01-13 Thread Rhys M
Hi there, Let me first say Jeditable is a great plugin! I'm currently trying to get it to submit to a function so I can make the Ajax request return a JSON object and do some things with it before returning the final value. I'm not quite sure how I go about performing an Ajax request inside the f

[jQuery] Validate

2009-01-13 Thread psyberX
I am using jquery ajax to call asp.net page method. How can I use jquery validation for such case when there is no form submission. Here's the code portion used to call page method. $.ajax({ type: "POST", url: pagePath + "/" + fn, contentType: "app

[jQuery] load results in new page with .post on success instead of a div

2009-01-13 Thread freddie
Hi, I'm using jquery with CodeIgniter. I’m currently trying to use jquery’s ajax post to send a couple of variables to a controller and then load that controller according to the variables. This is because other than using the URI to ‘send’ variables, this is the only other way I know, and in thi

[jQuery] jQuery scripts not working with php ext.

2009-01-13 Thread Mikehobo
Hello, On the site I am working on (http://www.pjhconstruction.net/) I have a couple scripts that I am using. Anyways at the moment I am using an shtml extension and using ssi's. I need to be able to convert the site to be using PHP and use php includes. My problem lies with all of my jQuery scri

[jQuery] Re: Can I get the contents from respose by ajax

2009-01-13 Thread David .Wu
nope, it's doesn't work, I type the wrong character but something interesting happened $('#response').html($(res).filter('#a').text()); <- it's not work $('#response').html($(res).filter('$a').text()); <- it's give me 123, but not truly work, $('#response').html($(res).text()); <- it's not wor

[jQuery] Re: Can I get the contents from respose by ajax

2009-01-13 Thread David .Wu
it's work, thanks On 1月12日, 下午5時03分, Balazs Endresz wrote: > Use filter with $.ajax: > $('#response').html($(res).filter('#a').text()); > > On Jan 12, 9:30 am, "David .Wu" wrote: > > > And I found the load is not work either, because it still get the > > construct not the value > > for example

[jQuery] Re: load script regarding to value of textfield

2009-01-13 Thread dirk w
ides anyone? On 12 Jan., 17:43, dirk w wrote: > thanks a lot for your help! > is it possible to additionally explain me how i can execute this link > through the ajax functions? that would be great! > > thanks in advance > > On 12 Jan., 15:53, "jQuery Lover" wrote: > > > Try this: > > > $('#sea

[jQuery] To check if an element value is of a particular class type

2009-01-13 Thread Santo
Hello All This is what I am trying to do. I have defined an "email suffix" class for a particular textbox element so that it accepts values for that particular class. Whenever there is a different value inserted, it displays a jquery error. Now, there also is an Add button which should add the va

[jQuery] Re: Meta Data within elements

2009-01-13 Thread Gordon
You could try the jQuery metadata plugin if you need the metadata to be in the markup itself. If you don't then using data is probably a better approach. On Jan 12, 3:46 pm, alexquery wrote: > I am creating a product/category tree using jquery. I would like to be able > to store additional data

[jQuery] Re: Meta Data within elements

2009-01-13 Thread alexquery
BUMP alexquery wrote: > > I am creating a product/category tree using jquery. I would like to be > able to store additional data within each node. > > The nodes in my tree are basicaly list elements. How would I add data to > these elements such as the count of products and categories beneath

[jQuery] Re: anyone knows vertical carousel ?

2009-01-13 Thread merihsaka...@yahoo.com
Hi Brian and MorningZ, There is nothing problem with first example.. I just wanted to see different examples.. Thank you about that.. and thank you Karl, This is exactly what I am looking for.. I haven't tried yet, I will try it..

[jQuery] Re: Once validated..

2009-01-13 Thread mbraybrook
You can check a var in jQuery using the following method: var my_js_var = ""; if (my_js_var == "Value) { alert("Value set"); } Thats one of the Q's down! M On Jan 13, 3:45 am, Nikola wrote: > I'm validating a form in php and am wondering how I c

[jQuery] Re: Select all controls of the form

2009-01-13 Thread Karl Rudd
You shouldn't need to use $.extend in this case. Something like this should work: jQuery.fn.debug = function() { return this.each(function(){ alert(this); }); }; Taken from http://docs.jquery.com/Plugins/Authoring As for your selection code, you need to use "find" instead of "filter". T

[jQuery] Re: Select all controls of the form

2009-01-13 Thread JQueryProgrammer
I want to convert some existing code from traditional javascript for loop to $.each. Here is my code: var oEl = document.getElementById("my_form_id").elements; for(var i=0; i < oEl.length; i++) { //do something } In jquery I have written a $.fn.extend function and the code as: $.fn.extend

<    1   2