[jQuery] Re: Superfish Question

2008-07-11 Thread Joel Birch
Hi Abba, I can only guess that you mean that in Firefox the type sometimes shifts one pixel after the animation is complete. My experiments show that this is likely something to do with Firefox rounding off relative units such as em units for line-height, vertical padding and possibly font-sizes

[jQuery] Re: How to access xml attribute values with Jquery?? ...that have a namespace. Ex = name:funny

2008-07-11 Thread Karl Swedberg
Glad to hear that it worked for you, Ed! For future reference, the FAQ has answers to a bunch of questions like this one. Just thought I'd point it out because sometimes the FAQ gets lost amid the large amount of documentation. http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_sele

[jQuery] Hover does not work with a#someID ... ?

2008-07-11 Thread xbitdesigns
Hi there. Ive got some strange thing here. HTML looks like this: asdasdsw etc ... ↓ display thumb list After "hov

[jQuery] Re: How to access xml attribute values with Jquery?? ...that have a namespace. Ex = name:funny

2008-07-11 Thread Ed
Worked like a charm! I used this one: $this.find("name\\:funny").attr("post"); Thanks! -Ed On Jul 11, 6:23 pm, Ariel Flesler <[EMAIL PROTECTED]> wrote: > I can think of 2 options: > > $this.find("name\\:funny").attr("post"); > > I'm not sure that will work. The other one: > > this.getElements

[jQuery] JS not working

2008-07-11 Thread shaf
Hi Guys I am using JQuery and a rounded corners plugin to round the edges of my div IDs. I have an index page and use innerHTML to inject HTML into the index page. The problem is the HTML which is injected into the index page, the div tags which are supposed to become rounded remain unchanged. Se

[jQuery] How far scrolled down the page.

2008-07-11 Thread Dan
What jQuery or javascript code would get how far the window is scrolled down the page? I want to know if the current visitor is at the top of the page or how far they have scrolled down the page.

[jQuery] Re: Square Brackets in Sortable Serialize

2008-07-11 Thread Ken Gregg
This is a php thing. Indicates the parameter is an array. On Jul 11, 3:57 pm, Alan Gutierrez <[EMAIL PROTECTED]> wrote: > When I call $("#list").sortable("serialize") I get > > article[]=2&article[]=1 > > Why the square brackets? I've not seen this sort of style of query   > string before. >

[jQuery] AJAX and IE 7

2008-07-11 Thread anoyes
I'm hoping someone can shed some light on this for me. I have a combination of jQuery and PHP code that takes care of generating and processing some XML. Basically the XML is the status, etc. of AJAX functions that are called, so, for example, the response XML might look like 1001Customer succes

[jQuery] Re: Button Click

2008-07-11 Thread bin
you can user unbind $('#myButton').unbind("click") -- Original -- From: "Andy Matthews"<[EMAIL PROTECTED]>; Date: 2008年7月12日(星期六) 凌晨00:50 To: "jquery-en"; Subject: [jQuery] Re: Button Click -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sh

[jQuery] Re: Some If/Then help

2008-07-11 Thread Richard W
Perhaps sommin like this: (untested) var clients = [ 'nike' : 'swoosh.jpg', 'addidas' : '3stripes.jpg', 'reebok' : 'rbk.jpg', 'default' : 'default.jpg' ]; var class = $("#main").attr("class"); typeof clients[class] != "undefined" ? insertImg(clients[class]) : insertImage(clients['default']); fu

[jQuery] Re: Button Click

