[jQuery] [autocomplete] How to manually trigger event for displaying results and suggestions in Autocomplete by Jö rn??

2009-04-07 Thread enriquepalaci...@gmail.com
Hi again, My cuestion is about this great autocomplete plugin by Jörn, i got it working using ajax and all... But theres no way to display the results manually??? (they just show when someone press one key in the keyboard). I tried to dig into the code with no luck =(. Please!! Some help!! I had

[jQuery] Re: Fade Content In and Out

2009-04-07 Thread Karthikraj
Hi, use fadeIn() fadeOut() methods to do this... Note : use jquery-1.3.1 On Apr 7, 5:00 am, PF piercefree...@gmail.com wrote: Hi everyone: I am looking for a way using jQuery to fade my content in and out when the user clicks a button.  For example: The user loads the page, the content

[jQuery] Re: submit() question

2009-04-07 Thread debussy007
I understood that in my submit callback funtion, i call a asynchronous function of google where I set the post values once I have a response. But I didn't wait for the google function to terminate. This issue is solved, Thank you. debussy007 wrote: I need something like that, but it is

[jQuery] Re: New jQuery plugin LoopedSlider. Looking for feedback

2009-04-07 Thread Kia Niskavaara
Nice work! I'm using the SerialScroll plugin. I've always wished for some way to loop the content. If you are using similar techniques, maby you could build your plugin as an extension to the SerialScroll plugin? Nathan wrote: Yeah I know, another content slider, there are way too many.

[jQuery] How to do can promise my event will be executed first when i add a event listenser?

2009-04-07 Thread Jackal
as title, thanks.

[jQuery] Re: NEW! jQuery Multiple File Upload Plugin v1.40

2009-04-07 Thread Diego A.
Hi Shaun, Please double check your installation and make sure you are using the latest version of the plugin. Take a look here for a working example... http://www.fyneworks.com/jquery/multiple-file-upload/test/ Cheers, Diego A. On Apr 7, 12:14 am, shaunramos shaunra...@gmail.com wrote: Diego

[jQuery] couldn't get pagination to work

2009-04-07 Thread Plant More Tree
Hi guys, I just couldn't get the tablesorter pagination to work. I'm using jquery-1.3.2.min.js. Below are my scripts: script type=text/javascript src=js/jquery.tablesorter.min.js/script script type=text/javascript src=js/jquery.tablesorter.pager.js/script

[jQuery] Re: Debugging jQuery in Firebug

2009-04-07 Thread donb
That's Firebug. Breakpoints, Watched variables, Stack, Console - it's all there. On Apr 7, 1:10 am, rachel navarro rachelannenava...@gmail.com wrote: i have a related question. how do i track my code? how do i know which function is being called first and so on? like having a stack trace. is

[jQuery] HOWTO - hover card effect

2009-04-07 Thread Jury
Hi all, this effect seems to have no common name, let's call it hover card. You may see how it works on this website - www.cn.ru/films - if you hold a mouse over any cover art for 1-2 seconds (sorry it's Russian, just can't find English examples). Does jQuery have any plugin similar to that ?

[jQuery] Re: Debugging jQuery in Firebug

2009-04-07 Thread Chuck Harmston
There are a few cool methods for debugging Javascript in Firebug: - In addition to everybody's favorite console.log() method, there is also console.debug(), console.info(), and console.error(), each of which are color coded differently. If you use console.error(), then it actually logs

[jQuery] Re: Jquery ui tabs select a tab from a text link instead of clicking a tab itself

2009-04-07 Thread mhussein
Hello, I'm having the same problem, so any help would be appreciated. On Mar 16, 4:25 pm, jjsanders jigalroe...@gmail.com wrote: Hello, I am using still the old version of ui (not the 1.7) I saw herehttp://docs.jquery.com/UI/Tabs#...select_a_tab_from_a_text_link_inste... the posibility

[jQuery] UI Tabs and Events

2009-04-07 Thread Haret
Woo, first post! ^___^ Hello everyone, I've been using jQuery UI Tabs for a mini staff discussion forum/blog at work, and things have been going really well so far, up until I came across this stumbling block yesterday. The tabs are used to dynamically load different categories of posts into

[jQuery] [validate] Make at least one input field required

2009-04-07 Thread Cpt. Archie
html looks like: input type=text id=email name=email input type=text id=tel name=tel input type=text id=gsm name=gsm i want people to fill in at least one of these fields how can this be done using the jquery (validation plugin)?

[jQuery] Re: Fade Content In and Out

2009-04-07 Thread Algirdas
month ago I was doing the same, so you can read everything in my blog http://www.varnagiris.net/2009/02/26/change-content-using-ajax-with-fadein-fadeout-effect/

[jQuery] Re: Form validation help

2009-04-07 Thread Algirdas
As I see, you have set minlength: 5 for ZIP. You are doing everything right.

[jQuery] Re: Fade Content In and Out

2009-04-07 Thread EnvyGeeks
jQuery.fn.extend({ fade_in:function(speed,callback){ return $(this).animate({opacity:0},speed,callback); }, fade_out:function(speed,callback){ return $(this).animate({opacity:1},speed,callback); },

[jQuery] [autocomplete] Comma sign makes imperfect...

2009-04-07 Thread Jayandes
Hey, guys. I'm been pulling my hair for quite a while. Basically, I have serious issues with Jörn's autocompleter and it's all my fault I think, but I really can't point out what's causing the error. The expected functionality is like this --- 1.

[jQuery] get reference to nested appended element

2009-04-07 Thread miniswi...@gmail.com
hi there, see next example: parent.append(tabletrtdtable id=\rt0\//td/tr/table); table = $(#rt0); is it possible to reference the inside table directly without using the id to select it?

[jQuery] Double queries using $.load

2009-04-07 Thread EnvyGeeks
It seems that either I'm doing something horribly wrong or something because everytime I do an Ajax call using $.load() it causes a double query on the page. example: $(div#example a).click(function(){ $.ajax_uri = this.href; $(div#sidebar).fade_in(300,function(){ return

[jQuery] Creating a personal blog site. Upon clicking on an entry list item, it will open the correct text in the content area

2009-04-07 Thread Andy
I am creating code using Jquery that will take the text from a header tag in my content and populate a listitem box in the sidebar pane. Also, when clicking on the list item, it will unhide the content in the content pane and display it to the user. My issue right now is that I am not able to

[jQuery] Re: HOWTO - hover card effect

2009-04-07 Thread Giovanni Battista Lenoci
Jury ha scritto: Hi all, this effect seems to have no common name, let's call it hover card. You may see how it works on this website - www.cn.ru/films - if you hold a mouse over any cover art for 1-2 seconds (sorry it's Russian, just can't find English examples). Does jQuery have any plugin

[jQuery] Re: UI Tabs and Events

2009-04-07 Thread Giovanni Battista Lenoci
Haret ha scritto: Woo, first post! ^___^ Hello everyone, I've been using jQuery UI Tabs for a mini staff discussion forum/blog at work, and things have been going really well so far, up until I came across this stumbling block yesterday. The tabs are used to dynamically load different

[jQuery] [Autocomplete] One more question

2009-04-07 Thread Tom Worster
There's a focus grabbing effect I'm interested in. I can demonstrate using the demo http://jquery.bassistance.de/autocomplete/demo/ : 1. I type Ro into Single Bird (remote), the suggestions appear. 2. But Ro is the value I want to enter into the field. So I want to move focus to another form

[jQuery] Re: [autocomplete] How to man ually trigger event for displaying results an d suggestions in Autocomplete by Jörn??

2009-04-07 Thread Tom Worster
On 4/7/09 2:19 AM, enriquepalaci...@gmail.com enriquepalaci...@gmail.com wrote: My cuestion is about this great autocomplete plugin by Jörn, i got it working using ajax and all... But theres no way to display the results manually??? i'm interested in this too. i have three form fields, each

[jQuery] Re: [validate] Make at least one input field required

2009-04-07 Thread Chuck Harmston
It'd actually be easier to not use the validation plugin, like so: http://jsbin.com/afeye However, remember that you should always use a server-side form validation backup as well. Any user without Javascript turned on (or screen reader users, etc) can easily bypass this method. Hope this helps!

[jQuery] Dragged image change places with destination image

2009-04-07 Thread Mojojo
Hi. Maybe a bit complex to explain. I have a grid with 9 images 100 x 100 px like this (each number symbolize a picture): 1 2 3 4 5 6 7 8 9 What I want is that the user can drag and drop e.g. 9 over 1 and they change places like this: 9 2 3 4 5 6 7 8 1 Sortables from jquery UI will not work

[jQuery] datepicker highlight individual days

2009-04-07 Thread Danny
Hi, Is there a way to highlight or enable for selection individual days ( not a range of days ) in a datepicker? Thanks in advance, Danny

[jQuery] Cycle plugin pager over image

2009-04-07 Thread martijn397
Hello everyone! After using the Cycle plugin for quite some time now i was wondering if there is any way to get the auto-generated pager shown over my image. I can only see the .before and .after tags which put the pager above or below the image (content), but am unable to find a way to put the

[jQuery] Undo for particular Field

2009-04-07 Thread sarvansb
Hi All, I am newbie to jquery. How to set Undo for particular textbox using jquery. Thx in advance. Regards, Sarvan

[jQuery] Re: File Input field Help

2009-04-07 Thread RayZ
you must filter your events by target $(#form_container).bind(click, function(event){ if (event.target !=$(#id_content)[0]) $ (#id_content).trigger('click'); });

[jQuery] Re: Debugging jQuery in Firebug

2009-04-07 Thread Eric Garside
I've also got a nice wrapper method for jQuery to interface directly with the firebug plugin. Check here for the snippet: http://snipplr.com/view/10358/jquery-to-firebug-logging/ On Apr 7, 7:22 am, Chuck Harmston cpharms...@gmail.com wrote: There are a few cool methods for debugging Javascript

[jQuery] Re: Cycle plugin pager over image

2009-04-07 Thread Chuck Harmston
Hi Martijn, You would actually want to do this using CSS, not Javascript. The easiest way to accomplish this would be to set the container div (the one you applied the .cycle() method to) to position: relative, then absolutely position the pager element. If you post the HTML markup you're using, I

[jQuery] Re: Debugging jQuery in Firebug

2009-04-07 Thread Dave S
Ok, simple. I want to debug. I want to see what values I'm getting for the variables or actions that happen as a result of an event. On Mon, Apr 6, 2009 at 5:57 PM, MorningZ morni...@gmail.com wrote: how to debug is a pretty super vague statement what are you looking to do? find

[jQuery] [validate] Multiple field validation

2009-04-07 Thread Matt
I have a form that has a user fill in tons of fields with different number values. I need to validate that all 13 fields when added together are within a number range. Is there any way to do this with the validate plugin? I can do it with just javascript or php, but I'd rather be consistent with

[jQuery] Re: Debugging jQuery in Firebug

2009-04-07 Thread Liam Potter
console.log(variable_here); Dave S wrote: Ok, simple. I want to debug. I want to see what values I'm getting for the variables or actions that happen as a result of an event. On Mon, Apr 6, 2009 at 5:57 PM, MorningZ morni...@gmail.com mailto:morni...@gmail.com wrote: how to debug

[jQuery] Re: datepicker highlight individual days

2009-04-07 Thread MorningZ
That doesn't make any sense the control by default is looking for the user to choose one individual day On Apr 7, 8:15 am, Danny dannyt...@gmail.com wrote: Hi, Is there a way to highlight or enable for selection individual days ( not a range of days )  in a datepicker? Thanks in advance,

[jQuery] Re: Plugin Development

2009-04-07 Thread Nathan
To do this you need to have return this.each and optionally change the instance of this which is the name of the object you are apply the plugin to, to obj using var obj = $(this);. Then when you call a selector, you'll need to add $('#nav a', obj) note the , obj. This will keep it within the

[jQuery] Re: Cycle plugin pager over image

2009-04-07 Thread martijn397
Thanks alot for your response Chuck! i'm using the following: CSS: #slideshow { position:relative; width: 500px; height: 500px;} #nav a { padding: 5px 10px 5px 10px; background: white; text- decoration: none; color: black } #nav a.activeSlide { background: #fbb040; color: white } #nav a:focus

[jQuery] Re: Cycle plugin pager over image

2009-04-07 Thread martijn397
Thanks alot for your response Chuck! i'm using the following: CSS: #slideshow { position:relative; width: 500px; height: 500px;} #nav a { padding: 5px 10px 5px 10px; background: white; text- decoration: none; color: black } #nav a.activeSlide { background: #fbb040; color: white } #nav a:focus

[jQuery] [validate]validate works for IE but Not for Firefox, Nor Opera Nor Safari Nor Chrome :S

2009-04-07 Thread Bizzy
I'm working on a form, but can't get the validation to work on Firefox, it does work on IE though. any suggestions?

[jQuery] [validate]validate works for IE but Not for Firefox, Nor Opera Nor Safari Nor Chrome :S

2009-04-07 Thread Bizzy
Hey everybody, I have been working on a project and i'm using the validation plugin in one form, but something really strange is happening .. :S the validation works perfectly on IE, but on firefox it just ignores it and let you submit the fields empty even if they are required. can anyone of

[jQuery] Re: UI Tabs and Events

2009-04-07 Thread Haret
The first tab content via a page include tag, so not dynamically via Ajax. I've tried binding the functions using the live functionality, and I believe that is definitely the way forward, but I have made little progress. How would I bind a function like this using the live functionality? This

[jQuery] Re: listnav plugin

2009-04-07 Thread Kizzle
hi...sorry, but i'm still having issues with this. i'm getting an error in javascript. missing ( before formal parameters [Break on this error] $(document).ready(function {\n so i'm wondering if this is the problem. I have this code at the beginning of the document (tried it in the head and

[jQuery] Re: Debugging jQuery in Firebug

2009-04-07 Thread Dave S
Thank you. On Tue, Apr 7, 2009 at 8:39 AM, Liam Potter radioactiv...@gmail.com wrote: console.log(variable_here); Dave S wrote: Ok, simple. I want to debug. I want to see what values I'm getting for the variables or actions that happen as a result of an event. On Mon, Apr 6, 2009 at

[jQuery] Re: Comma sign makes imperfect...

2009-04-07 Thread Jayandes
Hi, again. I did some more dissecting on the option settings and found out that mustMatch feature won't work at all. So, I striped that one out and they lived happily ever after But, I could really use that feature in either case. On 7 Apr, 12:09, Jayandes jonas.sun...@gmail.com wrote:

[jQuery] Re: Cycle plugin pager over image

2009-04-07 Thread Chuck Harmston
It seems to me that this code should have the pager positioned absolutely over the top left of the image. Do you have a live example that I could take a look at? P.S. It probably makes semantic sense to turn the images into an unordered list :) Chuck Harmston cpharms...@gmail.com Cell: (612)

[jQuery] first child

2009-04-07 Thread bart
Hello all, Let's say I'd have a div#content and I'd like to figure out what the first child of this div is. It could be an anchor, a paragraph, a heading who knows... I know the :first-child selector but this doesn't do what I want to accomplish as it just filters within the matched selector for

[jQuery] How do I access global variables for id's, etc.?

2009-04-07 Thread Rick Faircloth
I would like to be able to do something as simple as p id=scriptmyGlobalVariable/scriptxyz/p, but apparently the marks are a problem. I'm able to output a global variable value like this: pThe value of myGlobalVariable is scriptmyGlobalVariable/script./p Is there some way to use global

[jQuery] Re: How do I access global variables for id's, etc.?

2009-04-07 Thread Chuck Harmston
You certainly can't do it like this. However, using jQuery (it is a jQuery list, after all ;) ), it's fairly simple: p id=noJavascriptPlaceholderxyz/p Then in the Javascript (forget your document.ready): $( '#noJavascriptPlaceholder' ).attr( 'id', myGlobalVariable ); Of course, if you are

[jQuery] Re: How do I access global variables for id's, etc.?

2009-04-07 Thread brian
I don't think it's the quotes that are the problem. Those are, after all, perfectly legitimate characters within a tag. Now, script tags, OTOH ... Why don't you just use something server-side? On Tue, Apr 7, 2009 at 11:53 AM, Rick Faircloth r...@whitestonemedia.com wrote: I would like to be

[jQuery] Re: first child

2009-04-07 Thread Chuck Harmston
This will return the tag name of a container's first child: $('#container *')[0].tagName; Hope it's useful! Chuck Harmston http://chuckharmston.com On Tue, Apr 7, 2009 at 11:37 AM, bart b...@ivwd.nl wrote: Hello all, Let's say I'd have a div#content and I'd like to figure out what the

[jQuery] Re: listnav plugin

2009-04-07 Thread Jack Killpatrick
Hi, change that block to this and give it a try: script type=text/javascript $(document).ready(function (){ $('#myList').listnav(); }); /script - Jack Kizzle wrote: hi...sorry, but i'm still having issues with this. i'm getting an error in javascript. missing ( before formal

[jQuery] Re: How do I access global variables for id's, etc.?

2009-04-07 Thread Chuck Harmston
Heh, duh. p id=”scriptdocument.write(myGlobalVariable)/script”xyz/p That's not best practice, though. You should use DOM scripting to ensure unobtrusive Javascript (see http://www.alistapart.com/articles/behavioralseparation). Chuck Harmston http://chuckharmston.com On Tue, Apr 7, 2009 at 12:09

[jQuery] Re: Plugin search

2009-04-07 Thread ripple
Just want to say thanks Jack. I had to spend a couple days to make sure it would work for my purposes without alot of rewrite of the existing application.   It's exactly what I/we needed.   Thanks.   --- On Fri, 4/3/09, Jack Killpatrick j...@ihwy.com wrote: From: Jack Killpatrick

[jQuery] Cycle with Dynamic Thumbnail Paging

2009-04-07 Thread amuhlou
Hello, I am using the Cycle plugin to create a slideshow from images in a php file: $(function() { $(#spotlight).load(photos.php, function() { $(this).cycle({ fx: 'fade', timeout: 0, pager: '#cNav',

[jQuery] Re: get reference to nested appended element

2009-04-07 Thread Jonathan Sharp, Out West Media
Another approach you can take is: var table = $('tabletrtdtable id=rt0/td/tr/table/td/tr/table') .appendTo( parent ) .find('table'); This creates the HTML and then appends it to the parent. Since you created a jQuery object with that fragment,

[jQuery] Re: How do I access global variables for id's, etc.?

2009-04-07 Thread Rick Faircloth
I can set and get the value the usual jQuery way (DOM traversal and setting attributes, etc.) and I can return variables from the server and pass them back into an AJAX function for use. I was just hoping for some way to avoid having to pass variables between sections of code. I'd rather, at

[jQuery] Re: first child

2009-04-07 Thread Mauricio (Maujor) Samy Silva
var $el = xx.is('h2'); //if it indeed matches a h2, returns true? var el = $('#continer *:first').is('h2'); alert(el); // returns true if first child is H2, false otherwise. Maurício

[jQuery] Re: How do I access global variables for id's, etc.?

2009-04-07 Thread Rick Faircloth
In the actual code I'm using, that approach doesn't work, Chuck. I tried it before, but tried it again, just in case, and I get this in the generated source, instead of id=135. li id=lt;scriptgt;document.write(gNewStoryID)lt;/scriptgt; { a id=createNewSectionLINK

[jQuery] [autocomplete] custom fields for remote URLs

2009-04-07 Thread skunkwerk
Hi, i'm using the autocomplete plugin here (http://docs.jquery.com/ Plugins/Autocomplete) and want to be able to use it with a remote URL, while at the same time having access to have text displayed one way, and selected another way (ie display a piece of text, but then change what is entered

[jQuery] Re: newbie question

2009-04-07 Thread Ronz
Hi, Rick. Here's a quote to my hosting news group that 'splains' what has happened since yesterday. Maybe you could comment on the latter portion if you have time. TIA.Ron quote to newsgroup It turns out that what I downloaded from jQuery ended up with a bunch of line feeds in it...my

[jQuery] Re: How do I access global variables for id's, etc.?

2009-04-07 Thread Michael Geary
I'm able to output a global variable value like this: pThe value of myGlobalVariable is scriptmyGlobalVariable/script./p Huh? What browser does that work in? HTML isn't a templating language, and a script tag doesn't do a text replacement of the script's return value, it just runs the script.

[jQuery] Re: listnav plugin

2009-04-07 Thread Kizzle
IT WORKS! i'm so excited. thank you! On Apr 7, 12:23 pm, Jack Killpatrick j...@ihwy.com wrote: Hi, change that block to this and give it a try:  script type=text/javascript $(document).ready(function (){        $('#myList').listnav();}); /script - Jack Kizzle wrote: hi...sorry,

[jQuery] Superfish woes in IE

2009-04-07 Thread Laker Netman
I am working on a vertical, AJAX-produced dynamic menu that will has two levels of flyout sub menus. So far the menu works as expected in Firefox 3.0.8 and Safari 3.2.2, both on Windows, but not in IE7. The issue I'm dealing with is that the sub menus do not appear next to the higher level menu

[jQuery] Learning about functions and methods (I am confused)

2009-04-07 Thread Geuintoo
Hy (function($){ $.myPlugin = function(){ holla: function(){ alert('holla'); } } $.myPlugin.hello = function(){ alert('hello von Plugin'); } })(jQuery); // Works finde: $.myPlugin.hello(); // It does not work.

[jQuery] Using JQuery to modify Javascript object properties.

2009-04-07 Thread Scott
I want to add a property (not a class name or id) to all the tables in a web page. I know I can use $(table) to get all the tables on the page - can I also do this: $(table).each({newProp1:true, newProp2: 7}); so that now table.newProp1 == true and table.newProp2 == 7 ???

[jQuery] jcarousel thumbnail navigation

2009-04-07 Thread alexandraton...@gmail.com
Hello Im trying to build a gallery like this one on http://goal.com I tried to use two jcarousels. One is a image slide show with auto scroll, the the other is a simple carousel holds the image slider's thumbnails I got them working separately, but cannot figure out how to do the thumbnail

[jQuery] [Superfish] CSS Questions

2009-04-07 Thread Tom
I am putting a Superfish menu on my site and I'm having a couple CSS issues. First is, can I create separate rollover states for the top level menu items and the list level menu items? Right now I can only figure out how to change the global rollover class, sfHover. Second is, my dropdown

[jQuery] Tablesorter with pager extension check boxes not present on form submit

2009-04-07 Thread Justin
Hello everyone, This is my first post to the jQuery group. I am using the tablesorter and tablesorter.pager jQuery plugin in an ASP.NET web page. Each row in the table has a checkbox and is intended to be used by the user to add or remove an item from the final selection. The problem is that

[jQuery] Checkbox selector not working

2009-04-07 Thread Chandra
Hi Guys I am new to jQuery... I am trying to get all the checkboxes checked in the form $(inp...@name^=ddcommercialtypes_check][type='checkbox'] [checked='true']).each(function() { checkedBoxes1 += , + $(this)[0].value; }); Here I am getting all the checkboxes

[jQuery] Re: Double queries using $.load

2009-04-07 Thread Skyblaze
i have the same strange problem On Apr 7, 10:38 am, EnvyGeeks jor...@envygeeks.com wrote: It seems that either I'm doing something horribly wrong or something because everytime I do anAjaxcall using $.load() it causes adouble query on the page. example: $(div#example a).click(function(){  

[jQuery] Jquery makes two ajax requests in one!!

2009-04-07 Thread Skyblaze
I have a strange problem. I have to do an ajax request after a select box changes (change event) so i have the following code: $('#comprensori_id').change(function() { var comprensorio_id = $(this).val(); $.ajax({

[jQuery] Re: Checkbox selector not working

2009-04-07 Thread Charlie Griefer
On Tue, Apr 7, 2009 at 8:48 AM, Chandra cank...@gmail.com wrote: Hi Guys I am new to jQuery... I am trying to get all the checkboxes checked in the form $(inp...@name^=ddcommercialtypes_check][type='checkbox'] [checked='true']).each(function() { checkedBoxes1 += , +

[jQuery] Re: How do I access global variables for id's, etc.?

2009-04-07 Thread Rick Faircloth
Actually, I didn't get what I thought. The various sections of code without line breaks were bumping into each other making it look like the code was working! Sorry! This doesn't work: pgNewStoryID = scriptgNewStoryID/script/p It would be nice if I could just stick a $ on the front

[jQuery] Re: newbie question

2009-04-07 Thread Jonathan
Basically, although $bfa is a pointer to jQuery, Not jQuery.noConflict (); so if you wanted to call noConflict again you would simply do $newAlias = $bfa.noConflict(); On Apr 7, 12:22 pm, Rick Faircloth r...@whitestonemedia.com wrote: But having $bfa = jQuery.noConflict() would make $bfa a

[jQuery] Re: newbie question

2009-04-07 Thread Jonathan
Also, you should only ever have to call noConflict() once, right after you include the jQuery.js file. On Apr 7, 12:28 pm, Jonathan jdd...@gmail.com wrote: Basically, although $bfa is a pointer to jQuery, Not jQuery.noConflict (); so if you wanted to call noConflict again you would simply

[jQuery] Re: Using JQuery to modify Javascript object properties.

2009-04-07 Thread Scott
ah... and therein lies an important distinction. I am not trying to set HTML attributes on the tables - I am trying to set a property on a JavaScript object that happens to correlate to a table in the DOM. Forget the fact that it's tables - it could be any Javascript object. For instance, the

[jQuery] Trying to use UI accordion to create menu with event: click but still enable links on child link items

2009-04-07 Thread Adam
I did also post this in the UI group... I have a simple two-level menu utilizing the accordion and want to change from event:mouseover to click as the trigger to open the drawers. The problem Im having is that this change converts ALL links in the menu, even children, to return:false and all

[jQuery] Re: [autocomplete] custom fields for remote URLs

2009-04-07 Thread Tom Worster
On 4/7/09 1:00 PM, skunkwerk skunkw...@gmail.com wrote: i'm using the autocomplete plugin here (http://docs.jquery.com/ Plugins/Autocomplete) and want to be able to use it with a remote URL, while at the same time having access to have text displayed one way, and selected another way (ie

[jQuery] Re: Checkbox selector not working

2009-04-07 Thread Chandra
Thanks alot guys... that is the problem.. when I removed @, it works just fine. Thanks again Chandra On Apr 7, 2:17 pm, MorningZ morni...@gmail.com wrote: And to clean up the selector some $(:checkbox[name^=ddCommercialTypes_Check]:checked) On Apr 7, 11:48 am, Chandra cank...@gmail.com

[jQuery] Re: How do I access global variables for id's, etc.?

2009-04-07 Thread Eric Garside
What are you actually trying to achieve here? Through all the code posted, I'm still a bit unclear on the actual goal you're trying to achieve. On Apr 7, 3:20 pm, Jonathan jdd...@gmail.com wrote: I know global variables seem convenient but they are really quite evil. Once your project grows to

[jQuery] Re: get reference to nested appended element

2009-04-07 Thread Eric Garside
parent.append(tabletrtdtable/table/td/tr/table); var table = $('table table', parent); Be sure to close your inner table tag. IE doesn't like when you try and generate fragments of code, iirc. On Apr 7, 12:28 pm, Jonathan Sharp, Out West Media jquery- li...@outwestmedia.com wrote: Another

[jQuery] Re: How do I access global variables for id's, etc.?

2009-04-07 Thread Jonathan
I know global variables seem convenient but they are really quite evil. Once your project grows to even a moderate size they become a nightmare to deal with violate a number of good design tenants, you lose any modularity the code might have had and will run into namespace conflicts (No matter

[jQuery] Re: first child

2009-04-07 Thread Eric Garside
I think I understand what you want. Try this: $('#content :first-child')[0].tagName.toLowerCase(); // Will return a if it's an anchor, div for a div, img for an image tag, etc. On Apr 7, 12:37 pm, Mauricio \(Maujor\) Samy Silva css.mau...@gmail.com wrote: var $el = xx.is('h2'); //if it

[jQuery] Re: newbie question

2009-04-07 Thread Jonathan
$ is simply an alias to jQuery(). jQuery.noConflict() removes the $ alias so other frameworks don't throw a fit. $bfa = jQuery.noConflict() simply assigns $bfa to jQuery(). The $ tends to confuse people at first but it's just a function alias, It's just a shortcut for jQuery, thats it, nothing

[jQuery] Re: Learning about functions and methods (I am confused)

2009-04-07 Thread Eric Garside
Yes. You can add methods to any function, but ideally, if you're calling sub functions, you should use $.myPlugin as an object, rather than a function. (function($){ $.myPlugin = { myMethod: function(){ alert('called'); } } })(jQuery); $.myPlugin.myMethod(); On Apr 7, 12:03 pm,

[jQuery] [Breadcrumb] Doing it in JQuery? Source Provided!

2009-04-07 Thread ehime
I wrote a snippet of code that works for the most part. I'm really trying to shave it down and expand its functionality though and am having a hard as hell time doing it. This chunk of code should [b]Theoretically[/b] allow a bread crumb trail using href as the crumb. [code] function

[jQuery] Re: How do I access global variables for id's, etc.?

2009-04-07 Thread Ricardo
If you are setting the value of the variable in a script tag in the head like that, why not just use your server-side language? The part of JS in the page is to *interact* with the DOM after it's loaded, like someone said it's not a templating language. On Apr 7, 3:52 pm, Rick Faircloth

[jQuery] Re: newbie question

2009-04-07 Thread Rick Faircloth
Thanks for clarifying, Jonathan! Rick -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Jonathan Sent: Tuesday, April 07, 2009 3:34 PM To: jQuery (English) Subject: [jQuery] Re: newbie question Also, you should only ever have to call

[jQuery] Re: Double queries using $.load

2009-04-07 Thread James
Try adding an alert or console.log in the click handler. Maybe the issue could be that the click is being called twice, thus executing the AJAX twice. On Apr 7, 8:13 am, Laker Netman laker.net...@gmail.com wrote: On Apr 7, 3:38 am, EnvyGeeks jor...@envygeeks.com wrote: It seems that either

[jQuery] Re: How do I access global variables for id's, etc.?

2009-04-07 Thread Rick Faircloth
Surprisingly, it did work. I ran this code on an otherwise blank page (no doctype, etc.): script type=text/javascript src=jquery.js/script script var gNewStoryID = 2 /script pThis is a paragraph of text. Inside this text I want to embed the value of the global

[jQuery] Re: Checkbox selector not working

2009-04-07 Thread MorningZ
And to clean up the selector some $(:checkbox[name^=ddCommercialTypes_Check]:checked) On Apr 7, 11:48 am, Chandra cank...@gmail.com wrote: Hi Guys I am new to jQuery... I am trying to get all the checkboxes checked in the form $(inp...@name^=ddcommercialtypes_check][type='checkbox']

[jQuery] Re: Using JQuery to modify Javascript object properties.

2009-04-07 Thread Ricardo
It doesn't just 'happens to correlate' to an element in the DOM, it is a direct link. Storing values or references to objects in HTMLElement objects can lead to memory leaks. I'd also recommend the use of data (): $('table') .data('isHighlighted', false) .data('highlightedRowIndex',

[jQuery] Re: Using JQuery to modify Javascript object properties.

2009-04-07 Thread MorningZ
You're close $(table).attr({newProp1: true, newProp2: 7}); although to be honest, your selector or mine doesn't make all that much sense since you would seemingly want to set unique properties on each table, something neither line of code does On Apr 7, 1:48 pm, Scott

[jQuery] Re: Double queries using $.load

2009-04-07 Thread Laker Netman
On Apr 7, 3:38 am, EnvyGeeks jor...@envygeeks.com wrote: It seems that either I'm doing something horribly wrong or something because everytime I do an Ajax call using $.load() it causes a double query on the page. example: $(div#example a).click(function(){     $.ajax_uri = this.href;  

[jQuery] Re: Using JQuery to modify Javascript object properties.

2009-04-07 Thread Scott
This is just to set the properties and their initial values. They're modified individually later in response to clicks and whatnot. On Apr 7, 11:21 am, MorningZ morni...@gmail.com wrote: You're close $(table).attr({newProp1: true, newProp2: 7}); although to be honest, your selector or mine

[jQuery] Re: How to do can promise my event will be executed first when i add a event listenser?

2009-04-07 Thread Ricardo
See this thread: http://groups.google.com/group/jquery-en/browse_thread/thread/da7ee3f9c17db398/f7015d7b93ae3565?lnk=gstq=event+order#f7015d7b93ae3565 On Apr 7, 4:18 am, Jackal jum...@gmail.com wrote: as title,  thanks.

[jQuery] Re: Using JQuery to modify Javascript object properties.

2009-04-07 Thread James
Also note that 'newProp1' and 'newProp2' are not valid HTML attributes. I'm not sure if you really have them existing on your HTML page. If possible, you might want to consider using jQuery's data() to get and set data associated with an element: http://docs.jquery.com/Core/data On Apr 7, 8:21 

[jQuery] Re: Superfish woes in IE

2009-04-07 Thread Laker Netman
On Apr 7, 10:52 am, Laker Netman laker.net...@gmail.com wrote: I am working on a vertical, AJAX-produced dynamic menu that will has two levels of flyout sub menus. So far the menu works as expected in Firefox 3.0.8 and Safari 3.2.2, both on Windows, but not in IE7. The issue I'm dealing with

[jQuery] Re: How do I access global variables for id's, etc.?

2009-04-07 Thread Rick Faircloth
Basically, I was just trying to set a variable once on a page and then be able to refer to it anywhere, anytime, apart from having to run additional scripts to place the variable in an id or get the value from another script. It just seems like everytime I want to access a variable somewhere, I

  1   2   >