[jQuery] Re: animate callback scope for infinite loop?

2009-06-07 Thread mkmanning
The above post fails due to this: obj.animate({ opacity:myOpacity}, 500); animation(); The animation() function will be called immediately each time. It should be in obj.animate's callback function. That being said, the OP was asking how to do this without resorting to setTimeout(). To do that,

[jQuery] Make Learning Jquery Accordian Work With Unordered List

2009-06-07 Thread followerofjesus
Hello, I was wondering how to make http://www.learningjquery.com/2007/03/accordion-madness by Karl, work with an unordered lis instead of divs. I tried the below but did not work. I think what I have done here ('.links:visible'); looks plain wrong (I can't put a class or an Id in there right??)

[jQuery] Superfish IE6 and IE7 failures

2009-06-07 Thread Jeremy Schultz
I'm having two issues with Superfish in IE6 and IE7: 1. It doesn't work at all in IE6, though it appears from other posts that this is to be expected. Is there any way for it to degrade more gracefully and have some functionality? 2. In IE7 the menus show up fine but disappear instantly when the

[jQuery] Re: animate callback scope for infinite loop?

2009-06-07 Thread waseem sabjee
var obj = $("div"): // i want my objects opacity to go to 1 to 0.6 then follow that pattern var animeframe = 0; var myOpacity; function animation() { setTimeout(function() { if(animeframe == 0) { myOpacity = 0.6; animeframe = 1; } else if(animeframe == 1) { myOpacity = 1; animeframe = 0; } obj.

[jQuery] Re: document.body is null or is not an object

2009-06-07 Thread Lideln
Hi, Thank you all for your answers ! The problem is, that nobody else got this error, just me. And the other problem is that neither Firebug or WebDeveloper tell me of errors (they both detect different errors sometimes). IE6 bugs only on this line, and I tried to comment the inclusion of the tw

[jQuery] Re: Newbie: jQuery performance with 1000s of form elements

2009-06-07 Thread ravi
[apologies for the self-response] On Jun 7, 2009, at 11:08 PM, Ravi Narayan Sarma wrote: In the hope that a public recounting of my adventures will be of some edifying value, perhaps in the archives, an update: Some details that I forgot to add. I used Safari/WebKit's profiler to see w

[jQuery] jCarousel infinite loop aborting

2009-06-07 Thread Alan Gutierrez
I found an old thread where this was discussed... http://groups.google.com/group/jquery-en/browse_frm/thread/41b01c1c21f61934/0e6da863d9e26a2a?lnk=gst&q=jcarousel+infinite#0e6da863d9e26a2a For those of you facing the message 'jCarousel: No width/height set for items. This will cause an infini

[jQuery] Problem with looping autocomplete

2009-06-07 Thread Joe Tseng
I've tried every possible combination I can think of so I hope someone here can see something I'm missing... I have a form with multiple line items and I want to have a few of the fields validated against my database to make sure the values exist. My code is as follows: I've got a select form el

[jQuery] Re: Newbie: jQuery performance with 1000s of form elements

2009-06-07 Thread ravi
In the hope that a public recounting of my adventures will be of some edifying value, perhaps in the archives, an update: = Background: My problem: performance of my newbie jQuery based app with a table with 100s of rows consisting of 1000s of form elements slowed to an unus

[jQuery] Re: animate callback scope for infinite loop?

2009-06-07 Thread Bill
I think you may have misunderstood what I am trying to do. I need to refer to the instance of the Animation object. Within the callback, "this" already refers to the HTML Element. On Jun 7, 4:40 pm, Gustavo Salomé wrote: > try > $this=$(elementID); > > 2009/6/7 Bill > > > > > > > Hi, > > > I

[jQuery] Re: animate callback scope for infinite loop?

2009-06-07 Thread Gustavo Salomé
try $this=$(elementID); 2009/6/7 Bill > > Hi, > > I'm trying to create an endless animation similar to a screen saver, > where an image floats around the screen, fading in and out. I would > like to stay out of the global namespace, so I'd like to use the > callback to animate() rather than get

[jQuery] Re: Tooltip placement

