[jQuery] Re: is that possible to go back on window unload event

2009-03-12 Thread Karl Rudd
You want the "onbeforeunload" event. http://www.4guysfromrolla.com/demos/OnBeforeUnloadDemo1.htm It's "non-standard" in that you can't actually use it like a normal event. You'll need to use the "old" window.onbeforeunload = function() { ... } format, not the jQuery.bind(...) format. Your "ev

[jQuery] is that possible to go back on window unload event

2009-03-12 Thread jack
Hi, all In $(window).unload(function(){ ... }, is that possible to cancel unload event. I mean I would prompt for users if they want to close the window. If they don't want, how do I cancel the event? Jack

[jQuery] jScoll Pane and Hidden Divs

2009-03-12 Thread Nic Hubbard
I have a hidden div that uses the .fadeIn() function when a link is clicked. Inside this is a div that uses jScroll Pane. But, for some reason when I hide that parent div first, jScroll pane won't work. It seems like it might not be initialized inside a hidden div. Is this true? Any ideas on

[jQuery] Re: triggering events with selected

2009-03-12 Thread mkmanning
How about something more succinct? $("select.numberPages").change(function(){ $('p:not(.skip)').show().filter(':gt('+(parseInt($(this).val ())-1)+')').hide(); }); It requires a class on the p containing the select is all: A. Number of pages : ... Or if there will be other p's on the pa

[jQuery] Re: JQuery Form Validation & Fancybox

2009-03-12 Thread MonkeyBall2010
So I have the validation working with an AJAX submit thanks to all of your help. To what extent are my options once the AJAX submit has occurred? I am trying to redirect the user to a new page but only after the validation has occurred and after the data has been uploaded to the database. Is it po

[jQuery] Re: Can't get anchor tags to work with Cycle Plugin

2009-03-12 Thread zeckdude
nobody? anybody? -- View this message in context: http://www.nabble.com/Can%27t-get-anchor-tags-to-work-with-Cycle-Plugin-tp22475620s27240p22489934.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.

[jQuery] Re: Total Noob needs help please with emailing on clicking of links

2009-03-12 Thread Sam Sherlock
surely google analytics and jquery gatracker in addition to RobG suggestion to qualify what google reports Then you can have google analytics send dat in pdf every week - S 2009/3/13 RobG > > > > On Mar 13, 7:52 am, KillerKellerjr wrote: > > [...] > > I > > am looking to get some code to tha

[jQuery] Re: $(byName) <> $(byClass) in 1.3.2

2009-03-12 Thread mkmanning
My 2 cents: "You can still use name,...", yes, and you can use an attribute called "foobar", but that doesn't mean you should. Rob indicates"The name attribute is valid for many more elements" and then provides the full list, but I don't see DIV on that list anywhere. According to the spec for HT

[jQuery] Re: Removing character from link text

2009-03-12 Thread James
Do you mean: $("a[href*='documents/']").text(); So: var $link = $("a[href*='documents/']"); $link.text( $link.text().replace("_", " ") ); My_Link becomes: My Link On Mar 12, 3:48 pm, jhead wrote: > I've experimented a fair amount over time, and nothing seems to really > work. > > I am trying

[jQuery] Re: $(byName) <> $(byClass) in 1.3.2

2009-03-12 Thread Karl Rudd
Quite right, I should have said: In general the "name" attribute is for form controls, rather than general HTML elements. Karl Rudd On Fri, Mar 13, 2009 at 1:25 PM, RobG wrote: > > > > On Mar 13, 11:10 am, Karl Rudd wrote: >> Use id="whatever" rather than name="whatever". In CSS "#whatever"

[jQuery] Removing character from link text

2009-03-12 Thread jhead
I've experimented a fair amount over time, and nothing seems to really work. I am trying to replace the underline character _ from all links text that have "documents/" as part of the href, with a space; not from the href, just the link text. e.g. $("a[href*='documents/']").val().replace("_", " "

[jQuery] Re: the hash option in localscroll plugin doesn't work in safari

2009-03-12 Thread Ariel Flesler
Can you provide a test case ? A demo that isn't working so I can check. First make sure you don't have js errors in the page :) -- Ariel Flesler http://flesler.blogspot.com On Mar 12, 9:12 pm, mangajin wrote: > Hi, > > I did use localscroll as the plugin in order to scroll to specific > part o

[jQuery] Re: $(byName) <> $(byClass) in 1.3.2