2008-07-11 Thread noon
Should you? Well if thats the only javascript on the page there isn't much point in including a library for something like that. However you could do it by saying: // jQuery's document ready $(function() { // grab the button and assign event $("#Cancel").click(function() { window.locatio

[jQuery] Re: Need Help Filtering Content

2008-07-11 Thread noon
First of all, you should be assigning your content links (the ones on the left) classes and not IDs. Not only is it bad practice, but jQuery will stop after it hits the first one. Second of all, $("a").click(function () { var filter = $(this).attr("id"); $("li").not(filter).not("

[jQuery] Button Click

2008-07-11 Thread shapper
Hello, I have a button which redirects to a page: Cancel Should I remove the onclick from the button and do this with JQuery? And how can I do that using JQuery? Thanks, Miguel

[jQuery] Re: Extra AJAX calls being made

2008-07-11 Thread Josh Nathanson
Usually this indicates that somehow, you are rebinding the event handler to the button on each ajax call. Each time you do a binding, it is additive -- there is nothing to check and see if the event handler is already bound. Check your logic and make sure you are only binding the event handl

[jQuery] Re: Traversing XML via jQuery

2008-07-11 Thread Sam Sherlock
not tried this, I might have an obvious error, but this is what i would try var $suggest =$("#suggest"); var $testo = $("#testo"); // perform function on each isbn from xml source $("isbn", xml).each(function (i, n) { // append the text to the su

[jQuery] Need Help Filtering Content

2008-07-11 Thread Willie
I am building a test site with jquery. The site lists links from several rss feeds. On the right side of the page there is a sources legend. I would like to be able to click a source and show only links from that source while the others hide. Then when I click a different source, those links appea

[jQuery] Traversing XML via jQuery

2008-07-11 Thread neosz
Hi folks, I'm a jQuery newbie and I'm trying to traverse a XML given by a PHP script to get information for organizing them and displaying them on my page. Here's a kind of my XML: 0156001314015603297X0847829863084782646501510135190156029065015601159X081095905401560323923829601867 and here's my

[jQuery] How to create a dynamic parameter in getJSON url?

2008-07-11 Thread K Bouton
How do I add a dynamic parameter in getJSON url? [code] function onSelectChange(){ var whatChecked = $("input:checkbox:checked").val(); $.getJSON("select.php", {whatChecked:"somevalue"}, function(json) { ...stuff to do } [/code] I want the url that getJSON uses to be dynamic and lo

[jQuery] Extra AJAX calls being made

2008-07-11 Thread Dustin
I'm working on an app that uses Jquery and the BlockUI plugin. An odd problem I'm having is that there are extra ajax calls being made. For every Ajax call I make, and the number of calls made increments. In other words, the initial ajax call is made by clicking a button in a message I display wit

[jQuery] Re: Superfish 1.4.5 released - now with drop shadows!

2008-07-11 Thread Rick Faircloth
Thanks for the tips, Joel. When I first implemented SuperFish on this site, it was my first use and I wasn't sure what bgiframe.js was for exactly, so I included it just to be safe. (I just didn't take the time to read...) Now that I know what it's for, I realize I don't need it to overcome IE6

[jQuery] Re: This chain works in Firefox but not in IE6?

2008-07-11 Thread paceman
Thank-you On Jul 10, 9:20 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote: > Each .append() expects a complete (and best if valid) element. So where > you've got .append("") near the beginning of your chain, and > .append("") near the end, you need .append(" .append("") just near the beginning.

[jQuery] UI/Effects/Transfer

2008-07-11 Thread mjama
okai sorry if this is a duplicate but my machine acting weird... so my question is UI/Effects/Transfer plugin only transfers the outlines , is there a way to transfer an image ? even if it is using a different plugin ?

[jQuery] [autocomplete] - Problem with display after upgrading from 1.0 to 1.0.2

2008-07-11 Thread rsmolkin
Hi All, I just updated the version I was using 1.0 of the jquery autocomplete to version 1.0.2. And right away one thing does not work the same for me. The display used to be a nice list with no scroll bars and would say More at the bottom with arrows. Now it comes up with both a horizontal an

[jQuery] Re: internship with a programmer - wanna work for free to learn

2008-07-11 Thread Jonathan Sharp
Hi Vik, On Thu, Jul 10, 2008 at 4:41 PM, joomlafreak <[EMAIL PROTECTED]> wrote: > ... My impression so far had been that they really are > not counted much compared to your experience. It is generally > mentioned by people that increasing competition has led to companies > using the credentials

[jQuery] UI/Effects/Transfer

2008-07-11 Thread mjama
hey guys , just quick question , I am trying to transfer an image not an outline .. is that even possible ?

[jQuery] Re: trying to build function to ajax submit form and ajax load

2008-07-11 Thread Mike Alsup
>  $.ajax({url: "cart.inc.php", data: $(this.elements).serialize(), What is "this" in the line above?

[jQuery] How to access xml attribute values with Jquery?? ...that have a namespace. Ex = name:funny

2008-07-11 Thread Ed
I'm using this tutorial for xml consumption with jquery: http://www.webmonkey.com/tutorial/Easy_XML_Consumption_using_jQuery The tutorial includes this code example to find the value of the "post" attribute in the node "name": studentPost = $this.find("name").attr("post"); But... It doesn't

[jQuery] Re: Superfish 1.4.5 released - now with drop shadows!

2008-07-11 Thread Joel Birch
Thanks so much for the help Richard! Joel.

[jQuery] Re: Superfish 1.4.5 released - now with drop shadows!

2008-07-11 Thread Richard W
That's done it :) On Jul 11, 3:23 pm, "Joel Birch" <[EMAIL PROTECTED]> wrote: > Just found this explanation (last couple of comments on the > page):http://allinthehead.com/retro/328/when-bugs-collide-fixing-text-dimmi... > > Have altered the fix - hopefully it works now. Please scream in anguis

[jQuery] Re: Superfish 1.4.5 released - now with drop shadows!

2008-07-11 Thread Richard W
$.browser.version returns as string This should work: if ($.browser.mozilla && parseFloat($.browser.version) < 1.9) $('body').css('-moz-opacity',.999); On Jul 11, 3:17 pm, "Joel Birch" <[EMAIL PROTECTED]> wrote: > I was quite confused by why Firefox3 identifies itself as 1.9 via > $.brows

[jQuery] Re: Superfish 1.4.5 released - now with drop shadows!

2008-07-11 Thread Joel Birch
Just found this explanation (last couple of comments on the page): http://allinthehead.com/retro/328/when-bugs-collide-fixing-text-dimming-in-firefox-2 Have altered the fix - hopefully it works now. Please scream in anguish if not. Cheers Joel Birch.

[jQuery] Re: Some If/Then help

2008-07-11 Thread brendan
On Jul 11, 9:51 am, noon <[EMAIL PROTECTED]> wrote: > Don't understand when this could occur to make any sense for images > being inserted like this without an example, but at any rate.. noon, thanks for your help, I'll give it a try. I should have been a little more specific sorry. It's for dis

[jQuery] Re: Superfish 1.4.5 released - now with drop shadows!

2008-07-11 Thread Joel Birch
I was quite confused by why Firefox3 identifies itself as 1.9 via $.browser.version. Any idea what I should be checking for? Cheers Joel Birch.

[jQuery] Re: Superfish 1.4.5 released - now with drop shadows!

2008-07-11 Thread Richard W
Hi Joel Indeed this is quite a frustrating FF bug! Your fix has not solved the solution for FF2 Mac, I have to assume because you're checking for browser verion < 1.9 .. ? On Jul 11, 2:16 pm, "Joel Birch" <[EMAIL PROTECTED]> wrote: > Okay, the IE7 fix has been released - Superfish is now v1.4.6

[jQuery] Re: Some If/Then help

2008-07-11 Thread noon
Don't understand when this could occur to make any sense for images being inserted like this without an example, but at any rate... You'll have to think about when and how this is triggered in order for these if statements to be executed because as said, i don't understand switch ($('#main').att

[jQuery] Re: about for loops

2008-07-11 Thread Ariel Flesler
Because the length attribute of arrays is dynamic, and is evaluated each time you use it. That's a perfomance optimization. Also.. if you add items to the array inside the 'for', you'll go into an infinite loop. -- Ariel Flesler http://flesler.blogspot.com On 11 jul, 08:06, Javier Martínez <[EMA

[jQuery] Re: Superfish 1.4.5 released - now with drop shadows!

2008-07-11 Thread Joel Birch
Hi Rick, thanks for the congrats. I checked your site in IE7 and this is what is happening: the pngs are solid black until the animation has fully faded in, then they switch to being transparent. This is the same problem I had with the drop shadows, although I thought it only occurred when the bac

[jQuery] Some If/Then help

2008-07-11 Thread brendan
Hey all, I'm using Seamus Leahy's AddAClassNameAtRandomToAnElement.js (http:// moronicbajebus.com/2006/07/30/add-a-class-randomly-from-a-set/) to add a random class to a div, and then trying to insert an image based on the random class name. So if I have I'd like to say "if #main.aa, then ins

[jQuery] Re: Superfish 1.4.5 released - now with drop shadows!

2008-07-11 Thread Joel Birch
Okay, the IE7 fix has been released - Superfish is now v1.4.6 (couldn't be bothered saying 1.4.5.1). Richard, I found that adding -moz-opacity:.999 to the body of the documentation CSS (to fix FF2 Mac) caused the fade-ins not to work in FF3 Mac! They just popped straight to full opacity after the

[jQuery] Re: Superfish 1.4.5 released - now with drop shadows!

2008-07-11 Thread Rick Faircloth
Hi, Joel... congrats on the new version. I've been working with the 1.4.1 version of Superfish for awhile on a new site and I have put 24-bit png's as the background images for the menu items (not the main items, just in the dropdowns) all was working fine for months. Then all of a sudden, in IE

[jQuery] Re: slideDown hidden portion/bump

2008-07-11 Thread noon
I figured it out. The culprit is because I am setting the focus of the username input box. For whatever reason, when I remove this it is slid correctly. On Jul 11, 8:57 am, Liam Byrne <[EMAIL PROTECTED]> wrote: > IE 7 shows scrollbarsmaybe the animation isn't making it big enough > to displ

[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, K

[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] jquery and comet long polling problem with IE

2008-07-11 Thread cambazz
hello, I wrote a comet servlet, and this is how I get the data into jquery: function pS() { $.ajax({ url:'tS', type: 'GET', timeout: 10, complete: function(xhr, status) { alert(status); if(status==='success') { if(xh

[jQuery] Re: completely resetForm

2008-07-11 Thread caseyw
Hi Jörn, I have basically this, and still a no go. var nameForThisValidator = $("#formName").validate(); $("#closeLogin").click(function (event) { nameForThisValidator.resetForm(); nameForThisValidator.submitted = {}; document.forms['formName'].reset(); $("#loginLink").show(); $("#for

  1   2   >