[jQuery] Re: :last in IE6

2008-12-08 Thread Liam Potter
yep, I got around it by doing this $(this).removeClass(last); $(this).removeClass(alt); $(this).addClass(lastalt); ricardobeat wrote: Have you tried li.alt.last? :D On Dec 5, 12:59 pm, Liam Potter [EMAIL PROTECTED] wrote: yes I know this, defining li.last.alt allows me apply specific

[jQuery] Re: Problem with placement of image in tooltip

2008-12-08 Thread Jörn Zaefferer
You need to include some minimum CSS styles, eg. #tooltip { position: absolute; }. Just use the jquery.tooltip.css file as a starting point. Jörn On Mon, Dec 8, 2008 at 4:19 AM, russellneufeld [EMAIL PROTECTED] wrote: Hi all, I'm trying to use the tooltip plugin and for some reason the

[jQuery] Problem with confirm delete

2008-12-08 Thread james182
my problem is that it won't delete from DB every things else works fine just not the deleting from DB. My Code: $(function() { $('a.delete').click(function() { var user_id = $(this).attr('id'); var thisparam = $(this);

[jQuery] Type of Control

2008-12-08 Thread JQueryProgrammer
How can I check what is the type of control. eg. In javascript document.getElementById(mycontrolid).type will return select-one, textbox, checkbox, radio etc. How can I find it in jQuery. I tried as $(#mycontrolid).constructor but it returns as Object in all cases.

[jQuery] Star rating plugin problems

2008-12-08 Thread Philip Garrett
Hi, I'm using the latest available version of the star rating plugin from fyneworks (http://www.fyneworks.com/jquery/star-rating/) with jQuery 1.2.6. I'm having a few problems when using the star ratings with ajax. My ajax form actually replaces the div that contains the stars widget with a

[jQuery] How to get parent element and not break a DOM hierarchy

2008-12-08 Thread webarranger
Hi all! I am new to jquery. I have a problem to get first parent element without breaking a hierarchy. Example: div class=ajaxmain div class=somediv /div div class=ajaxform spanHello World/span /div /div I'a trying this: $('span').parents('.ajaxform,

[jQuery] Re: Type of Control

2008-12-08 Thread JQueryProgrammer
This is also one good way to get the type of the control. But is there any generic function that I can extend with jQuery in which I pass the control id and it returns me the type of the control whether it be div, span, select, textarea etc etc. On Dec 8, 4:00 pm, Richard D. Worth [EMAIL

[jQuery] Re: problem with $.JSON request

2008-12-08 Thread suhinin.dmit...@gmail.com
For example: function someName() { var result = this.getAllRecords(); var data = new Array(); var test = 13; alert(test); while(result.isValidRow()) { $.getJSON(http://test.url/?callback=?;, { TABLE_NAME:'BARCODE_CODES', RECORD_ID:

[jQuery] Re: how to image cache using jQuery?

2008-12-08 Thread Richard D. Worth
What do you mean by do image caching from jQuery? It would help if you could provide a little more detail about what you're doing or a problem you're trying to solve. - Richard On Sun, Dec 7, 2008 at 11:52 PM, darwin liem [EMAIL PROTECTED] wrote: hi, I'm new in jQuery... can someone help me

[jQuery] Re: sartable problem in IE7(6?)

2008-12-08 Thread Richard D. Worth
I'm getting an error in IE, console is not defined. You might want to add a check for the console before using it. Other than that, it works fine for me in IE. Or at least it seems to work the same as it does in FF. - Richard On Wed, Dec 3, 2008 at 5:59 AM, tlob [EMAIL PROTECTED] wrote: Hello

[jQuery] Re: JQuery Ajax get function BROKE in Safari 3.2.1 (latest)?!

2008-12-08 Thread Richard D. Worth
Have you tried the jQuery test suite? http://jquery.com/test/ All the Ajax tests are passing for me in Safari 3.2.1 (525.27.1) on Win XP. Also, don't you need a return false; or event.preventDefault() since your function is in a link's onclick and you have a url? - Richard On Wed, Dec 3, 2008

[jQuery] Re: newbie: making a sortable table by some hidden value

2008-12-08 Thread Richard D. Worth
I wonder if you've tried any existing plugins (plugins.jquery.com) in the 'Tables' category? http://plugins.jquery.com/project/Plugins/category/54 Here are a couple that jump out as worth looking into: http://plugins.jquery.com/project/DataTables http://plugins.jquery.com/project/tablesorter

[jQuery] Re: Optimizing Easiest Tooltip

2008-12-08 Thread Frank
Hi Karl, I got it working in the end. I'm not sure why but $('table').simpletip ('a') just wouldn't work, whereas $('.adminTable').simpletip('a') did (adminTable being the class applied to my giant table). It's unclear why the latter would work and not the former, but at least it's all fine now.

[jQuery] Find functionality consistence?

2008-12-08 Thread janis.zalitis
Hey! I have a problem with find: It only appears to find descendant elements of a collection or element. I've been using JQuery for 3 years and unless memory fails me, find used to find stuff on the same level as well. I posted it as bug report here http://dev.jquery.com/ticket/3694 And

[jQuery] Re: toggle text class name and pop-up tool tip

2008-12-08 Thread Richard D. Worth
This should do: script type=text/javascript $(function() { $(.red).click(function() { $(this) .removeClass(red) .addClass(gray) .text(bye); $(.tooltip).show(); return false; }); }); /script - Richard On Thu, Dec 4, 2008 at 10:30 AM, ipog [EMAIL PROTECTED] wrote: Hello

[jQuery] $.livequery.registerPlugin() doesn't work?

2008-12-08 Thread R. Rajesh Jeba Anbiah
[Posted to jquery-dev http://groups.google.com/group/jquery-dev/msg/c33c84a2db495f88 and then realized that it may get better response here] I'm trying to register a simple plugin with livequery, but it doesn't work as expected. Code snippet: $.fn.confirm = function() {

[jQuery] Re: Type of Control

2008-12-08 Thread JQueryProgrammer
Thanks for the help. On Dec 8, 3:28 pm, Kayhadrin [EMAIL PROTECTED] wrote: If you try $(#mycontrolid).attr('type'), you should find the type of INPUT tag you have. On Dec 8, 9:05 pm, JQueryProgrammer [EMAIL PROTECTED] wrote: How can I check what is the type of control. eg. In

[jQuery] Re: Type of Control

2008-12-08 Thread Kayhadrin
If you try $(#mycontrolid).attr('type'), you should find the type of INPUT tag you have. On Dec 8, 9:05 pm, JQueryProgrammer [EMAIL PROTECTED] wrote: How can I check what is the type of control. eg. In javascript document.getElementById(mycontrolid).type will return select-one, textbox,

[jQuery] Re: How can I make a td clickable?

2008-12-08 Thread Liam Potter
display:block the a and give it a height and width of the td you don't need to use jquery for everything. Kayhadrin wrote: Indeed, the click() event on the link is not enough to activate the link. :( Good catch! On Dec 8, 2:27 pm, Karl Swedberg [EMAIL PROTECTED] wrote: On Dec 7, 2008, at

[jQuery] Re: SlideShow based on SQL Server

2008-12-08 Thread Paolo Pignatelli
Thank you very much, this looks like a great slide-show. I do not see, however, in the cycle plug-in how to get the images generated come from a SQL Server. All the examples seem to rely on the images being in a div explicitly. div class=pics img src=images/beach1.jpg width=200

[jQuery] ajaxForm returns error in IE7

2008-12-08 Thread cjokomay
I am using ajaxForm to upload an excel file and then display whether or not it uploaded successfully. The following jQuery code works fine in Firefox, but when I try to run it in IE7 it fails. The beforeSubmit function is executed but then it craps out after that with the following error: Object

[jQuery] Re: Type of Control

2008-12-08 Thread Richard D. Worth
It depends on what you mean by type of control. Do you mean any html element? Any form control? As for the tag name, you can get that of any element by it's id like so var tagName = $(#theId).attr(tagName); That won't help you with any of the input controls that share the INPUT tagName, which is

[jQuery] Re: sartable problem in IE7(6?)

2008-12-08 Thread Richard D. Worth
Also note: There is a dedicated list for help/questions with jQuery UI plugins: http://groups.google.com/group/jquery-ui - Richard On Mon, Dec 8, 2008 at 6:43 AM, Richard D. Worth [EMAIL PROTECTED] wrote: I'm getting an error in IE, console is not defined. You might want to add a check for

[jQuery] Re: New Plugin: jQuery Finder (Mac-style 'Treeview' with Columns)

2008-12-08 Thread Nicolas R
Yes I know, I haven't tested it on IE and I have done nothing for supporting it (no css hacks or conditional comments). I am sure that it has some issues, especially with CSS support. Hopefully the issues are just css related and don't break the plugin's functionality. As the CMS, that's the

[jQuery] Re: How can I make a td clickable?

2008-12-08 Thread Kayhadrin
Indeed, the click() event on the link is not enough to activate the link. :( Good catch! On Dec 8, 2:27 pm, Karl Swedberg [EMAIL PROTECTED] wrote: On Dec 7, 2008, at 9:34 AM, Kayhadrin wrote: Hi, If .menuitem is a class you use to contain each link, and .menu is the class that

[jQuery] Re: Type of Control

2008-12-08 Thread Richard D. Worth
Another option would be to use the .is() method in combination with jQuery form (pseudo-)selectors like select textarea :radio :checkbox :hidden See http://docs.jquery.com/Selectors the Forms: section for a list of the form pseudo-selectors. - Richard On Mon, Dec 8, 2008 at 5:34 AM,

[jQuery] Re: sortable not firing always in FF,IE. Safari works fine!

2008-12-08 Thread Richard D. Worth
Where you have $(#staerke1).sortable({ connectWith: [#staerke2], update: liCounting(), placeholder:placeholder }); change update: liCounting() to update: liCounting The former will call the liCounting function once and set the update option to have the return value of the

[jQuery] Re: datepicker and highlight current day

2008-12-08 Thread Richard D. Worth
If you mean today's date, the css class is ui-datepicker-today If you mean the current selected date, the css class is ui-datepicker-current-day So to highlight either of those, you can simply use css. Here's how the default UI datepicker theme does so: .ui-datepicker-today { background:

[jQuery] Re: New Plugin: jQuery Finder (Mac-style 'Treeview' with Columns)

2008-12-08 Thread Liam Potter
it seems your CSS needs a good look at in IE. I'm in work right now but I'l lsee if I can't fix it up in Ie for you. I like the idea of this, would be good for CMS use. Nicolas R wrote: Greetings! I've put together a plugin that creates a mac-style finder out of a list. The plugin is still

[jQuery] Re: Find functionality consistence?

2008-12-08 Thread Richard D. Worth
On Mon, Dec 8, 2008 at 2:45 AM, janis.zalitis [EMAIL PROTECTED] wrote: Hey! I have a problem with find: It only appears to find descendant elements of a collection or element. I've been using JQuery for 3 years and unless memory fails me, find used to find stuff on the same level as

[jQuery] Re: Webdeveloper to WebDeveloper

2008-12-08 Thread Pedram
Hi , I strongly agree with , I just gonna put the summary over there plus the direct link to the web sites, and also I have some Unique articles by my own I'll upgrade it this way . thanks for your comment . Regards pedram On Dec 7, 10:48 pm, Armand Datema [EMAIL PROTECTED] wrote: Hi Well

[jQuery] Re: event target bug or jquery.validation bug in IE?

2008-12-08 Thread Jörn Zaefferer
I don't quite follow your description, but in any case, you can disable the focusing by setting focusInvalid: false. Jörn On Mon, Dec 8, 2008 at 11:56 AM, Arthur Ccube [EMAIL PROTECTED] wrote: I'm using jquery.validation.js plugin. It works fine in firefox. However, in IE, I have problem if

[jQuery] how to dynamically create a set of checkboxes?

2008-12-08 Thread mameha1977
This is quite a newbie question about a jquery tutorial I found at http://remysharp.com/2007/09/18/auto-populate-multiple-select-boxes/ I wish to change the example so that the second box ('elements') contains a set of checkboxes instead of a select list:

[jQuery] JSON support in flash plugin?

2008-12-08 Thread mikael
Hi I have a flash (swf) file that needs rather extensive input in form of flash-vars. My flash colleague would like to recieve the flash-vars as an object (JSON). Have any of you tried that - or maybe even extended Luke's (great!) plugin? This is how you feed flash-vars to the movie 'out of the

[jQuery] Zooming and clicking

2008-12-08 Thread Paul
Hi there, I'm brainstorming about something and was hoping you guys (and girls) could help me... Picture this: - When a visitor moves his/her mouse over a thumb image (say a map), the magnified part of that image appears in another DIV. I can do this with jQZoom.. - Then when the visitor is

[jQuery] New Plugin: jQuery Finder (Mac-style 'Treeview' with Columns)

2008-12-08 Thread Nicolas R
Greetings! I've put together a plugin that creates a mac-style finder out of a list. The plugin is still in development (ALPHA) and it needs some testing, especially on IE. The purpose of this plugin is to provide an alternative to treeview navigation. Making it look just like the Finder on a

[jQuery] Re: Using jquery to construct menus like nbc.com

2008-12-08 Thread Ted
One last question (at least on this topic, I promise)- I'd like to have the main menu item keep it's hover class active while the user has the submenu selected. I've tried adding - $('li.main-nav').addClass('menu-on'); ...to the code to achieve this, but it's not working. Code here:

[jQuery] Re: Problem with confirm delete

2008-12-08 Thread Rik Lomas
I think this is more of a PHP problem than a jQuery one: if($_POST['user_id']){ $user_id = $_GET['user_id']; Should be something like if (!empty($_POST['user_id'])) { $user_id = $_POST['user_id']; Just as an aside, you really should sanitize your inputs as it's very easy to do

[jQuery] event target bug or jquery.validation bug in IE?

2008-12-08 Thread Arthur Ccube
I'm using jquery.validation.js plugin. It works fine in firefox. However, in IE, I have problem if there is errorred fields (which shows an error sentence). If it happens, the plugin keep onfocusin the first errored field (i use the event object to find out the problem). It should be logically

[jQuery] Re: Validate does not work in IE7

2008-12-08 Thread shapper
Please, anyone? On Dec 8, 12:42 am, shapper [EMAIL PROTECTED] wrote: Hello, I am using JQuery and Validate. It works fine in Firefox 3 but it does not work in IE7. Here is an example:http://www.27lamps.com/Beta/Form/Form.html Am I doing something wrong or is there a bug? Thanks,

[jQuery] driving me mad - ajax

2008-12-08 Thread ToonMariner
Ok I have the following code which retreives and xml file - the code then locates each 'description' node and loads the contents into an array. It then loops through each 'term' in teh xml file and looks for that string withint the specified container. if found the terms is wrapped in a span.

[jQuery] SlideToggle a DIV inside another DIV

2008-12-08 Thread StoneGut
Hello, I have a div (gb_results) that includes another div (gb_edit) - when a button with class edit in the gb_results DIV is click I need the gb_edit DIV to toggle in / out. The only thing is that the gb_results DIV is generated dynamically through a database query so I can't name each one as

[jQuery] Re: .load preventing links on page from working

2008-12-08 Thread ykoorb
I tried to produce a simple test case to send out, however, i couldn't repeat the behaviour in the simple case. Since i sent my original post i've attempted a couple of non-jQuery approaches and they all seemed to suffer the same problem. For this reason i'm thinking there must be something in my

[jQuery] Best Practices Style Guide

2008-12-08 Thread Leo
I am a fairly new adopter of jQuery, but a long time software developer. One of the things I really like about the jQuery approach is a mindset to keep implementations clean and maintainable. Having said that, it is easy enough to take the unobtrusive paradigm down the path towards unmaintainable

[jQuery] Re: SlideToggle a DIV inside another DIV

2008-12-08 Thread StoneGut
Didn't work - thanks though - tried the whole SIBLING thing as well before. I simplefied my code example for the post -- here is that section in whole: script type=text/javascript $(document).ready(function() { $(.guestbook_result .btn-edit).click(function(){

[jQuery] Re: SlideToggle a DIV inside another DIV

2008-12-08 Thread Liam Potter
try this $(document).ready(function() { $(.gb_result .btn-edit).click(function(){ $(this).sibling(.gb_edit).slideToggle(); }); }); StoneGut wrote: Hello, I have a div (gb_results) that includes another div (gb_edit) - when a button with class edit in the gb_results DIV is

[jQuery] Re: SlideToggle a DIV inside another DIV

2008-12-08 Thread Liam Potter
ok try this $(document).ready(function() { $(.guestbook_result .btn-edit).click(function(){ $(this).parent().child(.guestbook_edit).slideToggle(); }); StoneGut wrote: Didn't work - thanks though - tried the whole SIBLING thing as well before. I simplefied my code example

[jQuery] Re: ClueTip Custom Close Button

2008-12-08 Thread Karl Swedberg
Hi bobsov, I don't think it's trivial. At least, it isn't obvious. Here is how I would do it: $('whatever').cluetip({ onShow: function() { $('yourbutton').click(function() { $('#cluetip-close').triggerHandler('click'); }); }, sticky: true }); Glad you like the

[jQuery] Re: SlideToggle a DIV inside another DIV

2008-12-08 Thread StoneGut
No Go - thought that would do it though ... looks like it SHOULD work. On Dec 8, 11:30 am, Liam Potter [EMAIL PROTECTED] wrote: ok try this   $(document).ready(function() {      $(.guestbook_result .btn-edit).click(function(){         $(this).parent().child(.guestbook_edit).slideToggle();

[jQuery] Re: $.livequery.registerPlugin() doesn't work?

2008-12-08 Thread ricardobeat
According to the LiveQuery documentation (http://brandonaaron.net/docs/ livequery) the 'registerPlugin' functionality is for plug-ins that modify the DOM without the aid of jQuery, which is not your case. I believe you'd have to bind an event to the a.delete elements for that to work: function

[jQuery] Re: SlideToggle a DIV inside another DIV

2008-12-08 Thread Liam Potter
my mistake, should of been child should be chilren $(document).ready(function() { $(.guestbook_result .btn-edit).click(function(){ $(this).parent().children(.guestbook_edit).slideToggle(); }); StoneGut wrote: No Go - thought that would do it though ... looks like it

[jQuery] Re: How to get parent element and not break a DOM hierarchy

2008-12-08 Thread ricardobeat
$('span').parent() - without the 's', gets the first parent. This will give you the first parent that matches 'ajax' in its classname, stepping inside out: $('span').parents('[class*=ajax]:first') - ricardo On Dec 8, 9:05 am, webarranger [EMAIL PROTECTED] wrote: Hi all! I am new to jquery.

[jQuery] Re: Zooming and clicking

2008-12-08 Thread ricardobeat
area elements have no display properties, so you can't do any styling. An alternative is to use transparent a elements instead, if your areas are all squares/rectangles. - ricardo On Dec 8, 9:27 am, Paul [EMAIL PROTECTED] wrote: Hi there, I'm brainstorming about something and was hoping you

[jQuery] Re: SlideToggle a DIV inside another DIV

2008-12-08 Thread StoneGut
Still nothing Liam - thanks so much for your help. It's greatly appreciated!! I'm removing all the (this).parent().children just to check the the links are all working fine and they are - but - ALL the guesetbook_edit DIV's are opening - with your code in place nothing happens. No DIV movement.

[jQuery] Re: Find functionality consistence?

2008-12-08 Thread ricardobeat
Hi, For as long as I've been working with jQuery (about 1 year), find() has always searched for descendants only. I think what you're looking after is filter(): var pics2 = $('div.item2').find('img'); pics2.filter('.grey').hide(); // you also don't need to recreate the jQuery object, you

[jQuery] Re: SlideToggle a DIV inside another DIV

2008-12-08 Thread Liam Potter
i just noticed all the font tags (you will want to remove these, the font tag is no longer used) so it would of been getting that as the parent, this one should work. $(document).ready(function() { $(.guestbook_result .btn-edit).click(function(){

[jQuery] Re: mcDropDown - problem getting displayed value

2008-12-08 Thread Sean O
Dan Switzer wrote: Sean, The getValue() should do exactly what you need. It returns an array in the format [value, label]. So the second element in the array is exactly the value I believe you're after. -Dan Dan, thanks. I'm able to get the label using [1], but the behavior is

[jQuery] Scrolling a Div

2008-12-08 Thread Takaya213
Hi All I am trying to scroll a single div (can't have other divs with id's, etc) left (previous) and right (next). It is just a single div by itself with content in it, i just want the next and previous buttons nothing more. Please if anybody could help urgently! Thanks -- View this message

[jQuery] Re: Best Practices Style Guide

2008-12-08 Thread ricardobeat
1,3: more about developer's judgment or common sense than 'coding with jQuery'. In any project you'll have to manage the sources/includes in an understandable way, write readable code. 2: that's the idea, separating content, functionality and presentation. looking at the markup must only give

[jQuery] Re: New Plugin: jQuery Finder (Mac-style 'Treeview' with Columns)

2008-12-08 Thread Alexandre Plennevaux
quite a cool demo, thanks for sharing, works fine here on PC: windows XP SP3 Firefox 3.0 On Mon, Dec 8, 2008 at 2:47 PM, Nicolas R [EMAIL PROTECTED] wrote: Yes I know, I haven't tested it on IE and I have done nothing for supporting it (no css hacks or conditional comments). I am sure that

[jQuery] Re: SlideToggle a DIV inside another DIV

2008-12-08 Thread StoneGut
Font tag is no longer used ?? I never got that email. LOL It worked! BUT I didn't have to remove the font tag. Seems like a few posts ago you figured it out but left out an s: $(.guestbook_result .btn-edit).click(function(){ $(this).parent().children

[jQuery] Re: SlideToggle a DIV inside another DIV

2008-12-08 Thread Liam Potter
Graphical work is my best skill so probably won't need that ;) No probs, but yeah, font tags are a no no these day, the way you are using them right now you could just put the class on the a tag itself, then the multiple br / tags could be replaced for adding margins into the css. Good

[jQuery] Re: Problem with placement of image in tooltip

2008-12-08 Thread russellneufeld
Jörn - thanks a lot for your help. That solved it. I included the css file with the tooltip download which contains a style for tooltip, but for some reason that's not getting applied in my production code. When I tried your suggestion it worked, so now I at least have a work-around and I'll

[jQuery] Re: Setting source of a frame with jQuery

2008-12-08 Thread ricardobeat
Yes, 'global' variables are properties of the window object, there is one for each frame. It seems you're calling top.$(...) inside coll_toc.html, but you don't have jQuery loaded in your index.html (the parent frame). In fact, none of your CSS or JS files called in index.html's head are being

[jQuery] Re: SlideToggle a DIV inside another DIV

2008-12-08 Thread StoneGut
True enough - I'll make the adjustments to this project and to that part of my brain for future use. Thanks again! On Dec 8, 12:21 pm, Liam Potter [EMAIL PROTECTED] wrote: Graphical work is my best skill so probably won't need that ;) No probs, but yeah, font tags are a no no these day, the

[jQuery] Re: Having trouble thinking through the how: make node, append (w/o showing), then fade in ...

2008-12-08 Thread ricardobeat
Ryura's code should work just fine, could you put up a test page showing the error? Something like this looks a bit better (to me) and should work just as well: $('li /') .append( $('input type=text /').val(item.a) ) .hide().appendTo('myList') .slideDown() - ricardo On Dec 8, 1:15 

[jQuery] Superfish module for Joomla

2008-12-08 Thread Soylent
I don't know if any of you use Joomla, but I'm doing a website for someone that wants it. Anyway, I wanted to add Superfish to the main menu of the site but wanted the client to be able to configure it from the admin panel. I couldn't find a module for this, so I made one. I hope Joel doesn't

[jQuery] Re: problem with $.JSON request

2008-12-08 Thread botondus
The first example ricardo gave you is not ok. Use the second example. Because http://test.url/?callback=?;, gets called, but javascript doesn't wait to get a response from that request (the first A from AJAX is from Asynchronous!). It goes forward and calls it again and again and again quickly

[jQuery] How modal windows work ?

2008-12-08 Thread jh
Hi everyone ! I'm really curious about how modal window work behind the jquery. When modal window appears, the entire web page changes color into black or gray so that it becomes disabled, but modal window. Can you guys PLEASE tell me how it really work ? What javascript code beind those kind

[jQuery] Re: How modal windows work ?

2008-12-08 Thread Liam Potter
bascially, it will be a div the same height and width as the webpage with a background color with an opacity set, or maybe an alpha png depends who coded it. generally that is how they are done. jh wrote: Hi everyone ! I'm really curious about how modal window work behind the jquery. When

[jQuery] [cluetip] with xml

2008-12-08 Thread Zic Puce
Hi all, I must display in a cluetip (jquery) some information from an xml file. My html file is: echo tddiv class=\blocCataloguelibelle\; a class=affichepopup href=# title= Next dates ? php echo $ tabForm [$ i] - nom_F;? / a / div / td Demojquery.js is my file: $ (document). ready

[jQuery] [validate] Group Validation, Validation Events

2008-12-08 Thread Mihai Danila
I have a few questions, given that I'm new to the validation plugin. 1. We validate groups of controls; validation for the entire group succeeds if at least one field is present -- call it REQUIRED on steroids. To implement this, we use one call to addMethod + one CSS class per group of

[jQuery] Re: Hot to remove or replace onclick function

2008-12-08 Thread ricardobeat
Much better now :D jQuery version of your script: script type=text/javascript !-- the 'language' attribute is deprecated in XHTML -- $(document).ready(function(){ $('#set').click(function(){ //registers the event handler for #set $('#btn').click(function(){ //registers the event

[jQuery] Re: Best Practices Style Guide

2008-12-08 Thread Richard D. Worth
On Mon, Dec 8, 2008 at 9:20 AM, Leo [EMAIL PROTECTED] wrote: I've seen some older writing by Yehuda that point the way, but it sure would be great if there was a wiki or something that provided a thorough treatment. We had a pretty good jQuery Best Practices thread a few months back

[jQuery] Re: problem with $.JSON request

2008-12-08 Thread botondus
A possible (but not the most efficient) solution would be something like this: function getAllWhatever() { var result = this.getAllRecords(); var record = new Array(); var test = 13; alert(test); while(result.isValidRow()) { record =

[jQuery] .eq() vs .slice()

2008-12-08 Thread Brad
I'm making some modifications to an older project that originally used jQuery 1.1.2. I've installed 1.2.6 and am in the process of reviewing and upgrading the code based on the changes documented at http://docs.jquery.com/Release:jQuery_1.2#Removed_Functionality There are many places in this

[jQuery] Re: [validate] - Validation by regular expression

2008-12-08 Thread skidmarek
I've changed my code to use addMethod, but I'm not terribly happy with the way it's working out. Would it be possible to use addMethod to create a validation function to which I could pass a 2nd parameter being the regular expression. If so, what would the rules: entry look like? On Dec 5,

[jQuery] Re: $.livequery.registerPlugin() doesn't work?

2008-12-08 Thread R. Rajesh Jeba Anbiah
On Dec 8, 7:47 pm, ricardobeat [EMAIL PROTECTED] wrote: According to the LiveQuery documentation (http://brandonaaron.net/docs/ livequery) the 'registerPlugin' functionality is for plug-ins that modify the DOM without the aid of jQuery, which is not your case. I believe you'd have to bind an

[jQuery] Re: .eq() vs .slice()

2008-12-08 Thread ricardobeat
eq() is present in 1.2.6, you won't face any issues using it. - ricardo On Dec 8, 2:13 pm, Brad [EMAIL PROTECTED] wrote: I'm making some modifications to an older project that originally used jQuery 1.1.2. I've installed 1.2.6 and am in the process of reviewing and upgrading the code based

[jQuery] Autocomplete with JSON contacting the server frequently

2008-12-08 Thread R. Rajesh Jeba Anbiah
I have noted that the JSON version/usage http://jquery.bassistance.de/autocomplete/demo/json.html is contacting the server frequently. The standard version is not unnecessarily contacting the server. It's contacting the server whenever a key is pressed. What could be the reason and any

[jQuery] Re: .eq() vs .slice()

2008-12-08 Thread Brad
Thanks for the confirmation. Maybe http://docs.jquery.com/Release:jQuery_1.2#Removed_Functionality should be revised to indicate that it was restored, unlike lt() and gt ()? On Dec 8, 9:28 am, ricardobeat [EMAIL PROTECTED] wrote: eq() is present in 1.2.6, you won't face any issues using it.

[jQuery] Re: How modal windows work ?

2008-12-08 Thread Richard D. Worth
On top of that it has to intercept any keyboard and mouse events/keep them from bubbling. And some elements elsewhere on the page have to be otherwise disabled/intercepted to disallow interaction. - Richard On Mon, Dec 8, 2008 at 10:39 AM, Liam Potter [EMAIL PROTECTED]wrote: bascially, it

[jQuery] Re: [validate] Group Validation, Validation Events

2008-12-08 Thread Jörn Zaefferer
Currently those field-based validation events are missing. Would you need an event that is called whenever a field is validated? Before validation occurs? After it's done? Only when (in)valid? There are quite a few potential permutations, I'd like to focus on those being actually useful. Jörn

[jQuery] Re: [validate] - Validation by regular expression

2008-12-08 Thread Jörn Zaefferer
I'm not following your question. Could you give me an example? Jörn On Mon, Dec 8, 2008 at 5:24 PM, skidmarek [EMAIL PROTECTED] wrote: I've changed my code to use addMethod, but I'm not terribly happy with the way it's working out. Would it be possible to use addMethod to create a

[jQuery] Re: Test that at least one input element has value

2008-12-08 Thread Victor
I just did something similar to your sollution but ended up in the same problem (duplicating the error-message). Did you already found the sollution to it?! On 3 nov, 09:55, Torgeir [EMAIL PROTECTED] wrote: Yes, I need to do somewhat the same thing as the groups option does, but the problem

[jQuery] Re: Superfish module for Joomla

2008-12-08 Thread Lawk Salih
Can you also share the link where we can see a live link of this project. Thanks, Lawk. On Dec 8, 9:21 am, Soylent [EMAIL PROTECTED] wrote: I don't know if any of you use Joomla, but I'm doing a website for someone that wants it.  Anyway, I wanted to add Superfish to the main menu of the

[jQuery] jQuery with prototype - RTFM but still problem

2008-12-08 Thread dpoakaspine
Hello, I read every clue to implement the 2 above libraries. Unfortunately it is still not working. I tried first including prototype then jquery. First jquery then prototype. noConflict() etc. ... Could y'all take a look at http://www.cjd-rz.de and tell me what's wrong? I can't see an error!

[jQuery] Re: driving me mad - ajax

2008-12-08 Thread Rik Lomas
Hi ToonMariner, This is a bit of a guess but it *could* be to do with your coding style, instead of: $(xml).find('description').each ( function() Try: $(xml).find('description').each(function() Rik 2008/12/8 ToonMariner [EMAIL PROTECTED]: Ok I have the following code which retreives

[jQuery] Re: :last in IE6

2008-12-08 Thread Karl Swedberg
On Dec 8, 2008, at 3:55 AM, Liam Potter wrote: yep, I got around it by doing this $(this).removeClass(last); $(this).removeClass(alt); $(this).addClass(lastalt); just a minor thing, but it's usually a good idea to chain these methods: $(this).removeClass('last alt').addClass('lastalt');

[jQuery] Re: :last in IE6

2008-12-08 Thread Liam Potter
cheers Karl, this should help with my coding, cheers :) Karl Swedberg wrote: On Dec 8, 2008, at 3:55 AM, Liam Potter wrote: yep, I got around it by doing this $(this).removeClass(last); $(this).removeClass(alt); $(this).addClass(lastalt); just a minor thing, but it's usually a good idea

[jQuery] Re: SlideShow based on SQL Server

2008-12-08 Thread aschmid
You could use the asp.net repeater and sqldatasource to create the above div from an sql server for ex asp:Repeater ID=Repeater1 runat=server DataSourceID=ds HeaderTemplatediv class=pics/HeaderTemplate ItemTemplateimg src='%# Eval(imgUrl)%' width='%# Eval (imgWidth)%' height='%#

[jQuery] SuperFish - Load sub menu with Ajax

2008-12-08 Thread sam
Hello. I put the superfish menu on my page and using the OnBeforeShow method, I am fetching menu items via ajax and placing the LI's in the current UL. I also see if there are children for the newly refreshed sub items and I nest a new UL sort of like this: if(item.subPageCnt 0){

[jQuery] Server Side programming and JQuery best practice

2008-12-08 Thread mmware
Hi all. What is the best way to pass parameters from the PHP script that generate the page to the Javascript/JQuery functions that enhance the page ? In my page there are several element that trigger an ajax request and show the result in a box. Of course each ajax request has a different url

[jQuery] Re: [validate] Group Validation, Validation Events

2008-12-08 Thread Mihai Danila
If the new handlers would want to extend on (be siblings of) the invalidHandler feature, then they should be consistent with invalidHandler's behavior. If invalidHandler fires after validation, then that's when the new events should fire. On a slightly different note, a passive observer may not

[jQuery] Re: jQuery Plugin -- DOMisBetter

2008-12-08 Thread Klaus Hartl
Hi All, the idea is a very simple and powerful JavaScript library. This library checks the browser of your home page visitor and when the browser is IE the library shows your alert message. if (/msie/.test(navigator.userAgent.toLowerCase())

[jQuery] Re: [validate] - Validation by regular expression

2008-12-08 Thread skidmarek
For example: addMethod(buga, function(value, regex) { var expression = new RegExp(regex, g); return (value.replace(expression,).length==0); } how then would I call buga from the rules section of my form definition? On Dec 8, 11:49 am, Jörn Zaefferer [EMAIL PROTECTED] wrote: I'm not

[jQuery] Re: Find functionality consistence?

2008-12-08 Thread Karl Swedberg
On Dec 8, 2008, at 2:45 AM, janis.zalitis wrote: Hey! I have a problem with find: It only appears to find descendant elements of a collection or element. I've been using JQuery for 3 years and unless memory fails me, find used to find stuff on the same level as well. I posted it as bug

[jQuery] Re: superfish and other jquery scripts conflict in IE 7

2008-12-08 Thread shenny
Joel, Thank you so much for helping me fix a simple problem. I'm a newbie at jquery and javascript so even though the answer was so obvious but i appreciate your help! On Dec 5, 5:14 pm, Joel Birch [EMAIL PROTECTED] wrote: Hello, You have a trailing comma after 'dropShadows: true'. This may

[jQuery] Masked Input Plugin 1.2

2008-12-08 Thread Josh Bush
There is now a new version of my Masked Input Plugin for jQuery(http:// digitalbush.com/projects/masked-input-plugin/). After a long absence with this project, I finally decided to tackle some of the more requested features that have been sent to me. I also did some big reorganization to make

[jQuery] Re: jQuery tabs - anyway to fire the script prior to onload?

2008-12-08 Thread Illah
Forgot the link: http://www.grooveeffect.com/ On Dec 8, 10:31 am, Illah [EMAIL PROTECTED] wrote: I use jQuery tabs for a carousel (see link below) but the problem is the script doesn't fire until the page is fully loaded.  On slower connections, or depending on if my ad network is piping

  1   2   >