[jQuery] Re: Need input on best approach to this type of menu feature

2007-12-26 Thread Shawn
Two things: First, that site does NOT work the way it should for me. I'm using FF 2.0.0.11 on Linux. The popup menus are showing behind the flash. (Linux is an afterthought it seems - again...) The text of the main bar isn't even properly sized - I'm getting wrapping text on some items,

[jQuery] Re: general unique id for new append element

2007-12-26 Thread MorningZ
Why not just keep a global variable, like: var _id = 0; and when you create the new item, use that counter to make like New_ + _id, and then increment the counter

[jQuery] Re: Need input on best approach to this type of menu feature

2007-12-26 Thread rics
I think that with some show() or slide() functions you can make something like that. Make divs or the expandable area and hide them all. Then you can show() and/or slide() them in mouseover, or something like that. This is a beginning... rics On Dec 26, 12:20 am, Rick Faircloth [EMAIL

[jQuery] Re: Beginner help with highlight effect

2007-12-26 Thread rics
Yess : Now it works. But I must use setTimeOut(). Without it the effect didn't work. You know why? I couldn't find anything in JQuery docs about it and the plugin even have any docs. Oh, and by the way, my english is understandable? I'm brazilian and not very good with the

[jQuery] Re: Beginner help with highlight effect

2007-12-26 Thread rics
From there: Only properties that take numeric values are supported (e.g. backgroundColor is not supported by animate()). But thanks anyway... Your tip helped me with a lot of other issues! :D Thanks!!! rics On Dec 24, 10:43 pm, Glen Lipka [EMAIL PROTECTED] wrote: Check out this page in the

[jQuery] ajax function - php - display result

2007-12-26 Thread coughlinsmyalias
Hey all and happy holidays! I have this code: $.ajax({ type: POST, url: add.php, data: {word: $(#word).blah.value} }) That sends it fine to my database and will print on page refresh...i am curious to how I would use it to print out say Word added. And then display it on the page. Right

[jQuery] Re: Working with the ajax function

2007-12-26 Thread Alexey Blinov
Hm... i didn't use (yet) ajax in jQuery but this one `data: word: $(#word).blah.value` looks strange... maybe something like `data: word=* **+** *$(#word).blah.value`? On Dec 26, 2007 8:07 AM, coughlinsmyalias [EMAIL PROTECTED] wrote: Hey all, i have this: $.ajax({

[jQuery] jqModal window hangs when trying to rewrite parent page

2007-12-26 Thread somlogan
All, I would really be grateful if someone can shed light on my issue. My parent page contains a trigger to open a jqModal window. The modal window itself contains a button which when clicked on will rewrite the trigger on the parent page. I need to do this because my real-world page has a

[jQuery] how to create a function in jquery?

2007-12-26 Thread phpcurious
I wanted to create a function that will return an array consisting values from 3 textboxes. let's say: $('document').ready(function() { $('input#button_a').click(function() { a = $('input#input_text_a').val(); b = $('input#input_text_b').val();

[jQuery] Re: Working with the ajax function

2007-12-26 Thread Shawn
Try this: $.ajax({ type: POST, url: add.php, data: word: $(#word).blah.value }) Notice the comma after the data: line has been removed. Betcha you're getting that error in IE... That's one of the things that would trigger an IE

[jQuery] Re: Just can't seem to figure way...

2007-12-26 Thread 胡争辉
Have you fixed your problem? 2007/12/22, [EMAIL PROTECTED] [EMAIL PROTECTED]: Can someone look at this code.. for some reason the top expanable menu runs Smoothly and the one below it are Choppy when they expand? Now remember Im not really good at this... When you click on a main, it

[jQuery] Re: Adding result to database via php/jQuery - similar to tag feature on flickr

2007-12-26 Thread coughlinsmyalias
$.ajax({ type: POST, url: add.php, data: {word: $(#word).blah.value} }) I have this now, it sends to my database..but I need to find a way to now print out the result, I have it printing out via my php while loop. should i do this through ajax instead? How would I added to my script to make

[jQuery] Re: Need input on best approach to this type of menu feature

2007-12-26 Thread Rick Faircloth
Thanks for the help, Rics... Rick -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rics Sent: Wednesday, December 26, 2007 7:12 AM To: jQuery (English) Subject: [jQuery] Re: Need input on best approach to this type of menu feature I

[jQuery] Re: Need input on best approach to this type of menu feature

2007-12-26 Thread Rick Faircloth
Hi, Shawn, and thanks for the reply... Concerning Flash issues, I'm not planning to use Flash anyway. I'll check out the bgiframe plugin...thanks for the tip! Rick -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shawn Sent: Wednesday,

[jQuery] Programmatically controlling cut and paste

2007-12-26 Thread Chris Jordan
Is there a way to use jQuery (or javascript in general) to programmatically controll copy and paste functions? I'd like to replace the right-click context menu and *only* offer the ability to cut and paste. I was looking at using Chris Domigan's ContextMenu plug-in to capture the right-click and

[jQuery] Re: Need input on best approach to this type of menu feature

2007-12-26 Thread Olivier Percebois-Garve
What you are looking for is a tabs system triggered by the onmouseover event , is it? I have built something like that but I did not make it into a plugin : http://www.electris.lu/electris_net/service/conseil_en_energie.php Olivier Rick Faircloth wrote: Hi, all... I'd like to request some

[jQuery] Re: Kwick type horizontal accordion with jquery ?

2007-12-26 Thread Jeferson Koslowski
Hi, here are two examples using jquery: 1. http://www.gmarwaha.com/jquery/jkwick/test/test.html 2. http://dev.jquery.com/~john/jquery/test/moo-menu.html Also, u can find a lot of discussion about it here: http://www.nabble.com/forum/Search.jtp?forum=15494local=yquery=kwick Hope it helps. On

[jQuery] Re: Programmatically controlling cut and paste

2007-12-26 Thread Chris Jordan
Okay, I think I just found it. Before I posted this question I was searching google for javascript programmatic cut and paste (and other variations on that theme), but getting no where. Just a bit ago it occurred to me that was I was really trying to do was get access to the clipboard. Duh. A

[jQuery] Re: check if an id exists

2007-12-26 Thread Yehuda Katz
I would definitely recommend $(#id).length. When working in a language, it's important to keep in mind the language's idioms. In the case of JS, 0 == false, so if($(#id).length) is a perfectly good idiom. It's a bit confusing coming from another language (where 0 is true), but that's

[jQuery] Re: how to create a function in jquery?

2007-12-26 Thread McLars
First, since all of your functions do the same thing, you do not have to repeat yourself. I would suggest either wrapping all the buttons and textboxes in another element or giving them a class so that they can be selected together, for example: $('#wrapper input').click(...); or

[jQuery] Re: general unique id for new append element

2007-12-26 Thread McLars
I believe that is what $.data(element) does, it returns a unique id. However, it only returns an integer number. I would prefer to combine it with a few characters as well, but I suppose that isn't strictly necessary. Byron's function above is a good example of how you could use it. But if you

[jQuery] GET? Print out results via jquery/php

2007-12-26 Thread coughlinsmyalias
Hey all, I am wondering how I can get my results via php/ajax. Could i use jquery for that print them out like this: span class=word id=$word_$id'.$word.'/span And print them all out like that above. Would I use the GET function with jquery. Get them all printed out. Thanks so much!

[jQuery] Re: Falling snow plugin

2007-12-26 Thread yaofong
Hi, I am one of the author of http://www.techlicious.name.my Nice to meet you all here...

[jQuery] Re: Programmatically controlling cut and paste

2007-12-26 Thread Yehuda Katz
If you're only using IE, you're good to go. An alternative that works cross-browser is to hijack Flash's access to the clipboard via ExternalInterface. -- Yehuda On Dec 26, 2007, at 9:29 AM, Chris Jordan wrote: Okay, I think I just found it. Before I posted this question I was searching

[jQuery] Re: how to create a function in jquery?

2007-12-26 Thread Yehuda Katz
You need to provide more information about what you're trying to do. You can do something like $(#button_a, #button_b, #button_c).click(...), but I'm not sure why you're defining those variables. Also, without var, those variables are being defined in the global scope, which is bad

[jQuery] Re: Beginner help with highlight effect

2007-12-26 Thread Karl Swedberg
Hi Rics, Glad it works for you. I used setTimeout() in the code that I sent to you, so I'm not sure why you're mentioning that you must use it. Are you using it somewhere other than the place where I'm using it? I put it in the callback of the fadeIn() method so that the element would

[jQuery] Re: server side jquery

2007-12-26 Thread GeekFreak
forgot to mention. it is open source and avail under the GPL On Dec 26, 11:14 am, GeekFreak [EMAIL PROTECTED] wrote: For you folks that want to run jQuery serverside, here's a little teaser for a product we're releasing early in the new year, that will allow you run jQueryserverside(and much

[jQuery] Re: server side jquery

2007-12-26 Thread GeekFreak
For you folks that want to run jQuery serverside, here's a little teaser for a product we're releasing early in the new year, that will allow you run jQuery server side (and much more) , we currently have most of the jquery unit tests working, and hope that the wonderfully active jQuery community

[jQuery] Re: Need input on best approach to this type of menu feature

2007-12-26 Thread Rick Faircloth
Thanks for the tip, Olivier. I'll check it out! Rick From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Olivier Percebois-Garve Sent: Wednesday, December 26, 2007 12:22 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Need input on best approach to this type of

[jQuery] Re: jquery.com down?

2007-12-26 Thread traunic
seems to be ok now maybe a DOS? On Dec 26, 2:23 pm, traunic [EMAIL PROTECTED] wrote: getting timeouts when attempting to go tohttp://jquery.com/

[jQuery] cloding events problems

2007-12-26 Thread Eridius
Would this be the correct way of cloning events? for(var i = 0; i array_length; i++) $new_dom[x] = $('#hotel_information div#hotel_selection' + table_id).clone(true); } for(var x = 0; x array_length; x++) { var new_element = new_dom[x];

[jQuery] Re: check if an id exists

2007-12-26 Thread Michael Geary
It's funny, if I saw: if( $('#id').is('*') ) { ... } I would have no clue what the code was trying to do until I thought hard about it: Let's see... is star... Now that's going to match *anything*. Wouldn't it always return true? Naw, that can't be right, what would be the point of this code...

[jQuery] Need to slide my grid/table with a slider like control.

2007-12-26 Thread Monica
I have a table with both Row Header and column headers. However, this table's width goes beyond the page. We don't want to use the horizontal scrollbar, instead would like a slider like control that will keep the row headers sticky but would scroll/move the table colums left or right as I am

[jQuery] Re: jquery.com down?

2007-12-26 Thread Pierre
Seems like database issue (got a database timeout error when trying to access the wiki). Worked the second time after a while tho On Dec 26, 11:23 am, traunic [EMAIL PROTECTED] wrote: getting timeouts when attempting to go tohttp://jquery.com/

[jQuery] Re: check if an id exists

2007-12-26 Thread Hamish Campbell
extendify! $(document).ready(function() { jQuery.fn.exists = function() { return ( this.is('*') ) } } }); On Dec 27, 10:28 am, Michael Geary [EMAIL PROTECTED] wrote: It's funny, if I saw: if( $('#id').is('*') ) { ... } I would have no clue

[jQuery] Re: check if an id exists

2007-12-26 Thread McLars
Yehuda, I will agree and (respectfully) disagree with you. Yes, using the length property is expedient. It's how millions of programmers have been doing such things, in many different languages, and they will probably continue to do it. No harm there, as indeed JS treats zero as a false and it

[jQuery] Multiple autocomplete selector

2007-12-26 Thread Julien
Hello there, I was wondering if you knew about a plugin, or if you knew if it was easy to make a text input coupled with an autocomplete functionality which adds a box for each item added to it. A bit like facebook does to add multiple recipients for a message into a text input, as illustrated

[jQuery] FadeIn on $(document).ready flicker

2007-12-26 Thread Jeroen
I'm using jQuery on my new photo blog. I am fading in the image when the dom has loaded like this: $(function() { // Animate photo $('#photo').hide(); $('#photo').fadeIn(1500); } The problem is, the photo flickers for about a millisecond, as in, you can see it in full

[jQuery] Using ajax

2007-12-26 Thread coughlinsmyalias
Hey all, I am new at jQuery and playing with it for a couple of days and i have: $(document).ready(function(){ $.ajax({ type: GET, url: words.php, dataType: HTML, error: function(){ alert('Error loading

[jQuery] label fires click function twice

2007-12-26 Thread Michael Nosal
If I have a div with a label and input in it: div id=tab input type=radio id=r1 value=foo label for=r1My Label/label /div and I add a click handler like so: $('r1').click(function() { window.console.log(hello); }); Clicking the div or the radio button gets one call to the click function.

[jQuery] How to identify the selected element with jquery?

2007-12-26 Thread jerpod
I suspect this is extraordinarily simple, but I've yet to find a way to do it so bear with me (very new to jquery). My mission is to allow a user to click on a link of css class closed (the content below that point in the DOM will be hidden). When that link is clicked the content will .show(),

[jQuery] Re: Using ajax

2007-12-26 Thread Steve Blades
You have the closing brackets and parens around the functions of your .ajax() call, but you don't appear to close out your $(document).ready(function(){ // everything is in here }); -- Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer

[jQuery] Can jQuery create an element then bind a hover function to it?

2007-12-26 Thread zarino
Well, I know the answer is yes, but I can't figure out how. Can you help? I'm using jQuery to take values from an XML file (a schedule for a radio station), wrap them up into nice HTML elements, and inject them into my web page. When the user hovers over any of the jQuery-created elements, I

[jQuery] Re: label fires click function twice

2007-12-26 Thread Hamish Campbell
I've seen the same behaviour outside of jQuery - something to do with the way 'for' sends events to the target element. Can't remember how/if I fixed it, but you could ditch the label and use jQuery to emulate the label functionality. Not a bad option considering not all browsers support labels

[jQuery] Re: Using ajax

2007-12-26 Thread Jeroen
On Dec 26, 2007 11:56 PM, Steve Blades [EMAIL PROTECTED] wrote: You have the closing brackets and parens around the functions of your .ajax() call, but you don't appear to close out your $(document).ready(function(){ // everything is in here }); $(document).ready(function(){ $.ajax({

[jQuery] Firefox uncaught exception - Please help

2007-12-26 Thread Bill
I have posted this message back in November and received no replies. I am able to get JQuery Ajax ClueTips to work in Internet Explorer fine however when I open the same page in firefox the cluetips do not work and when I look at the error console I see the following Error: uncaught exception:

[jQuery] Re: check if an id exists

2007-12-26 Thread McLars
Hamish, I like that! Michael, the question is number two on the FAQ. Despite what seasoned programmers may think, it's obviously not intuitive to newbies. Personally, I think it's always good to point out alternatives to learners. The .is() method is actually quite versatile and can be used to

[jQuery] Re: Can jQuery create an element then bind a hover function to it?

2007-12-26 Thread Josh Nathanson
Zarino - it's because you are building the html within the success function of the Ajax call, but the binding of the hover function happens outside it. What you might want to do is put your hover binding into its own function that you can call from within the Ajax success function: var

[jQuery] Re: Firefox uncaught exception - Please help

2007-12-26 Thread Benjamin Sterling
Bill, What is the url for the page with tooltip? On 12/26/07, Bill [EMAIL PROTECTED] wrote: I have posted this message back in November and received no replies. I am able to get JQuery Ajax ClueTips to work in Internet Explorer fine however when I open the same page in firefox the cluetips

[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?

2007-12-26 Thread bdee1
ok so it is working well but the client is asking how he can change the order of the pictures. it seems like with flickr you can add photos to sets and set a specific order, but there doesnt seem to be an rss feed for sets, only for tagged photos. but there seems to be no way to set the order

[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?

2007-12-26 Thread Benjamin Sterling
At best, you can set it to randomize the returned json, but with the current set up, you can't order it or grab a certain set. On 12/26/07, bdee1 [EMAIL PROTECTED] wrote: ok so it is working well but the client is asking how he can change the order of the pictures. it seems like with

[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?

2007-12-26 Thread Benjamin Sterling
Well, like I said, as of right now, can do sets, but if he/she is willing to append a number infront of the file names you can probably do a sort and get it in order. The best place in the code to do that is at about line 223, just swap out the if statement there with your sort code. On

[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?

2007-12-26 Thread bdee1
ok so the other thing the client was requesting was to be able to get captions into the lightbox effect. i know that i just need to add the caption to the title attribute of the a tags. and it looks like the plugin pulls the flickr caption as the alt tag for the image but how could i have it

[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?

2007-12-26 Thread Benjamin Sterling
Change line 193 to: var $a = $('a title='+photos[i]['title']+'/').attr('href',photos[i]['full']['url']); On 12/26/07, bdee1 [EMAIL PROTECTED] wrote: ok so the other thing the client was requesting was to be able to get captions into the lightbox effect. i know that i just need to add the

[jQuery] load a page, then use ajax to load html + script inside that page

2007-12-26 Thread Pierre
Hello all I have a problem that has been discussed several times on this list, but I could not find a satisfactory solution yet. I created a regular html page. I have a onclick event which triggers an ajax call. This ajax call runs a very simple php script on my server, which returns some html

[jQuery] Re: FadeIn on $(document).ready flicker

2007-12-26 Thread Hamish Campbell
Using FF2, FF3b2, IE7 and IE6 I don't get the flicker (XP SP2, 1280x1024, P4 3.2Ghz). Do you have a demo? Maybe you're running lots of other code first? On Dec 27, 10:51 am, Jeroen [EMAIL PROTECTED] wrote: I'm using jQuery on my new photo blog. I am fading in the image when the dom has loaded

[jQuery] Re: label fires click function twice

2007-12-26 Thread Shawn
Remember event bubbling is taking place for ALL events. I suspect you will need to stop the event propagation to resolve this issue. This can be done one of two ways: 1) Return false from your click handler function. $(#r1).click(function () { window.console.log(hello); return false;