2009-06-07 Thread Gustavo Salomé
*width*change the hover function to get the object width and remove the mousemove function. Do somenthing like: this.tooltip = function(){ /* CONFIG */ xOffset = 20; yOffset = 50; // these 2 variable determine popup's distance from the cursor

[jQuery] animate callback scope for infinite loop?

2009-06-07 Thread Bill
Hi, I'm trying to create an endless animation similar to a screen saver, where an image floats around the screen, fading in and out. I would like to stay out of the global namespace, so I'd like to use the callback to animate() rather than getTimeout(), which seems to operate only on functions i

[jQuery] Re: Help tracking down error in IE8 / jquery 1.3.2

2009-06-07 Thread agnawt
Thanks - that worked perfectly for me. On May 7, 10:40 am, Knut Hamang wrote: > Thanks. I have exactly the same issue. If using jquery-mini, here is > the code to insert: > > // search for this > return N.toUpperCase()});if(L){ > // insert this > if(K=='NaNpx'){K=''} > //before this > J[G]=K}ret

[jQuery] Re: $.ajax({..}) throws syntax error in IE7

2009-06-07 Thread waseem sabjee
yeah. it really is best to keep function simple. ensure they work in their simplest form before making them complex. On Sun, Jun 7, 2009 at 10:38 PM, MorningZ wrote: > > And to diagnose what Ricardo suggests (btoa issue), ** start simpler > ** > > as an example, does: > > var url = app_config.ba

[jQuery] Re: Restrcit user copy the site page article

2009-06-07 Thread Ricardo
Intranet or not, the user will still have access to the source. See here: http://www.lmgtfy.com/?q=disable+text+selection+javascript On Jun 6, 9:51 pm, bharani kumar wrote: > Hi its ok ya , > Am not bother abut the browser disable , > > Because its intra net project , > > So we disable in the s

[jQuery] Re: # of Pixels from the side of an element that the Mouse Cursor is located

2009-06-07 Thread Ricardo
On Jun 6, 6:36 pm, Evan wrote: > Hi there! > > I'm trying to: > > 1). Get the number of pixels from the left side of the hovered-element > that the mouse cursor is located, and > 2). Set *part* of a CSS attribute to this value > > I've been searching, but I can't find the answer to either of thes

[jQuery] Re: $.ajax({..}) throws syntax error in IE7

2009-06-07 Thread MorningZ
And to diagnose what Ricardo suggests (btoa issue), ** start simpler ** as an example, does: var url = app_config.base_url + "/client/ajax/get_book_details_html/" + btoa(title); $.get(url, function(data){ alert("Get Loaded: " + data); }); work? this will help determine if IE is having troubl

[jQuery] Re: $.ajax({..}) throws syntax error in IE7

2009-06-07 Thread Ricardo
IE's debugger points to the wrong lines often, maybe there's something wrong before that call, or it could be your btoa() function. On Jun 7, 5:05 am, Gaz wrote: > Hi all, > > This is my first post to the group, so please be gentle :) > > For some unknown (to me at least) reason I'm getting a sy

[jQuery] Re: $.ajax({..}) throws syntax error in IE7

2009-06-07 Thread Gary Pearman
Yes, the line before is terminated with a semi-colon :) As I said, the code works fine in all the other browsers I've tested it in. It's just IE that throws an error. Cheers, Gaz. On Jun 7, 4:26 pm, waseem sabjee wrote: > I tested the $.ajax working fine on my end. > > do you may be have a li

[jQuery] Re: re-establish user selection in a div with designmode=true

2009-06-07 Thread Dean
OK, now I got it to work... I needed to re-establish the range inside my ajax call. Cool. One wierd thing I did notice though is that sometimes the insertion cursor disappears. Its in the right place, its just not visible until you start to type. Thanks again for the suggestions.

[jQuery] Re: grid layout plugin?

2009-06-07 Thread Jack Killpatrick
it's not a plugin, but maybe this: http://960.gs/ - Jack bobh wrote: Hi, I've been on the lookout for a jquery plugin that fits divs together into a nicely fitting layout. For example: http://spacecollective.org/gallery/ more: http://www.corneer.se/nolegacy/?p=528 Does it exist?

