[jQuery] background-position

2007-05-23 Thread Liam Byrne
Hi folks I'm looking for a handy way to pan across an image; my theory is that if you set the image as the background to a div and then, on mouse move, change the background position, this would work pretty sweetly. Is this possible with JQuery, and if so, does anyone have the code/syntax

[jQuery] AVG - Trojan Horse JS/Uniz.B ?

2007-06-13 Thread Liam Byrne
AVG is currently reporting all my copies of jquery.js as having the above virus! Is this a false alarm, and is anyone else getting this message ? And if it is a false alarm, how should we notify AVG so that people visiting jQuery sites don't get scared off by this message ? TIA, Liam

[jQuery] AVG - Trojan Horse JS/Uniz.B ?

2007-06-13 Thread Liam Byrne
AVG is currently reporting all my copies of jquery.js as having the above virus! Is this a false alarm, and is anyone else getting this message ? And if it is a false alarm, how should we notify AVG so that people visiting jQuery sites don't get scared off by this message ? TIA, Liam

[jQuery] Re: jQuery runs inserted scripts prior to inserting HTML

2007-09-18 Thread Liam Byrne
Liam Byrne *OnSight.ie */Winner of Limerick City Enterprise Board's Best New Technology Business 2004 Award / web: http://www.onsight.ie email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] phone: 061 22 99 86 mobile:087 2730

[jQuery] Re: changing content for span tag on the fly

2008-01-30 Thread Liam Byrne
Try $(#scrollStats).html(im here!!); Bhaarat Sharma wrote: Hi Can someone please tell me how i can change the text between span tags on the fly using jQuery I have tag like this span id=scrollStats style=font-size: 70%; width: 80px; text- align: center; position: absolute; bottom: 392px;

[jQuery] Re: hover and fadin and fade out need help...

2008-05-04 Thread Liam Byrne
What's li meant to be - in that code it's not assigned at all If it's meant to be every list item on the page, then it should be $(li), and you'll also need to check whether or not the outer ul or ol for the li is visible. Liam Aaron wrote: well I don't plan using a class I am trying

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

2008-05-04 Thread Liam Byrne
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

[jQuery] Re: Color animation on textarea

2008-05-23 Thread Liam Byrne
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.

[jQuery] Draggable - Add border while dragging

2008-05-23 Thread Liam Byrne
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: Draggable - Add border while dragging

2008-05-23 Thread Liam Byrne
('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 add a border to a cloned currently-being-dragged object

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

2008-06-06 Thread Liam Byrne
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: Linking showing Subsection of page

2008-06-16 Thread Liam Byrne
a) Since you're using PHP, use that to access a $_GET variable and make that one visible: style .hiddenBits { display:none; : : } /style div id=faq class=hiddenBits ?php if ($_GET[section]==faq) { ? style=display:block?php } ?a name=#faq/aFAQs go here/div div id=prices

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

2008-06-16 Thread Liam Byrne
...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 are

[jQuery] Re: File operation...

2008-06-18 Thread Liam Byrne
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: Why do i keep getting: test is not defined!

2008-06-20 Thread Liam Byrne
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) {

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

2008-06-21 Thread Liam Byrne
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

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

2008-06-26 Thread Liam Byrne
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.

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

2008-07-02 Thread Liam Byrne
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: Fade in background image.

2008-07-08 Thread Liam Byrne
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(){

[jQuery] Re: simple IE$ src img updating

2008-07-11 Thread Liam Byrne
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: slideDown hidden portion/bump

2008-07-11 Thread Liam Byrne
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,

[jQuery] Re: div magic

2008-08-22 Thread Liam Byrne
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(){ $('h3 /').text( this.title ).prependTo(this); }); Note that you're giving non-js users (and search engines) less

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

2008-08-27 Thread Liam Byrne
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: ajax?

2008-08-31 Thread Liam Byrne
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:br /

[jQuery] IE 6 Background

2008-12-03 Thread Liam Byrne
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 IE6

[jQuery] Re: Absolute Image location

2009-01-05 Thread Liam Byrne
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 to

[jQuery] Re: .val() problem

2009-01-27 Thread Liam Byrne
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: Hi

[jQuery] Re: Long Image Scroller (jCarousel)

2009-01-29 Thread Liam Byrne
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

[jQuery] Re: Selected Attribute in IE6

2009-01-29 Thread Liam Byrne
Why have you used ? if ($(this).attr(*id*) == somevalue) For that to work, your select box would need to be select id=MySelectID option value=Select something/option option id=somevalue value=somevalueMy selection/option /select and I'm not even sure that would work. Try if

[jQuery] Re: Selected Attribute in IE6

2009-01-29 Thread Liam Byrne
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 ($(this).attr(*id*) == somevalue) For that to work, your select box would

[jQuery] Re: Selected Attribute in IE6

2009-01-29 Thread Liam Byrne
Liam Byrne wrote: Why have you used ? if ($(this).attr(*id*) == somevalue) For that to work, your select box would need to be select id=MySelectID option value=Select something/option option id=somevalue value=somevalueMy selection/option /select and I'm not even sure that would work. Try

[jQuery] Re: Long Image Scroller (jCarousel)

2009-01-30 Thread Liam Byrne
it 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 l...@onsight.ie wrote: MUCH simpler than that. 1) Put the image

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

2009-02-11 Thread Liam Byrne
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 mofle

[jQuery] DSRTE or Alternative ?

2009-02-27 Thread Liam Byrne
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

[jQuery] Current item child index ?

