[jQuery] Re: Double right-click, anyone?

2008-11-30 Thread TheBlueSky
Thanks for the code... but I couldn't manage to make it work at all in IE and in FF the only time it worked is if I replaced $('body') with $ ('html)! Any idea how to make it work with a specific element; e.g. and image with id=myImage, because when I tried $('#myImage') it didn't work as well.

[jQuery] Re: Doing Ajax call to a page that requires authentication

2008-11-30 Thread TheBlueSky
Unfortunately my data isn't of type JSON, so I guess I'll go with the Proxy option. Anyway, thanks alot for the help :) On Nov 30, 2:49 am, Karl Rudd [EMAIL PROTECTED] wrote: Oh and I because of the fact that a script tag is used the only arguments that can be passed in are GET type arguments

[jQuery] Re: Double right-click, anyone?

2008-11-30 Thread TheBlueSky
I forgot to mention also that I disabled the context menu with the code $('html').bind(contextmenu, function(e) {return false;}); and if I didn't do that, the context menu will appear and every right- click then will fire the double-click event in IE. I guess that's because in IE the

[jQuery] Re: [jCarousel]

2008-11-30 Thread Alex Hempton-Smith
Ah, I don't think I made myself very clear :P What I'm looking for is to have this: div class=jcarousel-control a href=# class=current1/a a href=#2/a a href=#3/a a href=#4/a /div ul liItem 1/li liItem 2/li liItem 3/li liItem 4/li /ul When 'Item 1' in the main ul becomes visible.

[jQuery] drawing on the web

2008-11-30 Thread Dirceu Barquette
Hi, I've been developing a new jQuery plugin (library) to draw on the web. https://sourceforge.net/projects/isabeladraw/ The link is a short app using this library. Opinions and comments are very welcome. thanks Dirceu Barquette

[jQuery] Re: Working with TinyMCE

2008-11-30 Thread I-CRE8
On Nov 29, 6:16 pm, I-CRE8 [EMAIL PROTECTED] wrote: I am having problems getting my TinyMCE text areas content to be seen by the jQuery Validation routine, has anybody got or can point me at a simpletons guide to getting this work I have put up a test page here

[jQuery] Re: [validate] Allowing letters only in a text input?

2008-11-30 Thread I-CRE8
On Nov 29, 11:06 pm, deronsizemore [EMAIL PROTECTED] wrote: The code is as follows: jQuery.validator.addMethod(lettersonly, function(value, element) {         return this.optional(element) || /^[a-z]+$/i.test(value); }, Letters only please); My problem is that I'm not sure where to place

[jQuery] how to cache image and background image in jquery?

2008-11-30 Thread darwin liem
Hi, first of all sorry for my bad english, due to its not my main language.. i'm quite new in using jQuery, however i'm stuck now on making Image() object cache. i try to cache image for img tags and background image in javascript variable so that the $.css and $.attr can use it for passing

[jQuery] [autocomplete] Problem with Scrolling IE 7

2008-11-30 Thread Code Daemon
Konqueror and FF2 work just fine but the side scrollbar doesn't appear when I try this basic test in IE 7.0.5730.13. The scrollbar does not work here: http://kittyslayer.ucdavis.edu/jquerytest/system/application/views/jquerytest.php However, the demo site actually works:

[jQuery] Body onunload Event

2008-11-30 Thread pyccki
Can anyone tell me if i can you this code with Body onunload Event. I tried and it's not working. any1 seeing anything? Thanx. body id=htmlBody script $(document).ready(function() { $('#htmlBody').unload(function() { $.blockUI({ css: { border: 'none',

[jQuery] Image rollover using jQuery

2008-11-30 Thread Ray M
Hello, Are there any existing jQuery plugin which can provide similar image rollover functions such as the one provided by Dreamweaver? Thanks. Ray

[jQuery] How do i submit a new plugin?