2009-03-12 Thread RobG
On Mar 13, 11:10 am, Karl Rudd wrote: > Use id="whatever" rather than name="whatever". In CSS "#whatever" > refers to an element with id="whatever". > > The "name" attribute is for form elements, not for general elements. The name attribute is valid for many more elements than just form elemen

[jQuery] Re: $(byName) <> $(byClass) in 1.3.2

2009-03-12 Thread Josh Powell
You can still use name, just change your selector to $('[name=div1]') Also, when writing out html in string, put them between single quotes and the html in double quotes so you can do this: var htmlText = 'Hola!!'; instead of var htmlText = 'Hola!!'; Josh Powell On Mar 12, 6:10 pm, Karl Rud

[jQuery] Re: Total Noob needs help please with emailing on clicking of links

2009-03-12 Thread RobG
On Mar 13, 7:52 am, KillerKellerjr wrote: [...] > I > am looking to get some code to that will email someone ever time > different links are clicked on a page.  Basically to report back so > someone can keep track of when educational videos are watched so we > can keep track of total education

[jQuery] Re: Total Noob needs help please with emailing on clicking of links

2009-03-12 Thread James
I'm not going to write everything for you, but a good way would be to give every link that you want tracked a specific class name. For example, 'link' track me clicky click Your code will be to bind a click event to every element with the class 'link', and perform an AJAX request to some server-

[jQuery] jquery for expand and collapse

2009-03-12 Thread miro
below is my function , this function expands and collapses div with id 'collapsible_div_outer'. this works fine for a page just with one div , need suggestions on how to make this generic so that where ever i call this function i will pass the id's, please help me modify this function to pa

[jQuery] Re: How to synchronize ajax events

