[jQuery] Re: Question related to Javascript

2009-02-08 Thread seasoup
$(imgDisplay0_title).innerHTML = title; $(imgDisplay0_caption).innerHTML = caption; $(imgDisplay0_number).innerHTML = 1 of + imgs0Slideshow.length + Articles; should be $(imgDisplay0_title).html(title); $(imgDisplay0_caption).html(caption); $(imgDisplay0_number).html('1 of ' +

[jQuery] Re: Question related to Javascript

2009-02-08 Thread seasoup
Also, instead of saying var imgs0Slideshow = new Array(); imgs0Slideshow[0] = new Object(); It's easier to just say var imgs0Slideshow = []; imgs0Slideshow[0] = {}; and that achieves the exact same thing. On Feb 8, 1:10 am, seasoup seas...@gmail.com wrote: $(imgDisplay0_title).innerHTML =

[jQuery] Re: Using selectors successfully...?

2009-02-08 Thread seasoup
In firefox, to see the changed html markup click on the page and do ctrl-A to select all and then right click and View Selection Source. This also work if you just highlight the element you want to see the source of. On Feb 7, 10:05 pm, brian bally.z...@gmail.com wrote: On Sun, Feb 8, 2009 at

[jQuery] Re: [validate] dynamic message

2009-02-08 Thread himanshu
Hi, I am trying to validate an optional field but it is validated every time either it is included or not on the form.Please help me that how can i validate optional fields using jQuery validator. Regards, Himanshu Singh On Jan 26, 3:18 pm, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote:

[jQuery] Re: Does it hurt to call functions that don't do anything on the page?

2009-02-08 Thread Stephan Veigl
Hi I guess you have your $().ready() function in an external js file, otherwise you could customize it for the according html page. Another construct similar to Ricardos one, but a bit more flexible: Use a global variable in every html file to specify the init functions you want to call for

[jQuery] Re: Question related to Javascript

2009-02-08 Thread MH1988
Thanks so much for the help. I'm afraid it still isn't working correctly. I tried [0] which to me means it initiates the very first image as soon as it preloads. For more details of how I am using this, I am actually using the Prototype script framework which makes this image gallery work. Is

[jQuery] Re: Question related to Javascript

2009-02-08 Thread MH1988
Sorry, just also to mention, I am integrating this within WordPress and I am using the jQuery framework for another gallery. On Feb 8, 9:58 pm, MH1988 m.lawrencehu...@gmail.com wrote: Thanks so much for the help. I'm afraid it still isn't working correctly. I tried [0] which to me means it

[jQuery] dropping between items that have no gap between them

2009-02-08 Thread Rene Veerman
Hi.. Quick question about drag-n-drop with jQuery UI. For my CMS, I have a admin tree of items of various types, that i want to enable drag-n-drop between. I aim to emulate windows explorer in most aspects of operations, with some improvements ofcourse. I had already found a drag-n-drop

[jQuery] problem with superfish plugin

2009-02-08 Thread sranabhat
hi i used superfish menu on my project i got problem with IE6. that menu appears backside of my sliding image. how can i solve this problem if any one can help me? please help me as soon as possible. u can check problem on my site http://ihricon.org.np

[jQuery] gm jq mushup post

2009-02-08 Thread majid foladpour
Hi all, I am writing a greasemonkey user script which uses jquery for most things it does. the user script is supposed to work on a page with lots of elements i want to discard so that focusing on the main content is easier. this part is easy, i just select the div containing what i want and

[jQuery] Re: Does it hurt to call functions that don't do anything on the page?

2009-02-08 Thread Beau
Thanks for the ideas everyone! @Stephan: Yes, it's in an external JS file. I'd prefer to not have to do any inline javascript. I've considered it, but thanks for the suggestion! @Ricardo: Thanks for those. I may end up doing a variation of them. On Feb 8, 4:50 am, Stephan Veigl

[jQuery] $(element in other iframe)

2009-02-08 Thread Ami
Can I use jQuery to work with elements in other frames? For Example: html iframe id=frame1/iframe script $(#frame1 document) OR $(document, $(#frame1)) /script

[jQuery] Numbering ... Could someone please help me out with this?

2009-02-08 Thread shapper
Hi, I am adding list items to a list as follows: $('#AddTheme').bind('click', function(){ // Other code $theme = $('li class=Themes/li').appendTo ('#Themes'); $theme.append('input type=hidden name=Themes[0].Subject value = ' + $subject.val() + ' /');

[jQuery] Re: $(element in other iframe)

2009-02-08 Thread Stephan Veigl
Hi Ami you can access an iframe with: var frame = window.frames[0].document; -or- var frame = $(#iframe)[0].contentDocument; var div = $(div, frame); just remember to wait until the iframe has been loaded. by(e) Stephan 2009/2/8 Ami aminad...@gmail.com: Can I use jQuery to work

[jQuery] css or cookie problem with ie6?

2009-02-08 Thread Anthony Brown(Worcester Wide Web)
Hi Everyone, does anyone know if ie6 has limitations with cookies or the jquery css? I have this code which works great in ie7 and firefox. It detects if the maiLNav cookie is set and displays accordingly. In ie6 it seems to ignore the check. http://pastebin.com/m6c227f24

[jQuery] Re: css or cookie problem with ie6?

2009-02-08 Thread Anthony Brown(Worcester Wide Web)
Ok actually i narrowed it down to a cookie because when i alert the cookie it returns null. So that leads me to believe that the cookies arent working proper in ie6? here is my code that sets the cookie http://pastebin.com/m2390bf8e Does anyone see anything wrong wtih that? Thanks allot

[jQuery] Re: Numbering ... Could someone please help me out with this?

2009-02-08 Thread Stephan Veigl
Hi Miguel, you could use a global counter. e.g. var themesCounter = 0; $('#AddTheme').bind('click', function(){ ... $theme.append('input type=hidden name=Themes[themesCounter].Subject value = ' + $subject.val() + ' /'); ... themesCounter++; });

[jQuery] Re: Deep $.extend() doesn't work with Date objects

2009-02-08 Thread Tin
I can see why it is working the way it does, but it seems like a clear and easily fixable bug to me. $.extend() could be made aware of the intrinsic JavaScript objects so that they are copied (i.e. recreated) properly. On Feb 5, 3:11 pm, Stephan Veigl stephan.ve...@gmail.com wrote: Hi, this

[jQuery] Re: alignment IN IE6 ... with jquery..

2009-02-08 Thread shyhockey...@gmail.com
did you go to the home button??? and type username TEST all caps for both the user name and password? in the account I use jquery for the javascript. when you look at the page in IE7 and IE6 you will see the menu and other stuff all positioned in weird places and the menu is shown in a random

[jQuery] Re: Need to make a edit layout system using php and jquery...?

2009-02-08 Thread shyhockey...@gmail.com
Ok, Now I am having trouble using php with css. I made a php file with the header content text/css and the css works kinda.. the render is not proper. the htmlcheck button is supposed to display at the footer and it is being displayed in the top left corner of the screen. On Feb 6, 3:15 am,

[jQuery] scrollTo plugin failing with no errors or warnings

2009-02-08 Thread Barney
Could somebody tell me how this is managing to go wrong? Site is at antoniocaniparoli.co.uk/wip I am trying to animate movement between # locations on the page — the #s being references to images in a gallery. Each image has a little caption at the bottom giving its position in the list and

[jQuery] Re: Help : Difficulty binding event to selected jQuery object

2009-02-08 Thread Ricardo Tomasi
Maybe it's just a typo, but you're creating a div with the ID toolbar_button_target ...prepend(div class='toolbar_button' id='toolbar_button_target'... and then calling it with a class selector: $(.toolbar_button_target) is that right? On Feb 7, 5:38 pm, James S jamespstrac...@gmail.com

[jQuery] jQuery + Validation: submit() is sending multiple form submits

2009-02-08 Thread zubin
I'm having a problem with validating first then submitting a form with jQuery after success. It works however it seems like my submit() function keeps sending multiple submits and keeps growing each time i reuse the form (i made sure the values are reset after each submit). I'm not sure if its my

[jQuery] Re: validation remote

2009-02-08 Thread Kris
Another figure out the solution for this? I am having a similar problem. Thanks guys, Kris On Dec 15 2008, 4:17 am, Jet webones...@hotmail.com wrote: Hi, Sounds like we are having the same problem. I have posted about the problem in this thread.

[jQuery] Re: Block UI problem

2009-02-08 Thread Rodolfo Allan
Hi! I've found a way to work workaround it. I've moved that style at unblockui callback. Thanks. Rodolfo. 2009/2/7 Mike Alsup mal...@gmail.com I'm having problems with BlockUI plugin. For some reason it applies style=poistion: relative; to parent div and this mess up with my contextMenu

[jQuery] Re: please help me for the performance

2009-02-08 Thread David .Wu
I think so, but it's the requirement, so maybe there is another way to achieve it, I still figure on it. On 2月7日, 下午3時23分, jQuery Lover ilovejqu...@gmail.com wrote: Removing image reflection might improve performance... Read jQuery HowTo Resource - http://jquery-howto.blogspot.com

[jQuery] selector to return the number of rows in a table before the row I just selected

2009-02-08 Thread pantagruel
Hi, I am selecting the row of a table. I would like to be able to count how many rows there are in the table before the row I just selected. i suppose there is a jQuery selector that will do this. Thanks

[jQuery] rookies in jQuery and grid

2009-02-08 Thread Alain Roger
Hi, i'm newbie to jQuery however i watched those videos on internet and it seems that jQuery is a very powerful library now. i have a grid/table that i would like to create using jQuery, it would be a wonderful try from my side. I know that some tables and grids plug-ins already exist but i want

[jQuery] pager plugin

2009-02-08 Thread irms
All, I'm using the pager plugin (http://rikrikrik.com/jquery/pager/) to work through a mysql result set that is broken up into divs. I'd like to preserve back button functionality when using this plugin. I've seen the history plugin (http://plugins.jquery.com/project/ history) which looks

[jQuery] Re: tooltip - image preview does not respect window border

2009-02-08 Thread snooper
Hi there I am in the same position. I see you suggested a different script all together, from bassistance.de, instead of the original one from cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery . The one you suggested is much more than i need. Was anyone able to modify the

[jQuery] [Validate] list of metadata options?

2009-02-08 Thread Raymond Camden
I may be missing something obvious. The docs for Validation (http:// docs.jquery.com/Plugins/Validation) are very clear on the JavaScript API. But I'm trying to find documentation on what is supported in metadata. The example uses: input id=cemail name=email size=25 class=required email /

[jQuery] Re: Optimize large DOM inserts

2009-02-08 Thread Kevin Dalman
I identified why the $(table /).append syntax is so extremely slow in the sample page. It actually has nothing to do with being a 'second DOM append' as was assumed. Here is what I learned from my testing... This is the HTML mark-up for the tests: BODY DIV id=container/DIV TABLE

[jQuery] Re: dynamically inserted droppable

2009-02-08 Thread Chris
Nothing guys? Still couldn't figure it out on my own. Everything appreciated. On Feb 7, 6:20 pm, Chris ch0...@googlemail.com wrote: Hi, I am relatively new to developing applications with both javascript and the jquery framework. What I can't figure out is what to do if I dynamically insert

[jQuery] Re: jQuery + Validation: submit() is sending multiple form submits

2009-02-08 Thread James
Every time you're doing: you're re-attaching an additional submit event to the form, so it's executing it multiple times every time you submit. What is it you're trying to do? When you define submitHandler for validate, you should be doing whatever you're doing in $(form).submit () inside the

[jQuery] Re: jQuery + Validation: submit() is sending multiple form submits

2009-02-08 Thread James
Hmm.. code didn't display properly. I wanted to say, every time you're doing $(form).submit(...) you're re-attaching an additional submit... On Feb 8, 9:13 am, James james.gp@gmail.com wrote: Every time you're doing: you're re-attaching an additional submit event to the form, so it's

[jQuery] Re: Optimize large DOM inserts

2009-02-08 Thread Kevin Dalman
Rick, based on what I've learned from testing, you have another option now... Here is a modified version of Mike's code - without generating the table. function populateDutyTable(response) { var currentDay = ''; var rows = response.QGETDUTYSCHEDULE.DATA; var out =

[jQuery] Re: selector to return the number of rows in a table before the row I just selected

2009-02-08 Thread James
Assuming row means the number of tr, and your tables looks like: table trtddata/td/tr trtddata/td/tr trtddata/td/tr trtddata/td/tr trtddata/td/tr /table you can do something like: var count = $(table tr).length; http://docs.jquery.com/Core/length On Feb 8, 8:23 am,

[jQuery] Re: selector to return the number of rows in a table before the row I just selected

2009-02-08 Thread James
Oops, I misread. You wanted the count before the one you selected. Please disregard my response! On Feb 8, 9:22 am, James james.gp@gmail.com wrote: Assuming row means the number of tr, and your tables looks like: table      trtddata/td/tr      trtddata/td/tr      trtddata/td/tr      

[jQuery] Re: selector to return the number of rows in a table before the row I just selected

2009-02-08 Thread James
I did a search but I could only find a selector that selected after something: http://docs.jquery.com/Selectors/siblings#prevsiblings can help. Maybe you can get the total rows count, subtract from the count from prev ~ siblings (and probably subtract 1 also). I hope that helps somewhat. On Feb

[jQuery] Re: Accordians in Tabs works correctly on IE but not Firefox

2009-02-08 Thread James
What does working correctly (or not working) mean? I'm using FF 3.0.6 and it seems to be functioning correctly. I click on the boxes on the left (test tools, graphing, etc.) and the tabs box changes. I click on the tabs in that box and it seems to be switching tabs as expected. On Feb 7, 11:41 

[jQuery] Re: jQuery + Validation: submit() is sending multiple form submits

2009-02-08 Thread zubin
Hi James! Thanks for the quick reply. I'm still confused as to where I should place my $(form).submit(..). so i'm not re-attaching additional submit events? What i'm doing basically is: 1. have Validate pass the form 2. submit the form via ajax The only thing is that the form is always being

[jQuery] select after AJAX

2009-02-08 Thread Piotr
I am trying to make chained select. I have three selects: type, category, product. I created ajax response conected to change of type or category. When I change type select (list types is static, taking from base by php), ajax give mi the list of category. It works. But after this, when I want to

[jQuery] Re: Jquery pagination plugin problem

2009-02-08 Thread deviateDesigns
How would set this up with list items and pulling from a external html file? I am new to using this library. On Feb 6, 8:28 pm, nate laws natel...@gmail.com wrote: I just tried this plugin for the first time today.  The think to realize is that it does not directly have anything to do with

[jQuery] Optimize Horizontal Scroll Interface

2009-02-08 Thread Ian
Hello Peoples. I have been working on an interface using the jquery plugin ScrollTo. I have large left and right buttons which scroll the page content left and right. 10 items are displayed at a time, when the visitor is on item 10 the left and right buttons load the page with next or previous

[jQuery] Wmode Flash in an iframe

2009-02-08 Thread Ian
Hello. I've got an annoying problem with flash widget embeds always being on top of absolute positioned divs. The problem comes that one widget is an iframe, and within that iframe is the flash without wmode set. I can't seem to access the flash properties with jquery, I think due to cross

[jQuery] Re: jQuery + Validation: submit() is sending multiple form submits

2009-02-08 Thread Jörn Zaefferer
Try this: $(#form-external-link).validate({ rules: { exlink_url: { required: true, url: true } }, submitHandler: function(form) { alert('This will pop up only once as it should');

[jQuery] Re: selector to return the number of rows in a table before the row I just selected

2009-02-08 Thread Ricardo Tomasi
you should be looking at http://docs.jquery.com/Traversing var currentRow = $('table tr').eq(7); var howManyBefore = currentRow.prevAll('tr').length; cheers, - ricardo On Feb 8, 3:23 pm, pantagruel rasmussen.br...@gmail.com wrote: Hi, I am selecting the row of a table. I would like to be

[jQuery] Re: [Validate] list of metadata options?

2009-02-08 Thread Jörn Zaefferer
All documented methods are supported that way, with the exception of methods that require a parameter. Available methods are documented here: http://docs.jquery.com/Plugins/Validation#List_of_built-in_Validation_methods Jörn On Sun, Feb 8, 2009 at 7:38 PM, Raymond Camden rcam...@gmail.com

[jQuery] Re: validation remote

2009-02-08 Thread Jörn Zaefferer
This is probably a bug that occurs only in combination of error containers and the remote methods. I'll look into it. Jörn On Sun, Feb 8, 2009 at 6:07 PM, Kris k...@kriskhoury.com wrote: Another figure out the solution for this? I am having a similar problem. Thanks guys, Kris On Dec 15

[jQuery] Re: [Validate] list of metadata options?

2009-02-08 Thread Raymond Camden
Hmm. So a min check is not available since it requires a value, but url is because it does. I guess that makes sense. But is that actually documented though? On Feb 8, 4:17 pm, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: All documented methods are supported that way, with the exception

[jQuery] Re: hide()

2009-02-08 Thread Aaron Gundel
http://www.w3.org/TR/html4/struct/global.html#adef-id HTML standards state that the id attribute should be unique in an html document. Use class or somesuch. Then you can do something like $(.trContactInfo).hide() and it will hide everything. A. Gundel On Sun, Feb 8, 2009 at 1:30 PM,

[jQuery] [autocomplete] send a json object?

2009-02-08 Thread arnoldroa
Hi, i need to send a json object to the autocompleter. i see this example on the demo: $(#thickboxEmail).autocomplete(emails, { minChars: 0, width: 310, matchContains: true, highlightItem: false, formatItem:

[jQuery] Re: [autocomplete] send a json object?

2009-02-08 Thread Jörn Zaefferer
Check this example for using remote data with JSON: http://dev.jquery.com/view/trunk/plugins/autocomplete/demo/json.html Jörn On Sun, Feb 8, 2009 at 11:53 PM, arnoldroa mano...@gmail.com wrote: Hi, i need to send a json object to the autocompleter. i see this example on the demo:

[jQuery] reloading new objects from json

2009-02-08 Thread pedalpete
I've got a ajax request that grabs a json response. In order to be able to sort and get data from the response, I put the response into a few objects using [code] function(jsondata){ var dates={}; var ids={}; $.each(jsondata.entry, function(){

[jQuery] Re: selector to return the number of rows in a table before the row I just selected

2009-02-08 Thread Karl Swedberg
You could use prevAll() $('#myrow').prevAll().length; --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 8, 2009, at 2:30 PM, James wrote: I did a search but I could only find a selector that selected after something:

[jQuery] Re: selector to return the number of rows in a table before the row I just selected

2009-02-08 Thread Karl Swedberg
Oops. Sorry, I didn't see Ricardo's reply before posting. In any case, there's no need to filter the .prevAll() with 'tr', since no other element is allowed as a sibling of a tr. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 8, 2009, at 6:06 PM,

[jQuery] Using jQuery Validation with Dot Net

2009-02-08 Thread Jon
I'm having issues getting the validation plugin (http://bassistance.de/ jquery-plugins/jquery-plugin-validation/) to work with dot net. Whatever i try i can't stop the form from submitting. I've tried several things i've found on this group and the web. Can anyone help me getting this to work?

[jQuery] Convert from AjaxRequest to jQuery/ajax

2009-02-08 Thread Tim Johnson
For some time I've been using a little ajax library called AjaxRequest. Because I'm working with code generation tools, I'd like to make a first - step switch to jQuery as simple as possible. A sample AjaxRequest function follows: function CheckForm0(theform) { AjaxRequest.submit(

[jQuery] Re: dynamically inserted droppable

2009-02-08 Thread Richard D. Worth
After you add the element to the page, just call .droppable() on it. $('div class=usergroupnew user group/div').appendTo('#container_usergroups').css('display', 'none').fadeIn('slow').droppable(options); - Richard On Sat, Feb 7, 2009 at 12:20 PM, Chris ch0...@googlemail.com wrote: Hi, I am

[jQuery] Re: Using jQuery Validation with Dot Net

2009-02-08 Thread Aaron Gundel
Do you have an internet facing page set up to view this? On Sun, Feb 8, 2009 at 2:30 PM, Jon cakeordeat...@gmail.com wrote: I'm having issues getting the validation plugin (http://bassistance.de/ jquery-plugins/jquery-plugin-validation/) to work with dot net. Whatever i try i can't stop the

[jQuery] Re: Form Plugin with file upload

2009-02-08 Thread Susie Sahim
Mike, thank you so much for your patience with me on this one. I've created a simplified version of this page taking out all of the css and unnecessary javascript. all that is there is jquery, form plugin, and the few functions used for the page: http://www.paperdemon.com/tests/comments_plain.php

[jQuery] Re: Convert from AjaxRequest to jQuery/ajax

2009-02-08 Thread pedalpete
I believe the code you are looking for would be something like this [code] $('form').submit(function(){ var cell1 = $('#cell1').html(); var div1= $('#div1).html(); var span1=$('#span1).html(); $.ajax({ type: GET, url : 'urlToGet.php', data:

[jQuery] Re: jQuery + Validation: submit() is sending multiple form submits

2009-02-08 Thread James
Since you wanted do submit by Ajax; $(#form-external-link).validate({ rules: { exlink_url: { required: true, url: true } }, submitHandler: function(form) { $.ajax(...); } });

[jQuery] Re: Convert from AjaxRequest to jQuery/ajax

2009-02-08 Thread Tim Johnson
On Sunday 08 February 2009, pedalpete wrote: I believe the code you are looking for would be something like this Hi pedalpete: Thanks you for the quick response. [code] $('form').submit(function(){ var cell1 = $('#cell1').html(); var div1= $('#div1).html(); var span1=$('#span1).html();

[jQuery] Re: Does it hurt to call functions that don't do anything on the page?

2009-02-08 Thread mkmanning
You could also just keep the list of functions in an array in your external js file and then check the window object for them: $(function() { var funcs = [ 'ManageCategoriesClick', 'HideByDefault', 'PrepareSplitForm', 'SetUpAdvertPopup', 'CheckAll',

[jQuery] Re: Does it hurt to call functions that don't do anything on the page?

2009-02-08 Thread mkmanning
*Tab+spacebar and it posts :P You could put your list of functions in an array in your external js, then call them on the window object in a loop: $(function() { var funcs = [ 'ManageCategoriesClick', 'HideByDefault', 'PrepareSplitForm',

[jQuery] Re: Convert from AjaxRequest to jQuery/ajax

2009-02-08 Thread pedalpete
Sorry Tim, I didn't understand it that way. You should still be able to do this fairly simply. You don't have to specify the url, you can pass it as a variable. But you would need to put your $.ajax function into another function, and call it when clicked. You can also build the data variables

[jQuery] Newbie Questions

2009-02-08 Thread graham.reeds
I'm a newbie at jQuery so bear with me here. For the relevant stats: I am using FF3.0.6, jQuery I am attempting to recreate the Spain Map from Pragmatic Ajax. I did it with GWT and now I am recreating it (or trying to) with jQuery. The GWT version I did also support mouse wheel for zooming.

[jQuery] .hasClass() not behaving as expected.

2009-02-08 Thread MiD-AwE
Please help, I've been wrestling with this for too long now. I've put together this code to change the background of a div when the mouse hovers over a list of divs. One of the listed divs has a class name of ash and I want to add a background image on that one hover; all of the other listed

[jQuery] Re: .hasClass() not behaving as expected.

2009-02-08 Thread mkmanning
In your code you're attaching the hover event to the anchor tags; in the sample html none of the anchors has a class (the class is on the parent li element). On Feb 8, 4:24 pm, MiD-AwE cr.midda...@gmail.com wrote: Please help, I've been wrestling with this for too long now. I've put together

[jQuery] Re: Newbie Questions

2009-02-08 Thread graham.reeds
I've now got it working, using the syntax I used in the first instance... Now I need to figure out what part of the fiddling I performed fixed my problem... G. On Feb 9, 1:20 am, graham.reeds graham.re...@gmail.com wrote: I'm a newbie at jQuery so bear with me here. For the relevant stats:

[jQuery] Re: Using jQuery Validation with Dot Net

2009-02-08 Thread RobG
On Feb 9, 8:30 am, Jon cakeordeat...@gmail.com wrote: I'm having issues getting the validation plugin (http://bassistance.de/ jquery-plugins/jquery-plugin-validation/) to work with dot net. Whatever i try i can't stop the form from submitting. I've tried several things i've found on this

[jQuery] Re: Convert from AjaxRequest to jQuery/ajax

2009-02-08 Thread Tim Johnson
On Sunday 08 February 2009, pedalpete wrote: Sorry Tim, I didn't understand it that way. :-) You should still be able to do this fairly simply. Looks like I will also have to use a wrapper to get the form using the 'this' keyword, since I work with multiple forms. I think I can get what I

[jQuery] Calling SimpleModal .modal

2009-02-08 Thread markcorgan
jQuery n00bie here. I have the following script that is called from the onclick event of a link: function getUserModsAsList(obj) { jQuery(document).ready(function() { var userID = obj.getAttribute('userid'); jQuery.ajax( { type:

[jQuery] Re: Form Plugin with file upload

2009-02-08 Thread Mike Alsup
I just upgraded the plain page to the latest version of jquery and the form plugin. And I noticed that with the new version, it does not make it to the success callback and you'll see this when you submit the form it gets stuck on the loading... text This was likely a bug fix of some kind.

[jQuery] Accordian not sliding out when specifying autoheight:false

2009-02-08 Thread James Farrell
I have been trying to implent an accodian that requires a click to open and a click to close. This is working fine here: http://jamespfarrell.com/dev/consult3fixedheight.htm all of the divs that contain the data are being returned as the same height as the largest of them all... so I added

[jQuery] Validation Plugin: Too Much Recursion

2009-02-08 Thread Cutter
I have an odd thing happening with the Validation Plugin (latest build on JQuery 1.3). I have several forms setup on a page, with validation on two. My first works fine, but my second keeps giving me errors in Firebug about 'too much recursion'. The configs for these two form validations are

[jQuery] get visibility state after toggle()

2009-02-08 Thread brian
How can I tell what the visibility state of an element is which has just been toggled? Is my selector no good or is it a matter of timing? . The situation is that I'm displaying a page of search results. I'd like the advanced search features to be present at the top but I'd prefer to hide them.

[jQuery] Re: jQuery UI Tabs Flash

2009-02-08 Thread Chris
I searched the archives, but I couldn't find an answer. For some reason the tabs, when initialized flashes, three times.  Any idea why? http://www.chris-gwen.com/ I fixed it. I need this at the end of document.ready() $('body').append('style type=text/css.ui-tabs-hide {display:none}/

[jQuery] Re: Validation Plugin: Too Much Recursion

2009-02-08 Thread James
Since you can't show any code, with only what I see there should not be any issues... That is, there is no issue with using two validate functions on two different forms, each with it's own set of rules. You're going to have to show more code for us to get to down to the issue. On Feb 8, 5:54 

[jQuery] Re: hide()

2009-02-08 Thread WebAppDeveloper
Great, thank you very much, Aeron. Using class as you suggested is what I'll do. Aaron Gundel wrote: http://www.w3.org/TR/html4/struct/global.html#adef-id HTML standards state that the id attribute should be unique in an html document. Use class or somesuch. Then you can do something

[jQuery] test for css selector capability?

2009-02-08 Thread Geuis
I'm working on a project where I need to detect if the browser natively supports a given CSS selector. For example, if I am using the selector 'ul li:first-child', this is supported by IE7, FF, and Safari but not by IE6 and below. Is there a way that I can test that selector to see if the

[jQuery] Passing a Index to a function

2009-02-08 Thread Pedram
Dear folk, I want to get the index of the TR and send it to the Function , I don't know how to it . this is what I'm trying to do $(table tr).bind(click,{IndexName:$(this).index(this)},clickFunc) function clickFunc(event){ console.log(event.data.IndexName); }

[jQuery] How to make hyperlink failed

2009-02-08 Thread David .Wu
If I got a hyperlink a href=http://xxx.com; id=xx/a $(function() { $('#xxx').click(function() { . ..//do something }); }) I want to make the link doing something if browser opened javascript, and if not, it go to the page it referred.

[jQuery] Re: Passing a Index to a function

2009-02-08 Thread Geuis
$(table tr).click(function() { clickFunc($('table tr').index(this); }); On Feb 8, 10:54 pm, Pedram pedram...@gmail.com wrote: Dear folk, I want to get the index of the TR and send it to the Function , I don't know how to it . this is what I'm trying to do $(table

[jQuery] Re: How to make hyperlink failed

2009-02-08 Thread Geuis
I think you're asking, how do you prevent a link from doing anything when the browser has javascript enabled. $('#xxx').click(function(){ //your stuff return false; } On Feb 8, 11:22 pm, David .Wu chan1...@gmail.com wrote: If I got a hyperlink a href=http://xxx.com; id=xx/a $(function()

[jQuery] Re: How to make hyperlink failed

2009-02-08 Thread David .Wu
yup, that's what I want, thank you very much. On 2月9日, 下午3時27分, Geuis geuis.te...@gmail.com wrote: I think you're asking, how do you prevent a link from doing anything when the browser has javascript enabled. $('#xxx').click(function(){ //your stuff return false; } On Feb 8, 11:22 pm,

[jQuery] Re: selector to return the number of rows in a table before the row I just selected

2009-02-08 Thread RobG
On Feb 9, 4:23 am, pantagruel rasmussen.br...@gmail.com wrote: Hi, I am selecting the row of a table. I would like to be able to count how many rows there are in the table before the row I just selected. i suppose there is a jQuery selector that will do this. Not necessary - table rows

[jQuery] Re: Passing a Index to a function

2009-02-08 Thread RobG
On Feb 9, 4:54 pm, Pedram pedram...@gmail.com wrote: Dear folk, I want to get the index of the TR and send it to the Function , I don't know how to it . this is what I'm trying to do $(table tr).bind(click,{IndexName:$(this).index(this)},clickFunc) The DOM 2 HTML TR.rowIndex property

[jQuery] Re: jQuery + Validation: submit() is sending multiple form submits

2009-02-08 Thread zubin
Hey Jörn thanks for the reply, good to know! I went with James solution which is perfect for what i'm working with. Thanks again guys. On Feb 9, 9:07 am, James james.gp@gmail.com wrote: Since you wanted do submit by Ajax; $(#form-external-link).validate({        rules: {                

[jQuery] Re: Question related to Javascript

2009-02-08 Thread MH1988
Would be great if someone could still help me out? On Feb 8, 10:01 pm, MH1988 m.lawrencehu...@gmail.com wrote: Sorry, just also to mention, I am integrating this within WordPress and I am using the jQuery framework for another gallery. On Feb 8, 9:58 pm, MH1988 m.lawrencehu...@gmail.com