Re: [jQuery] Re: How to check TD background image has been loaded.

2010-02-26 Thread Liam Byrne
That won't trigger a load event This is as close as you'll get (using an image object to actually load it, and then using it. var imageObj = new Image(); $(imageObj).attr("src",imagePath).load(function(){ // do whatever else you want to do in here too $("#leftCol").css("background

Re: [jQuery] Tooltip Plugin - Font issue in IE7

2010-01-04 Thread Liam Byrne
You need to explicitly remove the style after the image has faded in : document.getElementById("whatever").style.filter=""; L Paul wrote: Hi all, I've noticed an issue with the font rendering on IE7 on Vista and Win 7 when using the Tooltip plugin from http://bassistance.de When the page firs

Re: [jQuery] incorrect offset() results in IE7 & IE8

2009-12-15 Thread Liam Byrne
I got this before if an element wasn't loaded - are you working with an image, by any chance ? L Rinat Gareev wrote: In FF3.5 everything works fine as it is described in API reference. I mean offset() and height() results. But for the same elements of same page in IE7 or IE8 (compatibility mo

Re: [jQuery] Change all CSS background images url

2009-11-17 Thread Liam Byrne
Why are you using a root-relative URL ? If the entire site is in a folder, and then you move everything into another folder, everything will stay relative. Therefore, having the path as "img" (or whatever the relative path to that folder is) should work, no ? Liam nomen wrote: Hi all:

Re: [jQuery] Re: How to Get Div from IFrame

2009-11-16 Thread Liam Byrne
You can't do this if the content of the iFrame is from a different server / domain. e.g. if it's not your content, then you can't get at it this way in order to show it in your page; you can only display the iframe as the owner intended. L webspee...@gmail.com wrote: When I try it, I get t

[jQuery] Re: HELP!!! css & content filters

2009-10-16 Thread Liam Byrne
You have an unnecessary "n" in your code. var test_css = {'background':'#000'}; $("ul li:nth-child(3n)").css(test_css); should be $("ul li:nth-child(3)").css(test_css); Liam huntspointer2009 wrote: - Can someone please help me solve the following issue? - How can I select and apply a 'ba

[jQuery] Re: Show/hide effect div on mouseover

2009-10-02 Thread Liam Byrne
Normally the hover function will cause the menu div to disappear in this scenario, as the mouse moves over the child elements. But if you use the hoverIntent plugin, it'll do the trick for you. Liam Mface wrote: Hi, I have a CSS menu that I created using div that current appears using the

[jQuery] Re: huge newb question

2009-09-28 Thread Liam Byrne
Try a "return false" instead of "event.preventDefault()" Liam Pitchwife wrote: Hello all, I'm trying to run through the simplest tutorials on jquery and for some reason I can't get any of the jquery code to work. I've downloaded jquery and I've made sure that this file is in the same directo

[jQuery] Re: Changing a class name without clicking

2009-09-25 Thread Liam Byrne
Your old code was : $('.unselected').click(function(){ $('.selected').attr('class','unselected'); $(this).attr('class','selected'); }); Which translates to "if / when unselected is clicked." Your new code is the exact same principle, replacing the ($('.unselected').click (the trigger)

[jQuery] Re: [Attrib "external" not working...]

2009-09-22 Thread Liam Byrne
Maybe because 'rel="external"' doesn't have any meaning or functionality ? The proper syntax with functionality would be href="http://www.google.com";>google but that's just HTML; it has nothing to do with jQuery Liam Lord Gustavo Miguel Angel wrote: Hi, Why this code not working? googl

[jQuery] Re: [asmselect] "Remove" link links to the main page

2009-09-16 Thread Liam Byrne
You say you "click the remove link". What is the code / href of the remove link, and do you have a "return false" on the jQuery code to prevent that link being followed ? $(document).ready(function() { $("#removeLink").click(function() { // do whatever the link should do return false; //

[jQuery] Re: $(this).css({"color" : "red"})

2009-09-16 Thread Liam Byrne
Try $(this).css({color:"#FF"}); Matt wrote: see that code in the subj.? i'm using FF 3.5, and no matter what i do, .css won't work!! any help? No virus found in this incoming message. Checked by AVG - www.avg.com Ve

[jQuery] Re: keeping table header fix

2009-09-16 Thread Liam Byrne
do you actually have the headers in a , with the content in ? Most people forget about those. L macsig wrote: Hello guys, I'd like to know if there is a way to keep a table header fixed on top of a div while I scroll the table rows. I have a div high 200px and the table itself is around 300p

[jQuery] Re: Flash effect with show/hide

2009-08-25 Thread Liam Byrne
Use hoverIntent instead of hover - it's "child-friendly" in this regard L guidebook wrote: Hello, (Sorry for my english, it isn't my native language.) I would want to show a div (the information about the song) when the visitor hover on a cover art on a radio website but this div overlap the

[jQuery] Re: Problem with Ajax Cross-Domain

2009-08-25 Thread Liam Byrne
Shouldn't it be http://localhost ? i.e. http[slash][slash]localhost L Alexander Cabezas wrote: Hi. When i try to make an ajax request like: $.get( "http:localhost:3001/account/create.json", SignUp.onComplete ); I get the following error in the firebug ( Net ): OPTIONS - 405 Method Not Allo

[jQuery] Re: pass different IDs to function?

2009-08-19 Thread Liam Byrne
Did you wrap the tab click function in a document.ready, so that the tabs were there to apply the function to ? $(document).ready(function() { $(".tabs").click( function(){ var number = $(this).attr("id"); $(".hiding").hide(); $("#div"+ number).show(); $(".tabs")

[jQuery] Re: KFManager v1.0

2009-08-19 Thread Liam Byrne
Demo looks good, but I'm getting an error on the download link! L Meroe wrote: I was able to get this working. I'm now integrating with codeigniter to see how it does there. On Aug 18, 4:06 pm, Web Specialist wrote: Good job. Awesome! Cheers Marco Antonio On Tue, Aug 18, 2009 at 1:20

[jQuery] Re: How to refresh a single div with the data using .ajax

2009-08-18 Thread Liam Byrne
That looks like it's posting twice ? Any particular reason to do that ? L ghost2008 wrote: Hey guys, this is amazing. Thanks for your answers. I implemented the following: $.ajax({ type: "POST", url: "some.php", data: "name=test",

[jQuery] Re: $(this).offset().left vs parseInt($(this).css('left'))

2009-08-17 Thread Liam Byrne
I'd imagine that CSS is, since it's merely retrieving a value? offset would need to figure out the left of the parent, the parent's parent, etc, all the way up to the body, including anything floated / aligned centre, left or right L Miloš Rašic' wrote: Anyone know an answer to this questi

[jQuery] Re: Add extra content to the title attribute

2009-08-11 Thread Liam Byrne
Paul Collins wrote: > I'm using the "add" JQuery command, > $("a.newWindow").attr("title", " - This link will open in a new window"); I can't see any "add" there ? The proper code would be $("a.newWindow").attr("title",$(this).attr("title")+" - This link will open in a new window"); L Pau

[jQuery] Re: Problem on IE8

2009-08-11 Thread Liam Byrne
do not know why it error on IE8 only (IE7, FF is work fine) On Aug 11, 2:26 am, Liam Byrne wrote: How are you setting the border in CSS ? If you set it explicitly, it should work cross-browser L Gaiz wrote: I found 2 problems when I use jQuery onIE8 1. When I use $('ele

[jQuery] Re: Problem on IE8

2009-08-10 Thread Liam Byrne
How are you setting the border in CSS ? If you set it explicitly, it should work cross-browser L Gaiz wrote: I found 2 problems when I use jQuery on IE8 1. When I use $('elementId').css('border-top-width'), it return "medium", but other browsers return "0px" 2. After domready, my page, that'

[jQuery] Re: can i use .load to return HTML but not inject in to dom?

2009-07-29 Thread Liam Byrne
Try using $.get - it'll return the data From http://docs.jquery.com/Ajax/load : .load : Load HTML from a remote file and inject it into the DOM. HOWEVER : .get : Load a remote page using an HTTP GET request. $.get("../"+myModule+"/"+navTitle+"/folders/index.php", { OPTIONAL PARAMETERS HERE

[jQuery] Re: can i use .load to return HTML but not inject in to dom?

2009-07-29 Thread Liam Byrne
Surely $("#folders").replaceWith will actually do the - er - replacing ? L Liam Potter wrote: $.load("../"+myModule+"/"+navTitle+"/folders/index.php", function(e){ console.log(e); $('#folders').replaceWith(e); return false; }); try that robi

[jQuery] Re: How to deterine number of words in a string?

2009-07-27 Thread Liam Byrne
A letter count is FAR easier - just get the string's length. L Rick Faircloth wrote: Is it as simple to do a letter count? -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Liam Potter Sent: Friday, July 24, 2009 6:53 AM To: jquery-

[jQuery] Re: How to deterine number of words in a string?

2009-07-24 Thread Liam Byrne
Assuming that people entering the string leave spaces after punctuation - commas, full-stops, exclamation marks, etc I've often had to tweak routines like this because people didn't. Depends on how accurate you need it, though; the code below will be thrown slightly by dashes, em-dashes

[jQuery] Re: find() not working in Firefox

2009-07-24 Thread Liam Byrne
I could see that being VERY slow $("p").each(function() { if ($(this).text()=='When the day..believing') { $(this).replaceWith('chota'); return false } }) would work, but I wouldn't recommend it. Anyway, why would you want to do this, and how would you manage to ge

[jQuery] Re: Should this work?

2009-07-22 Thread Liam Byrne
Think there's a color plugin that will make this work ? http://plugins.jquery.com/project/color L Rick Faircloth wrote: NM…”Only properties that take numeric values are supported (e.g. backgroundColor is not supported).” *From:* jquery-en@googlegroups.com [mailto:jquery...@googlegroups.co

[jQuery] Re: Inline JQuery

2009-07-21 Thread Liam Byrne
Why not simply put the

[jQuery] Re: jQuery Animation problem

2009-07-21 Thread Liam Byrne
I had to go searching for the script in the js file $("#toonalleseizoenen").toggle(function(){ $("#alleseizoenen").animate({ height: 'hide', opacity: 'hide' }, 'slow'); },function(){ $("#alleseizoenen").animate({ height: 'show', opacity: 'show' }, 'fast'); }); You're

[jQuery] Re: Replace an element with only opening or close element tag

2009-07-17 Thread Liam Byrne
If you do what you're thinking, then every second content element would be OUTSIDE of any What (I think) you need to do is: FIRST : OPEN DIV LAST : CLOSE DIV EVERY IN-BETWEEN CLOSE DIV FOLLOWED BY OPEN DIV If you don't do all of those in a single step, however, I'd suspect that the brow

[jQuery] Re: Set Element Position

2009-07-17 Thread Liam Byrne
GET x=$("#elementName").offset().left; y=$("#elementName").offset().top; SET $("#anotherElementName").css({left:x,top:y}); NoMatter wrote: Hi Guys , Its my first time here. My Question is .. When a button click , I need to change the positions of few DIVs . How do I assign X and Y . I saw t

[jQuery] Re: Binding Events on a Click

2009-07-16 Thread Liam Byrne
opening) as well. LOL don't worry, the password reference was just as an example :) Apologies if my questions seem a bit noddy - but I'm way out of my depth here! :( On Jul 16, 3:19 pm, Liam Byrne wrote: Yup, add then click, and use the return value (normally false to stop the H

[jQuery] Re: Binding Events on a Click

2009-07-16 Thread Liam Byrne
Yup, add then click, and use the return value (normally false to stop the HREF triggering) to allow the HREF to continue (i.e. return true in the function) But if you're revealing a password like this, it won't be very secure, because something "HIDDEN" is still there in the "View Source" L

[jQuery] Re: if button clicked then do this else do that

2009-07-16 Thread Liam Byrne
A click is an EVENT, it either happened or it didn't. If it didn't happen, then the "else" code that you're talking about would be running constantly and repeatedly. I'm not sure if what you asked for is what you meant, because "if a button isn't clicked" describes every other moment or even

[jQuery] Re: height/width of background image

2009-07-15 Thread Liam Byrne
After setting a src, the width and height won't be available until the image has loaded (can take 3 or ~ seconds, depending on image size). You need to trigger the calculation based on an image_1.load event firing. L weidc wrote: hi, at the moment i'm trying to get the height width of the

[jQuery] Re: Another image rollover question

2009-07-15 Thread Liam Byrne
For something like this, you'd be best off having all 4 states of the button in a single graphic file, one under the other, and using the background-position to control it. The image would be 4 times as big as the allocated div or li, with only a quarter of it showing at a time depending on

[jQuery] Re: div display help

2009-07-15 Thread Liam Byrne
You've no jQuery in there for a start. Instead of var c = document.getElementByID(f); c.style.display = "block"; try $("#"+f).show(); L chuck wrote: I am having some trouble getting some divs to display dynamically. Can someone please offer a pointer?

[jQuery] Re: Get the tagname from an event ?

2009-07-15 Thread Liam Byrne
Cheers John! Had forgotten about / omitted the ".srcElement" :-P L John Beppu wrote: http://docs.jquery.com/Events/jQuery.Event#event.target On Wed, Jul 15, 2009 at 3:07 AM, Liam Byrne <mailto:l...@onsight.ie>> wrote: Hi folks I have a function that operate

[jQuery] Get the tagname from an event ?

2009-07-15 Thread Liam Byrne
Hi folks I have a function that operates on left and right arrow keypress, but I want to temporarily "return true" if they're pressed while an input has focus. One way I thought of was to check the tagname of the event ? The other way is to check the length of the input:focus array, but I

[jQuery] Re: reload an SWF object from jquery

2009-07-01 Thread Liam Byrne
my js file: document.getElementById('reportChart').reload("charts/ pie_chart.php"); //works $("#reportChart").reload("charts/ pie_chart.php"); // does not work I am using firefox 3.5 On Jul 1, 5:03 pm, Liam

[jQuery] Re: reload an SWF object from jquery

2009-07-01 Thread Liam Byrne
Is there an error / typo in the URL being requested ? Should it be "charts/gen_*e*_rate_chart.php" ? L pacodelucia wrote: sorry for the type error. I meant really that $("#reportChart").reload("charts/genrate_chart.php"); does not work with the # selector. On Jul 1, 3:51 pm, Olaf Bosch w

[jQuery] Re: Multiplied load-Events on image-src-change

2009-06-26 Thread Liam Byrne
To be expected. Just as .click will trigger every time you click, the .load will trigger every time the image is loaded. And each time you click, you're telling it to add an additional load event. Either a) unbind("load") before the .load (useful if you want to do something different each ti

[jQuery] Re: Variables in IE ahhh!

2009-06-26 Thread Liam Byrne
You're checking the css attribute : height $container.find('div.listContainer ul').css('height'); If that's set to "auto", then that's what will be returned. What you want is the ACTUAL height. $container.find('div.listContainer ul').height(); L simon wrote: I have this hover function an

[jQuery] Re: Protect images

2009-06-26 Thread Liam Byrne
You could put the image as the background to a div, and add a transparent gif as the image source, 100% width and height of the div. You can also disable / control the right-click using jQuery. But as others have stated, the image will still be in the browser's cache on their hard disk, so u

[jQuery] Re: Image Processing!!

2009-06-25 Thread Liam Byrne
Sounds like something you would do BEFORE the image was uploaded to the server, e.g. save the image as PNG or .GIF Definitely couldn't be done "automatically", as you'd have to indicate what colour was meant to be "removed". Liam rosie wrote: Hi there, Just wondering is it possible to tak

[jQuery] Re: Accessing iframe's content

2009-06-02 Thread Liam Byrne
If the iframe is from a different domain, then this is not possible. Paul Peelen wrote: Hi, I am trying to access the content of an iframe. I have search google and read a couple of other post, but my problem is a little bit more complicated. I can't use the ...contents().find("whatever") fun

[jQuery] Re: dynamically-generated images

2009-05-29 Thread Liam Byrne
Well, it looks like the URL that would be called is "generate_my_image" Is that a valid URL if you test it ? And is it in the same folder as the test page ? L Chris Curvey wrote: this has to be simple, I'm just brain-cramping on a Friday... I have a link that generates an image dynamically.

[jQuery] Re: Making a button in active

2009-05-27 Thread Liam Byrne
This is definitely the best option, as you can achieve everything that you might need The disabled css class can a) have the same text colour as the text b) set text-decoration to none c) set the cursor the normal one d) have an a.disabled:hover pseudo-class to do a & b Just remember to inclu

[jQuery] Re: Refresh SPAN without entire page

2009-05-22 Thread Liam Byrne
to google , Let we see the response thanks for reply On Fri, May 22, 2009 at 4:56 PM, Liam Byrne wrote: The issue is what exactly you are trying to achieve when the user "deletes the required row". If it's purely client side, then it's "hide" rather than dele

[jQuery] Re: animate padding start value - Firefox (getComputedStyle)

2009-05-22 Thread Liam Byrne
dual components. If you want to animate padding (or margin), you either have to specify each one in the first argument, or explicitly set the initial padding on the element (as opposed to via a stylesheet). On May 21, 12:16 pm, Liam Byrne wrote: Maybe I'm wrong, b

[jQuery] Re: animate padding start value - Firefox (getComputedStyle)

2009-05-22 Thread Liam Byrne
r margin), you either have to specify each one in the first argument, or explicitly set the initial padding on the element (as opposed to via a stylesheet). On May 21, 12:16 pm, Liam Byrne wrote: Maybe I'm wrong, but I think myElement.animate( {padding: 12px} ) won't work anywa

[jQuery] Re: Refresh SPAN without entire page

2009-05-22 Thread Liam Byrne
k refresh span , means , That span contained rows will refresh , then will will not affect , thats y am asking ,,, thanks in advance On Fri, May 22, 2009 at 12:30 AM, Liam Byrne wrote: What do you mean "refresh span" ? You can reset the content of a particular SPAN using $(spa

[jQuery] Re: animate padding start value - Firefox (getComputedStyle)

2009-05-21 Thread Liam Byrne
Maybe I'm wrong, but I think myElement.animate( {padding: 12px} ) won't work anyway ? Shouldn't it be myElement.animate( {padding: 12} ) That said, tests here show that only IE & Opera offer a smooth animation - the others (FF, Chrome & Safari) seem to jump L Jason Persamp

[jQuery] Re: Refresh SPAN without entire page

2009-05-21 Thread Liam Byrne
What do you mean "refresh span" ? You can reset the content of a particular SPAN using $(spanReference).html("NEW CONTENT") or $(spanReference).text("NEW CONTENT") But unless you've changed the content of the SPAN (using one of the above, in which case you already know it), what's there to r

[jQuery] Re: Replace newline char with comma using jquery

2009-05-21 Thread Liam Byrne
myArr=myArr.replace("\n",",");//this line doesn't work myArr=myArr.split(','); document.writeln("array length is: "+myArr.length+"<br/>"); //show all elements of array var i=0; for (i; i&

[jQuery] Re: adding $("

2009-05-21 Thread Liam Byrne
If you're outputting it to a HTML page, then all of the "<" characters should be "<" and all of the ">" characters should be ">" That will prevent them from being actual tags. L Paul Tarjan wrote:

[jQuery] Re: Replace newline char with comma using jquery

That code that you posted is replacing a newline with nothing - the comma is BETWEEN the parameters and is not one of them Try csvString=csvString.replace('\n',','); Nitin Sawant wrote: Hello frendz, I'm trying to replace newline char frm Google finance csv file with comma but its

[jQuery] Re: Fairly new to animation. Hold my hand please, hehe?

Ended up with this page in the end: http://is.gd/ARvj Hit a service on the left, then; Hit the 'Get a quote' button I wanted the contact form to animate in, but it's OK how it is. Don't suppose I have a choice Thanks, L On May 15, 2:00 pm, Liam Byrne wrote: T

[jQuery] Re: jquery: display external page inside popups (mail goggles)

$("#content").load("newfile.php") ? rayche...@gmail.com wrote: Back again, I mean most method consist of hidding inside a inside the same page. Then the popup will display the what's inside the Is there a way to display from an external html or php file. Tks Raymond

[jQuery] Re: Only works in FF

Instead of .attr('onblur'. fn) Try .blur(fn) Tobeyt23 wrote: This works great in firefox, why doesn't this work in any other browser? Can the attribute onblur be added another way to work in all browsers? jQuery('#'+nameHex[0].replace(' ','__')+'_qty #'+fields[c].id).attr ('onblur' ,'setQtys

[jQuery] Re: IE: select change triggers pop-up blocker

Is it possible that IE7 & 8 see "html" as a reserved word ? Try changing the hmtl variable in both function(html) and $('#nav_admin').html(html) to something else L brian wrote: On Thu, May 14, 2009 at 10:14 PM, brian wrote: I have a wee bit of code that handles a select list change to

[jQuery] Re: Fairly new to animation. Hold my hand please, hehe?

Think of it logically. To animate a property, the computer needs to work out the in-between stages (tweening) to show: e.g animate width from 10 to 20 = 11,12,13,14, etc to animate opacity from 40% to 100% = 41%, 42%, 43%, etc You can also animate colours*, because behind-the-scenes they

[jQuery] Re: When a class is created... preloaded events don't seem to work.

The function existed, but the element didn't exist inside the container, so there was no element to bind the click to. You can check this for yourself by doing alert($(".new_button").length) just after both lines that you have listed. So. 1) Try adding the $(".new_button").click(.)

[jQuery] Re: Hide function problem in IE8

The 2 options won't work as radio buttons then, though, will they ? waseem sabjee wrote: Hi Luigi. Change your HTML Structure to this name="personaFisica" value="0" /> name="personaGiuridica" value="1" />

[jQuery] Re: Change button text with ajax

AJAX would only be required of you wanted it to post to the server. The jQuery to do it would be $("#buttonName").val("New text for button"); Goldielocks wrote: Hi, I would like to change the text of an asp button from client-side code without posting back to the server. Is this possible to

[jQuery] Re: jQuery introduction script (Alert Message is now showing!)

I think the OP does want it to follow the link, but show the alert first ? So "return false" is not required. OP - make sure jQuery is loading (there's no error if it doesn't). Try just an alert message within $(document).ready() itself. Steve wrote: Hi, You need to return false so the a

[jQuery] Re: FadeIn/Out mulitple images in one container

Just bear in mind that that code will "fade in" as soon as the SRC attribute is set - it won't wait for the image to load...could result in an empty box fading in, and then the image suddenly appearing when it loads. you'll need to trigger a ".load" function for the image too; this should be

[jQuery] Re: Are pigs flying? because IE8.1 + Firebug is coming

"Eagle Eyes (the name is fitting in this context) will let you view the server-side source code of a web page" =-O Considering that that source code would potentially include database passwords, etc, it had better be an April 1st spoof! brian wrote: Isn't that tomorrow? On Tue, Mar 31, 2

[jQuery] Re: filter(fn)

Hard to tell, since you haven't said what it is doing or what you're "expecting" it to do, but I think data should be {oname:name} Maybe that's what's wrong ? You'll also need a return false to prevent the standard form submit from kicking in brightdad...@googlemail.com wrote: Hi Expe

[jQuery] Re: Current item child index ?

y ideas, or for those in the know is the above much of a load difference ? TIA L Liam Byrne wrote: Hi folks Just wondering if there's a quick/shorthand way of doing this: I'm doing a navigation system where I want clickable items but I want to put the "current item number"

[jQuery] Current item child index ?

Hi folks Just wondering if there's a quick/shorthand way of doing this: I'm doing a navigation system where I want clickable items but I want to put the "current item number" in a footer, e.g. Any ideas of a quick way (without using each) to get "CURRENTSTEPNUMBER" ? Basically the reverse o

[jQuery] DSRTE or Alternative ?

Was looking for a good jQuery-powered WYSIWYG / Rich-Text Editor and any that I tried seemed to all have limitations or bugs, especially when dealing with bullet points. Then found DSRTE, which was GREAT. But having uploaded it to the target site, it turns out that it doesn't work becau

[jQuery] Re: Only show 5 list item, hide the rest?

Just a quickie... $(document).ready(function() { numVisible=4; itemHeight=$("#myList li").height(); $("#myList").css({height:numVisible*itemHeight,overflow:"hidden"}); }); In IE, this loses the bullet points, but it's a start and maybe someone else has a solution for that. Liam mof

[jQuery] Re: Long Image Scroller (jCarousel)

from being a background image to a div that changes position but this has helped me and has most definitely given me ideas. You may see it in action at http://www.myfuche.com/ Thanks Liam. On Jan 29, 11:41 pm, Liam Byrne wrote: MUCH simpler than that. 1) Put the image into the background of the

[jQuery] Re: Selected Attribute in IE6

MySelectID option[value=\""+somevalue+"\"]").attr("selected", "selected"); Liam Liam Byrne wrote: Why have you used ? if ($(this).attr(*"id"*) == "somevalue") For that to work, your select box would need to be Select something My sele

[jQuery] Re: Selected Attribute in IE6

efore. So KenLG, you have 2 options: 1) Add an actual ID to the option, so that your request for "the option with id='somevalue'" will work 2) Replace the jQuery check with "the option with value='somevalue'" L Liam Byrne wrote: Why have you used ? if

[jQuery] Re: Selected Attribute in IE6

Why have you used ? if ($(this).attr(*"id"*) == "somevalue") For that to work, your select box would need to be Select something My selection and I'm not even sure that would work. Try if ($(this).attr("value") == "somevalue") Liam KenLG wrote: I only found a couple posts related t

[jQuery] Re: Long Image Scroller (jCarousel)

MUCH simpler than that. 1) Put the image into the background of the 500px div 2) Capture / track the mouse position 3) Divide the x-position by 5 4) Use that to set the x-axis percentage of the background position Just make sure you set the IE6 background image cache so that it doesn't flicker

[jQuery] Re: .val() problem

2 observations 1) is fieldsubmcategory meant to have the "m" ? 2) is either fieldsubmcategory or value a literal ? Do you need to do something like: "input:radio[name="+field_submcategory[value]+"]:checked" or "input:radio[name=field_submcategory["+value+"]]:checked" Liam LoicDuros wrote:

[jQuery] Re: Absolute Image location

And therein lies the "problem". If you access "/images", with the backslash, then it will look in the root OF THE SERVER Because you're running from a folder WITHIN that, (mytrial) the images won't be found - the correct path is "/mytrial/images" If you change this to work locally, be sure

[jQuery] IE 6 Background

Hi folks I have a zoom-style app that moves the background-position of an image if the mouse is moved on an element. The code is essentially $("#leftImageHolder").css({backgroundPosition:newX+"% "+newY+"%"}); In all compliant browsers, this works perfectly and smoothly, but in

[jQuery] Re: ajax?

If you're returning the login form via AJAX, the events can become "unbound" (i.e. any events bound to "login_submit" won't work). Check out livequery to counteract this fear and wonder wrote: what i'm trying to do is have a login form on my site, it looks like this right now... Email: Pas

[jQuery] Binding Click & Double Click on the same object ?

Hi folks I did this before and can't remember how. If click and double-click are both bound to the same object, how can I stop the "click" from firing during "double-click" ? Thanks, Liam

[jQuery] Re: div magic

Ariel beat me to what I was going to say! VERY bad idea if you want to register in search engines Liam Ariel Flesler wrote: Ok then: $('div.box[title]').each(function(){ $('').text( this.title ).prependTo(this); }); Note that you're giving non-js users (and search engines) less seman

[jQuery] Re: slideDown hidden portion/bump

IE 7 shows scrollbarsmaybe the animation isn't making it big enough to display it properly ? Make it bigger and see what happens. L noon wrote: I wrapped it in a div and slid the div. Still same problem, visible again at http://nunyez.googlepages.com/slidedowntest On Jul 8, 6:37 pm, K

[jQuery] Re: simple IE$ src img updating

Check that the ID & name of the image object are the same, and that there are no duplicate names on the page. L pere roca wrote: hi, a very simple question related to ** IE$ behaviour. I have a very very simple jquery function to change the src of images; after applying it, while in Firefox

[jQuery] Re: Fade in background image.

Maybe try using hoverIntent ? Liam lamy wrote: Hi there! I'd like to create an effect like the one on the jquery Ui website. Someone hovers over an item and is changes its background color smoothly. This is how far I've got: $(".actionmenu").mouseover(function(){ if($(this).css("b

[jQuery] Re: Newbe: Why can't I reference $('#...') in functions?

Would've thought it should be $("#info").html("Test"), but nevertheless that example that you gave works fine for me. Are you sure that the jquery file referenced in the first script tag is in that location, i.e js/jquery-1.2.3.pack.js and that it's using that filename ? L lwoods wrote:

[jQuery] Re: Write binary data (from server) is possible with Ajax?

Maybe I'm missing something, but document.write(result) will only work if the variable result has a value, and I can't see it being set anywhere ? Liam MrFishKill wrote: Hi, Sometimes, via AJAX, I'm getting binary content from a server (application/octet-stream), other times html-text. Whe

[jQuery] Re: how to select innermost text in an LI?

If it's just the text you want, I can't see why the following wouldn't work: $('#myList li').each(function(){ text = $(this).text(); // do something using the text }); Jack Killpatrick wrote: Hi All, Wondering if anyone can help me out with this... I have a list like this and want to sel

[jQuery] Re: Why do i keep getting: test is not defined!

How are you calling "removeItem" ? It needs two parameters - the name and the object reference. Liam Mark wrote: hey, function removeItem(name, obj) { var answer = confirm("Are you sure you want to delete: " + name + "?") var test = obj; if (answer) { $(test.parentNo

[jQuery] Re: File operation...

kiran wrote: Hi Friends, I am very new to JQuery, infact Iam checking if we can use JQuery for our requirements. In regards to that I have couple of queries. 1. Can we do file operations using JQuery ? For instance if I make some modifications to DOM/HTML, can I save it back to the disk?

[jQuery] Re: New JQuery Plugin - Menu Toggle Adder

...or style the main link so that it's not underlined & "cursored" as a link, because yup, I agree with Seth - it's confusing / unexpected as it is. Seth - TA wrote: Just a suggestion - it took me a while to figure out I had to click the triangle for the drop down to work. Not many people ar

[jQuery] Re: Linking & showing Subsection of page

a) Since you're using PHP, use that to access a "$_GET" variable and make that one visible: .hiddenBits { display:none; : : } style="display:block">FAQs go here ($_GET["section"]=="prices") { ?> style="display:block">name="#prices">Prices go here Liam Pickledegg wrote: Does

[jQuery] Re: Expected behaviour of :visible and :hidden?

My understanding is that something "visible" that's inside something "hidden" will report that it's visible Otherwise, if you were to hide the hidden-div-1 and then show it, the internal inside-hidden-div would also need to be explicitly re-shown ? Maybe an inherit might get around this

[jQuery] Re: Draggable - Add border while dragging

n(e, ui) { $(ui.helper).removeClass('dragging'); } }); - Richard Richard D. Worth http://rdworth.org/ On Fri, May 23, 2008 at 1:12 PM, Liam Byrne <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: Is there an option within the draggable function to allow you to

[jQuery] Draggable - Add border while dragging

Is there an option within the draggable function to allow you to add a border to a cloned "currently-being-dragged" object, similar to the way that "cursor" works ? Thanks, Liam

[jQuery] Re: Color animation on textarea

In order to "animate" colour, the browser needs to know "in-between" colours - e.g. fading from black to white goes through shades of grey There's a "color" (American spelling) plugin that will do the trick - just add it and your existing code should work. http://plugins.jquery.com/proj

[jQuery] Re: Problems with $.addClass()

An explicit "by id" style setting will always override a class-level style setting unless you use !important. Any way that you could have the some_div as a class instead of an ID ? That way the most recent applied class will override the initial setting. Liam rene.olivo wrote: Hello, I ha

  1   2   >