[jQuery] Re: Double-click and toggle

2008-10-04 Thread Prajwala Manchikatla
the toggle function toggle the display not any action. You need write code to toggle the action. $(li).dblclick(function() { if($(this).didSomeThing == true){ $(this).backToNormal(); $(this).didSomeThing = false; return; } $(this).doSomething();

[jQuery] Re: if ($(event.target).is('a.edit')) with img

2008-10-04 Thread Leonardo K
I think u should look at Live Query Plugin. http://docs.jquery.com/Plugins/livequery *Live Query utilizes the power of jQuery selectors by binding events or firing callbacks for matched elements auto-magically, even after the page has been loaded and the DOM updated. * *For example you could

[jQuery] Re: SimpleModal wierdness

2008-10-04 Thread Prajwala Manchikatla
I use microsoft visual studio to debug errors on IE. it will point out the error at the exact place. I hope it helps you. On Sat, Oct 4, 2008 at 4:32 AM, Eric Martin [EMAIL PROTECTED] wrote: Actually, the error is being caused by the issue mentioned:

[jQuery] Re: ToolTip Bassistance insert external information

2008-10-04 Thread Prajwala Manchikatla
You can read the xml document like this $.get(data.xml,null,function(xmlDoc){ // xmlDoc is a xml document object // you can read data by xmlDoc.document.getElementsByTagName('para') etc.. // and you can use the jquery tool tip plugin to generate tooltip },'xml') tooltip plugin url

[jQuery] forgotten bug? java clashes with jquery, by design, at least since 1.2.1

2008-10-04 Thread Rene Veerman
Whenever one uses jquery on a page with a java applet, either with object or embed, there are CRIPPLING ERRORS on many operations (that are executed in the background). There's already a bugticket for it, but it hasnt been updated in a while: http://dev.jquery.com/ticket/2349 (lists causes

[jQuery] temporarily disable ajaxSend?

2008-10-04 Thread Rene Veerman
In order to prevent a clash between a java applet and jquery, i need to disable the ajaxSend trigger for a certain ajax call. How do i do that?

[jQuery] TurningOff Timestamp in querystring for AutoComplete

2008-10-04 Thread KaziManzurRashid
Hi, I am using the RC2 version of AutoComplete, But it seems there is no way to exclue the timestamp parameter from query string. The problem with timestamp is, it does not reuses the browser cache, though it maintains a cache which is no good for consequent visit. Can an extera setting can be

[jQuery] SuperFish: IE7 moving unrelated divs

2008-10-04 Thread Dan
Alright. This is a wierd one, I will try to explain clearly. I have one div, that has my masthead stuff in it. header image, contact info, that sort of thing. Then under that (not in), I have a nav div that I have placed the superfish stuff in. In other browsers this works swimmingly (pun

[jQuery] whats wrong with this selector ?

2008-10-04 Thread Puneet Arora
Hi All, In the following code, I expect the document to pop a message box saying 'para1' upon load. However it doesn't seem to work. I am trying to select a 'p' element that has a link in it. What do u think is wrong ? -- html head script type=text/javascript

[jQuery] Ultra simple question: Plugin callback

2008-10-04 Thread Micky Hulse
Hey there! Consider this code: $.fn.toggleAnim1 = function(f){ this.animate({'opacity': 'toggle', 'height': 'toggle'}, 'slow', function() { return f; }); } $('#success').toggleAnim1(function() { alert('hizz'); }); Is that one way to provide callback functionality? I would love

[jQuery] Superfish sub nav links disappearing on refresh

2008-10-04 Thread MaxProxy
Hi I have set up the 1.4.8 release of Superfish Nav Bar style. Everything works fine except that when I click on a subnav link, the links disappear when page is refreshed. When I hover over main link, they reappear only to disappear again. With JS off, this is not an issue. Any help with this?

[jQuery] curcss error with resizables.. odd situation though

2008-10-04 Thread Korijn
Hello jQuery, I'm working on a t-shirt design module with jQuery. Check it out here: http://84.86.134.134/shirt/ No worries, it's my home development server. Nothing bad happenin'. ;) This is how to produce the error in Firefox 3 (and I suspect in other browsers too): 1) Switch to the

[jQuery] Re: temporarily disable ajaxSend?

2008-10-04 Thread Mike Alsup
Rene, You can use the 'global' option to disable global triggers: $.ajax({ url: 'myUrl.php', global: false // disable ajaxSend, etc }); On Oct 4, 5:24 am, Rene Veerman [EMAIL PROTECTED] wrote: In order to prevent a clash between a java applet and jquery, i need to disable the

[jQuery] Tablesorter Plugin and widgets

2008-10-04 Thread Issac Kelly
I'm working on Christian Bach's tablesorter. I've made a widget that can select rows, and now I want to make a widget that can delete rows, and have a callback. The problem is the callback. The widgets are called like this $.tablesorter.addWidget({ // give the widget a id

[jQuery] Re: Double-click and toggle

2008-10-04 Thread Dave Methvin
the toggle function toggle the display not any action. There are two .toggle() signatures, this is the event one: http://docs.jquery.com/Events/toggle        $(this).didSomeThing = false; Each time you use $(this) you are creating a new jQuery object out of the current element. Because of

[jQuery] Re: invalid object initializer

2008-10-04 Thread [EMAIL PROTECTED]
I'm not trying to debug anything on the perl side, like I said in my original post I'm very new to Javascript, so there is something I'm not getting in javascript that is causing problems. I'm creating a string in perl that looks like this Foo: Bar:, Foo2: Bar2 and I'm writing that to a hidden

[jQuery] Re: whats wrong with this selector ?

2008-10-04 Thread Klaus Hartl
Are you aware that the information you were looking it is outdated, e.g refers to jQuery 1.1.2? With the latest version you would use: $('p:has(a)') --Klaus On 4 Okt., 12:29, Puneet Arora [EMAIL PROTECTED] wrote: Hi All, In the following code, I expect the document to pop a message box

[jQuery] Re: invalid object initializer

2008-10-04 Thread Michael Geary
The code below is not JavaScript code. It's Perl code. You wouldn't have those backslashes in JavaScript code. That's the problem I was referring to: You're trying to debug JavaScript code, but you're not looking at the JavaScript code itself, you're looking at the Perl code that *generates* the

[jQuery] Re: Ultra simple question: Plugin callback

2008-10-04 Thread Michael Geary
Looks like you solved it yourself; your second version is much closer to the mark. Do you actually write your code unindented like that, though, or did the indentation just lost in the process of posting it? I would format your code more like this: $.fn.toggleAnim1 = function(fn){

[jQuery] Re: Ultra simple question: Plugin callback

2008-10-04 Thread Micky Hulse
Ah, this is better: $.fn.toggleAnim1 = function(fn){ var $obj = this; $obj.each(function(){ $obj.animate({'opacity': 'toggle', 'height': 'toggle'}, 'slow', function () { $.isFunction(fn) fn(); }); }); }; Obviously, I am kinda a plugin noob... Feel free to give tips! :) Just ordered jQuery

[jQuery] Re: Ultra simple question: Plugin callback

2008-10-04 Thread Micky Hulse
Hi Mike! Many many thanks for your detailed reply -- I really appreciate the help. :) Sorry about the lack of indentation... Thanks for taking the time to re-format my code. I was not sure if Google Groups would break the long lines, so I removed the tabs. :( Thanks for pointing-out the

[jQuery] Re: SuperFish: IE7 moving unrelated divs

2008-10-04 Thread Joel Birch
Hi Dan, I spent an hour on this and couldn't figure out why the Superfish file triggers the bug, but I do have good news. It turns out that IE needs 'hasLayout' triggered on the #masthead element. Add height:1%; to the CSS for that element and the address panel stays where it is supposed to.

[jQuery] Best practices: Wait to reference objects? Classes like PHP? How do you stay organized with little overhead?

2008-10-04 Thread Micky Hulse
Hello, I just have a quick question about jQuery best practices... I have been wondering for a while now, is it bad practice for me to make references to objects outside of the block of code they are used in? For example, in my master JS file I might have this code: === //

[jQuery] Re: ANNOUNCE: jQuery listnav plugin

2008-10-04 Thread Steve Davis
Nice job :) On Oct 2, 2:52 pm, Jack Killpatrick [EMAIL PROTECTED] wrote: Hi All, Today we released our first jQuery plugin, which provides an easy way to add alphabet-based navigation to any UL or OL list. Here's a link to our announcement blog

[jQuery] Mootools and Jquery conflict

2008-10-04 Thread [EMAIL PROTECTED]
Hey guys, sorry to bother you with this one, I read the pages about the nonconflict script etc,...but I 've spent the whole day trying to figure out how to solve this. Basicly I have a script made on a mootools library. I now want to add jQuery's Fancybox to the page. When I do this my mootools

[jQuery] Re: Possible animate (negative) bug w/ Firefox 2

2008-10-04 Thread Webssy
As i experience the same problems, i wanted to know if anybody found a workaround for this? thx On 1 Sep., 21:13, maksik [EMAIL PROTECTED] wrote: Well, I think I found the source of the problem, but don't know exactly what to do with it. There is a function in JQ named curCSS, it used to

[jQuery] Re: Ultra simple question: Plugin callback

2008-10-04 Thread Micky Hulse
Yikes, I forgot about: $().ajaxSend(function(evt, request, settings){ $loader.fadeIn(fadeSpeed); }); $().ajaxStop(function(evt, request, settings){ $loader.fadeOut(fadeSpeed); }); Handling the loading image via the jQform options/callbacks was the majority of my problem... I

[jQuery] jQuery validation plugin - Italian Translation

2008-10-04 Thread D4.Solutions
filename: messages_it.js /* * Traduzione dei messaggi di default per il pugin jQuery validation. * Language: IT * Traduzione a cura di Davide Falchetto * E-mail: [EMAIL PROTECTED] * Web: www.d4solutions.it */ jQuery.extend(jQuery.validator.messages, { required: Campo obbligatorio.,

[jQuery] Re: ready function does not fire in Opera when the Back button is used

2008-10-04 Thread billrdio
OK, I found a solution for Opera: history.navigationMode ='compatible'; Example: if(navigator.userAgent.indexOf('Opera')!=-1){ history.navigationMode ='compatible'; window.onload = windowOnload; }else{ $(document).ready(windowOnload); }

[jQuery] JQuery .draggable() - How can you make a linked image draggable?

2008-10-04 Thread Ed
I'm using the JQuery UI .draggable() function as shown below. The problem with the below code is that once an image is dragged, it is no longer a clickable link. $(.linked_img).draggable({ helper: 'original', revert: 'invalid', start: function(){ $(this).click(function(){return

[jQuery] Re: invalid object initializer

2008-10-04 Thread [EMAIL PROTECTED]
The only reason the \'s are in the JAVASCRIPT code is because perl users the $ sign to declare a scalar variable reference. I'm generating this code completely myself, the problem is this function is built way before the perl code even starts to run, the perl code is just putting the data it

[jQuery] Possible to set metadata parameter dynamically?

2008-10-04 Thread me-and-jQuery
So is it possible to change the value of metadata parameter? Lets say we have div data={ id: 5 }. Or is the only way to change it with attr(id,6)? I have more parameters for element, so this is not an elegant solution. Thanks.

[jQuery] Re: Possible to set metadata parameter dynamically?

2008-10-04 Thread me-and-jQuery
Well, I meant with attr(data,{ id : 6})... my mistake. On Oct 4, 10:24 pm, me-and-jQuery [EMAIL PROTECTED] wrote: So is it possible to change the value of metadata parameter? Lets say we have div data={ id: 5 }. Or is the only way to change it with attr(id,6)? I have more parameters for

[jQuery] Re: invalid object initializer

2008-10-04 Thread [EMAIL PROTECTED]
Well here is my final working solution, its the best I can do I think... if ( \$(e.target).is('.legacy_view') ){ \$(#loading).toggle(); var query = \$(#legacy_data).val(); var array = query.split(',');

[jQuery] Re: Processing.js Google Group Now Formed!

2008-10-04 Thread F1LT3R
Hey Joe, I love using Processing so I am glad you started this group and I will definitely be subscribing. You have a question? I have been digging around in the Processing.js for a while now and am quite familiar with the Java Processing language, so maybe I could help? Thanks, Al On Sep

[jQuery] SUPERFISH 1.4.8 need way in superfish's css to extend full width or close to it

2008-10-04 Thread yvonney
Hi... Is there a way within the standard superfish css to extend the basic horizontal menu fully across the screen from left to right. If so I guess it would be great to know if we can have the menus themselves left center or right... big thanks! I've had some great suggestions to doing this by

[jQuery] Ajax/load help with external javascripts

2008-10-04 Thread Steve
Hi, I'm a jQuery newbie. Basically, I'm trying to load an html file into a div when a button is clicked. The html file contains external .js and .css files for the Greybox widget. I can't get Greybox working, do I have to do something special to load the js and css before the load method?

[jQuery] Re: jQuery cycle and handling new request/page changed

2008-10-04 Thread Mike Alsup
I have a slideshow, which repeats on different pages (for example / index-1.html, /index-2.html etc). Slideshow is in main template, shared by all other pages. What I'm trying to do is if page is changed from index-1 to index-2 (e.g. user clicks on some link on page), slideshow on index-2

[jQuery] Re: Processing.js Google Group Now Formed!

2008-10-04 Thread chris thatcher
I started using processing.js also, I'll definitely join this group! Thatcher On Sat, Oct 4, 2008 at 7:16 PM, F1LT3R [EMAIL PROTECTED] wrote: Hey Joe, I love using Processing so I am glad you started this group and I will definitely be subscribing. You have a question? I have been digging

[jQuery] jQuery cycle and handling new request/page changed

2008-10-04 Thread JozefSevcik
Hi all, I have a slideshow, which repeats on different pages (for example / index-1.html, /index-2.html etc). Slideshow is in main template, shared by all other pages. What I'm trying to do is if page is changed from index-1 to index-2 (e.g. user clicks on some link on page), slideshow on

[jQuery] Re: Processing.js Google Group Now Formed!

2008-10-04 Thread Rick Faircloth
Sounds interesting... I saw the example images John has in the repository, but are there any online working apps using it? Thanks, Rick chris thatcher wrote: Processing.js ( http://github.com/jeresig/processing-js/ ) is written by John Resig and is a port of the Processing language (

[jQuery] Re: Processing.js Google Group Now Formed!

2008-10-04 Thread chris thatcher
Processing.js ( http://github.com/jeresig/processing-js/ ) is written by John Resig and is a port of the Processing language ( http://processing.org) developed at MIT that uses the Html Canvas ( http://en.wikipedia.org/wiki/Canvas_(HTML_element) ) It is a very sexy 2D drawing API that allows

[jQuery] XML Parsing Question...

2008-10-04 Thread KenLG
For much of my app, I'm doing an Ajax hit to the server to grab XML. That works great. But, in some cases, I've got too many pieces of data (unrelated) that I need to pull so I'm trying to do a simple passthrough from the server side (I'm using ASP.Net). So, I'll either output from SQL Server or

[jQuery] Re: jqueryPngFix and links on IE6

2008-10-04 Thread Illimar
I have the extact same question. Have You found a way to make the whole link clickable yet? On Sep 2, 2:28 pm, Giovanni Battista Lenoci [EMAIL PROTECTED] wrote: Hi, I'm using the pngFix plugin to show some png images with trasparency. These images are part of a list of menu, and each one is