[jQuery] Re: Can't Add a checked=checked Attribute to Input tag

2008-02-22 Thread RobG
On Feb 23, 4:55 am, Joe <[EMAIL PROTECTED]> wrote: > Yes I did.  Strangely enough,  what I initially wrote worked in a > simply HTML page without much else going on.  I may have to parse thru > the page that I'm working on to find if there is some sort of > conflict. The checked property is a b

[jQuery] Macro templates for jQuery & UI

2008-02-22 Thread Stan Lemon
Greetings, There has been some conversation on the UI list about templating solutions for jQuery. Ext has a light weight template library which handles basic variable assignment and supporting formatting methods. I finally decided to port the Ext solution to jQuery. I've tried to conform to the UI

[jQuery] Re: before() and after() does not work on unclosed tags?

2008-02-22 Thread Karl Rudd
That's still possible, just have to do things a little differently. var sd = $('#somediv'); $('generic header stuff') .insertBefore( sd ) .find('tbody') .append( sd.wrap( '' ); Note: The 'tbody' is an element that gets created for you by the browser to wrap the 'tr's when you create a ta

[jQuery] Re: Why does it take so long for a new topic to be posted?

2008-02-22 Thread Sientz
On Feb 22, 8:41 am, gh0st <[EMAIL PROTECTED]> wrote: > Why does it take so long for a new topic to be posted? It really is > frustrating esp, if you want answers to questions. It has nothing to do with 'Google'. If you look at the link on the right that says 'About This Group' it says somethin

[jQuery] Browser.Version for IE7 Vista returned as 6

2008-02-22 Thread MichaelEvangelista
I am trying to eliminate some width-related effects in IE6 but leave them intact for 7 - however, browser.version returns IE7 as 6.0, and I cannot find a way to differentiate the two. I am aware this is a known issue, but I haven't found a fix that works. Does anybody have a working solution they

[jQuery] Drag and Drop rows across two tables

2008-02-22 Thread Jacky
Hi all, Is that possible using ui draggable and droppables? In an initial attempt, I tried to create a table and apply $("#table>tbody>tr").draggable(); It works in IE but not in Firefox. -- Best Regards, Jacky 網絡暴民 http://jacky.seezone.net

[jQuery] Re: Finding a matching class to a variable

2008-02-22 Thread Jonathan Sharp
Hi Philip, I'm not sure if you're attempting a partial match but you may also find the following works: $('div.' + $i) Cheers, -Jonathan On Fri, Feb 22, 2008 at 8:40 PM, Karl Swedberg <[EMAIL PROTECTED]> wrote: > > Hi Philip, > > What you need to do in this case is concatenate the variable, s

[jQuery] Re: Finding a matching class to a variable

2008-02-22 Thread Karl Swedberg
Hi Philip, What you need to do in this case is concatenate the variable, so that it's not part of the string. Try this: $("div[class*=" + $i + "]"); That is provided that $i represents the className and not a jQuery object or a DOM element with that className. I hope that helps. --Kar

[jQuery] Re: Is this bug in jquery???

2008-02-22 Thread Karl Swedberg
On Feb 22, 2008, at 8:36 AM, Doug Sparling wrote: IE6 and older only supports hover on anchor (). IE7 does support hover on all elements, but only if you are not in quirks mode. The hover you're referring to here is the :hover CSS pseudo-class. IE6 certainly supports the onmouseover and o

[jQuery] Re: How do I use my functions with jQuery syntax alike?

