[jQuery] Re: Dialog bug

2010-01-14 Thread Andrew Tan
Hi, I was wondering if you could post an example of your modified dragstart and dragstop callbacks which fix the issue? Thanks. On Jan 2, 12:37 am, Yuriy Pobezhymov yuradoc.commerc...@gmail.com wrote: Thank you much. It's work! Happy New Year!!!

Re: [jQuery] cannot insert html into DIV

2009-11-04 Thread Andrew Tan
You have to supply the canvas object as a parameter to the push function to add it to the array. canvasClasses.push($(this)); On Thu, Nov 5, 2009 at 10:16 AM, shaf shaolinfin...@gmail.com wrote: Hi Guys, I have several .class DIVs I want to manipulate. I have retrieved them using the

[jQuery] Re: cannot insert html into DIV

2009-11-04 Thread Andrew Tan
You have to supply the canvas object as a parameter to the push function to add it to the array. canvasClasses.push($(this));

[jQuery] Re: cluetip memory leak

2009-10-28 Thread Andrew Tan
Would we be able to pass in a number of variables to the functions such as show and hide which are initialised outside of the closures, rather than store references to the this object. I attempted to refactor/modify the code as a quick test but I kept getting null references to things like the

Re: [jQuery] lightbox

2009-10-28 Thread Andrew Tan
Which lightbox plugin are you using? I have been using prettyPhoto and with that one you need to have a link/anchor to each picture and each link/anchor needs to have the rel prettyPhoto.

[jQuery] Re: cluetip memory leak

2009-10-25 Thread Andrew Tan
The memory is released when you refresh the page. However, the users of my web app will be using the same page for 8+ hours a day and the page will most likely not be refreshed since all the updates are displayed and retrieved via ajax and jquery.

[jQuery] cluetip memory leak

2009-10-22 Thread Andrew Tan
Hi, I have been tracking down a memory leak in my web app which dynamically removes and adds anchors which have cluetip tooltips attached and I think that I may have narrowed down the problem to the main closure in cluetip which attaches the cluetip to the node (line 32: var link = this, $this =

[jQuery] Trying to match just the first descendent in each tree of descendents

2009-09-29 Thread Andrew Ingram
. Basically I need a way of finding all widgets that are descendents of the current working node, but with no other widgets in-between. If anything needs clarifying let me know. Regards, Andrew Ingram

[jQuery] Re: (Bassistance validate) Require inputs based on dropdown select

2009-09-29 Thread Andrew
=mySelect]).val() == '2');             }         },         myfield4: {             required: function() {                 return ($(input[name=mySelect]).val() == '2');             }         },     } } On Sep 28, 2:10 pm, Andrew andrewgtibbe...@gmail.com wrote: Info

[jQuery] (Bassistance validate) Require inputs based on dropdown select

2009-09-28 Thread Andrew
Info: - jquery-1.3.2 - jquery.validate-1.5.5 - form with 1 dropdown select and 4 text inputs Setup: - all 4 text fields are not initially required. Issue: The first input element is a required dropdown select. If the user selects option 1, then text field 1 2 need to be required. If the user

[jQuery] [autocomplete] Adding custom data retrieval function

