[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-12 Thread Don Dunbar
Hi , I double checked on javascript's XOR operator and it only works with bitwise: so you will have to write your own XOR . This isn't hard : [code] if (!foo != !bar) [\code] should work for all elements. or this [code]if( ( foo !bar ) || ( !foo bar ) )[\code] For the validator method

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-12 Thread Satyakaran
whats the problem? just check one field, it it is filled then do not check other. may be your problem is something else On Oct 11, 8:37 am, Phper hi.steven...@gmail.com wrote: There are two input fields in a form, but only one of them is required, they are not required at the same time. Either

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-12 Thread Phper
I am not familiar with the syntax of Jquery plugin. On Oct 12, 2:19 pm, Don Dunbar salemd1s...@gmail.com wrote: Hi , I double checked on javascript's XOR operator and it only works with bitwise: so you will have to write your own XOR . This isn't hard :   [code] if (!foo != !bar)  [\code]

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-12 Thread Don Dunbar
I thought of a much simpler solution. If possible could you use radio buttons for those two choices in your HTML? In a radio button group selecting one automatically deselects other buttons in the group. Then you could just use one of the built in validation checks, as you already have done, to

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-12 Thread Phper
No, I can not use radio. At the help of a veteran programmer, I was able to write the following code and it works. script type=text/javascript src=http://code.jquery.com/jquery- latest.js/script script type=text/javascript src=http://dev.jquery.com/view/trunk/

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-12 Thread Gordon
If you're using the Metadata plugin and inline rules: input type=text id=a class={validate:{required:'#b:blank'}} / input type=text id=b class={validate:{required:'#a:blank'}} / I've not actually tested it but it should work. On Oct 11, 4:37 am, Phper hi.steven...@gmail.com wrote: There are

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-12 Thread Phper
How to change the default position of an error message in Jquey form validation plugin? On Oct 12, 4:33 pm, Gordon grj.mc...@googlemail.com wrote: If you're using the Metadata plugin and inline rules: input type=text id=a class={validate:{required:'#b:blank'}} / input type=text id=b

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-12 Thread Phper
Also, how to prevent a user filling out both fields? On Oct 12, 4:48 pm, Phper hi.steven...@gmail.com wrote: How to change the default position of an error message in Jquey form validation plugin? On Oct 12, 4:33 pm, Gordon grj.mc...@googlemail.com wrote: If you're using the Metadata

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-12 Thread Phper
Also, how to prevent a user filling out both fields? On Oct 12, 4:48 pm, Phper hi.steven...@gmail.com wrote: How to change the default position of an error message in Jquey form validation plugin? On Oct 12, 4:33 pm, Gordon grj.mc...@googlemail.com wrote: If you're using the Metadata

[jQuery] Re: Hide checkbox when choosen value in select 0

2009-10-12 Thread Tan
Thanks Brian. It's very work. On Oct 11, 10:55 pm, brian bally.z...@gmail.com wrote: On Sat, Oct 10, 2009 at 1:45 PM, Tan it_qn2...@yahoo.com wrote: Hello, span id=thmr_5 class=thmr_call  div class=form-item id=edit-sitewide-wrapper  label class=option for=edit-sitewideinput

[jQuery] Re: $.post() speed

2009-10-12 Thread Adonis
Yeap, thanks fof the helping out!! I still may have some more questions and if so, i ll post some more! Kind regards, On Oct 9, 5:43 pm, MorningZ morni...@gmail.com wrote: You've got the x set inside the callback and are trying to alert it *before* it gets back from it the $.postcall, hence

[jQuery] [form] stop success message return if validation fails on server side

2009-10-12 Thread HairyJim
Hi all, I am making a call to a php file which right at this minute has no validation, all validation is been done by the jquery form plugin. I post to the thanks file but if the validation (xss prevention soon to be implemented) in the thanks fails I want to stop the processing of the form i.e.

[jQuery] AutoHeight IFrame

2009-10-12 Thread Cakka
Hello, i want to make a iframe page that loading a page from other site. I have try jQuery iFrame Sizing to set auto height in iframe... but it is failed. What's the problem...? This is my code : - on Head script type=text/javascript src=js/jquery.js/script script

[jQuery] the implementation of jQuery.boxModel

2009-10-12 Thread Keeper
in jq-1.2.5, jQuery.boxModel = !jQuery.browser.msie || document.compatMode == CSS1Compat but in jq-1.3.2, jQuery(function(){ var div = document.createElement(div); div.style.width = div.style.paddingLeft = 1px;

[jQuery] Changing a text in a div

2009-10-12 Thread Fynci
I am very very new to Jquery, being more of a designer than a programmer. I have a fairly (I believe) simple issue, that I'm hoping you will be able to assist with. I have a div class called child-pages, that calls up some text in h2 tags, which says Children Pages. I am wanting to use a simple

[jQuery] jQuery Documentation for Visual Studio

2009-10-12 Thread Paul
Hi, I have VS Express 2008 SP1 and Patch VS90SP1-KB958502-x86 installed. I can't get VS Intellisense to work for , jQuert 1.3.2. When i ex. type $, I get this: The object is not compatible with this property or method @ 2139:1 If I change to jQuery 1.2.6 it works well? Any suggestions to what I

[jQuery] no filenames list in multi-upload control

2009-10-12 Thread Jivanmukta
Hello, I wrote: html lang=pl head ... script src=jquery-latest.js type=text/javascript language=javascript/script script src=jquery.MultiFile.js type=text/javascript language=javascript/script script src=jquery.form.js type=text/javascript

[jQuery] Re: jQuery/JSON forms issue: tries to download response

2009-10-12 Thread Jim
On Oct 10, 9:16 am, Jim stapleton...@gmail.com wrote: On Oct 9, 8:50 pm, MorningZ morni...@gmail.com wrote: it's supposed to be application/json, not text/json. set the content type properly in your server side code and you'll be fine... text/plain will work as well After some

[jQuery] Re: Changing a text in a div

2009-10-12 Thread amuhlou
You'd probably want to use the text() or html() method for this. Assuming the h2 tags in question are inside the child-pages div, your code would be something like this: $(function(){ $('.child-pages h2').text(Sub-pages); }); On Oct 12, 9:56 am, Fynci fyncimy...@gmail.com wrote: I am

[jQuery] Re: the implementation of jQuery.boxModel

2009-10-12 Thread Dave Methvin
I wanna know why the implementation of jQuery.boxModel changed? Most likely because it was using browser detection via the userAgent, which is not reliable. If it's causing trouble, make a post in the jQuery-dev group with an example.

[jQuery] How to Sort an Unordered List - TinySort

2009-10-12 Thread tfat
Hi, I have the following DOM structure (unordered list), that I would like to sort on the a href tag name using jQuery – specifically the TinySort plug-in http://plugins.jquery.com/project/TinySort Structure is as follows: div id=refmenu ul id=list lia title=Google href=Google/a/li lia

[jQuery] Re: jQuery/JSON forms issue: tries to download response

2009-10-12 Thread MorningZ
This change failed to remedy the problem As it shouldn't... because the bottom line is: the browser makes the request and the browser receives the request, and when the browser sees text/json come back from the server, it has no idea what to do with it so it prompts to download the file

[jQuery] Re: jQuery Documentation for Visual Studio

2009-10-12 Thread Karl Swedberg
The error you're getting is caused by an @ symbol in one or more your attribute selectors. This syntax was removed in jQuery 1.3.x. Just remove the @ from the selector(s) and you should be fine. For example, change $('a...@href=somthing.html]') to $ ('a[href=somthing.html]') . For more

[jQuery] Re: using jquery ui plugin to make carousel effect

2009-10-12 Thread Richard D. Worth
If you view the html of that demo, one of the files included is ui.carousel.js : http://jquery-ui.googlecode.com/svn/branches/labs/carousel/ui.carousel.js http://jquery-ui.googlecode.com/svn/branches/labs/carousel/ui.carousel.jsIf you include that in addition to jQuery and jQuery UI (or at least

[jQuery] Re: Jcarousel Add Link

2009-10-12 Thread Jon Banner
add links to your item list something like: {url: http://static.flickr.com/66/199481236_dc98b5abb3_s.jpg;, title: Flower1, link:http://wherever.com/}, and then update the helper function to something like: function mycarousel_getItemHTML(item) { return 'a href='+item.link+'img src=' +

[jQuery] Re: jQuery Documentation for Visual Studio

2009-10-12 Thread MorningZ
Paul, you'll also find that a good amount of plugins also stop Intellisense from working, using -vsdoc.js on a blank copy of the plugin gets around that Great blog post with tons of tips and tricks on jQuery + Studio:

[jQuery] Re: jQuery Documentation for Visual Studio

2009-10-12 Thread Evgeny Bobovik
Try to use instead of the $ operator jQuery. for example: instead of $(document).ready(); write jQuery(document).ready(); Gk___ 2009/10/12 Paul rcmdk...@gmail.com: Hi, I have VS Express 2008 SP1 and Patch VS90SP1-KB958502-x86 installed. I can't get VS Intellisense to work for , jQuert

[jQuery] Re: no filenames list in multi-upload control

2009-10-12 Thread Evgeny Bobovik
Scripts script src=jquery-latest.js type=text/javascript language=javascript/script and script src=jquery.js type=text/javascript language=javascript/script is same. They may conflict with each other, look at the JavaScript console in your browser. Gk___ 2009/10/12 Jivanmukta

[jQuery] Re: jQuery Documentation for Visual Studio

2009-10-12 Thread MorningZ
the $ works perfectly fine in Studio, there's zero need to use jQuery unless something is included that needs the dollar sign instead On Oct 12, 10:25 am, Evgeny Bobovik bobo...@gmail.com wrote: Try to use instead of the $ operator jQuery. for example: instead of $(document).ready(); write

[jQuery] Re: [form] stop success message return if validation fails on server side

2009-10-12 Thread Evgeny Bobovik
Try to rewrite thanks.php so that it returns the data you need in case of success, and in case of error: ie judging from your code, in case of success of thanks.php should return the following data: div id=message style=display: none; h2Contact Form Submitted!/h2 pWe will be in touch soon./p

[jQuery] Re: Newbie trying to Ajax in IE8

2009-10-12 Thread Evgeny Bobovik
I would recommend you create somewhere on the main HTML page hidden field (example: div id=hidden-field style=display: none; / div) and after receiving data using ajax immediately put them in. this element, and all subsequent processing is performed on the data already located in this field. Upon

[jQuery] Low Pro instance talking to each other

2009-10-12 Thread paulroon
Hey all, I'm pretty new to Low Pro for jQuery and trying to get things right first time around http://www.danwebb.net/2008/1/31/low-pro-for-jquery I am trying to get multiple instances of low pro behaviors to fire custom events in other low pro behavior / instances. I do have a solution that

[jQuery] Re: Display fails when jQuery.js isn’t ca ched. When cached, page displayed OK.

2009-10-12 Thread Lance May
Bob, Working on quite a bit of jQuery AJAX over the past week or so, I've noticed similar side-effects. I have no idea if my issues are related to yours, but 90% of my problems were solved by using the callbacks instead of expecting that linear execution would be fine with the few things I

[jQuery] jQuery Star Rating Plugin v3.12

2009-10-12 Thread Cell
Hey guys, i want to get rid of the cancel rating button that appears next to the 5 stars when enabled. I need to force the users to enter a rating, so i need to take the cancel rating button off (makes value = 0). I can't find how to change this! please help thanks

[jQuery] (tooltip) Markup problem

2009-10-12 Thread shapper
Hello, I have been using Bassistance tooltip but I think the markup is really incorrect. http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ Why forcing an H3 into the tooltip? Did you ever checked a page with it in Opera's table of contents? By imposing H3 you are breaking the

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-12 Thread d...@amystdesign.com
It will be confusing for someone filling out your form if you leave both fields available at the same time, instead... when the user enters text into one of the fields why don't you run an onChange or onKeyPress check to see if they've entered something and if so, disable/hide the other field

[jQuery] Clean code. Could someone, please, help me out?

2009-10-12 Thread shapper
Hello, I am using Bassistance tooltip but I need to simplify the markup. So instead of using: helper.parent = $('div id=' + settings.id + 'h3/h3div class=body/divdiv class=url/div/div') I would like to use: helper.parent = $('div id=' + settings.id + 'span/span/div') However, when I did this

[jQuery] Re: Autocomplete plugin: results as table?

2009-10-12 Thread alexbodn . groups
hello maarten, your attempt sounds interesting. could you give public access to these urls? On Wed, Oct 7, 2009 at 18:08, Maarten maartenwie...@gmail.com wrote: http://autocompleter.mwierda.blackpearl.minus3.nl/demo/table.html type in 'c' for a grouped result, using a TABLE for the layout.

[jQuery] how to customize 'active menu' color in superfish menu??

2009-10-12 Thread Ivan Nair
How do i adjust the color of the selected menu for the superfish menu? the most i could do was this: .sf-menu a:active { background: red; } but that only changed the menu to red when its clicked on and it'll change back to grey... i can't figure this out. My website (far from

[jQuery] Selecting all last cells in all rows?

2009-10-12 Thread MorningZ
with this html: table tbody tr td.../tdtd.../tdtd.../td /tr tr td.../tdtd.../tdtd.../td /tr tr td.../tdtd.../tdtd.../td /tr /tbody /table what would the selector be to get all the *last* td's in each

[jQuery] Re: Selecting all last cells in all rows?

2009-10-12 Thread mkmanning
$('td:last-child') On Oct 12, 9:45 am, MorningZ morni...@gmail.com wrote: with this html: table     tbody         tr              td.../tdtd.../tdtd.../td         /tr         tr              td.../tdtd.../tdtd.../td         /tr         tr              td.../tdtd.../tdtd.../td        

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-12 Thread Don Dunbar
Hi, glad you found a solution:to prevent the user from filling out both inputs in the first place. [code]$(#days).change(function(){ $(#participations).attr(disabled,disabled); }); $(#participations).change(function(){ $(#days).attr(disabled,disabled); }); [\code]

[jQuery] possible to empty file input in form with .click or .focus ?

2009-10-12 Thread captaincarp
My image upload form has a choice of either upload image by entering url or by browsing for a file, I'm trying to empty the file-input input if you focus on the url-input. I've tried bother these events on click/blur but neither seem to work like they would for a checkbox or text input...

[jQuery] Re: Incorrect selection on mouse click in IE7+

2009-10-12 Thread Rye
OK. For anyone else who is tearing their hair out over this one... It would appear that the earlier version of this script works fine in relation to the problem above. You can grab v1.1pre here: http://view.jquery.com/trunk/plugins/autocomplete/jquery.autocomplete.js You can link to the demo

[jQuery] Re: possible to empty file input in form with .click or .focus ?

2009-10-12 Thread amuhlou
Try: $('#input_id').focus(function(){ $(this).attr(value,); }); On Oct 12, 5:59 pm, captaincarp harry.wi...@gmail.com wrote: My image upload form has a choice of either upload image by entering url or by browsing for a file, I'm trying to empty the file-input input if you focus on

[jQuery] Re: possible to empty file input in form with .click or .focus ?

2009-10-12 Thread captaincarp
Yeah this is what I've been trying, i think maybe different rules apply for file inputs perhaps? amuhlou wrote: Try: $('#input_id').focus(function(){ $(this).attr(value,); }); On Oct 12, 5:59 pm, captaincarp harry.wi...@gmail.com wrote: My image upload form has a

[jQuery] Re: possible to empty file input in form with .click or .focus ?

2009-10-12 Thread amuhlou
hmm yeah, I did a quick google search and it appears that allowing you to access a file input's value attribute would pose a security issue. I found a solution but the code isn't exactly pretty http://gusiev.com/2009/04/clear-upload-file-input-field/ On Oct 12, 6:43 pm, captaincarp

[jQuery] Re: possible to empty file input in form with .click or .focus ?

2009-10-12 Thread mkmanning
You could replace the file input when the URL field is focused: $('#fu').replaceWith('input id=fu type=file /'); where #fu is the file input. On Oct 12, 11:53 am, amuhlou amysch...@gmail.com wrote: hmm yeah, I did a quick google search and it appears that allowing you to access a file

[jQuery] What causes a query string when requesting jQuery? e.g. /jquery-1.3.2.min.js?_=12553…

2009-10-12 Thread Bob
I'm troubleshooting a page display glitch involving jQuery AJAX. When the glitch happens, Fiddler shows the following as one of the requests: GET /Scripts/jquery-1.3.2.min.js?_=1255309685187 Normally, the request has no query string and the response status code is 304: GET

[jQuery] Re: (tooltip) Markup problem

2009-10-12 Thread Jörn Zaefferer
That sounds like you validate a page for the sake of validation. I think thats beneath the point, therefore I don't get your argument. Do you worry about accessibility? If so, did you test the tooltip with a screenreader? Afaik thats the best way to test for accessibility; validation not so much.

[jQuery] Re: What causes a query string when request ing jQuery? e.g. /jquery-1.3.2.min.js?_=12553…

2009-10-12 Thread Michael Geary
How is your page loading the '/Scripts/jquery-1.3.2.min.js' file? Whoever is generating that GET is adding the query string. I take it that it's not just being loaded with a simple script tag? If you can post a link to a test page, it would make it a lot easier to guess what might be happening.

[jQuery] force a tab to move to next field on enter

2009-10-12 Thread Ziad
Hi, I'm trying to change the enter event to a tab event. I know there are solutions out there that will do that but my form is a little bit complex in that it has fields that are not visible and this is done dynamically. I've tried some solutions (e.g. enter2tab plugin) but they don't seem to

[jQuery] Problems in a jquery drop down menu

2009-10-12 Thread Borgir
Hi there! In this site: http://work.r-m.me/termogreen/v2/ If you hover over a couple of times the Produtos's submenus (second level menus): - Energias renováveis - Água quente sanitária - Climatização - Tubagens e acessórios The sub sub menus won't appear (third level menus)... Anyone knows why?

[jQuery] About load function

2009-10-12 Thread nabil.tn
Hi, When i use a load call to get some HTML content from a remote page, the result display in the destination DIV is not immediate, but i have to call it again to see the result, but it is the result of the previous call How to make the display of retrived content immediate ? Thanks

[jQuery] animate queue :)

2009-10-12 Thread rory pickering
how can i create a queue what i want to do is onblur of a field 1) fade out current message in a div, 2)change the message 3) fade in new message (same div) when i try to do it it changes the html in the div then fades out and then in.. this is the code ive writeen

[jQuery] Re: What causes a query string when request ing jQuery? e.g. /jquery-1.3.2.min.js?_=12553…

2009-10-12 Thread ace danger
I was having this problem as well. When I turned changed the cache option off, it stopped happening to me.

[jQuery] Re: What causes a query string when request ing jQuery? e.g. /jquery-1.3.2.min.js?_=12553…

2009-10-12 Thread Bob
@ace: I tried passing ajaxOptions: { cache: false} to jQuery-UI Tabs and I think that did the trick! Is that what you were talking about? I struggled with this for far longer than I care to admit. Muchas gracias. Fiddler now shows a similar timestamp query string appended to my XHR. I guess

[jQuery] Re: loading message shows up after page has loaded

2009-10-12 Thread sdtacoma
Thanks for you help Karl but that didn't seem to solve my problem. I have more info to add to the issue though. The Loading... message works great if there are say, images on the page loading. It does NOT work if I am waiting for a query to finish and it's results to be displayed back to the

[jQuery] Re: What causes a query string when request ing jQuery? e.g. /jquery-1.3.2.min.js?_=12553…

2009-10-12 Thread Bob
@Michael: I just pull the scripts in like this: script src=/Scripts/jquery-1.3.2.min.js type=text/javascript/ script script src=/Scripts/jquery-ui-1.7.2.custom.min.js type=text/ javascript/script @ace: Which cache option is that? Bob

[jQuery] Re: possible to empty file input in form with .click or .focus ?

2009-10-12 Thread captaincarp
Sounds like a good idea - i'll give it a try in the morning and let you know if i have any luck wierd that there doesnt seem any way of directly altering the file inputs value... perhaps its a security thing... mkmanning wrote: You could replace the file input when the URL field is

[jQuery] Re: animate queue :)