2008-02-22 Thread timothytoe
I don't know if there's any practical difference. Maybe someone more knowledgeable can chime it. Perhaps the former ends up being a savings in file size if you have a lot of functions. On Feb 22, 5:44 pm, Nazgulled <[EMAIL PROTECTED]> wrote: > I see, but... > > How is this: > > (function($) { >

[jQuery] Re: How do I use my functions with jQuery syntax alike?

2008-02-22 Thread Nazgulled
I see, but... How is this: (function($) { $.something = function() { alert('something'); } $.test = { abc: function() { alert('test'); } } })(jQuery); Different from this: jQuery.something = function() { alert('something'); } jQuery.test = { abc:

[jQuery] Re: How do I use my functions with jQuery syntax alike?

2008-02-22 Thread timothytoe
Any time you create a function without a name it's anonymous. Example: window.setTimeout(function() { alert('Hello world!') }, 60); On Feb 22, 4:56 pm, Nazgulled <[EMAIL PROTECTED]> wrote: > timothytoe wrote: > > The function doesn't have a name, so it doesn't pollute the namespace, > > and it's

[jQuery] Re: How do I use my functions with jQuery syntax alike?

2008-02-22 Thread Nazgulled
timothytoe wrote: > The function doesn't have a name, so it doesn't pollute the namespace, > and it's great for making functions inline for handlers and > setTimeout() without the burden of having to make up a name that won't > even be referenced. Can you give me an example of what you mean? I'm g

[jQuery] Re: $.( 'a:link' )

2008-02-22 Thread [EMAIL PROTECTED]
That was a good idea, Klaus - but it's having the same effect as plain "a". As the script's written it inline, it overrides the visited, hover & active styles. Surely there must be a way round this, without adding yet another stylesheet ... Even if jQuery hasn't got it covered, would it be poss

[jQuery] Re: How do I use my functions with jQuery syntax alike?

2008-02-22 Thread timothytoe
The function doesn't have a name, so it doesn't pollute the namespace, and it's great for making functions inline for handlers and setTimeout() without the burden of having to make up a name that won't even be referenced. It's an outgrowth of everything being an object in JavaScript, and being ab

[jQuery] Re: preventDefault() not working in FF?

2008-02-22 Thread jquertil
thanks again timothy. I decided to keep a blog with workable code snippets. check it out, y'all :) http://jquery-and-javascript.blogspot.com/

[jQuery] Re: IE problems with prepend since 1.2.3?

2008-02-22 Thread jody
To reply to my own befuddlement to maybe help others wrestling with IE, prepending something to the page's title doesn't work. Calling a function that prepended information from the JSON into the tag was failing, and causing subsequent functions to fail. So, it wasn't version 1.2.3, but it is a

[jQuery] get index number of 'in focus' text box

2008-02-22 Thread paulj
As each text box gains the focus, I would like the index number of that text box to be displayed in a div. I tried to use the following but -1 was displayed each time. $(document).ready(function() { $('input:text').focus(function () { $('div').text( $(this).index()); })

[jQuery] Re: trying to parse XML

2008-02-22 Thread jquertil
if you have problems, take a peek at my XML parsing extension function. Might not be exactly what you're looking for but it works for me. http://jquery-and-javascript.blogspot.com/ loadXML2array: function() { return this.each(function() { var data = $.ajax({

[jQuery] Re: jQuery & Firefox bug.

2008-02-22 Thread ruizbennett
If you remove the href (which has the postback), it will work in firefox.

[jQuery] jQuery design pattern for dom.ready snippets

2008-02-22 Thread [EMAIL PROTECTED]
Hi there, I am going to be implementing jQuery on a very large enterprise level website, and have a few questions with regards to some best-practices for managing scripts. Where is the best place to include all of the initialization code for plugins? I'd like to keep everything external, but sinc

[jQuery] Re: $.( 'a:link' )

2008-02-22 Thread Klaus Hartl
On Feb 23, 1:05 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > This has to be obvious - but I can't find it! I'm trying to have a > script restyle the a:links. Using the CSS name (which is, precisely, > #nav a:link) doesn't get a result. > > It does if I take the :link part off, but that ove

[jQuery] Re: How do I use my functions with jQuery syntax alike?

2008-02-22 Thread Nazgulled
And what exactly it means to hide a function, making it anonymous? timothytoe wrote: > JavaScript has really expressive ways to call functions. The first > parentheses hide the function (make it anonymous) and the second > executes the code immediately with the parameter listed. I'm a newbie > my

[jQuery] Re: How do I use my functions with jQuery syntax alike?

2008-02-22 Thread timothytoe
JavaScript has really expressive ways to call functions. The first parentheses hide the function (make it anonymous) and the second executes the code immediately with the parameter listed. I'm a newbie myself, but I think that means "right now, pass the variable jQuery in as $ to the function and

[jQuery] Re: Problems in the overlay created by SimpleModal in IE6/7

2008-02-22 Thread Nazgulled
Anyone? On Feb 21, 1:55 pm, Nazgulled <[EMAIL PROTECTED]> wrote: > I don't know then, what I know is that on my Vista machine, IE7 is > being recognized as IE6 and the code above fixed it. > > Anyway, I think I fixed the problem on IE6 and you were right after > all, the code in your first reply

[jQuery] Re: Using getScript to load an array of scripts with callbacks

2008-02-22 Thread Nazgulled
Anyone? On Feb 22, 6:01 pm, Nazgulled <[EMAIL PROTECTED]> wrote: > I have this piece of code that took me a while to do it and I don't > know if it's the best way to achieve this. First, I'll explain exactly > what I want to do. > > I'm using lots of jQuery plugins and I don't want to include the

[jQuery] Re: How do I use my functions with jQuery syntax alike?

2008-02-22 Thread Nazgulled
Thanks... And what's up with the: (function($) { // CODE })(jQuery); This was the thing that got me most confused when reading the documentation. Can someone explain me this, what it does, what is for and the best scenarios where would I need to use something like this? If possible, explain m

[jQuery] $.( 'a:link' )

2008-02-22 Thread [EMAIL PROTECTED]
This has to be obvious - but I can't find it! I'm trying to have a script restyle the a:links. Using the CSS name (which is, precisely, #nav a:link) doesn't get a result. It does if I take the :link part off, but that overrides the child styles. Seeing as "link" isn't a DOM element, I've tried al

[jQuery] Re: How do I use my functions with jQuery syntax alike?

2008-02-22 Thread Klaus Hartl
On Feb 23, 12:14 am, Nazgulled <[EMAIL PROTECTED]> wrote: > Hi, > Let's say I have 2 different javascript files. I like to organize my > code that's why I use 2 different files so each file will only have > functions that fall into that file's category. > > Anyway, here's the files layout... > > f

[jQuery] How do I use my functions with jQuery syntax alike?

2008-02-22 Thread Nazgulled
Hi, Let's say I have 2 different javascript files. I like to organize my code that's why I use 2 different files so each file will only have functions that fall into that file's category. Anyway, here's the files layout... file1.js: function Fn1() { ... } function Fn2(a, b) { ...} file2.js func

[jQuery] Re: Why does it take so long for a new topic to be posted?

2008-02-22 Thread timothytoe
I think Google had some gas. There was a giant burp of messages a short while ago. On Feb 22, 8:41 am, gh0st <[EMAIL PROTECTED]> wrote: > Why does it take so long for a new topic to be posted? It really is > frustrating esp, if you want answers to questions.

[jQuery] Re: Div Changer Using Hide And Show

2008-02-22 Thread Charles Stuart
This is quite generalized and is bookmarkable... - http://enure.net/dev/hide-all-except-one/ On Fri, Feb 22, 2008 at 6:50 AM, J Moore <[EMAIL PROTECTED]> wrote: > > > good tips so far. > > I just wanted to add that using classes and ids works well. > > show blackbook > show redbook > > bla

[jQuery] Re: Call a function just before the window close

2008-02-22 Thread MorningZ
there is an "onbeforeunload" event you can use http://www.google.com/search?q=javascript+onbeforeunload&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

[jQuery] Re: preventDefault() not working in FF?

2008-02-22 Thread timothytoe
Did you see my recent thread here? My experience has been nightmarish. On Feb 22, 12:47 pm, jquertil <[EMAIL PROTECTED]> wrote: > TT thanks a lot! for this - it works. > > Interesting comparison: the jQuery version of my dragger is 23 lines > of code inluding all callbacks. > The plain javascript

[jQuery] Re: autocomplete help - make another ajax call when results picked?

2008-02-22 Thread tlphipps
Looks like you're on the right track to me. That's how I would do it. On Feb 22, 11:59 am, "Priest, James (NIH/NIEHS) [C]" <[EMAIL PROTECTED]> wrote: > I'm using Jorn's Autocomplete plugin and am successfully using it to > return a list of users along with a user_ID. What I'd like to do now is

[jQuery] trying to parse XML

2008-02-22 Thread Steve Davis
hey folks, could you look at this site: http://craniumdesigns.com/new/ and tell me why my xml isnt parsing on the portfolio area? i'm just trying to have SOME sort of output. once it works i want to generate all the portfolio images/info as "li" tags. the code is in the top of index.html for ea

[jQuery] Treeview Ajax Loaded Nodes?

2008-02-22 Thread Thomas Hill
I'm using jQuery 1.2.2, and treeview 1.4, and I've read as much as I could find on treeview. I can't seem to find, however, a demo on loading specific nodes with dynamic data when they are expanded. The async demo doesn't necessarily show how to do that, either, unless it's a full tree load. Am I

[jQuery] Re: preventDefault() not working in FF?

2008-02-22 Thread jquertil
TT thanks a lot! for this - it works. Interesting comparison: the jQuery version of my dragger is 23 lines of code inluding all callbacks. The plain javascript version is 22 lines (but, alas, doesnt require the jQuery library of course). I also notice that while dragging, especially in firefox,

[jQuery] Re: Selecting the ancestor of an element

2008-02-22 Thread Richard D. Worth
Then it looks like you want $(childObj).parent().prepend('Result Processed'); That will get you the 1 immediate parent of that element. - Richard On Fri, Feb 22, 2008 at 11:49 AM, AsymF <[EMAIL PROTECTED]> wrote: > > If I do the following I end up with every single DIV all the way up > the doc

[jQuery] Re: before() and after() does not work on unclosed tags?

2008-02-22 Thread jquertil
John, I had simplified my example, sorry. >From what I gather, wrap() won't work for this kind of table: generic header stuff ...now wrap this... "John Resig" wrote: > I think you want .wrap():

[jQuery] [treeview] Ajax loaded nodes

2008-02-22 Thread tomlikestorock
I'm using jQuery 1.2.2, and treeview 1.4, and I've read as much as I could find on treeview. I can't seem to find, however, a demo on loading specific nodes with dynamic data when they are expanded. The async demo doesn't necessarily show how to do that, either, unless it's a full tree load. Am I

[jQuery] Call a function just before the window close

2008-02-22 Thread rics
Hello folks, Probably this is a dumb question, but I'm not a javascript developer (yet), so be patience with me! :P How can I call a function just before the window close? When the user click the close button of the window I want to execute some tasks. Can I do that?

[jQuery] Re: Can't Add a checked=checked Attribute to Input tag

2008-02-22 Thread Joe
Yes I did. Strangely enough, what I initially wrote worked in a simply HTML page without much else going on. I may have to parse thru the page that I'm working on to find if there is some sort of conflict. Thanks! On Feb 22, 1:37 am, "Karl Rudd" <[EMAIL PROTECTED]> wrote: > Have you tried $(.

[jQuery] Refresh div

2008-02-22 Thread X3graphics
Hoping to get a little help since I know very little jquery and ajax. I am developing a site in drupal where I have an ad on just about every page and it currently refreshes on every page load with a different ad. I need the ad to reload every 5 seconds. I am sure this is possible with jquery. I h

[jQuery] How can I Use Jquery without $(document).ready

2008-02-22 Thread [EMAIL PROTECTED]
Hello everyone, Can someone please tell me how can i use Jquery outside the function $ (document).ready(function(){ ... }); Because I have some functions that build my HTML page that wont run if i put them inside this function. thank you in advanced Rodolfo

[jQuery] jQuery Form Plugin help

2008-02-22 Thread hcvitto
hi i'm trying to use the jQuery Form Plugin from http://www.malsup.com/jquery/form/ it's apparently easy to use but at my first try i can't make anything out of it!! this is the page i'm working on http://www.eco-way.it/projects-and-communication/extra/curriculum.php In my comuni.js i use $('

[jQuery] Re: jqModal using jqmShow instead of trigger gives problems

2008-02-22 Thread Shawn
I have found that if you want JS to be applied to or run from the loaded page, it is better to account for that outside the page... i.e. I include functions on my normal JS library the dialog may make use of. It seems that loading Dialogs that include JS (includes or source) is somewhat hit

[jQuery] What's the meaning of "underlying elements" in focus()

2008-02-22 Thread Shawphy
Hey all ! I read " This causes all of the functions that have been bound to the focus event to be executed. Note that this does not execute the focus method of the underlying elements." in focus() of jQuery's document. But I couldn't catch the meaning of "underlying elements". Anyone may tell me

[jQuery] Why does it take so long for a new topic to be posted?

2008-02-22 Thread gh0st
Why does it take so long for a new topic to be posted? It really is frustrating esp, if you want answers to questions.

[jQuery] Re: Tool tip advice

2008-02-22 Thread Mark
I looked at that, but it's not the browser border i need, it's the page with border (currently page width is set to 950px). I'll look at it again though, cheers. M On Feb 22, 9:44 am, tlphipps <[EMAIL PROTECTED]> wrote: > Are you asking for a plugin recommendation? If so, I know the tooltip >

[jQuery] [validate] maxLength for elements that are not required

2008-02-22 Thread Yuval
Hey Jörn, It seems that whenever I define an element as not required:false and set a maxLength the validation plugin wouldn't bother limiting the field to the maxLength, When I switch to required:true - everything works perfectly. Is there a solution to that? Thanks, Yuval Karmi

[jQuery] autocomplete help - make another ajax call when results picked?

2008-02-22 Thread Priest, James (NIH/NIEHS) [C]
I'm using Jorn's Autocomplete plugin and am successfully using it to return a list of users along with a user_ID. What I'd like to do now is when the user selects a person from the autocomplete list - via Ajax take that user_ID, populate a table in my database and return another value . Right n

[jQuery] Dynamic Script Tag n code!!!

2008-02-22 Thread fshuja
how can i insert dynamic script tag inside the head tag like function test(){ alert('hello'); } i want to add the above code in Head dynamically and also want test method working i tried to add script tag inside the head but it does not do so rather i can add any other tag like div, span etc

[jQuery] Re: I am looking for the datagrid which supports row/column merging and JSON

2008-02-22 Thread Channa L.
Cool! Thank jquertil! On Feb 21, 9:50 pm, jquertil <[EMAIL PROTECTED]> wrote: > tablesorter.com comes to mind. > > On Feb 21, 6:10 am, "Channa L." <[EMAIL PROTECTED]> wrote: > > > > > Hi All, > > > I am looking for the good jsdatagridwhich supports AJAX column > > sorting, row/column merging (row

[jQuery] Re: Selecting the ancestor of an element

2008-02-22 Thread AsymF
If I do the following I end up with every single DIV all the way up the document chain being prepended with the content instead of its immediate parent: var msg_selector = $($(childObj).parent().get(0).tagName + ':has(#' + childObj.id + ')') $(msg_selector).prepend('Result Processed'); What this

[jQuery] How to use Jquery with other Frameworks?

2008-02-22 Thread [EMAIL PROTECTED]
How can i reach the functions that are inside the main Jquery function for example: function dothis(){ doSomething(); } $(document).ready(function(){ function doSomething(){ $("#" + spiel0).css({zIndex :"5 } }); the reason i do this is because the dothis() function wont run in

[jQuery] submit

2008-02-22 Thread mike ray
I would like to have a

[jQuery] Re: xml webservice & callback & document.domain

2008-02-22 Thread Scott Vickers
on further investigation it actually is calling the error handler and giving a parsererror. For now I just check the browser and if FF do text datatype, xml for all others. a crummy workaround but i guess it will do. On Feb 21, 12:48 pm, Scott Vickers <[EMAIL PROTECTED]> wrote: > I am trying to

[jQuery] Re: How could I pass an object into an eval statement

2008-02-22 Thread AsymF
Yeah, I have been using them. Just had no idea setTimeout could take them. :) Thanks! On Feb 22, 2:01 am, "Karl Rudd" <[EMAIL PROTECTED]> wrote: > Welcome to the wonderful world of "closures" (which "double" as > "functions" in JavaScript), you've been using them already (perhaps > without know

[jQuery] Loading html does not add it to the DOM

2008-02-22 Thread gh0st
I have a simple ajax load which brings in an external form - at the moment it's just a simple input box with 2 buttons, a "save" and "cancel", however whenever I press any input button within the called form JQuery just doesn't seem to recognise it. Loading my external HTML form, and pressing on

[jQuery] Div Changer Script Using Show and Hide

2008-02-22 Thread Sientz
I was just wondering if someone could give this a quick look and see if there is anything wrong with it. It seems to be working on the web site but perhaps there is something I could do to make it more efficient. $(document).ready(function(){ //THIS HIDES ALL LISTED DIVS ON LOADING OF PAGE

[jQuery] Re: Div Changer Using Hide And Show

2008-02-22 Thread J Moore
good tips so far. I just wanted to add that using classes and ids works well. show blackbook show redbook blackbook stuff... redbook stuff... This makes your click function simpler. $('a.show').click(function(){ hide_divs(); var x = $(this).attr('id'); $('#'+ x + '-content').show

[jQuery] $_FILES and $.ajax function

2008-02-22 Thread hcvitto
hi i'm trying to send a file uploaded thourgh a form to a php file with $.ajax function. In my php file i can grab the value of the file type input only if i use tha $_POST method; if i use $_FILES nothing happens. Does anyone know whether jquery $.ajax function supports this type of data in the d

[jQuery] Re: Tool tip advice

2008-02-22 Thread Pierre
You can try Simple Tooltip, for create simple and unobtrusive tooltips : http://www.pierrebertet.net/projects/jquery_simpletooltip/ It detects window borders, and has no limitations for design and structure, because any element can be a tooltip. The documentation is only in french for the momen

[jQuery] Re: blockUI: moving the message that blocks an element to the top

2008-02-22 Thread Alan Fitzgerald
Thanks again Mike. I needed to change DOCTYPE tags in order to make it work appropriately. -Alan On Feb 20, 6:06 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote: > > Thanks Mike.  You definitely provided a solution that "should" work. > > But the following code works if I modify your test page, but n

[jQuery] What's the meaning of "underlying elements" in focus()

2008-02-22 Thread [EMAIL PROTECTED]
Hello all! I read "Note that this does not execute the focus method of the underlying elements." of "focus()" in jq' doc ,but I couldn't catch the meaning of "underlying elements" . Anyone may tell me which elements is "underlying elements", Thanks

[jQuery] jquery hover in ie

2008-02-22 Thread Jarrod
Hi, I have a small problem when using the hover effect in ie (6 and 7) When hover is applied to the area tag (hotspots in an image map) it doesn't seem to fire the events, but mouseover and mouseout do (which I ultimately used to solve the problem). so area.hover( function() {alert("on")},f

[jQuery] Finding a matching class to a variable

2008-02-22 Thread Philip
Hi there, Here is my conundrum, im trying select a div whos class matches that of a variable ($i) so that I can then apply an effect to it. The div actually has two classes attached to it but only 1 matches the variable (if that makes sense). I've tried such things as $ ("div[class*=$i]") amongst

[jQuery] Re: Is this bug in jquery???

2008-02-22 Thread Doug Sparling
IE6 and older only supports hover on anchor (). IE7 does support hover on all elements, but only if you are not in quirks mode. On Feb 21, 12:52 pm, fshuja <[EMAIL PROTECTED]> wrote: > i am using jquery version 1.2.3. > I was trying to attach hover on inside . but find that its > working ok in F

[jQuery] jQuery & Firefox bug.

2008-02-22 Thread Mario
Hi! I have several links using jQuery that have only the purpose of showing help information. They are "virtual links" because they don't link anywhere (i.e. onclick = return false). When using jquery with these kinds of links, Firefox seems to ignore the return false sentence. Here's an exampl

[jQuery] Re: Form submission without reloading modal window

2008-02-22 Thread Steve Good
Thanks Shawn, I'll give what you suggest a try. ~Steve Shawn wrote: > > my bad - the plugin I mentioned is called the "Form Plugin" > http://plugins.jquery.com/project/form > > Shawn > > Shawn wrote: >> >> Ajax. >> >> There is a handy plugin out there - ajaxForms (I think...) that will >> al

[jQuery] jQuery Validation Plugin

2008-02-22 Thread jmcervera
Hello, Has anybody use the jQuery Validation plugin with Ruby on Rails. I am having trouble with it. It seems only function when the form use the get action, but not with post. Thanks Juanma Cervera

[jQuery] jQuery + plugins compression

2008-02-22 Thread Brian Moschel
We've been using Include to make compressing and including scripts really easy. With jQuery, this would really simplify plugin loading and compression. Users could download their plugins, turn on compress mode, and automatically create one compressed script from their included scripts, without n

[jQuery] Re: $.ajaxFileUpload into an ajax form

2008-02-22 Thread hcvitto
hi Yılmaz thanks for the reply.. I followed your (good) advice with some change. This is what i did: 1- deleted the url:' option from ajaxFileUpload function, so my php file is called rightly once; 2- when i call the jquery $.ajax function i clone the input created from the $.ajaxFileUpload int

[jQuery] jQuery Form Validation Plugin with Rails

2008-02-22 Thread jmcervera
Hello, This is my first post in this group. I am trying to use the Form Validation Plugin with Ruby on Rails, and I can´t make it work. It seems only working with forms using the 'get' action, not with 'post. An this goes against the REST principles of the architecture I am using. Is there some p

[jQuery] when an AJAX API documentation!!

2008-02-22 Thread oscarml
HI, do you know if it planned to develop an API documentation pure AJAX. I shouldn't say this, but something similar to extJS/doc hehe. Thx!

[jQuery] Cluetip with trigger

2008-02-22 Thread mohsin
i want to use triger in cluetip onShow ...but unable to tigger event . my code is $("#aprice_down").cluetip( { local:false, activation:'click', sticky:true, width:'610px',

[jQuery] jQuery in IE6

2008-02-22 Thread VirtualRichard
Hi, any reason why this snippet does not work in IE6? (whatever the last minor version was). $("#QuickLinksSelect").show(); I'm using the latest stable release of jQuery and it works in the latest IE7, Firefox, Opera flavours. In fact, jQuery doesn't seem to be working full stop in IE6... Can s

[jQuery] Re: Request parameters from dynamically added html element are missing on the server side

2008-02-22 Thread chris
Hi Charles, I'm afraid I can't provide you with a link... even though I really want to provide it.. I checked my code using 'Live HTTP Header' plugin, to see what are parameters sent by browser. I couldn't see those request parameters sent to server side so I think the problem is on the

[jQuery] Re: ajaxfileuploads: how to add more fields?

2008-02-22 Thread hcvitto
hi i had the same problem. I managed (not yet perfectly) send an entire form with an upload input. Check this thread http://groups.google.com/group/jquery-en/browse_thread/thread/bb2ff357abcefa44# Maybe it can help you Vitto On Feb 20, 8:54 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >

[jQuery] Re: Div Changer Using Hide And Show

2008-02-22 Thread Chris J. Lee
you could use $.delegate http://www.danwebb.net/2008/2/8/event-delegation-made-easy-in-jquery I haven't used it yet but it looks like life has just gotten easier. On Feb 21, 5:03 pm, Sientz <[EMAIL PROTECTED]> wrote: > I created this script to hide and show divs on a web page I am working > on

[jQuery] Tutorial here

2008-02-22 Thread thanus thanus
PLEASE PASS THIS MAIL TO YOUR FRIENDS http://systemkeeper.blogspot.com PC Booster 2008 If you are like most PC users, you may feel t

[jQuery] Re: SuperFish - Override/append onHover?

2008-02-22 Thread jsrobinson
OK it didn't all work. The left nav, which is just an LI with no sub- UL works. The far right does not. I'm trying to use: .navright a:hover {background: #333 url(/img2/top-nav-back-right- black.png) top right no-repeat scroll} to swap the background graphic, but it isn't triggering, let alone t

[jQuery] Re: SuperFish - Override/append onHover?

2008-02-22 Thread jsrobinson
CSS to the rescue! I got it figured out, added extra classes to the left and right LI's and added to Superfish's CSS and it worked!

[jQuery] SuperFish - Override/append onHover?

2008-02-22 Thread jsrobinson
I have Superfish 1.4.1 implemented here: http://arraybeta.magiclamp.net I am using a bit of jQuery to swap the far left and right backgrounds of the dropdown navigation to the rounded corner graphics. I need to be able to change the Hover state background as well. When I attach a function for do

[jQuery] Re: Break out of a for loop.

2008-02-22 Thread timothytoe
Obviously, There was a typo. Fixed: 1. var i; for (i=0;i<5;i++) { setTimeout(function() {alert('first '+i);},5000); } 2. for (i=0;i<5;i++) { (function(num) { setTimeout(function() {alert('second '+num);}, 500

[jQuery] Re: How to keep text from being highlighted when I'm handling the mouse events

2008-02-22 Thread timothytoe
Oh, also, I had to restrain myself to avoid tearing into his code. For example, he used atan rather than atan2, so he had to fix up the angles for a couple quadrants. I should maybe email him that tip. Once you go atan2, you never go back to atan. That code desperately wants to be optimized. :-)

[jQuery] Re: How to keep text from being highlighted when I'm handling the mouse events

2008-02-22 Thread timothytoe
That's an interesting thing to try. My problem is a bit more severe because the items I am moving are divs that actually have elements attached to them as labels. Last night I looked at the jQuery solar system... http://www.willjessup.com/sandbox/jquery/solar_system/rotator.html That's an int

[jQuery] Re: Is this bug in jquery???

2008-02-22 Thread [EMAIL PROTECTED]
Hi, Faraz I don't use maps so can't answer you specifically - but try this (put it in your general js file). It should make hover work for a range of events. // a more accessible "hover" function jQuery.fn.extend({ hover: function(fnOver, fnOut) { return this.bind('mouseenter mous

[jQuery] Re: How to keep text from being highlighted when I'm handling the mouse events

2008-02-22 Thread Karl Swedberg
Hi Timothy, sorry I'm jumping into this so late. You've probably already tried something like this, but as I was reading your last email below, I wondered if you could: 1. append a transparent gif to the body on document ready 2. make the trans.gif display: none; position:absolute; 3. whe

[jQuery] Using getScript to load an array of scripts with callbacks

2008-02-22 Thread Nazgulled
I have this piece of code that took me a while to do it and I don't know if it's the best way to achieve this. First, I'll explain exactly what I want to do. I'm using lots of jQuery plugins and I don't want to include them all with

[jQuery] Re: Menu animations problem

2008-02-22 Thread Dan G. Switzer, II
Stoyan, >I'll leave the demo online, everyone here is free to use the code ;) On a non-related note, I'd suggest using the hoverIntent() plug-in with your code. The hoverIntent() improves the typical "hover" effect by only actually triggering the hover if the user "stops" over the element. This

[jQuery] Re: Menu animations problem

2008-02-22 Thread Dan G. Switzer, II
Stoyan, >you're right. This appears to be a stop() aftereffect. >Although a strange one, or at least - undocumented. >removing the queue() din't fix the problem, so had to set >explictly $( this ).stop().css('overflow', 'visible') >Now it works fine, I think. > >Thank you very much. > >I'll leave

[jQuery] Re: Menu animations problem

2008-02-22 Thread Stoyan
Hi Dan, you're right. This appears to be a stop() aftereffect. Although a strange one, or at least - undocumented. removing the queue() din't fix the problem, so had to set explictly $( this ).stop().css('overflow', 'visible') Now it works fine, I think.  Thank you very much.  I'll leave the

[jQuery] Re: preventDefault() not working in FF?

2008-02-22 Thread timothytoe
I've just been through this. preventDefault() in mousedown will keep Firefox from selecting text as you drag. This mousemove crap is the only place in my code where I check the browser. I'm sure it depends on the functionality you're trying to block, but for me it worked something like this (code

[jQuery] Re: jqmodal nested ajax

2008-02-22 Thread rayfidelity
If you would look at the demo you would see, that the demo is not nested ajax...the first modal is ajax but the second isn't i need the second one to be ajax too... On Feb 22, 3:46 pm, Tom <[EMAIL PROTECTED]> wrote: > Check out section 3 [ AJAX RELATED ] of the documentation > athttp://dev.icebu

[jQuery] Re: jquery and math functions

2008-02-22 Thread timothytoe
For most simple cases, I use a prefix of a unary plus to convert strings to numbers. It's short. It's easy to read once you're used to doing it. I haven't tested the speed, but it may be faster as well. >>> typeof("1"); "string" >>> typeof(+"1"); "number" var startmin = (+$("timestartmin").text(

[jQuery] Re: A function I wrote that you might find useful (populateFieldsWithJson)

2008-02-22 Thread Dan G. Switzer II
Skeen, >I needed a simple method to populate field names with corresponding >data from a database (for an "edit entry" interface). So I wrote the >following function, which accepts 3 arguments: the ajax get request >url, the form id, and new text for the form's submit button, if >required: > >fun

[jQuery] Re: Menu animations problem

2008-02-22 Thread Dan G. Switzer, II
Stoyan, >Hi all ! > >I am trying to create a menu like this on the front of mootools.net >(although in vertical way). > >My old code is based on something I've seen around interface together > >with a limitQueue hack - > >http://svest.org/temp/test/old/home.html >(it uses jQuery 1.1.x). > > >Howe

[jQuery] Re: How to keep text from being highlighted when I'm handling the mouse events

2008-02-22 Thread timothytoe
I battled ie through the night. Ultimately, it won. There are many ways to address the text selection issue. I found, I think six solutions on the web. I was heavy into capturing the mouse and event propagation (the div I'm "watching" is a few layers deep in the hierarchy). All of the solutions,

  1   2   >