2009-07-07 Thread Andrew McHarg
It would be nice if the autocomplete plugin accepted a function that retrieved the data on behalf of the plugin instead of being stuck with either static data or a relatively inflexible canned ajax request. $(#example).autocomplete(function (term, success, failure) { /* do custom method for

[jQuery] Tooltip Distance Offset

2009-07-07 Thread Andrew
Live preview (hover over the navigation): http://www.monikercreative.com/monikerguest/test.php I'm having a problem getting the tooltip to move next to each nav list item...I can move the static tooltip placement around and I've tried using offset and jobj width, but it doesn't work well since

[jQuery] Re: [autocomplete] Adding custom data retrieval function

2009-07-07 Thread Andrew McHarg
, Andrew McHargamch...@gmail.com wrote: It would be nice if the autocomplete plugin accepted a function that retrieved the data on behalf of the plugin instead of being stuck with either static data or a relatively inflexible canned ajax request. $(#example).autocomplete(function (term

[jQuery] Re: Initial Setup

2009-07-04 Thread Andrew
various URLs to do both, but not found one that works. Andrew On Jul 3, 3:49 pm, Pyrolupus pyrolu...@gmail.com wrote: On Fri, Jul 3, 2009 at 8:51 AM, Andrew m...@andrewcampbell.us wrote: I'm new to JavaScript -- and cannot get jQuery to work (unless I accesshttp://code.jquery.com/jquery

[jQuery] jQuery Setup

2009-07-03 Thread Andrew
Can I use the jQuery.js on http://code.jquery.com/jquery-latest.js, or must I download jquery.js to my server? If the answer is no, my hosting service does not support GZIP -- so what file do I install on my server? I've tried both jquery-1.3.2.min.js, and jquery-1.3.2.js.txt and they don't

[jQuery] Initial Setup

2009-07-03 Thread Andrew
I'm new to JavaScript -- and cannot get jQuery to work (unless I access http://code.jquery.com/jquery-latest.js) Is this permissible, or do I have to download jquery.js to my server? If not, I have other questions: * my hosting service does doesn't have gzip compression enabled -- what file do

[jQuery] Re: Help on jQuery plugin

2009-06-04 Thread Andrew
Any feedback? On Jun 3, 11:24 am, Andrew andrew.alcant...@hotmail.com wrote: Hi All, I have a plug-in that adds onclick event to an element, below is a snippet? jQuery.fn.showBox = function(options) { var options = {title:the title,content:the content}; return this.each(function

[jQuery] Re: Newbie question on selectors

2009-06-03 Thread Andrew
you can try something like this $(a[class^=edit]).click(function(){ var url_id = $(this).attr('href'); do stuff.. }); On Jun 3, 11:20 am, Dave Maharaj :: WidePixels.com d...@widepixels.com wrote: I have a page with 6 links that each have a unique class ; edit_profile edit_preferences

[jQuery] Help on jQuery plugin

2009-06-03 Thread Andrew
Hi All, I have a plug-in that adds onclick event to an element, below is a snippet? jQuery.fn.showBox = function(options) { var options = {title:the title,content:the content}; return this.each(function(){ var obj = $(this); obj.bind(click,function(e){ //

[jQuery] Hour glass cursor

2009-05-28 Thread Andrew Gunn
When blockUI is called, the cursor changes to an hour glass to indicate something is loading. If you don't move the mouse after everything has completed and unblockUI has been called, the cursor remains as an hour glass!? It will only go back to normal when you move the cursor!?

[jQuery] Traversing nested lists not working in IE

2009-03-25 Thread Andrew
HTML: ul li/li li/li ul li/li /ul li/li /ul JS: $(ul li).click(function(){ $(this).next().doSomething(); }); When I click on any li that has an li after it, that next li will 'doSomething'. But, when I click on the li that has a ul after, only in IE, the ul is

[jQuery] Re: Traversing nested lists not working in IE

2009-03-25 Thread Andrew
  li/li /ul - Richard On Wed, Mar 25, 2009 at 1:50 PM, Andrew andrewgtibbe...@gmail.com wrote: HTML: ul    li/li    li/li    ul        li/li    /ul    li/li /ul JS: $(ul li).click(function(){    $(this).next().doSomething(); }); When I click on any li that has

[jQuery] Re: closure inside ajax method

2009-01-27 Thread Andrew Hedges
The order of elements in a simple array like this is guaranteed. Looping over an object with a for in loop, the order is not guaranteed, though by convention most browsers honor the order in which the elements were added. jQuery would have to go out of its way to return the elements from your

[jQuery] $.ajax beforeSend Accept-Encoding behavior

2009-01-25 Thread Andrew Hedges
the Accept-Encoding value? Thanks, -Andrew

[jQuery] Re: $.ajax beforeSend Accept-Encoding behavior

2009-01-25 Thread Andrew Hedges
(say, a particular MIME type or charset)? In other words, is there no way to change this? On Jan 26, 2:41 pm, Andrew Hedges segd...@gmail.com wrote: I'm trying to make an Ajax request, specifically requesting a non- gzipped response. Here's how I am going about it: $.ajax({         url : 'http

[jQuery] Rico Compatibility issue

2009-01-24 Thread Andrew Strickland
I've seen issues similar to what I ran into posted elsewhere in this group, however, not the same solution I came up with. Recently I have been pushing very hard to convert my company's site from using a multitude of outdated libraries (Prototype, Rico, YUI) to using just jQuery. Interestingly, I

[jQuery] Is there a problem with Child selectors in Safari with 1.3?

2009-01-22 Thread andrew
Hi I've got an application that has a pop up div which has controls that submit an ajax post before which I'm getting some hidden variables from within the popup div, I'm using 'live' with the popup div controls. I'm referencing the elements by their parent id then their specific Id, eg

[jQuery] Re: Is there a problem with Child selectors in Safari with 1.3?

2009-01-22 Thread andrew
just curious if anyone else had problems in relation to using 1.3 vs 1.2.6 in this way. Thanks Andrew On Jan 23, 9:40 am, Jeffrey Kretz jeffkr...@hotmail.com wrote: One question, if you're referring to your elements by id, can't you just do: $('#elmId'); Directly?  Rather than by a parent

[jQuery] N00b question: Need help referencing input.value in my code

2009-01-20 Thread Andrew
I'm trying to write a couple functions that will clear a form field on focus. I also want to the change the class if the value has changed. I'm new to jQuery and a novice Javascript developer, so hopefully my issue is apparent. There appears to be an issue in how I am referencing $this. I wanted

[jQuery] jQuery 1.3: Sweet upgrade, but can we use it?

2009-01-14 Thread Andrew Hedges
and clients. I *hope* I'm wrong because I would love to take full advantage of the improvements in 1.3. I welcome your comments. -Andrew - http://andrew.hedges.name/blog/

[jQuery] Re: Josh Nathanson's magnify not showing stage in IE7

2008-12-08 Thread Andrew
Nope. Haven't had time to troubleshoot. I decompressed the code if you wanna take another look. Thanks! Andrew On Dec 3, 11:13 am, Josh Nathanson [EMAIL PROTECTED] wrote: Andrew - I got the link you sent and indeed, it does not seem to work on ie6 or ie7.  However, I couldn't see your code

[jQuery] Re: Josh Nathanson's magnify not showing stage in IE7

2008-12-08 Thread Andrew
It was the compression. The compression mod i am using has some toggle options, I'll see if I can figure it out. Thanks for indirectly solving this! On Dec 8, 2:19 pm, Andrew [EMAIL PROTECTED] wrote: Nope. Haven't had time to troubleshoot. I decompressed the code if you wanna take another

[jQuery] Re: Josh Nathanson's magnify not showing stage in IE7

2008-12-02 Thread Andrew
Hey Josh, thanks for helping me out. Your plugin has helped me quite a bit already. It may be JS conflict, it may be CSS (but I think I ruled out z- index)... I sent the link to your gmail address. Thanks! On Dec 1, 5:44 pm, Josh Nathanson [EMAIL PROTECTED] wrote: Andrew -- I just checked

[jQuery] Josh Nathanson's magnify not showing stage in IE7

2008-12-01 Thread Andrew
I am almost certain that I previously had it working in IE7, which leads me to think it's some new JS that is conflicting but I can't figure it out. Where can I start to look for IE7 conflicts?

[jQuery] Re: [treeview] Brief flash of expanded tree

2008-11-30 Thread Andrew
ie $(#browser).treeview({ animated: fast, persist: cookie, collapsed: true }).css('display','block'); Any feedback on this would still be appreciated. Dirceu Barquette wrote: Try my plugin. http://sourceforge.net/projects/jqtreevial/ 2008/11/29 Andrew [EMAIL

[jQuery] [treeview] Brief flash of expanded tree

2008-11-29 Thread Andrew
see the styles are only partially applied as well? Please help! Otherwise, i've found this plugin to be just what i needed :) Thanks, Andrew

[jQuery] unsubscribe

2008-11-17 Thread Andrew Taylor
MeanStudios wrote: Greetings, I am using this plugin in my web application and I had a quick question. Is there a way to trigger an ajax call if someone selects something from the dropdown list? The ajax call would then fill in some fields below related to what was just selected from the

[jQuery] Amazon's Windowshop - Flash Necessary?

2008-10-29 Thread Andrew
I'm just a jquery novice, but I was wondering if it would be possible to do something like Amazon's new windoshop.com without flash and just use jquery, html, and css.

[jQuery] Securing JSON data type

2008-10-24 Thread Andrew
Right now (jquery 1.2.6), the httpData function does this with JSON data: // Get the JavaScript object, if JSON is used. if ( type == json ) data = eval(( + data + )); This is not very secure. It would be better to allow users to choose a

[jQuery] Add new elements to a page but can't access existing js

2008-10-06 Thread andrew
Hi I'm pretty new to jquery and I've basically got a form which allows you to add additional fields and take them away, I've got it adding and removing any fields that are there when the page loads but any that are added after that the controls don't do anything. I've got each form element like

[jQuery] jqDnR: Full Directional Support and Size Limitations

2008-10-05 Thread Andrew
Hi Everyone, I came across jqDnR (Minimalistic Drag'n'Resize for jQuery) just the other day, but found it only included a SE resize option and no limitations on size. So I decided to add this support myself. Included in this post is the min version (1.48kB), and the expanded/ dev version

[jQuery] Problems with IE 6

2008-09-29 Thread andrew
Hi I've just started using jquery and I'm developing a dynamic site so I don't need the same code on every page and I'm loading various different javascript files in based on the page, but nothings working in IE but it works fine in firefox and safari. I have all the jquery calls in functions

[jQuery] Re: why is this code inefficient?

2008-09-24 Thread Andrew Hedges
I suggest giving jQuery a more specific context in which to search for the elements in question. If the set of elements you want is (or can be put) inside an element with an ID, that is the most efficient. Selectors like: $('#some-element .a-bunch-of-elements') ...are way faster than selectors

[jQuery] Re: best/standard way to benchmark your own scripts?

2008-09-17 Thread Andrew Hedges
pattern to individual parts of the script to get a more detailed view. That said, I'm pretty sure there are (commercial?) tools out there that let you profile scripts in some detail. I'd be interested to know, too, if there are any that are free software. -Andrew On Sep 17, 4:14 pm, Alex Weber [EMAIL

[jQuery] Re: Determining visible elements in an overflowed div

2008-09-11 Thread Andrew Lysyuk
I think you can get dimensions of div, dimensions of p, their positions, and than calculate if p is overflowed.

[jQuery] SuperFish - always display some submenu items

2008-09-09 Thread Andrew Lysyuk
For some pages I want some menu-items to be always dropped-down. For example, I have li elements with class=no. I need Superfish don't react to events on the submenu inside this element.

[jQuery] Re: SuperFish - always display some submenu items

2008-09-09 Thread Andrew Lysyuk
Not at all the same, but near )) Do you have any ideas? I tried to edit source code, but I'm very newbie in jQuery... There is one method, but IE braek layout of HTML template after that - I tried to wrap li elements that I need to proccess with SuperFish to div/div: liThis must be always

[jQuery] Re: Docs down...really no mirror?

2008-09-06 Thread Andrew Hedges
I'm building a Dashboard widget. It's not quite done, but it mostly works and it doesn't need 'net access because it contains a local copy of the docs. You can find it here: http://code.google.com/p/jquery-reference/ On Sep 6, 12:11 pm, Karl Swedberg [EMAIL PROTECTED] wrote: Until it does ...

[jQuery] Simple Templates

2008-09-03 Thread Andrew Hedges
the Prototype syntax, so I wrote my own. It's only 1009 bytes! Enjoy! -Andrew

[jQuery] UK salaries

2008-08-26 Thread Andrew Hedges
Hi all, Can anyone provide guidance on ranges for salaries in the UK for experienced jQuery / JavaScript / UI programmers? Cheers, -Andrew

[jQuery] Re: Calling PHP Functions from jQuery?

2008-07-15 Thread Andrew
The really proper way to do this is with XML-RPC or JSON-RPC, which is probably what you really want as you're already using JSON. RPC means remote procedure call. The basics are pretty well illustrated on the wikipedia page here: http://en.wikipedia.org/wiki/JSON-RPC There are a variety of

[jQuery] disable buttons till .load finishes

2008-07-03 Thread Andrew Gearhart
the buttons have appeared. No good! How can I keep folks from pushing these buttons until after the information loads? ~Andrew Gearhart

[jQuery] $.get intermittently returning empty under certain circumstances

2008-06-12 Thread Andrew
, Andrew

[jQuery] Re: Working with text

2008-06-12 Thread Andrew
var path = $('img').attr('src').replace(/.*\//, ''); Actually, I like Ariel's solution better as it's more readable. I just have a personal compulsion to solve every problem with regex. On Jun 11, 4:36 pm, yo2lux [EMAIL PROTECTED] wrote: path variable store the following:

[jQuery] Re: jCarousel - Multiple rows in horizontal mode (or cols in vertical mode)

2008-06-04 Thread andrew morton
Rocking the tables like it's 1995... no better options? I guess if the rows were divs with several images you could achieve the same effect. On Apr 30, 11:54 am, Jan Sorgalla [EMAIL PROTECTED] wrote: Hi, you can put whatever you want inside the li items. It can be a single image or a table

[jQuery] Re: Converting PHP tabbed page to jQuery

2008-04-18 Thread Andrew Wagner
Hi, I certainly do like jQuery a lot. Doing it unobtrusively in this case could be tricky though. To re-load only part of the page, you really want AJAX, which inherently requires javascript, for the most part. There is an exception, though: you culd be to put the module within in iFrame. This

[jQuery] Re: JQuery site is blank for one user

2008-02-24 Thread Andrew Ayres
. There's now a redirect page saying Safari isn't currently supported. Andrew

[jQuery] Re: JQuery site is blank for one user

2008-02-23 Thread Andrew Ayres
Thanks Shawn. I'm awaiting the user's feedback on the points you raised. rgds, Andrew

[jQuery] JQuery site is blank for one user

2008-02-21 Thread Andrew Ayres
instead of my website or the JQuery test suite? regards, Andrew

[jQuery] animate() with em fontsize units

2007-12-20 Thread Andrew Ma
Hello, I have a chunk of code that animates fontsize changes with the units set to em. The animation is a bit wacky. Am I doing something wrong or have I found a bug? style #test { font-size:1.2em; } /style div id=test href=http://www.google.com;Test/div script

[jQuery] textarea cursor position

2007-11-25 Thread Andrew Ma
Hello, I'm looking for a snippet of code or a plugin that will give me the current position of the cursor within a textarea. Does anyone have one that they can share?

[jQuery] Cross Browser Issues - Simple use of JQuery

2007-11-12 Thread Andrew Banks
Hi, I have a series of nested drop down lists being used for the navigation on a website. I have added a click() event to certain elements to toggle the visibility of some nested elements. This works in Firefox and Opera perfectly but the wrong elements are being toggled in IE6. I think the

[jQuery] .ajax error, error object has responseText.

2007-08-26 Thread Andrew McCloud
I've tried many things to fix this. In the error alert box I get: [{id:827,make_id:96,name:tC}, {id:825,make_id:96,name:xA}, {id:826,make_id:96,name:xB}, {id:828,make_id:96,name:xD}] Which is correct. $(function(){ $(input.search).keypress(function(){

[jQuery] Re: manipulate xml in IE6 isn't compatible?

2007-06-18 Thread Andrew G.
I have the same problem. Even very simple example doesn't work in IE6 For example, I try the following code $.get(test.xml,function(xml){ var text = $(control,xml).text(); alert(text); }); my XML file is as follows: controls controla/control /controls and when I run my code

[jQuery] Accessing the elements of this

2007-06-15 Thread Andrew B
I'm a raw newbie but have not found this particular question answered. I have a series of dynamically generated radios each of which has three possible values Y (yes) N (no) and M (maybe) and want to capture mouse clicks and act on them depending on the value for example tdinput type=radio

[jQuery] Accessing the elements of this

2007-06-15 Thread Andrew B
I'm a raw newbie but have not found this particular question answered. I have a series of dynamically generated radios each of which has three possible values Y (yes) N (no) and M (maybe) and want to capture mouse clicks and act on them depending on the value for example tdinput type=radio

[jQuery] Not english characters in the ajax parameters

2007-05-10 Thread Andrew G.
Hello, everyone I have a problem with not english characters. I've created with jquery google-like search-suggest and it works perfect with englesh characters. But if I want to search not englasi words, e.g. spanish, search doesn't work correct.

[jQuery] Re: Not english characters in the ajax parameters

2007-05-10 Thread Andrew G.
Thanks, SeVIR for quick answer. The problem is that php cannot decode the result of JavaScript encodeURIComponent which JQuery uses. The soultion is to create your own function that replace such characters as ?,:, etc. Maybe you know more right way?