2008-11-30 Thread shavin
I wanted a gallery viewer which would accomodate multiple sets of photos in which each set could correspond to one event. Additionally I wanted it to pick the set-name, thumbnails paths, full pics paths and captions text etc from javascript object/array instead of markup. And I was impressed by

[jQuery] Re: JQuery UI Not Working?

2008-11-30 Thread nullWeight
Ali, Sounds like the jQuery functions aren't loading. The accordion is expanded because it isn't working so it's divs are not minimized. I bet if you comment out the tabs you'll find that you get an error on any other jQuery functions you have. I'm having the same problem when I try to get a

[jQuery] Generic Handler returning JSON

2008-11-30 Thread JQueryProgrammer
Hi All, I am trying to get data back from the server by passing JSON values from jQuery. Find below my code: $(#btn).click(function() { $.ajax({ url: http://; + location.host + /AJAXSample/ GenericHandler.ashx, data: {name: 'Ted'}, type: GET, dataType: json,

[jQuery] getJSON doesn't run the function inside

2008-11-30 Thread fabrice.regnier
Hi all ;) I'm very new to jquery. I'm playing with JSON and have some prob to retrieve the result. Here is the client side: script $(document).ready(function(){ $(#IdEmailField).blur(function(){ alert(FOO1); -- it works $.getJSON(test.php, function(json){

[jQuery] Re: Problem with prev() in IE

2008-11-30 Thread flycast
No. I am definitely looking for the li sibling right before any ul.../ul. I am building menus and submenus. Any ul...ul that appears below a li.../li is a submenu. I know that I could add a name or class to either the head or subhead. I wouod rather have jQuery find these so that I don't have any

[jQuery] Re: Problem with prev() in IE

2008-11-30 Thread flycast
By the way...the documentation says that you can add any string expressing to filter a prev() and next() statement with all browsers (not just FF and Safari) should return a filtered result.

[jQuery] Re: Double right-click, anyone?

2008-11-30 Thread ricardobeat
I didn't test it in IE... no cookie. Apparently the 'mousedown' event was at random not carrying the property that tells us what button was clicked, a triple click was needed. I switched to mouseup and it seems to work fine, I also had forgotten to clear the timeout and set the var to false when

[jQuery] Re: avoid inserting twice

2008-11-30 Thread ricardobeat
And that can be shortened to: var h = $('#header'); if (!h.next(':not(#new)').length) { h.after('div id=newtest/div'); } or, logically, you wouldn't insert two elements with the same ID, so you could simply use if (!$('#new').length) On Nov 29, 4:50 pm, seasoup [EMAIL PROTECTED] wrote:

[jQuery] Re: getJSON doesn't run the function inside

2008-11-30 Thread Fabrice Régnier
hi again, ok, i'm answering to my self: $.getJSON failed silently cuz the json response was not well written in the php script. Indeed, i used the json_encode php function which was not available in my php conf. regards, f. 2008/11/30 fabrice.regnier [EMAIL PROTECTED] Hi all ;) I'm very

[jQuery] Re: Appending text works; appending element doesn't

2008-11-30 Thread ricardobeat
Oh, I meant for public websites, where neither of those would be available to IE users. I wish I could code for FF only :( Coming back to topic, does anyone has information on the differences in DOM methods for 'application/xml' pages, or any plans from the jQuery team to make it stable in this

[jQuery] Re: Problem with prev() in IE

2008-11-30 Thread ricardobeat
The trouble is you are using invalid markup. You can't put an UL directly inside another UL. It can only contain list items, so you need a structure like this: ul liFirst-level/title/li li ul liSubmenu/li /ul /li ul And then grab all the LIs that don't have a

[jQuery] Re: Problem with prev() in IE

2008-11-30 Thread Jeffrey Kretz
It isn't possible to have an LI sibing right before a UL. That would mean markup like this: ul liList Item #1/li-- LI Sibling ul -- UL liList Item #2/li liList Item #3/li /ul /ul That is illegal markup. Your markup actually looks like

[jQuery] Re: .ajax and ie7?

2008-11-30 Thread ricardobeat
I'll have to disagree with you. Using document.write for such a trivial task is not the way to keep your code clean. I'm much more into something like: $.getJSON('readimages.php', {imagefolder: folderName, imageprefix: imagePrefix}, function(images){ $(images).each(function(){

[jQuery] Re: Double right-click, anyone?

2008-11-30 Thread Jeffrey Kretz
If I might make a suggestion. Right-click context menus are inherently not cross-platform compatible, as Opera will not cancel the default right click popup. Any any Mac users without a right mouse button are screwed. I personally suggest using CTRL-Click. This works on a Mac testing for the

[jQuery] Re: Working with TinyMCE

2008-11-30 Thread Jörn Zaefferer
I've just commited an example for integration of TinyMCE and the validation plugin: http://jqueryjs.googlecode.com/svn/trunk/plugins/validate/demo/tinymce/ The relevant code is in the index.html file: http://jqueryjs.googlecode.com/svn/trunk/plugins/validate/demo/tinymce/index.html The code could

[jQuery] Re: [autocomplete] Problem with Scrolling IE 7

2008-11-30 Thread Jeffrey Kretz
Not sure what's happening on the javascript end, but CSS-wise, the FF list has an attribute of overflow:auto and the same list has an attribute of overflow:hidden. JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Code Daemon Sent: Sunday,

[jQuery] Re: avoid inserting twice

2008-11-30 Thread Mario Soto
As I understand you have the problem that some information you send via AJAX is been sended two, tree, etc. times because the user gets desperate and can't wait a couple of seconds. If that's you case, happened to me too. I solved with blockUI. I blocked, pages, or even part of a page

[jQuery] [Beginner alert] How do I output the selected part of the DOM in a web page in a JS alert()?

2008-11-30 Thread stephane_r
Hello, Consider the code snippet at the end of the post. It alert()s me by returning the selected text. The problem is that window.getSelection() only returns plain text. No indication of the html tags, of the classes, nor any kind of DOM. I think that jQuery has something more complete than

[jQuery] jQuery loop help

2008-11-30 Thread SLR
First off, I apologize if this is too noobie a question or has been answered somewhere else (I can't find it anywhere). I'm new to jQuery, and I'm trying to learn some basics. Anyways, I'm stumped on the following. How can I convert this to jQuery? var links = ...

[jQuery] Re: Working with TinyMCE

2008-11-30 Thread I-CRE8
Jörn, I have updated my example here: http://ecommerce.i-cre8.com/admin/add-new-test.php with your new code and it seems to work perfectly Many thanks and apologies for polluting your blog Dave Buchholz I-CRE8 http://www.i-cre8.co.uk Skype ID: I-CRE8 On Nov 30, 6:12 pm, Jörn Zaefferer [EMAIL

[jQuery] Re: [validate] Allowing letters only in a text input?

2008-11-30 Thread deronsizemore
Hi! Thanks for the quick reply. So, with this code added, will it make all fields letters only or is there a way for me to specify what field(s) I want to allow letters only? Thanks, Deron I-CRE8 wrote: On Nov 29, 11:06 pm, deronsizemore [EMAIL PROTECTED] wrote: The code is as

[jQuery] Re: [validate] Allowing letters only in a text input?

2008-11-30 Thread Mike Nichols
Try this: http://plugins.jquery.com/project/constrain On Nov 30, 12:54 pm, deronsizemore [EMAIL PROTECTED] wrote: Hi! Thanks for the quick reply. So, with this code added, will it make all fields letters only or is there a way for me to specify what field(s) I want to allow letters only?

[jQuery] Re: Back Button

2008-11-30 Thread OhNoMrBill
OK, I think most iof this makes sense. The one bit where there is a gap for me is as follows: We have both: a id=linkToHome href=#homeHome/a and $('#linkToHome').history( showHome() ); Ho do I associate showHome() with the link linkToHome in the first place? On Nov 26, 10:11 pm, Brian

[jQuery] Selector bug?

2008-11-30 Thread Isaak Malik
Am I right that both of these should be identical? $('#linkList tr:gt(0):odd td:first').text(); $('#linkList tr:gt(0):odd').find('td:first').text(); The first one only returns 1 result instead of all, it behaves just like: $('#linkList tr:gt(0):odd:first td:first').text(); If I'm right then

[jQuery] [jEditable] select editinplace has empty pulldown

2008-11-30 Thread Rodent of Unusual Size
I'm trying to set up some select form elements for in-place editing using jEditable, but in every case the pulldown is always empty. Firebug doesn't reports any errors or problems. As far as I can tell, I'm doing this according to the documentation at the jEditable site. Is this me again? Test

[jQuery] Re: [Beginner alert] How do I output the selected part of the DOM in a web page in a JS alert()?

2008-11-30 Thread SLR
The ultimate goal would be to filter the selection so that only text enclosed in given classes (say loremipsum and third in my example) are returned. First off, I'm also new to jQuery so I apologize if my solution is the best way to do this. Anyways, here's what I came up with html head

[jQuery] Re: [Beginner alert] How do I output the selected part of the DOM in a web page in a JS alert()?

2008-11-30 Thread stephane_r
SLR wrote: First off, I'm also new to jQuery so I apologize if my solution is the best way to do this. Anyways, here's what I came up with It looks like we are not far from my goal. I tested a (slightly modified) version of your suggestion and it returns me something more satisfying than

[jQuery] Re: jQuery loop help

2008-11-30 Thread Michael Geary
From: SLR First off, I apologize if this is too noobie a question or has been answered somewhere else (I can't find it anywhere). I'm new to jQuery, and I'm trying to learn some basics. No question is too noobie. Welcome aboard! :-) Anyways, I'm stumped on the following. How can I

[jQuery] Re: Working with TinyMCE

2008-11-30 Thread Jörn Zaefferer
Great! I had this on some list for way too long.. Jörn On Sun, Nov 30, 2008 at 8:29 PM, I-CRE8 [EMAIL PROTECTED] wrote: Jörn, I have updated my example here: http://ecommerce.i-cre8.com/admin/add-new-test.php with your new code and it seems to work perfectly Many thanks and apologies

[jQuery] Re: .ajax and ie7?

2008-11-30 Thread Michael Geary
That's good, I'm glad you got it working. I'd still suggest moving to the generated JavaScript approach I outlined. Hopefully it will look less complicated now that you've gotten some sleep. :-) Was it the document.write call that seemed complicated? document.write( 'script

[jQuery] accordion - trigger *and* link possible?

2008-11-30 Thread snlsn
I'm new to the jQuery UI accordion. I'm hoping to use it for a menu. I'm loving the navigation option. However, one of my team members feels strongly that, in order to avoid confusion, every user's click should load a page. It appears that the accordion widget prevents navigating to the href

[jQuery] Re: [validate] Allowing letters only in a text input?

2008-11-30 Thread I-CRE8
Deron, you would need to add the rule: lettersonly: true // assuming you want name to be validated with lettersonly to any set of rules that you want this method to apply to I have an example form set up here: http://ecommerce.i-cre8.com/admin/add-new-test.php that shows how you can set up

[jQuery] Re: [jEditable] select editinplace has empty pulldown

2008-11-30 Thread Mika Tuupola
On Nov 30, 2008, at 11:07 PM, Rodent of Unusual Size wrote: I'm trying to set up some select form elements for in-place editing using jEditable, but in every case the pulldown is always empty. Firebug doesn't reports any errors or problems. As far as I can tell, I'm doing this according to

[jQuery] Re: accordion - trigger *and* link possible?

2008-11-30 Thread Jörn Zaefferer
Thats by design - an accordion header is just that, not two things at once. In your case you're probably better of with a serverside component. See also http://docs.jquery.com/UI/Accordion#What_this_isn.27t Jörn On Sun, Nov 30, 2008 at 11:10 PM, snlsn [EMAIL PROTECTED] wrote: I'm new to the

[jQuery] Re: jQuery loop help

2008-11-30 Thread SLR
No question is too noobie. Welcome aboard! :-) I appreciate the warm welcome = ) That code won't work at all. I would suggest reading the doc page on .each(): Definitely on my to-do list... If you just want the loop index, it's passed to the .each() callback as the first parameter:    

[jQuery] Re: [jEditable] select editinplace has empty pulldown

2008-11-30 Thread Rodent of Unusual Size
Bingo. Thanks again!

[jQuery] Javascript, or only Javascript-inna-browser?

2008-11-30 Thread Rodent of Unusual Size
Is jQuery supposed to be specifically targeted at Web client-side (i.e., browser) usage? Or to make Javascript easier in general? Most of its functionality seems aimed at the former, but there are a number of aspects that I can see would be useful in now-client environments. I ask because

[jQuery] Re: jQuery loop help

2008-11-30 Thread Jeffrey Kretz
One way you could do this is have give the links in question a specific ID, class or attribute. For example: div id=myLinks a href=# id=link1link 1/a a href=# id=link2link 2/a a href=# id=link3link 3/a /div $('#myLinks a').click(doSomething); function doSomething(e){ switch

[jQuery] Re: jQuery loop help

2008-11-30 Thread Michael Geary
From: Michael Geary But is the loop index that useful here? I'm trying to picture what you might do with it. There may be a better way to do this - if you could say more about your application, someone may have a suggestion. From: SLR To give you a brief rundown. Imagine having a

[jQuery] Re: AJAX doesn't work on remote server

2008-11-30 Thread saskim
I have the same problem. Have you found any solution? On Oct 10, 3:54 pm, altern [EMAIL PROTECTED] wrote: I need some help because of great confusion that make me crazy. I have ajax query function which works fine on firefox, ie (both 6 7) locally and with firefox on remote server. But it

[jQuery] Re: jQuery loop help

2008-11-30 Thread victorg
If you just want the loop index, it's passed to the .each() callback as the first parameter:     $('a').each( function( i ){         // 'i' is the loop index         $(this).click(function(){             // You can use 'i' directly in this code         });     }); Now,

[jQuery] Re: jQuery loop help

2008-11-30 Thread SLR
First off, I want to thank everyone for such quick replies. That will work, but it's a fairly brittle way to do things. If you add another link earlier in your page, it will change the loop indexes and you'll have to revise your code to match. I understand and agree with you. I don't think

[jQuery] Links within links, and overriding clicks.

2008-11-30 Thread René
Just wondering... When you have a link within a link: a id=main href=#This is some long row of test and here is a input type=button id=clickme value=button / and some more text/a ...how do you override the parent click event?

[jQuery] Re: accordion - trigger *and* link possible?

2008-11-30 Thread snlsn
Thanks Jörn; an accordion header is just that, not two things at once. Okay. I'll accept that. I can see how things would get messy. In your case you're probably better of with a serverside component. Never considered such a thing. Interesting. Do you have any serverside components you can

[jQuery] Re: [Beginner alert] How do I output the selected part of the DOM in a web page in a JS alert()?

2008-11-30 Thread ricardobeat
Hi there, Where in the example is the class 'third' you mentioned? and what is this supposed to do? p javascript:getActiveText(); Alert me!/p The best I can do is point you to https://developer.mozilla.org/en/DOM/Selection. Read on about the selection object and range object, and you'll see

[jQuery] Re: Double right-click, anyone?

2008-11-30 Thread ricardobeat
returning false from the handler should cancel the context menu on Opera and other browsers. And apparently on Macs the event for a Ctrl +click carries the 'right-click' identifier (e.button = 2). cheers, - ricardo On Nov 30, 4:07 pm, Jeffrey Kretz [EMAIL PROTECTED] wrote: If I might make a

[jQuery] Re: Double right-click, anyone?

2008-11-30 Thread Jeffrey Kretz
Have you ever tried capturing the right-click event in Opera? It has an additional level of security whereby each client must expressly set the user preferences allowing a website to capture the right-click event and stop the right-click bubble. The project I worked on last year had a

[jQuery] [tooltip] Cannot get tooltip to bind

2008-11-30 Thread RyOnLife
I am using the jQuery Tooltip Plugin from http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/. Great plugin. I am AJAX loading some content into my pages and am attempting to use Live Query to bind the tooltips to some of those links. Is not working:

[jQuery] Re: Links within links, and overriding clicks.

2008-11-30 Thread SLR
On Nov 30, 5:33 pm, René [EMAIL PROTECTED] wrote: Just wondering... When you have a link within a link: No idea why you would do this... a id=main href=#This is some long row of test and here is a input type=button id=clickme value=button / and some more text/a ...how do you override

[jQuery] Re: Image rollover using jQuery

2008-11-30 Thread Karl Swedberg
On Nov 30, 2008, at 4:14 AM, Ray M wrote: Hello, Are there any existing jQuery plugin which can provide similar image rollover functions such as the one provided by Dreamweaver? Thanks. Ray Hi Ray, If you're referring to the dreaded MM_swapImage(), I think most people these days just

[jQuery] Re: Image rollover using jQuery

2008-11-30 Thread howa
Maybe this: http://code.google.com/p/jquery-swapimage/ On Nov 30, 5:14 pm, Ray M [EMAIL PROTECTED] wrote: Hello, Are there any existing jQuery plugin which can provide similar image rollover functions such as the one provided by Dreamweaver? Thanks. Ray

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

2008-11-30 Thread Andrew
Thanks Dirceu, but i'm otherwise happy to stick with treeview. I'm not sure if it's the best solution, but a friend of mine helped me overcome the issue i was experiencing. We added a line of CSS to hide treeview on load, and then set it to display in the demo.js file once everything was loaded

[jQuery] Re: Image rollover using jQuery

2008-11-30 Thread seasoup
plugin? How about the native .hover? $('img').hover(function() { $(this).attr('src',path + '' + $('this).attr('id') + '_over.gif'; }, function() { $(this).attr('src',path + '' + $('this).attr('id') + '_off.gif'; }); That will make every image on the page a rollover, changing the src of the

[jQuery] Re: Double right-click, anyone?

2008-11-30 Thread seasoup
I'd also like to chime in that double-right click is probably not very good UI design. No one expects to have to double right click something and people will probably be even more pissed that the context menu is gone. People like that thing. Why do you seek to disable it? I'm curious. On Nov

[jQuery] listnav plugin mod

2008-11-30 Thread idgcorp
I would like to add numerical functionality to this plugin, but have been unsuccessful in getting it to work. In additition to the A, B, C...Z I would like to add an 0-9 category for names that start with a number. the way the plugin is written to auto create class names from the letters is

[jQuery] Re: listnav plugin

2008-11-30 Thread idgcorp
Hi Jack, thanks for the reply, yes Im just adding/removing via jq Ive created a workaround that solves this one for me. Also I just posted another question, I would love to get this new one solved its driving me nuts!

[jQuery] cluetip feature request: disable; clear cache

2008-11-30 Thread Eric Ongerth
Hello, I'm enjoying the jquery cluetip plugin -- it works very nicely and does what I want it to. But I have two requests. (1) $(foo).cluetip('disable'); This would disable the cluetip on a specific element or array of elements. $(foo).cluetip('clear_cache'); This would invalidate the