2009-10-12 Thread morrissey.ingenious
Rory you need to use the callback functions on your fadeIn/fadeOut commands. And ouch a FONT tag ! ie ... $(#txt_user_name_msg).fadeOut(1000, function(){$(this).html('img src=/_images/ajax_error.gif alt=error / span style=color:#cc;you must enter a username!/span').fadeIn (1000);}); On

[jQuery] (validate) Using text input arrays do not work

2009-10-12 Thread Wayne
If you have the same 'name' for an input type, the error is only shown for the first one. For example, take the dynamic forms example: http://jquery.bassistance.de/validate/demo/dynamic-totals.html change the template it uses for adding rows and change it so the name of the input does not use

[jQuery] Re: possible to empty file input in form with .click or .focus ?

2009-10-12 Thread James
Yes, it is a security thing. Otherwise malicious developers would be adding paths to user's existing files and be able to silently upload user's files without their knowledge. On Oct 12, 11:33 am, captaincarp harry.wi...@gmail.com wrote: Sounds like a good idea - i'll give it a try in the

[jQuery] strange position by using after

2009-10-12 Thread Gill Bates
screenshot: http://tinypic.com/view.php?pic=2hd4f7ls=4 currently I've implement a key listen for moving the cursor (a gif actually) between each digits. my code looks like : var cursor = jQuery(#cursor); var current=... //current jquery element before cursor gif. if(keycode=){

[jQuery] Re: About load function

2009-10-12 Thread James
It should be immediate. Please show us some of your code on how you're doing this. On Oct 12, 5:54 am, nabil.tn zouabi.na...@gmail.com wrote: Hi, When i use a load call to get some HTML content from a remote page, the result display in the destination DIV is not immediate, but i have to

[jQuery] Re: strange position by using after

2009-10-12 Thread Gill Bates
ps: this happened only when I move the cursor.gif from left side of 1 to the right side of 1. Here 1 is the last td of the row.

[jQuery] Re: loading message shows up after page has loaded

2009-10-12 Thread Karl Swedberg
You've lost me there. If you're trying to block the page based on some user interaction, then the blockui plugin should work just fine. I thought the problem you were having, though, was with the page not being blocked immediately when the user first visits the page. You asked about

[jQuery] Don't use onclick

2009-10-12 Thread CoffeeAddict
Am I wrong to say you should never use onclick in an element as this would be contrary to the purpose of using jQuery which means onclick would totally bind mark-up to javascript? So it would not be unobtrusive in that case. -- View this message in context:

[jQuery] Accordion, there are too many

2009-10-12 Thread Scott Haneda
There are just too many accordions out there, can someone point me in the right direction. This need not be fancy: div class=post h3title 1/h3 psome copy here/p psome more copy here/p pand some more copy here/p h3title 2/h3 psome copy here/p psome

[jQuery] jQuery bug reports

2009-10-12 Thread Dave Methvin
In preparation for the push to a new release of jQuery, I've been cleaning up bug reports in the jQuery core bug tracker. Many tickets languiished because they weren't actually jQuery core bugs, but instead should have been reported on the forums or sent to the author of the plugin. jQuery UI

[jQuery] Unable to download jquery

2009-10-12 Thread Cooter1341
Upon trying to download JQuery in either Internet Explorer or Firefox, I get the same error. Windows Script Host Script: C:\Documents and Settings\Couture\Local Settings|Temporary Interent Files\Content.IE5\RVWA8J02\jquery-1.3.2.min[1].js Line: 12 Char: 6947 Error: 'document' is undedined

[jQuery] Problems with load() in IIS?

2009-10-12 Thread Scogle
I'm working on a project that uses the load() function to grab data from external files, but I keep getting a 405 Method Not Allowed error and the data won't load. I'm wondering if this is a problem with the server or if it's a sloppy mistake on my part. Any help would be greatly appreciated.

[jQuery] Using Jquery Form Plugin with Hidden fields

2009-10-12 Thread JamesF
Hi, I am using the jquery form plugin and I am very surprised that it doesn't post hidden field values to my php file. I need form id=newTagForm action=ajax-add-tag.php method=post fieldset input type=hidden id=resourceID name=resourceID value= / input

[jQuery] (validate) How to get individual error messages and disable auto-showing

2009-10-12 Thread Mike
I'm trying to write a custom display for the error messages on my form. Ideally I'd like to use a modal pop-up window to display the errors, but I'm having trouble figuring out how to prevent the validation plugin from automatically displaying the errors on my page AND I can't quite figure out

[jQuery] 1.3.2, live(event), and trigger(event, [value1, value2])

2009-10-12 Thread Val
Hello all, I cannot for the life of me figure out the syntax given in the subject line. Through all of the following, I am referring to the examples tab of the following page: http://docs.jquery.com/Events/trigger I've got a 'live' event, waiting for a custom trigger. I pull the trigger, fire

[jQuery] Re: Unable to download jquery

2009-10-12 Thread James
Where are you downloading your jQuery file? You should go to jquery.com, click on the large Download( jQuery ); button, which will take you to the Google Code site, and click on another link. Where is the problem occuring? Also, Firefox shouldn't be triggering a Microsoft JScript runtime error.

[jQuery] Re: Problems with load() in IIS?

2009-10-12 Thread James
It sounds like a server setup issue. What is the file type/extension of the file that you're trying to load()? You have to set up the server so that the GET (and maybe POST) VERY is allowed for that file type. On Oct 12, 12:53 pm, Scogle scotto...@gmail.com wrote: I'm working on a project that

[jQuery] Re: Problems with load() in IIS?

2009-10-12 Thread James
Sorry, I meant VERB, not VERY: GET (and maybe POST) VERB On Oct 12, 3:42 pm, James james.gp@gmail.com wrote: It sounds like a server setup issue. What is the file type/extension of the file that you're trying to load()? You have to set up the server so that the GET (and maybe POST) VERY

[jQuery] How to create an Add New Option option to a select list

2009-10-12 Thread Charles
Hello all, I have a form that uses jeditable to edit-in-place several fields and select boxes. Everything is working great. Now I need to a way to add a new option to the select list. What I would like is the user select Add New... from the select list that would pop-up a dialog window where

[jQuery] Re: Problems in a jquery drop down menu

2009-10-12 Thread Borgir
Hey all! I firebuged the site and noticed that a style=overflow:hidden was being added so I updated my code: $(this).css(overflow,visible); and for now seems ok. So I insist: Always firebug your applications! Cheers! On 12 Out, 17:03, Borgir ricardofmig...@gmail.com wrote: Hi there! In this

[jQuery] Standards

2009-10-12 Thread expresso
Am I wrong to say you should never use onclick in an element as this would be contrary to the purpose of using jQuery which means onclick would totally bind mark-up to javascript? So it would not be unobtrusive in that case. And can't you do this another way other than this:

[jQuery] Call function in load

2009-10-12 Thread expresso
Did I do this right? I can't test right now but I think this should work: function doSomething() { ... } (.someImage).load(doSomething()) ; I want to fire off doSomething() when the image is fully loaded.

[jQuery] Re: Don't use onclick

2009-10-12 Thread RobG
On Oct 13, 10:49 am, CoffeeAddict dschin...@gmail.com wrote: Am I wrong to say you should never use onclick in an element as this would be contrary to the purpose of using jQuery I think you have your design priorites backward. Firstly determine the functionality required, then how to best

[jQuery] Re: Call function in load

2009-10-12 Thread James
$(.someImage).load(doSomething); On Oct 12, 4:26 pm, expresso dschin...@gmail.com wrote: Did I do this right?  I can't test right now but I think this should work: function doSomething()         {                 ...         }  (.someImage).load(doSomething()) ; I want to fire off

[jQuery] Re: Call function in load

2009-10-12 Thread expresso
yea, forgot about removing the (). Thanks. On Oct 12, 9:49 pm, James james.gp@gmail.com wrote: $(.someImage).load(doSomething); On Oct 12, 4:26 pm, expresso dschin...@gmail.com wrote: Did I do this right?  I can't test right now but I think this should work: function

[jQuery] Re: Don't use onclick

2009-10-12 Thread expresso
I don't think it's too hyped. Having calls to javascript in your elements defeats the purpose of unobtrusively maintaining and using libraries like jQuery. How can you stay that Rob?? On Oct 12, 9:39 pm, RobG robg...@gmail.com wrote: On Oct 13, 10:49 am, CoffeeAddict dschin...@gmail.com

[jQuery] Re: Don't use onclick

2009-10-12 Thread expresso
unobtrusive in this case is keeping javascript out of elements. onclick= binds them together. On Oct 12, 9:39 pm, RobG robg...@gmail.com wrote: On Oct 13, 10:49 am, CoffeeAddict dschin...@gmail.com wrote: Am I wrong to say you should never use onclick in an element as this would be

[jQuery] Re: Don't use onclick

2009-10-12 Thread expresso
I think you have your design priorites backward. Firstly determine the functionality required, then how to best implement it. If that means using a library obviously we're past that point. We've decided this was a good use for jQuery. So how can you say priorities are tangled here when you

[jQuery] Re: Don't use onclick

2009-10-12 Thread expresso
The simple fact that you don't have javascript floating all over your doc inside elements is alone a reason that unobtrusive rocks. Let alone many other reasons. On Oct 12, 10:44 pm, expresso dschin...@gmail.com wrote: I think you have your design priorites backward. Firstly determine the

[jQuery] Expanding or contracting on resize?

2009-10-12 Thread Cincinatus
Is there a way to tell if the user is expanding or contracting the window when resizing even if he changes directions during the same event?