[jQuery] Re: code not work when upgraded from 1.2.3 to 1.3.2

2009-06-07 Thread Karl Swedberg
just remove the "@" symbol in the selector. more info: http://docs.jquery.com/Release:jQuery_1.3#Changes http://blog.jquery.com/2007/08/24/jquery-114-faster-more-tests-ready-for-12/ --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 7, 2009, at 1:20 PM, a

[jQuery] Re: Slide show transition using backgrounds and pngs (jquery cycle lite)

2009-06-07 Thread D A
Ah, so this is definitely an IE issue rather than anything jQuery centric. That makes sense! -Darrel > IE cant handle css-images properly > Try to use your images as html. > > 2009/6/6 D A > >> >> > I'm attempting to create a mini slide show of rotating image. I'm >> > using jquery cycle lite:

[jQuery] code not work when upgraded from 1.2.3 to 1.3.2

2009-06-07 Thread angelochen...@gmail.com
Hi, This code has been working in jQuery 1.2.3: var country = jQuery("sele...@name='country']").get(0).value; now in jQuery 1.3.2, I got this error: [Exception... "'Syntax error, unrecognized expression: [...@name='country']' when calling method: [nsIDOMEventListener::handleEvent]" nsresult:

[jQuery] Re: grid layout plugin?

2009-06-07 Thread bh
for what it's worth, I found one: http://desandro.com/resources/jquery-masonry On 15 apr, 17:16, bobh wrote: > Hi, > > I've been on the lookout for a jquerypluginthat fits divs together > into a nicely fittinglayout. For example: > > http://spacecollective.org/gallery/ > > more:http://www.cornee

[jQuery] Re: who cann't i make it work?my first jquery aspx page

2009-06-07 Thread mkmanning
"should be in the head area of the document." No it shouldn't. You can put it in the head if you like, but Javascript blocks downloads, it's ideally a behavior layer that enhances presentation, etc. Much has been written about putting js at the close of the body as a best practice: http://develope

[jQuery] Re: re-establish user selection in a div with designmode=true

2009-06-07 Thread Dean
Sidenote: Now this is truly weird. I commented out my code. After I reload the div I have it select all the contents of the div, like this: $('#right div.text').each(function() { window.getSelection().removeAllRanges(); var range = document.createRange();

[jQuery] Re: who cann't i make it work?my first jquery aspx page

2009-06-07 Thread nvartolomei
why? drunk? On 7 июн, 17:08, jerome wrote: >   >     script> > should be in the head area of the document. > > - Original Message - > From: "dotnet" > To: "jQuery (English)" > Sent: Saturday, June 06, 2009 1:19 PM > Subject: [jQuery

[jQuery] Re: re-establish user selection in a div with designmode=true

2009-06-07 Thread Dean
Thanks. I took your advice and thought I had everything working nicely. Before I "update" the div my code recursively descends into the div so that I can turn a "range component" (refNode + offset) into an offset in a paragraph number. I tested this in firebug and it works fine. After the div is r

[jQuery] Re: How can animate Background at specific intervals with specified range.

2009-06-07 Thread waseem sabjee
$(".mybg").animate({ backgroundPosition:" 0% 0%"}, 0).animate({ backgroundPosition:"50% 50%" }, 500); On Sun, Jun 7, 2009 at 6:58 AM, Ramana wrote: > > Hi all, > > how to change background position at random or specified range with x, > y axis when mouse rolls over. > > Ex: Background Image heig

[jQuery] Re: $.ajax({..}) throws syntax error in IE7

2009-06-07 Thread waseem sabjee
I tested the $.ajax working fine on my end. do you may be have a line before $.ajax({ ... that is not terminated with the ; On Sun, Jun 7, 2009 at 2:05 PM, Gaz wrote: > > Hi all, > > This is my first post to the group, so please be gentle :) > > For some unknown (to me at least) reason I'm get

[jQuery] Re: who cann't i make it work?my first jquery aspx page

2009-06-07 Thread jerome
should be in the head area of the document. - Original Message - From: "dotnet" To: "jQuery (English)" Sent: Saturday, June 06, 2009 1:19 PM Subject: [jQuery] who cann't i make it work?my first jquery aspx page > > > <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Ch

[jQuery] Re: jQuery in OfficeLive

2009-06-07 Thread GCasalett
Thanks again. I did upload the .js files, I just double checked and they're both uploaded and (I think) not empty. I did think that jQuery was client-side but I've had like three different people for Microsoft Live email me telling me it's server side (which is why I came to this forum in the firs

[jQuery] Re: jQuery in OfficeLive

2009-06-07 Thread Greg Graham
I am guessing you did not upload the jquery.js and jquery.bgpos.js files to your Live site. Your page would work locally because you have the files on your computer, but since the urls you are using are relative, the files must be on the same computer that your HTML is on. Therefore, you need to c

[jQuery] Using jQuery to create self generating forms

2009-06-07 Thread Steve Hueners
Greetings...new jQuery user here...I've been thru a handful of the 'getting started' tutes including the Ben Nadel's hour long intro...great stuff. I haven't been this stoked to learn a new tool is a long time. My particular learning curve is going to focus first on using jQuery to construct the C

[jQuery] $.ajax({..}) throws syntax error in IE7

2009-06-07 Thread Gaz
Hi all, This is my first post to the group, so please be gentle :) For some unknown (to me at least) reason I'm getting a syntax error in IE from the following code $.ajax({ type: "POST", url: app_config.base_url + "/client/ajax/ get_book_details_html/" + btoa(title),

[jQuery] using multiple versions of jquery

2009-06-07 Thread Lalo
okay ! so i have several script on my site... something like fancybox, a mail form that pops up when I click on hyperlink, another jquery script for photo gallery & several others... the problem now is that in order to use this other script it appears like there is a conflict with some of the jqu

[jQuery] Recent Edits for jQuery Doing Comet

2009-06-07 Thread bratty
[jQuery] jQuery (English). jQuery is a fast, concise, JavaScript Library that simplifies how you traverse HTML documents, handle events, ... Click the bellow link to continue….. *** http://www.s1.webstarts.com/Technicalcommunica

[jQuery] access denied in local xml file IE

2009-06-07 Thread Zawardoo
I'm trying to make a simple call to a local file (html, js and xml all local). In ff no problems, in ie it does work only served by a web server (but i need to use it as a standalone file). i tried - $.ajax({ type: "GET", url: "ANAGRAFICA_small.xml", dataType: "xml",

[jQuery] # of Pixels from the side of an element that the Mouse Cursor is located

2009-06-07 Thread Evan
Hi there! I'm trying to: 1). Get the number of pixels from the left side of the hovered-element that the mouse cursor is located, and 2). Set *part* of a CSS attribute to this value I've been searching, but I can't find the answer to either of these. Does anyone know if they are possible? I apo

[jQuery] How can animate Background at specific intervals with specified range.

2009-06-07 Thread Ramana
Hi all, how to change background position at random or specified range with x, y axis when mouse rolls over. Ex: Background Image height is 200px. When mouse rolls over it will change specified x, y position, like (0, 20), (0,40), (0,60)... thank you

[jQuery] Tooltip placement

2009-06-07 Thread ivanisevic82
Hi! Sorry for my english, I hope you understand me. I'm using a tooltip created with Jquery, this is the code: _ this.tooltip = function(){ /* CONFIG */ xOffset = 20; yOffset = 50;

[jQuery] Re: How to change Date Format in Jquery Plugin

2009-06-07 Thread Donny Kurnia
Bluesapphire wrote: Hi! Iam using JQuery plugin [DATE PICKER] found from (http:// www.kelvinluck.com/). Its default date format is d/m/Y. Can some one guide me how can I change its format to m/d/Y Thanks in advance http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerD

[jQuery] How to change Date Format in Jquery Plugin

2009-06-07 Thread Bluesapphire
Hi! Iam using JQuery plugin [DATE PICKER] found from (http:// www.kelvinluck.com/). Its default date format is d/m/Y. Can some one guide me how can I change its format to m/d/Y Thanks in advance