2009-03-05 Thread Liam Byrne
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 of

[jQuery] Re: Current item child index ?

2009-03-05 Thread Liam Byrne
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 in a footer, e.g. Any ideas of a quick way (without using each

[jQuery] Re: filter(fn)

2009-03-10 Thread Liam Byrne
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

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

2009-03-31 Thread Liam Byrne
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,

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

2009-04-03 Thread Liam Byrne
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: jQuery introduction script (Alert Message is now showing!)

2009-04-03 Thread Liam Byrne
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

[jQuery] Re: Change button text with ajax

2009-05-11 Thread Liam Byrne
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: Hide function problem in IE8

2009-05-11 Thread Liam Byrne
The 2 options won't work as radio buttons then, though, will they ? waseem sabjee wrote: Hi Luigi. Change your HTML Structure to this div id=choices input type=radio class=option id=personaFisica name=personaFisica value=0 / input type=radio class=option

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

2009-05-13 Thread Liam Byrne
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: Fairly new to animation. Hold my hand please, hehe?

2009-05-15 Thread Liam Byrne
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

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

2009-05-15 Thread Liam Byrne
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 bally.z...@gmail.com wrote: I have a wee bit of code that handles a

[jQuery] Re: Only works in FF

2009-05-15 Thread Liam Byrne
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'

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

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

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

2009-05-19 Thread Liam Byrne
, 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 l...@onsight.ie wrote: Think of it logically. To animate a property, the computer needs to work out

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

2009-05-20 Thread Liam Byrne
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: adding $(script) node actually runs the script - correct behavior?

2009-05-21 Thread Liam Byrne
If you're outputting it to a HTML page, then all of the characters should be lt; and all of the characters should be gt; That will prevent them from being actual SCRIPT tags. L Paul Tarjan wrote: I don't want to execute it. I want to print it out to the html page so the user knows how to

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

2009-05-21 Thread Liam Byrne
+2009enddate=May+5%2C+2009start=225num=25output=csv -- /body /html On May 20, 3:56 pm, Liam Byrne l...@onsight.ie wrote: 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

[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

[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

[jQuery] Re: Refresh SPAN without entire page

2009-05-22 Thread Liam Byrne
, thats y am asking ,,, thanks in advance On Fri, May 22, 2009 at 12:30 AM, Liam Byrne l...@onsight.ie wrote: 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

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

2009-05-22 Thread Liam Byrne
, or explicitly set the initial padding on the element (as opposed to via a stylesheet). On May 21, 12:16 pm, Liam Byrne l...@onsight.ie wrote: Maybe I'm wrong, but I think myElement.animate( {padding: 12px} ) won't work anyway ? Shouldn't it be myElement.animate( {padding: 12

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

2009-05-22 Thread Liam Byrne
to 12px from whatever is currently set in the stylesheet, the padding first 'jumps' to 0px, then animates to 12px. So, for yours, maybe if you tried setting the 4 sides individually (or set the padding on the element directly), it would fix your 'jumpiness' as well? _jason On May 22, 6:51 am, Liam Byrne

[jQuery] Re: Refresh SPAN without entire page

2009-05-22 Thread Liam Byrne
, then will will not affect , thats y am asking ,,, thanks in advance On Fri, May 22, 2009 at 12:30 AM, Liam Byrne l...@onsight.ie wrote: 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

[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

[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: 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)

[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

[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 and

[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

[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

[jQuery] Re: reload an SWF object from jquery

2009-07-01 Thread Liam Byrne
: 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 Byrne l...@onsight.ie wrote: Is there an error / typo

[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: 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 l...@onsight.ie mailto:l...@onsight.ie wrote: Hi folks I have a function that operates on left

[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: 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: 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: 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 event

[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: Binding Events on a Click

2009-07-16 Thread Liam Byrne
, 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 l...@onsight.ie wrote: Yup, add then click, and use the return value (normally false to stop the HREF triggering) to allow the HREF

[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 there

[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 div What (I think) you need to do is: FIRST hr/ : OPEN DIV LAST hr/ : CLOSE DIV EVERY IN-BETWEEN hr/ CLOSE DIV FOLLOWED BY OPEN DIV If you don't do all of those in a single step, however, I'd suspect

[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 using

[jQuery] Re: Inline JQuery

2009-07-21 Thread Liam Byrne
Why not simply put the script src= into the template ? That way, if you need an update, you can test easily and replace easily. L Feris T wrote: Hi, Can I copy all code from jquery source into inline src html ? I need to use it in Blogger template. Thanks, Feris

[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

[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('spanchota/span'); return false } }) would work, but I wouldn't recommend it. Anyway, why would you want to do this, and how would you

[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: 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] 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 robing

[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: 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's a

[jQuery] Re: Problem on IE8

2009-08-11 Thread Liam Byrne
it error on IE8 only (IE7, FF is work fine) On Aug 11, 2:26 am, Liam Byrne l...@onsight.ie 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 $('elementId

[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 Paul Collins wrote:

[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

[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: 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 especialista...@gmail.com wrote: Good job. Awesome! Cheers Marco Antonio On

[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();

[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

[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: keeping table header fix

2009-09-16 Thread Liam Byrne
do you actually have the headers in a thead, with the content in tbody ? 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

[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

[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: [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 a target=_blank href=http://www.google.com;google/a but that's just HTML; it has nothing to do with jQuery Liam Lord Gustavo Miguel Angel wrote: Hi, Why this code not

[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: 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 directory

[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: 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

  1   2   >