2009-03-12 Thread Andy789
Thank you guys! I have made a slightly different logic, which seems to be working fine: function zipSearch2(){ var zip = $j('input#zip_entry').attr('value'); alert('second '+validation); ... } function zipSearch(){ var zip = $j('input#zip_e

[jQuery] Re: How to synchronize ajax events

2009-03-12 Thread Andy789
Thank you guys! I have made a slightly different logic, which seems to be working fine: function zipSearch2(){ var zip = $j('input#zip_entry').attr('value'); alert('second '+validation); ... } function zipSearch(){ var zip = $j('input#zip_e

[jQuery] Re: Simple JQuery selection question

2009-03-12 Thread James
One slight change to setting the image title by using $(this): $("img").click(function () { var $title = $(this).parent().next('li.title'); $title.css("text-decoration", "underline"); $(this).attr("title", $title.text());

[jQuery] Re: Simple JQuery selection question

2009-03-12 Thread James
Maybe something like: $("img").click(function () { var $title = $(this).parent().next('li.title'); $title.css("text-decoration", "underline"); $("img").attr("title", $title.text()); }); I haven't tested i

[jQuery] Re: triggering events with selected

2009-03-12 Thread James
Try changing it up a little: 1 2 And instead of: if ( $("option.a").selected ) { Use if ($(this).val() == 'a') { On Mar 12, 1:33 pm, Faucon4Kenny wrote: > What I want to do should be very simple... but someho

[jQuery] Re: Call for contributors: A simple, fast and flexible grid/spreadsheet component.

2009-03-12 Thread Jack Killpatrick
Hmm, this is really, er, slick ;-) ... I'm glad you wrote this extra info up, it caught my eye. Do you by chance have a known-issues list (outside of what would come from maybe making it a plugin or something)? Looks like a great contrib. Thanks, Jack Tin wrote: One more point. While this

[jQuery] Re: $(byName) <> $(byClass) in 1.3.2

2009-03-12 Thread Karl Rudd
Use id="whatever" rather than name="whatever". In CSS "#whatever" refers to an element with id="whatever". The "name" attribute is for form elements, not for general elements. Karl Rudd On Fri, Mar 13, 2009 at 10:02 AM, radioAM wrote: > > hello, i'm new at using jQuery and i'm trying to create

[jQuery] $(byName) <> $(byClass) in 1.3.2

2009-03-12 Thread radioAM
hello, i'm new at using jQuery and i'm trying to create dynamic content. the problem is thant i can't retrieve the new content by name. here is an example to reproduce what i'm saying. (function() { fn = function() { $('.widgetBar').append(''); var acc = $('.acc1');

[jQuery] Using tablesorter 2 with IE7 and large row count causes spacing problems

2009-03-12 Thread MarkMcDowell
I am attempting to use tablesorter 2 and IE7. I have the table sorting correctly - it looks great! However, when the table has lots of rows (I haven't been able to figure out if differing row heights are involved), the space above the table starts growing. In FF3, it works fine - no spacing added

[jQuery] UIblock is disabling my modal form

2009-03-12 Thread Mazaka
Hi all hackers. Its my first Jquery project and I need to dim down the browser window and display a modal micro site where one of the tabbed pages is a form. I am using UIblock to try to achieve this but its blocking a little too much: I cant type into the text fields, it is disabled by the UIblo

[jQuery] triggering events with selected

2009-03-12 Thread Faucon4Kenny
What I want to do should be very simple... but somehow just doesn't work: I want to control the hiding/showing of paragraphs with a element. Without further adue, the code: $("select.numberPages").change(function(){ if ( $("option.a").selected ) { $("#p1").show(); $(

[jQuery] Simple JQuery selection question

2009-03-12 Thread truthseekr
I am a beginner, so please excuse my ignorance. I have a simple html page with the following structure. When the image is clicked, I want to be able to get the title of the person and add as title of the image. I am not sure how to get the selected element 'title' and not all the li.title class it

[jQuery] Total Noob needs help please with emailing on clicking of links

2009-03-12 Thread KillerKellerjr
Ok so I need some code to help me out here, I am not really a programmer by any means but do understand it to a point as I am mostly self taught. I mostly do HTML with CSS stuff and some javascript. I am looking to get some code to that will email someone ever time different links are clicked on

[jQuery] $(byName) <> $(byClass) on dynamic content

2009-03-12 Thread radioAM
hello, i'm creating dynamic content in a page, but when i use the $ function to retrieve the new content, i'm can't find elements by name here is an example to reproduce the behavior (function() { fn = function() { $('.widgetBar').append(''); var acc = $('.acc1'); /

[jQuery] Re: Add value to input

2009-03-12 Thread mkmanning
$(B).click(function(){ $(I)[0].value += $(S).val(); }); On Mar 12, 5:38 pm, shapper wrote: > Hello, > > In a form I have a select (S), a button (B) and an input (I) among > other form elements. > I would like to add the value of the select, when the button is > clicked, to the end of the

[jQuery] Add value to input

2009-03-12 Thread shapper
Hello, In a form I have a select (S), a button (B) and an input (I) among other form elements. I would like to add the value of the select, when the button is clicked, to the end of the text that is currently in the input. How can I do this? Thanks, Miguel

[jQuery] Re: Cannot capture resize event on anything BUT the window

2009-03-12 Thread Dave Methvin
> I have a scenario where i need to detect when the content area of the > browser changes size. Now, normally one would just attach to the > window's resize event and be done with it. But, this does not work > when something on the page causes a scrollbar to appear. The window > never raises and e

[jQuery] the hash option in localscroll plugin doesn't work in safari

2009-03-12 Thread mangajin
Hi, I did use localscroll as the plugin in order to scroll to specific part of the page. It work very well in ie7, FF3 and chrome. However not in safari. It will work fine in safari only when you have 'hash' as 'true'. If someone can solve this problem please help me. Thank you

[jQuery] Re: Sliding list items won't stop sliding

2009-03-12 Thread Mike Fratto
Karl, thanks for the pointer to the article. I can see myself spending some quality time over at learningjquery.com. :) I ended up using hoverIntent as well (working code below, if anyone cares). Once I took care of the animations queueing up, I still had this ugly accordion effect happening wh

[jQuery] Re: How to synchronize ajax events

2009-03-12 Thread Karl Rudd
That will work but it has some rather unexpected consequences, the biggest of which is that the entire browser will lock up (UI and all) until the response comes back from the server (which could be a few seconds). That's not a good thing to do to a user. Karl Rudd On Fri, Mar 13, 2009 at 10:47

[jQuery] Re: Call for contributors: A simple, fast and flexible grid/spreadsheet component.

2009-03-12 Thread Pyrolupus
Great timing! I needed a lightweight data grid, and here you just contributed one! ^_^ I used FlexiGrid[1] in the past, but it's overkill for what I needed right now, plus development on it looks to have stalled. As I come across ways that I'd like to improve it--such as integrating into themer

[jQuery] Re: How to synchronize ajax events

2009-03-12 Thread James
Setting your 'async' option to 'false' in your AJAX options should solve this issue. By default AJAX is asynchronous so your script will not wait for your AJAX response before it continues. Setting 'async' to false will have the script wait. On Mar 12, 1:34 pm, Karl Rudd wrote: > I suggest look

[jQuery] Re: How to synchronize ajax events

2009-03-12 Thread Karl Rudd
I suggest looking at one of the Ajax helper plugins, such as: http://plugins.jquery.com/project/AjaxManager If you want to DIY you'll need to either build some sort of "queue" or nest the validation You could also try the validation plugin ( http://plugins.jquery.com/project/validate ) which

[jQuery] How to synchronize ajax events

2009-03-12 Thread Andy789
Hi All, Here is a simple fragment: function zipSearch(){ var zip = $j('input#zip_entry').attr('value'); validateZip(zip); alert('second '+validation); ... } function validateZip(zip){ $j.post("markers.php", { validate: zip},

[jQuery] JQuery XML Manipulation

2009-03-12 Thread stilwalli
Hello Developers, I am using jqGrid plugin of JQuery for displaying data in a grid. I am wanting to manipulate the data xml dynamically. For instance say I have an xml like 10 raj 20 caj Now when I say add row, I would like to add an data to the row (which I am able to do it). But I am

[jQuery] Re: ajax.load(url) working in IE only

2009-03-12 Thread Randall Morgan
Thank you James. Coming form languages like C/C++ if I were to make a call to a non-existent method, you would see errors. So I sorta expected the same thing here. I guess I have a lot to learn yet. But with the help of good people like you I'll get there. Thank you again for you help. I will now m

[jQuery] Re: tablesorter - Force Null / Empty Cells to the Bottom?

2009-03-12 Thread Big Mad Kev
Yep thats it basic numeric sort with nulls on bottom. >From what I have read I don't think a parser will help unless I've misunderstood Thanks for your quick reply. On Mar 12, 10:08 pm, aquaone wrote: > You could define your own parser to do this. Are you looking for a basic > numeric sort wit

[jQuery] Re: simple function not working on IE

2009-03-12 Thread Andri
thanks, I'll fix it. But before that, the function navigation also doesnt work, even it just simple hide() and show() On Mar 13, 12:13 am, Karl Swedberg wrote: > One problem I see is that you're trying to set display: inline-table,   > but IE doesn't recognize that value for the display propert

[jQuery] Re: jquery.quicksearch not working in 1.3.2?

2009-03-12 Thread James
It's working fine on the website that you've provided. Have you tried setting up a demo page with only your data and quicksearch to see if it works, and that it's not something else interfering with it? On Mar 12, 9:32 am, Jack Killpatrick wrote: > Hi, > > I'm in the process of upgrading a site

[jQuery] Adding images from one div to another (this is pretty simple..)

2009-03-12 Thread bart
Hi all, I've built something with which you can click an image in one div and with the click add it to another. Check an example on; http://www.vliegendepijl.nl/pages/test/pictest.html Adding an image from one div to the other works. But as an additional feature I'd like to also be able to remov

[jQuery] Re: Change background of table row based on column's value

2009-03-12 Thread James
Sorry, Number() is probably better. :) if (Number($(this).text()) > 90) On Mar 12, 12:32 pm, James wrote: > Looks good. Might also want to make sure the text value is a number. > Maybe do a conversion or something. > > if (parseInt($(this).text()) > 90) > > On Mar 12, 12:15 pm, Charlie Griefer

[jQuery] Re: Change background of table row based on column's value

2009-03-12 Thread James
Looks good. Might also want to make sure the text value is a number. Maybe do a conversion or something. if (parseInt($(this).text()) > 90) On Mar 12, 12:15 pm, Charlie Griefer wrote: > disclaimer: n00bie code (seems to work, but might not be particularly > elegant) :) > > $(function() { > $('.

[jQuery] Re: ajax.load(url) working in IE only

2009-03-12 Thread James
If you don't have any other classes galleryNavHA in your code nothing will happen. Though it might be very minor overhead since jQuery will try to do a check for it to bind the event. Just make sure you don't use the class elsewhere or else it might cause unexpected things to happen. If you have t

[jQuery] Re: Change background of table row based on column's value

2009-03-12 Thread Charlie Griefer
disclaimer: n00bie code (seems to work, but might not be particularly elegant) :) $(function() { $('.numericColumn').each(function() { if ($(this).text() > 90) $(this).parent().css('backgroundColor', 'red'); }); }); On Thu, Mar 12, 2009 at 12:33 PM, Lars wrote: > > I am totally new to jQuery. I

[jQuery] Re: tablesorter - Force Null / Empty Cells to the Bottom?

2009-03-12 Thread aquaone
You could define your own parser to do this. Are you looking for a basic numeric sort with nulls on bottom? lexicographical sort? ..? stephen On Thu, Mar 12, 2009 at 11:52, Big Mad Kev wrote: > > Good Morning / Afternoon / Evening, > > Using the tableSorter does anyone know if it's possible to

[jQuery] Re: ajax.load(url) working in IE only

2009-03-12 Thread Randall Morgan
Ok James, just one question though. I am using CI-CMS and I have my gallery page is contained in a wrapper used for every page on the site. So if I add the binding in the page head (which is shared for all pages) the gallery classes tags do not exist. Will this cause an issue. If it does then I nee

[jQuery] Re: ajax.load(url) working in IE only

2009-03-12 Thread James
The issue is not the anchor tag around the image. The issue is how your events and actions are working. This is what your script is doing: - A user clicks on the image (the link) - This call updateGallery() - updateGallery() sets an event -> "when clicking on any link with class "galleryNavHA",

[jQuery] tablesorter - Force Null / Empty Cells to the Bottom?

2009-03-12 Thread Big Mad Kev
Good Morning / Afternoon / Evening, Using the tableSorter does anyone know if it's possible to all ways force null / empty / 0 Digit cells to always be at the bottom, The solution I have is to have additional columns with either 0/1 for ASC / DEC Sorts and sorting on that first. But I need a mor

[jQuery] IE fails on Append() on iframe body element

2009-03-12 Thread Blaine
Below is a small example of where the append functions fails in IE. I've been banging my head against the wall and just can not figure it out. I need append to work, the function call html was just to see if that would work which it does.. Ideas? http://www.w3.org/1999/xhtml";> Untitled Doc

[jQuery] Appending Element to iFrame body blowing up in IE

2009-03-12 Thread Blaine
Hi, When I try to append and element to an iframe body it does not work in IE. However, it works fine in FF. Below is a simplified example of the issue. As you can see, using the same element reference (iBody) I can acess the .html() function. However append, blowup.. Any ideas? http://www.w3.

[jQuery] Change background of table row based on column's value

2009-03-12 Thread Lars
I am totally new to jQuery. I wonder if it's possible to change the background color of any row in the table below where the value of the table cell belonging to class "numericColumn" is greater than 90? The values in this column will always be numeric. Thanks for any help, Lars

[jQuery] Re: ajax.load(url) working in IE only

2009-03-12 Thread Randall Morgan
Hi Yes, I have the anchors because I need to insure there is some functionality when js is not available. I have used anchors with my own ajax code without issue as long as I return false from the js function call. Is this a known issue with JQuery, that you can't provide a default action for an an

[jQuery] Re: ajax.load(url) working in IE only

2009-03-12 Thread mkmanning
Not looking any further, you have anchors with inline onclick events (not considered good practice btw) which call the updateGallery() function, which then binds a click event on the same anchors, every time you click them again? wrote: > Hello, > > I have use ajax.load in the following function

[jQuery] Re: "required field" keeps on appearing

2009-03-12 Thread exhaler
can't help u much. try to create a table for each form, that way table tag is inside of the form tag

[jQuery] Superfish Menu Disappears When Clicked

2009-03-12 Thread WhoButSB
Hello All, I have two superfish menus on the same page in the same menu. Whenever I click on one of the items in one of the menus the other superfish menu disappears. Here is the CSS code I'm using, but I don't think it is the issue. Any help would be greatly appreciated. ul.sf-menu li, ul.sf-m

[jQuery] Re: whats wrong with my custom selector :readonly (IE6 sucks)

2009-03-12 Thread ricardobeat
You're returning the object you created, so that will always be true. Return the .length property and it shoud work: $.extend($.expr[':'],{ readonly: function(a) { return !!$(a).filter('[readonly="true"], [readonly=""]').length; } }); But a simpler/faster/safer alternative is the

[jQuery] Re: Return CSS Style?

2009-03-12 Thread mkmanning
Sorry for the terse response, but you might want to check out getComputedStyle/currentStyle On Mar 12, 10:33 am, "sfea...@gmail.com" wrote: > Thanks for the response.  I want to make it standard across the site > so I can do a simple call to display whatever style(s) of that > particular element

[jQuery] Why won't this work in ie ?

2009-03-12 Thread joshm
In my jquery code I do: $.each(json, function(i, item) { $('').attr('href', 'http://example.com').html('test').appendTo ('#gallery'); } I have a div to hold the content in the html: In firefox I will get a series of links, in ie7 i get nothing... I can replace the code with this and it works

[jQuery] Re: concatenate "this" and selector?

2009-03-12 Thread Crytech
Much appreciated. On Mar 12, 12:18 pm, James wrote: > You can use: > $(this).find('.flyout') > > On Mar 12, 7:41 am, Crytech wrote: > > > I want to make my code smarter by using child elements of $(this) but > > I'm not sure on the syntax. > > > Here is some slimmed down code (that doesn't work

[jQuery] jquery.quicksearch not working in 1.3.2?

2009-03-12 Thread Jack Killpatrick
Hi, I'm in the process of upgrading a site from jQuery 1.2.6 to 1.3.2 and testing each of the plugins I'm using along the way. I've found that jquery.quicksearch ( http://rikrikrik.com/jquery/quicksearch/ ) fails silently (well, at least I'm not seeing a js error in Firebug). Does anyone kn

[jQuery] Re: $.get xml document with xhtml fragments in IE

2009-03-12 Thread David Buchmann
thanks NightWatchman for the input. it might work, but i really did not feel like changing the complete xml generating code... i'm surprised nobody else has run into this problem - or cared to share his insights on any forum or blog post or whatever (i googled a lot before posting here...). anyw

[jQuery] Re: Toggle class when radio checked

2009-03-12 Thread Leonardo K
So, if u want hide when the radio change add this to your input radio change event. if ( $(this).val() == "public" ) $(this).parent().find("div.tags").hide(); else $(this).parent().find("div.tags").show(); The behavior for checkbox is the same as the radio button. So, applied change event

[jQuery] Re: “too much recursion” error in JQuer y 1.3.2

2009-03-12 Thread James
It doesn't look like a bug. You code is essentially asking for recursive onclick event calls. Maybe you're trying to do something like: $(this).children("input:radio").attr('selected', 'selected'); On Mar 12, 8:24 am, Elias wrote: > I am trying to make a form with some dynamic behavior. Specifi

[jQuery] “too much recursion” error in JQuery 1. 3.2

2009-03-12 Thread Elias
I am trying to make a form with some dynamic behavior. Specifically, I have my inputs in divs, and I would like to make it so when the user clicks anywhere in the div, the input is selected. I was using JQuery 1.2.6 and everything worked fine. However, I upgraded to JQuery 1.3.2 and I am getting

[jQuery] Re: SlideUp() Question

2009-03-12 Thread kellyjandr...@sbcglobal.net
Bah - I figured it out shortly after - I had to keep everything the same, just reverse what was being shown. Instead of showing the "highlighted" version, I hide it using the non highlighted - then wehn I use slide up, it is revealing the way I intended. I will put together some sort of example fo

[jQuery] Re: JQuery Form Validation & Fancybox

2009-03-12 Thread MonkeyBall2010
Sweet, that's exactly what I was looking for! Thanks so much for the help. Tim On Mar 12, 4:15 am, Jörn Zaefferer wrote: > Seehttp://jquery.bassistance.de/validate/demo/milk/ > > Jörn > > On Wed, Mar 11, 2009 at 10:19 PM, MonkeyBall2010 > > > > wrote: > > > I think I figured out the passing pa

[jQuery] Re: concatenate "this" and selector?

2009-03-12 Thread James
You can use: $(this).find('.flyout') On Mar 12, 7:41 am, Crytech wrote: > I want to make my code smarter by using child elements of $(this) but > I'm not sure on the syntax. > > Here is some slimmed down code (that doesn't work) to help explain my > situation; > > $(document).ready(function(){

[jQuery] Re: SlideUp() Question

2009-03-12 Thread kellyjandr...@sbcglobal.net
Ok - I have made it that faar, however the second image is just "covering" the previous one. So instead of revealing the image (ala a theater curtain going from the stage floor up) it just hides it. Im thinking there isn't really a good way of accomplishing this, unfortunately. On Mar 12, 1:10 p

[jQuery] hi!

2009-03-12 Thread tolecon
Hi! have a little (or big) problem with my page. i'll describe the issue to give you a photograph of that. I'm creating a site wich the main purpose is publish graphs or maps, with php/mysql/jquery. Got an index page and then using jquery to load all the pages on a div called iframe_style. The ma

[jQuery] ajax.load(url) working in IE only

2009-03-12 Thread Monotoba
Hello, I have use ajax.load in the following function to load both a main image and an image navigation bar on a single page. The fucntion works in IE but not in FF or Chrome. I am not fluent enough (yet) with javascript or firebug to figure out what is happening. The demo page can be found at: h

[jQuery] Problem with Safari 3.2.1

2009-03-12 Thread fetis
Hi, all. This simple code doesn't work for me ... $(function(){ $("#a").css("padding-right", "100px"); }) If I move it outside ready event it works ok. If I put it another handler, onclick for example, it stops work again :( Any ideas? Version jQuery 1.3.2

[jQuery] concatenate "this" and selector?

2009-03-12 Thread Crytech
I want to make my code smarter by using child elements of $(this) but I'm not sure on the syntax. Here is some slimmed down code (that doesn't work) to help explain my situation; $(document).ready(function(){ $("li.trigger").hoverIntent( function () { $(this).next("

[jQuery] stop rotation when a panel is clicked

2009-03-12 Thread kenny
Hello, I am new to this and not a really good coder so please help me out. I have the last version of the rotating tabs and in each panel I have a form with selects etc What happens is that whenever I start selecting something from the form (without having clicked the tab before) it ignores me and

[jQuery] Re: Can some one convert simple code to jQuery

2009-03-12 Thread Jean-Marie POISSONNIER
It doesn't work because [...@attr] selectors were removed in jQuery 1.3. http://docs.jquery.com/Release:jQuery_1.3#Changes You can write something like this : $("#follow_me").click(function() { $("input[name=article_id[]]").attr("checked", this.checked ? "checked" : "" ) })

[jQuery] Re: Recommend tree widget toolkit

2009-03-12 Thread Tim Johnson
On Wednesday 11 March 2009, jQuery Lover wrote: > I have not tested nor worked with lots of tree widgets, but treeView > is a lightweight and robust plugin... > > http://be.twixt.us/jquery/treeView.php > thanks, I will check that out. BTW: dojo did come thru with the addition code needed, but wha

[jQuery] Re: Can some one convert simple code to jQuery

2009-03-12 Thread FlashWebHost.com
Thanks all, i got it fixed now by removing @ from the beginning name= $("input[name='article_id[]']").each(function(){ On Mar 12, 9:32 pm, "FlashWebHost.com" wrote: > I want to check all check boxes. I made a search and made following > page > > http://nancy.bizhat.com/jquery_check_box.html >

[jQuery] Re: Toggle class when radio checked

2009-03-12 Thread mdjamal
Hi, Thanks, you seem to be a jQuery guru, the solution works. I've applied it to work on checkbox now ;-) and now trying to have a set of checkbox display when one of the radio button is selected and hide them when another is selected. So like from below example, I select if its public or privat

[jQuery] Re: Return CSS Style?

2009-03-12 Thread sfea...@gmail.com
Thanks for the response. I want to make it standard across the site so I can do a simple call to display whatever style(s) of that particular element (in this case an h1). Is there any method I can call that will return the entire css definition for the element in question? Maybe return as a st

[jQuery] Re: Does the "ready" event wait for JavaScript files to be downloaded?

2009-03-12 Thread Angus
Thanks to both of you. Your answers are very helpful. Sincerely, Angus On Mar 10, 9:22 pm, Iair Salem wrote: > I think you can use the getScript method (http://docs.jquery.com/Ajax/ > jQuery.getScript) > > Although It does not work perfect in Safari 2 (Hey, Safari 4 is almost > here!) you can

[jQuery] Re: trying to add a 'class' to a link based on the value of the link's href

2009-03-12 Thread mkmanning
Last time :( You need the a variable as a jQuery object to call the addClass() method The a[0].href gets the href (duh), or you could use a.attr('href') var file = jQuery.url.attr("file"); alert(file); $('.design_html_nav li').each(function(){ var a = $(thi

[jQuery] Re: How to pick elements by id, if id includes [ and ] symbols?

2009-03-12 Thread Charlie Griefer
On Thu, Mar 12, 2009 at 9:27 AM, last_elf wrote: > > Hello! > > I have some element ( "ph_number[289]"; > > How can I pick it by ID ? > > $('#ph_number[289]') returns zero-sized object. > http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_element_that_has_weird_characters_in_it

[jQuery] Re: Sliding list items won't stop sliding

2009-03-12 Thread Karl Swedberg
Hi Mike, I think this article should help with the never-ending sliding: http://www.learningjquery.com/2009/01/quick-tip-prevent-animation-queue-buildup --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 12, 2009, at 8:03 AM, mike wrote: Hi, using jquer

[jQuery] Re: How to pick elements by id, if id includes [ and ] symbols?

2009-03-12 Thread dawnerd
I do not believe that is a valid id... Yup, looks like that why. Perhaps you should try to make the id valid. If you are looking to have an id with a unique number, use an underscore instead of brackets. via: http://stackoverflow.com/questions/70579/what-is-a-valid-value-for-id-attributes-in-ht

[jQuery] Re: simple function not working on IE

2009-03-12 Thread Karl Swedberg
One problem I see is that you're trying to set display: inline-table, but IE doesn't recognize that value for the display property. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 12, 2009, at 11:43 AM, Andri wrote: Look at this : http://andriel.info

[jQuery] Re: SlideUp() Question

2009-03-12 Thread Karl Swedberg
Put both images in a container that has position: relative; Set the following css declarations for the sliding image: position: absolute; left: 0; bottom: 0 Then do your slideUp / slideDown stuff. See the first example here: http://www.learningjquery.com/2009/02/slide-

[jQuery] Re: trying to add a 'class' to a link based on the value of the link's href

2009-03-12 Thread mkmanning
Sorry, it should just be if(a===file){.. the var 'a' is already the href. On Mar 12, 8:15 am, vintagetwitch wrote: > Thanks for your response, and my apologies for the double post. > So now, this is what I have, and for some reason, now I'm not able to > extract any values from the array of ta

[jQuery] Re: Superfish integration into Joomla 1.5

2009-03-12 Thread WR
Thank You for reply. Yes, I have the menu, but it's simple (unstilled). I found I mistyped the path to superfish.css (and others). I corrected this, but now I have a problem, that nav-bar menu doesn't work like in authors example (I have no arrows - even enabled in parameters and 1 level child men

[jQuery] Re: Ajax Search - Plugin Needed

2009-03-12 Thread garrettgjb
Thanks, I didn't think about that. I'm actually not familiar with XML usage at all. Is there any benefit to using XML over just returning a div containing the results? I'm using PHP/MySQL. On Mar 12, 4:42 am, Paul Hutson wrote: > > Is there a good jquery plugin for this sort of thing? > > Do yo

[jQuery] Re: Cluetip Issue

2009-03-12 Thread Pedram
I just Put the COmbo box in a DIv so I changed the code $("select.Responses").change(function(){ $(this).panret('div').attr("title",$("option:selected",$ (this)).attr ("title")).cluetip({splitTitle: '|',width:400}); }); and it worked does any one has better idea On Mar 12, 9:00 am, Pedram

[jQuery] Simple toggle between slide up slide down and changing paragraph html contents not working...

2009-03-12 Thread Jsbeginner
Hello, I've been struggling with a very simple code that I can't get to work ... Simplified html : Item 1 Hidden contents 1 Click to show Item 2 Hidden contents 2 Click to show Item 3 Hidden contents 3 Click to

[jQuery] Cannot capture resize event on anything BUT the window

2009-03-12 Thread JRod
I have a scenario where i need to detect when the content area of the browser changes size. Now, normally one would just attach to the window's resize event and be done with it. But, this does not work when something on the page causes a scrollbar to appear. The window never raises and event since

[jQuery] Positioning problem in Safari 3.0 (Windows)

2009-03-12 Thread John Dias
I have a page here, in which I use jQuery for dialog boxes: http://www.cafcusa.org/2009-conference-registration/index-jquery.cfm On the above page, scroll to the table that says Friday, Saturday and Sunday in the left column with a bunch of radio buttons in columns on the right. Next to each rad

[jQuery] Image Load and fade in

2009-03-12 Thread James
I have used a tutorial online (jQuery for designers) and have created a image load and fade in after the dom is ready. In firefox 2.0.0 it will not load. I just see the little swirly load image. Is there something wrong with my code? You can see my code at http://idea-labs.com/profile/jamesduffy

  1   2   >