[jQuery] Re: Add events and functions to ajax content

2008-07-15 Thread hubbs
Ok, so it sounds like I need to rebind when my new elements are added. Strangely the .bind() example is not even using bind. This is the example: $('a').click(fn); $('#mydiv').load('my.html',function(){ $('a').click(fn); }); Is this the best way to do what I need, or are some of the other

[jQuery] Can't get the selection range from the body.

2008-07-15 Thread Marcus Eby
Wondering if anyone can help me. I'm trying to access the body of an iframe, (done) and want to see the selectionStart or get the selection range from it. Only problem is it doesn't contain the selection range, or selectionstart. How can I retrieve this? Thanks Have tried the following: $(dsrt

[jQuery] Re: NEW: XML to JSON Plugin

2008-07-15 Thread chris thatcher
On Tue, Jul 15, 2008 at 4:01 PM, Diego A. <[EMAIL PROTECTED]> wrote: > Hi Chris, > > AJAX: >> Yeah actually I think it's normally sufficient to let the user use jquery >> ajax as usual but just provide easy functions to unmarshal/marshal into the >> format they need where ever they need it. It re

[jQuery] anyone know how i can make this wich jquery?

2008-07-15 Thread badcom
http://www.dynamicdrive.com/dynamicindex4/cmotiongallery2.htm see that as the mouse is approaching the end, the greater the speed

[jQuery] Re: i wish there was a way to get the entire CSS for an element... or is there?

2008-07-15 Thread Ariel Flesler
use CSS classes. -- Ariel Flesler http://flesler.blogspot.com/ On 15 jul, 19:35, jquertil <[EMAIL PROTECTED]> wrote: > #myDiv {height:200px;background: #FF9900;} > > $('#myDiv').css(height'); // returns "200px' > > but how can I get the whole enchilada so I have it in a nice and neat > object? >

[jQuery] Re: Closures, Callbacks, Return Values and Google Maps API!!!

2008-07-15 Thread Michael Geary
Where is your callback function for checkForStreetView to call? I don't see one. You're just running code immediately after the call that assumes the data is ready. That's why it's lagging behind - you're getting the data from the previous call. You need to provide a callback instead of the seque

[jQuery] Re: How to queue up ajax requests?

2008-07-15 Thread Shawn
Your situation is clearer now. I would think though that the solution is a little simpler. Bear with me as I talk through this, but I haven't had the joys of working with google maps like this (yet)... So, user loads the page. Then user starts panning around. Rapidly. Instead of trying t

[jQuery] Re: Problem if AJAX returns JSON with colon (:)

2008-07-15 Thread MorningZ
I took that JSON and plugged it right into "JSONViewer" (http:// www.codeplex.com/JsonViewer) and no problems with it i'd say something else is causing the "screw up", because it's apparently not jQuery or the JSON

[jQuery] Re: Problem if AJAX returns JSON with colon (:)

2008-07-15 Thread Karl Rudd
I can't see anything wrong with your code or the returned JSON. Define "screwed up". Karl Rudd On Wed, Jul 16, 2008 at 4:01 AM, WoolyNinja <[EMAIL PROTECTED]> wrote: > > I call a program using the following: > $.ajax({ >complete:function(req,status){ >... >}, >

[jQuery] Re: bug .append adds unwanted start tags to end tags

2008-07-15 Thread Karl Rudd
The HTML code you pass in to the append/prepend/etc functions gets converted to actual DOM nodes first, then it gets added to the DOM tree. This effectively means you can only append/prepend/etc "whole" tags. This isn't a bug. If you want to "wrap" a bunch of tags in another tag use the "wrapAll"

[jQuery] Re: proposing a new function for swapping classnames

2008-07-15 Thread Richard D. Worth
Have you tried toggleClass?: http://docs.jquery.com/Attributes/toggleClass - Richard On Tue, Jul 15, 2008 at 8:30 PM, jquertil <[EMAIL PROTECTED]> wrote: > > $("p").hover(function(){ > $(this).addClass("hover"); > },function(){ > $(this).removeClass("hover"); > }); > > this is kind of a verbo

[jQuery] Re: How to queue up ajax requests?

2008-07-15 Thread partner56290674
>>the "flooding the server with calls" is a non argument. If you don't >>want to do that, then you need to redesign your server side code to >>accept a single request to give you all the data you need Not true .. well at least I don't see it as that. I have no probs with multiple calls hitting t

[jQuery] proposing a new function for swapping classnames

2008-07-15 Thread jquertil
$("p").hover(function(){ $(this).addClass("hover"); },function(){ $(this).removeClass("hover"); }); this is kind of a verbose way of swapping classes, isn't it? I imagine it would not add much to the lightweightness of jquery if it allowed something like: $("p").hoverSwap("hover"); or, if

[jQuery] Re: Add events and functions to ajax content

2008-07-15 Thread Karl Swedberg
On Jul 15, 2008, at 6:47 PM, hubbs wrote: I have some html that is brought in through ajax which itself has some jquery functions attached to it. These are not working unless I include a document ready in the content that is pulled through with ajax. This in turn conflicts with my pages jque

[jQuery] Re: use of jquery to change existing code

2008-07-15 Thread Karl Swedberg
Hi there, You could do it this way: if(value=="UK"){ $('#vat').fadeIn(); } --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 15, 2008, at 5:19 PM, Snowman wrote: Hello, I am trying to add an effect to my existing JS. Not an expert with JS by a

[jQuery] Re: .append() default behaviour

2008-07-15 Thread Karl Swedberg
Hi Stefan, That isn't jQuery's behavior; it's the browser's. The value "rgb(213, 213, 213)" is just another representation (RGB) of the light gray, #D5D5D5, which is the hexadecimal representation. If you want to avoid all the -moz stuff, change "background:#D5D5D5" to "background-color:#D

[jQuery] Closures, Callbacks, Return Values and Google Maps API!!!

2008-07-15 Thread Joe
I have 2 js files. 1 is the jquery jmaps plugin (jmaps.js) (basically porting the google maps api to make creating google maps easier) and then the other file is all the actionable code (agency.js) to do stuff. I've been extending the plugin to add some features the original author did not put i

[jQuery] Re: Multiple Instances of the same effect without unique IDs

2008-07-15 Thread Karl Swedberg
Hi Joe, Assuming that the additional information that you're initially hiding is in a span tag, I'd do something like this: $(document).ready(function() { $('td:first-child').click(function() { $(this).find('span').slideToggle(); }); }); --Karl Karl Swedberg www.englis

[jQuery] bug .append adds unwanted start tags to end tags

2008-07-15 Thread Stefan Petrea
Hi, I've noticed recently while trying to use .append that for example when I append a tag in reality jQuery appends "". I consider this a bug. Is it expected behaviour ? What should I do ? Thank you -- Stefan Petrea homepage : http://perlhobby.googlecode.com/ mobile phone : +4073207017

[jQuery] Re: Toggle Class command

2008-07-15 Thread Karl Swedberg
Hi Lukas, The .toggleClass() method takes a class name as its argument. You've put in an id selector -- "#forum-wide". So doing this ... jQuery("#forum").toggleClass("forum-wide"); ...will alternately add the "forum-wide" class to the element with id="forum" and remove it from that

[jQuery] Re: AutoComplete and JSon not working as expected. Please, help me out.

2008-07-15 Thread shapper
Sorry for the delay ... I just changed the file. Check it now. On Jul 15, 9:37 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > Firebug shows an error when I enter something. Can't debug it with the > compressed script - replace that with the uncompressed one and we may > get somewhere. > > Jö

[jQuery] Re: Superfish problem in IE6

2008-07-15 Thread Joel Birch
The bad news is that IE6 does not support :hover on anything except anchor elements, and li:hover is needed for any kind of drop-down menus to work with valid code. The good news is that your Superfish menu is probably working perfectly! Joel Birch

[jQuery] Re: History

2008-07-15 Thread spherop
I was going to use RealSimpleHistory as it seemed the most complete, but apparently Mac Safari is not working from what i read on site comments. A new version is in the works though. I am also trying to understand the capabilities and limitations of the various options, and anyone who has had su

[jQuery] Re: Transparent png fade bug IE7

2008-07-15 Thread Joel Birch
2008/7/16 africanshox <[EMAIL PROTECTED]>: > im also habing the same issue with this...has anyone managed to find a > work around to it? 'fraid not. I've had a good go at trying to get around this problem and failed. Joel Birch.

[jQuery] Add events and functions to ajax content

2008-07-15 Thread hubbs
I have some html that is brought in through ajax which itself has some jquery functions attached to it. These are not working unless I include a document ready in the content that is pulled through with ajax. This in turn conflicts with my pages jquery document load. Is there a way to avoid thi

[jQuery] i wish there was a way to get the entire CSS for an element... or is there?

2008-07-15 Thread jquertil
#myDiv {height:200px;background: #FF9900;} $('#myDiv').css(height'); // returns "200px' but how can I get the whole enchilada so I have it in a nice and neat object? I imagine something like this: $myCSS = $('#myDiv').css(); $('.otherDivs').css( $myCSS);

[jQuery] Re: Transparent png fade bug IE7

2008-07-15 Thread africanshox
im also habing the same issue with this...has anyone managed to find a work around to it? On Jul 6, 9:11 pm, Mike <[EMAIL PROTECTED]> wrote: > I had same issue have you fixed this? > > On May 21, 4:16 pm, Adam Housman <[EMAIL PROTECTED]> wrote: > > > Hello everyone, > > > I'm having a problem tha

[jQuery] Re: Sourceforge uses jQuery

2008-07-15 Thread Cloudream
Wow, great. But sf.net is blocked by greatfirewall in China :( On Jul 16, 5:33 am, "Web Specialist" <[EMAIL PROTECTED]> wrote: > Sourceforge.net(http://sourceforge.net/?abmode=1) is a network which > promotes open source software uses jQuery in a released website. > "SourceForge is the global te

[jQuery] Re: Underlay to replace overlay

2008-07-15 Thread Gabriel
Hi Johnie, Yes, this is what I want to do... But I want to keep the little image that indicates there is something loading and more, I want to have my thumb in front of the image displayed. That's it ! Thank you for answering. Gabriel On 14 juil, 15:09, JohnieKarr <[EMAIL PROTECTED]> wrote: >

[jQuery] ClientSide Cookie or ServerSide Cookie

2008-07-15 Thread pedramphp
Dear Folks , I have to save some of the settings of my Users with the cookies , I've done this before with PHP Cookie Header .. right now I was Wondering If I could that with jQuery instead of PHP ... which one is Practical ... is there any Example for the jQUery cookie ... thanks Pedram

[jQuery] jquery calls asp server page - works in in firefox 3 but not in IE 7

2008-07-15 Thread crichards
Hi Tried out a jquery code demo from http://www.xml.com/pub/a/2007/10/10/jquery-and-xml.html which works fine in Firefox 3 but fails to work in IE 7. It dosn't work in IE either directly calling a static xml file or by using an asp server file to create the xml dynamically. Any ideas why it fail

[jQuery] .append() default behaviour

2008-07-15 Thread Stefan Petrea
I want to append to a tag another tag but in the argument to .append() I use the characters :;#% because I need them to write colors attributes to the new tag and some other css things(and I can't code a class for those because I wouldn't want to use css because I don't know it). The problem is th

[jQuery] use of jquery to change existing code

2008-07-15 Thread Snowman
Hello, I am trying to add an effect to my existing JS. Not an expert with JS by any means, I can manage to work my way around is most instances. I have jquery library called in my code because of a password strength meter so I might as well try and utilize it's functions. My code: if(value=="U

[jQuery] [ANNOUNCE] Sourceforge uses jQuery

2008-07-15 Thread Web Specialist
Sourceforge.net(http://sourceforge.net/?abmode=1) is a network which promotes open source software uses jQuery in a released website. "SourceForge is the global technology community's hub for information exchange, open source software distribution and services, and goods for geeks. The network of m

[jQuery] Re: PLUGIN: prettyPhoto v2.1.1 a jQuery lightbox clone released

2008-07-15 Thread Rey Bango
mation from ESET NOD32 Antivirus, version of virus signature database 3269 (20080715) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com

[jQuery] Cycle Plugin - multiple instances on same page?

2008-07-15 Thread wdm
Any way to have several slideshows on the same page, each with their own independent navigation (prev/next), without giving them unique ids? Couldn't get this working: $('.gallery').each(function() { var p = this.parentNode; $(this).cycle({ fx: 'scro

[jQuery] Re: AutoComplete and JSon not working as expected. Please, help me out.

2008-07-15 Thread Jörn Zaefferer
Firebug shows an error when I enter something. Can't debug it with the compressed script - replace that with the uncompressed one and we may get somewhere. Jörn On Tue, Jul 15, 2008 at 9:35 PM, shapper <[EMAIL PROTECTED]> wrote: > > Hi, > > Here it is: > http://www.27lamps.com/Beta/AutoComplete/

[jQuery] Re: [autocomplete]

2008-07-15 Thread Jörn Zaefferer
Check out the demo (http://jquery.bassistance.de/autocomplete/demo/), pick the example that comes closest to your requirement, and take a look at the code for that one. Firebug helps a lot there. >From what you describe, the "single bird (remote)" comes quite close. This is the code for it: $("#

[jQuery] Re: NEW: XML to JSON Plugin

2008-07-15 Thread Diego A.
Hi Chris, AJAX: > Yeah actually I think it's normally sufficient to let the user use jquery > ajax as usual but just provide easy functions to unmarshal/marshal into the > format they need where ever they need it. It reduces the size of the plugin > and I've sort of found most ajax-convenience fu

[jQuery] Re: How can i add a callback function the attr() method?

2008-07-15 Thread Michael Geary
I would preload the image while the fadeout is running, and then wait for both the fadeout and the preload to complete before switching images and fading back in. You could do it something like this (untested code): $(function(){ $('#gallery-thumbs a').click( function() {

[jQuery] Re: PLUGIN: prettyPhoto v2.1.1 a jQuery lightbox clone released

2008-07-15 Thread Alexsandro_xpt
Very nice!!! No have keyboard arrow right or left keydown event? On 15 jul, 14:12, "Josh Nathanson" <[EMAIL PROTECTED]> wrote: > That is luscious.  Great job Stephane. > > -- Josh > > - Original Message - > From: "Rey Bango" <[EMAIL PROTECTED]> > To: > Sent: Monday, July 14, 2008 2:34

[jQuery] Re: AutoComplete and JSon not working as expected. Please, help me out.

2008-07-15 Thread shapper
Hi, Here it is: http://www.27lamps.com/Beta/AutoComplete/TagsUpdate.aspx And I kept the previous one: http://www.27lamps.com/Beta/AutoComplete/Tags.aspx Thank You, Miguel On Jul 15, 6:09 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > Please put the commented code back in. The current one is

[jQuery] Re: yet again XML+jQuery+IE7

2008-07-15 Thread Diego A.
Hi Tzury, If that's the exact code you're using, then you should first convert the XML string into a jQuery object, like this... xml = $(' {xml goes here} '); Hope that helps. Diego A. 2008/7/15 Tzury <[EMAIL PROTECTED]>: > > > > On Jul 15, 5:53 pm, "John Resig" <[EMAIL PROTECTED]> wrote: > >

[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] [autocomplete]

2008-07-15 Thread fredriley
Hi I'm new to jQuery and to this list. This is a question I sent to another web developer's list yesterday, after spending many hours trying and failing to get the Autocomplete (http://docs.jquery.com/ Plugins/Autocomplete) jQuery plugin to do what I wanted: ~ Ok, I give in - I've been s

[jQuery] Problem if AJAX returns JSON with colon (:)

2008-07-15 Thread WoolyNinja
I call a program using the following: $.ajax({ complete:function(req,status){ ... }, data:vals, dataType:'json', error:function(req,status,err){ ... }, success:function(data,status){ ...

[jQuery] Multiple Instances of the same effect without unique IDs

2008-07-15 Thread Joe S
I know this has got to be in here somewhere; I'm not familiar enough with jQuery syntax to know what a valid search string is (i keep looking for EACH and THIS and MULTIPLE but I'm not returning anything useful). So I apologize that my noob stripes are showing through... I've got (basically) a ta

[jQuery] How can i add a callback function the attr() method?

2008-07-15 Thread gs4492
Hi everyone. I understand that you cannot que non-effect jquery methods. Therefore i need to use a callback function. Please look at the code i am using for my gallery... [code] $(document).ready(function(){ $("#gallery-thumbs a").click(function(){ va

[jQuery] Re: yet again XML+jQuery+IE7

2008-07-15 Thread Tzury
On Jul 15, 5:53 pm, "John Resig" <[EMAIL PROTECTED]> wrote: > Hey - can you provide an example site? It's unclear what might be > wrong without seeing a response from the server. What is the value of > xml when it comes back? > > --John > below is a snippet which can be tested in FF and IE

[jQuery] Customize datepicker date range

2008-07-15 Thread Andri
how i can custom the dateRange (default are 10 years before/ after the date). I use this function $('.dateRange').attachDatepicker({beforeShow: customRange}); function customRange(input) { return {minDate: ('1990'), maxDate: ('2040')}; } but it doesnt work

[jQuery] Re: [tooltip] how to add a delay to tooltip removal

2008-07-15 Thread Matt
Thanks Jorn, since I have to have that post-delay(damn requirements!), I'm certainly going to work on implementing it, as best I can :). I'll contact you if/when I've got something. Thanks! Matt On Jul 15, 10:18 am, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > There is no easy way, no. You'd ha

[jQuery] Re: Finding position among siblings

2008-07-15 Thread Jonathan Sharp
$('div').click(function() { // Will give you the index out of just the DIV tags var index = $(this).parent().find('> ' + this.tagName).index(this); // Will give you the index out of all siblings var index = $(this).parent().find('> *').index(this); }); Cheers, -Jonathan On Tue,

[jQuery] Re: Finding position among siblings

2008-07-15 Thread Josh Nathanson
Check into the index() method. -- Josh - Original Message - From: "ml1" <[EMAIL PROTECTED]> To: "jQuery (English)" Sent: Tuesday, July 15, 2008 8:57 AM Subject: [jQuery] Finding position among siblings Is there an efficient, cross browser jquery way to find a node's position amon

[jQuery] Re: Counting commas and form inputs

2008-07-15 Thread Jeffrey Kretz
I may have misunderstood your question, but this will count commas in a string: val.split(",").length-1; JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Hinch Sent: Tuesday, July 15, 2008 8:38 AM To: jQuery (English) Subject: [jQuery] Counti

[jQuery] Re: My first jQuery plugin

2008-07-15 Thread Andy Matthews
Pete... There is a built in parent method which does pretty much what you're doing. http://remysharp.com/jquery-api/ Look under parents(). -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ProggerPete Sent: Tuesday, July 15, 2008 10:41 AM To: jQ

[jQuery] Re: [tooltip] how to add a delay to tooltip removal

2008-07-15 Thread Jörn Zaefferer
There is no easy way, no. You'd have to look at the delay-implementation and apply that to hiding, including timeout cancel on rehover. If you can provide a patch, no matter how messy, I'll look into implementing it into the plugin. Jörn On Tue, Jul 15, 2008 at 6:26 PM, Matt <[EMAIL PROTECTED]>

[jQuery] Re: [validate] Dynamic forms and input naming

2008-07-15 Thread Jörn Zaefferer
The plugin is architectured around unique names, so there is no obvious way out. The plugin is already quite tolerant in respect to dynamic forms, so this is a worthwhile topic. I'd be happy to collaborate with you on this, where you do the research and we try to find a solution based on that, tog

[jQuery] Re: Calling PHP Functions from jQuery?

2008-07-15 Thread Abba . Bryant
My recommendation would be to use a serverside framework. I find CakePHP allows me to simplify ajax development greatly. On Jul 14, 10:44 pm, Mario Wolff <[EMAIL PROTECTED]> wrote: > On 14 Jul., 16:11, Yavuz Bogazci <[EMAIL PROTECTED]> wrote: > > > is it possible to call php functions from jquery

[jQuery] Re: PLUGIN: prettyPhoto v2.1.1 a jQuery lightbox clone released

2008-07-15 Thread Josh Nathanson
That is luscious. Great job Stephane. -- Josh - Original Message - From: "Rey Bango" <[EMAIL PROTECTED]> To: Sent: Monday, July 14, 2008 2:34 PM Subject: [jQuery] PLUGIN: prettyPhoto v2.1.1 a jQuery lightbox clone released prettyPhoto v2.1.1 a jQuery lightbox clone released

[jQuery] ToggleClass problem

2008-07-15 Thread lukas
I want a DIV to disappear while another DIV supposed to toggle its class. The first task gets accomplished but not the 2nd one. What is wrong with my approach? Thank you! jQuery(document).ready(function() { jQuery(".toggle-left").click(function() { jQuery("#left").toggle('slow'); jQuery("#forum

[jQuery] Counting commas and form inputs

2008-07-15 Thread Hinch
I'm looking for a way to simply count or limit the number of commas used. In my form there is a drop down that selects numbers. This needs to correspond to the amount of tags a user can input - separated by commas. The drop down does several other things already so I just need to know how to cou

[jQuery] Finding position among siblings

2008-07-15 Thread ml1
Is there an efficient, cross browser jquery way to find a node's position among it's siblings? Ie if I have ten nodes next to each other and the user clicks on the third one, what's the best way to tell that it's the third one? Thanks!

[jQuery] Re: jqGrid 3.2 version

2008-07-15 Thread phipps_73
Great work Tony! Just upgraded from 3.2rc and working well with the updated params. Cheers, Dave On Jul 15, 3:06 pm, Tony <[EMAIL PROTECTED]> wrote: > The jqGrid 3.2 is finally out. This version is a big step forward and > is primarily a bug fix release. Again with this there are some very > us

[jQuery] getBoxObjectFor() is deprecated

2008-07-15 Thread Pete
I keep seeing this error message from time to time on a site that I'm working on. *Use of getBoxObjectFor() is deprecated. Try to use element.getBoundingClientRect() if possible.* The site still seems to work fine, it's just an annoying error. I have a feeling it has something to do with the jque

[jQuery] Toggle Class command

2008-07-15 Thread lukas
Hello! Does anybody see a mistake here? I want to let a DIV disappear while another DIV needs to change its class. Thanks for your input! jQuery(document).ready(function() { jQuery(".toggle-left").click(function() { jQuery("#left").toggle('slow'); jQuery("#forum").toggleClass("#forum-wide"); });

[jQuery] popup, When dragged and closed, return to original position when poped up again

2008-07-15 Thread Adar
looking for a plogin that should able to drag a element when poped up! and when clicked again to open the popup it should not open where it was dragged to!

[jQuery] Using jquery show/hide from different URLs

2008-07-15 Thread Al
Hi, I working on a project in which I am using Jquery to show/hide content. it is working fine, however I would like to have links on different pages pointing to such content. So, as for now, I can only use show/hide content with links on the same page (e.g. : page1.php). Is there a way to make

[jQuery] Re: $.post problem. need help badly

2008-07-15 Thread Pappa Bear
You can with ajax... depending on the result that is returned, you can have your script perform various things. If the result returns with a success for the call, you can call one thing, while if returns a failure, you can, say alert the user with a message. Even single threads allow for multiple

[jQuery] jQuery plugin documentation and jsdoc-toolkit

2008-07-15 Thread [EMAIL PROTECTED]
Hi, I have searched the forum but could not find really info on the following question. I have written all my custom.js files and my own plugins using jsDoc documentation tags. It works well with my custom js files. but I does not work at all with jQuery plugins. as no Global variables or Obj

[jQuery] Re: Dynamic changing jCarousel data source

2008-07-15 Thread Pappa Bear
It is absolutely possible. Just rebuild the list with data customized from your data source. I use .net, so I would perform my sql search then rebuild my list with a string that contained all the variables necessary... should be simple enough... -Steve On Jul 14, 7:14 am, Marius Bucur <[EMAIL PR

[jQuery] My first jQuery plugin

2008-07-15 Thread ProggerPete
Hi folks, I'm very new to jQuery and am playing around with what is possible. I found myself wanting a findParent function and couldn't spot one ready made. I'd love it if people could give me feedback on my implementation. I'm sure there's plenty I could do better. If this function also e

[jQuery] Re: AutoComplete and JSon not working as expected. Please, help me out.

2008-07-15 Thread Jörn Zaefferer
Please put the commented code back in. The current one is rather useless. Jörn On Tue, Jul 15, 2008 at 4:31 PM, shapper <[EMAIL PROTECTED]> wrote: > > Does anyone knows how to solve this problem? > > Please, check my example in: > http://www.27lamps.com/Beta/AutoComplete/Tags.aspx > > On Jul 14,

[jQuery] Re: ui.datepicker trouble

2008-07-15 Thread Stuart Batty
John, would you be willing to post the solution you had at work? I'm still trying to get this frackin' thing to work. Shawn-53 wrote: > > > Thanks John. Your tip pointed me in the right direction. > > Basically I changed my code from > > $("#mycontrol").datepicker("getDate") > to > $.datep

[jQuery] Superfish problem in IE6

2008-07-15 Thread marlyred
Hi, I am having a problem with the superfish menu in Internet Explorer 6. The menu does not degrade when javascript is turned off. The drop down menu does not work when hovering on a top level link. Any thoughts? Cheers

[jQuery] [tooltip] how to add a delay to tooltip removal

2008-07-15 Thread Matt
Hello, I'm using Joern's fantastic tooltip plugin. For a project I'm working on, I need the tooltips to persist for a certain number of seconds after the user has ceased hovering over the element(in this case a label). I am already using the delay option, but was wondering if there was an easy way

[jQuery] Re: How to queue up ajax requests?

2008-07-15 Thread Shawn
the "flooding the server with calls" is a non argument. If you don't want to do that, then you need to redesign your server side code to accept a single request to give you all the data you need. One call, one response then. But that's a server issue. And there are performance/modularity

[jQuery] Re: Validation Problem Using the remote Method

2008-07-15 Thread Jörn Zaefferer
I'm still not sure what you are trying to achieve. Maybe explaining the behaviour the user would experience on your app works better. "Click submit, a request is sent, something happens, something is returned, something else happens, etc. pp". Jörn On Tue, Jul 15, 2008 at 3:14 PM, Nimrod <[EMAIL

[jQuery] Re: jQuery Validation Opera Issue

2008-07-15 Thread Jörn Zaefferer
Please checkout the latest revision or wait for the next release (1.4), the issue is fixed there. http://dev.jquery.com/view/trunk/plugins/validate/ Jörn On Tue, Jul 15, 2008 at 3:21 PM, Nimrod <[EMAIL PROTECTED]> wrote: > > I used a text area as one of the field inside my form. I didnt put any

[jQuery] Re: Replacing html in ajax success callback?

2008-07-15 Thread Mario Soto
Easy. Put an id to your tag, and then: $ ('#id').html(replacementcontent); it doesn't matter what type of tag you can put an id to the tag.

[jQuery] [validate] Dynamic forms and input naming

2008-07-15 Thread ldodds
Hi, I've built a dynamic form that I want to validate using the JQuery validate plugin. However I've hit a snag which I think is related to how I'm naming form elements. I wondered whether anyone else has had the same problem (or might have a solution!) The dynamic aspects of the form are implem

[jQuery] Re: NEW: XML to JSON Plugin

2008-07-15 Thread chris thatcher
On Tue, Jul 15, 2008 at 10:18 AM, Diego <[EMAIL PROTECTED]> wrote: > > Hi Chris, > > I'd be glad to work on this with you. Unfortunately, I'm completely > tied up with a couple of other projects for the next few days. I won't > have a chance to work on the next version, but I'll let I know as soon

[jQuery] Re: cant upgrade from 1.2.3 to 1.2.6

2008-07-15 Thread Ariel Flesler
Thanks for the proposition. But this is not a valid fix, it's a patch. We probably need to rewrite the whole detection approach. It's not simple as it must support many cases, and reject many as well. Cheers -- Ariel Flesler http://flesler.blogspot.com On 15 jul, 11:19, Ricardo Ferreira <[EMAI

[jQuery] Re: jScrollPane with jQuery 1.2.6

2008-07-15 Thread Kevin Ashworth
I noticed that at http://kelvinluck.com/assets/jquery/jScrollPane/, the version of jScrollPane.js is 4765, while at http://plugins.jquery.com/project/jScrollPane you'll download version 3125.

[jQuery] Re: Display JSon String

2008-07-15 Thread Mario Soto
If you're using ajax, try the dataType option to be setted as json, and so, the message from the server formatted as json, will be automatically transformed into an array. Check, if you're using a php version that supports json convert function, so, you can use json_encode(). if not, check example

[jQuery] Re: $.post problem. need help badly

2008-07-15 Thread Mario Soto
you can call a function when web service returns the result of the page that database already saved the info: function otherajaxcall(pa,ra,me,ter){ $.ajax({ type: "POST", url: "someother.php", data: "age=25&gender=male", success: function(msg){ alert(msg); } }

[jQuery] Re: Download a file made from a String

2008-07-15 Thread Bil Corry
aharef wrote on 7/15/2008 5:08 AM: * the file is actually displayed in the browser :( But thats solvable PHP-Offtopic ;) You'll want to serve the file with the Content-Disposition header set to "attachment" -- the headers should look something like this: HTTP/1.0 200 OK MIME

[jQuery] Re: yet again XML+jQuery+IE7

2008-07-15 Thread John Resig
Hey - can you provide an example site? It's unclear what might be wrong without seeing a response from the server. What is the value of xml when it comes back? --John On Tue, Jul 15, 2008 at 9:34 AM, Tzury <[EMAIL PROTECTED]> wrote: > > The following example (from the jquery-doc-site) works fin

[jQuery] Re: yet again XML+jQuery+IE7

2008-07-15 Thread Diego A.
Hi Tzury, I've just released a plugin to work around XML parsing issues by converting it to JSON. Tested in IE6/7, FF2/3. You might find it useful. XML 2 JSON Plugin http://www.fyneworks.com/jquery/xml-to-json/ Cheers, Diego A. 2008/7/15 Tzury <[EMAIL PROTECTED]>: > > the following example (t

[jQuery] Re: PLUGIN: Select Multiple Control

2008-07-15 Thread Diego A.
Hi Ryan, Thank you for this. Great work! Cheers, Diego A. 2008/7/13 Rey Bango <[EMAIL PROTECTED]>: > > Ryan Cramer released this new plugin: > > http://www.ryancramer.com/journal/entries/select_multiple/ > > Code: > > http://code.google.com/p/jquery-asmselect/ > > Demo: > http://www.ryancramer.

[jQuery] Re: AutoComplete and JSon not working as expected. Please, help me out.

2008-07-15 Thread shapper
Does anyone knows how to solve this problem? Please, check my example in: http://www.27lamps.com/Beta/AutoComplete/Tags.aspx On Jul 14, 9:57 pm, shapper <[EMAIL PROTECTED]> wrote: > Jörn, > > I just uploaded an ASP.NET application that shows exactly what the > problem was. > The commented script

[jQuery] yet again XML+jQuery+IE7

2008-07-15 Thread Tzury
The following example (from the jquery-doc-site) works fine with firefox. however, in IE7 $("element_name", xml).text() returns empty-string anyone bypassed this issue in the past? $(document).ready(function() { // generate markup $("#rating").append("Please rate: "); for ( var i = 1;

[jQuery] Re: jqmodal positioning from within iframed page

2008-07-15 Thread IncludE
Scoping on the window where jQuery has been loaded. You must try to force scoping on the iframe. So don't forget to give a name and an id for each window, allows to communicate better between them. After that, check if the jqmodal can scope the correct DOM branch. You can put the jqmodal script i

[jQuery] Re: PLUGIN: Select Multiple Control

2008-07-15 Thread Ryan Cramer
I've posted an update to asmSelect here: http://code.google.com/p/jquery-asmselect/ This version fixes the issue with IE6 from this thread, along with a few other things. It also changes the license to be the same as that used in jQuery. (Dual MIT & GNU) Ryan

[jQuery] Re: cant upgrade from 1.2.3 to 1.2.6

2008-07-15 Thread Ricardo Ferreira
Hi, I came up with this problem, and managed to get a fix to it. I am using jquery-1.2.6. Follows the code of the makeArray function: makeArray: function( array ) { var ret = []; if( array != null ){ var i = array.length;

[jQuery] Re: Download a file made from a String

2008-07-15 Thread aharef
Hi Richard, thanks for pointing me to this thread I haven't found before (but searched for ;) Dang, I thought giving the "Save as"-dialogue would override security- issues ("Would you like to download this virus? OK | Cancel"). Yet I believe server-calling methods aren't even a bit saver from a

[jQuery] Re: Thickbox 3.1 escape not working on Firefox 3 Win Xp

2008-07-15 Thread phipps_73
Further to this - the thickbox is an iframe and when the iframe has focus (e.g. if you highlight some text) the esc button does not work. If you then click on the header (where the esc text is) then click escape it works. So I have added the following code to my $ (document).ready(function(){}); :

[jQuery] Re: Validation Problem Using the remote Method

2008-07-15 Thread Nimrod
"false" value is the data or result that the remote method should recieved while the remote request is still on process. Is it possible to make remote method default value = false. What I mean of "False" here is invalid entry. Sorry for my poor English. On Jul 12, 6:48 pm, "Jörn Zaefferer" <[E

[jQuery] yet again XML+jQuery+IE7

2008-07-15 Thread Tzury
the following example (taken from: http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery) works fine in FF but not in IE7 dose anyone find a way to make jQuery XML parsing facilities work on IE as well? $(document).ready(function() { // generate markup $("#rating").append("Pleas

[jQuery] jQuery Validation Opera Issue

2008-07-15 Thread Nimrod
I used a text area as one of the field inside my form. I didnt put any validation rule on it but why i am receiving a validation message "Please enter no more than 0 characters." ? This only appears on Opera. Any idea?

[jQuery] Re: Replacing html in ajax success callback?

2008-07-15 Thread Diego A.
Hi, Assuming the link is directly within the td (ie.: the td tag is the a tag's parent), you can do this: $(this).parent().htm(results); Cheers, Diego A. NB.: That is, obviously, instead of "$(this).replaceWith(results);" 2008/7/14 s.ross <[EMAIL PROTECTED]>: > > Hello-- > > I have what seems

  1   2   >