[jQuery] Re: jquery and math functions

2008-02-22 Thread Klaus Hartl
On Feb 22, 7:03 am, Shawn [EMAIL PROTECTED] wrote: var startmin = parseInt( $(timestartmin).text() ); var stopmin = parseInt( $(timestopmin).text() ); //check to make sure you didn't get a NaN if (!startmin) startmin = 0; if (!stopmin) stopmin = 0; The second part where the sanity check

[jQuery] Re: Div Changer Using Hide And Show

2008-02-22 Thread andrea varnier
On 21 Feb, 23:03, Sientz [EMAIL PROTECTED] wrote: $('a#blackbook').click(function() { //HIDE DIVS hide_divs(); //SHOW LISTED DIV $('.blackbook').show('fast'); return false; }); you see you got all these functions that basically do the same thing. if an anchor has

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

2008-02-22 Thread timothytoe
I think you're having trouble with a closure. It's a common problem and I recently got help on it myself. JavaScript looks like C, but it's not C (or Java). You'll probably keep running into this kind of thing until you understand closures, so go ahead and search for javascript closure on

[jQuery] Menu animations problem

2008-02-22 Thread 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). However that doesn't work

[jQuery] Re: JQuery site is blank for one user

2008-02-22 Thread RobG
On Feb 22, 6:49 am, Andrew Ayres [EMAIL PROTECTED] wrote: Hi all, I've built a JQuery website,www.constitreaty.com, and tested it successfuly on Win XP Pro and Vista with IE6, IE7, Firefox 2 and Opera 9.25, as well as Mac OSX 10.4.8 with Firefox 2. Try it in Safari, it looks dreadful.

[jQuery] Re: Selecting the ancestor of an element

2008-02-22 Thread Richard D. Worth
I'm not sure I understand what you're trying to get at. If you have an element (childObj), it has only one parent, $(childObj).parent(). Perhaps you want to provide some more context if I'm not getting it? - Richard On Thu, Feb 21, 2008 at 3:48 PM, AsymF [EMAIL PROTECTED] wrote: How would I

[jQuery] jqmodal nested ajax

2008-02-22 Thread rayfidelity
Hi, Is it possible?? the plugin page doesn't have an example of this...Or is it at least possible to replace the current modal content with another ajax content in the opened modal (only one modal...not nested)...How? Thanks! BR

[jQuery] Re: Menu animations problem

2008-02-22 Thread Ariel Flesler
You could try the accordion plugin. Ariel Flesler On 22 feb, 07:07, Stoyan [EMAIL PROTECTED] wrote: 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

[jQuery] Re: Menu animations problem

2008-02-22 Thread Stoyan
Hello Ariel, I am pretty sure, you cannot achieve the desired functionality with the accordeon plugin. Just take a look at the demos and at the source code that runs them. Friday, February 22, 2008, 2:56:40 PM, you wrote: You could try the accordion plugin. Ariel Flesler | On 22

[jQuery] Re: Menu animations problem

2008-02-22 Thread Ariel Flesler
I checked in IE6, and the bottom label always gets covered like 80%, it doesn't depend on the speed of hovering. Maybe it's just an math error ? like, in your height calculations. With jQuery 1.2.3 you can change those .queue('fx',[]) for .queue([]). It will fail with jQuery 1.2.1 though. Ariel

[jQuery] Re: random tab and simple content switching

2008-02-22 Thread sperks
I worked a little longer and in case anyone has been watching trying to work out what I was on about... Here's my final code. I don't thinks it's very clean, and I'm sure there are easier ways of doing this, ways that don't require me to name the ids, etc., but I'm not familiar with the intricate

[jQuery] Re: Menu animations problem

2008-02-22 Thread Stoyan
Hello Ariel, The calculations are ok. It works on the old example, but only with jquery 1.1.x and ugly limit hack, found somewhere in the forums. I am not very much into the animation stuff to fix it myself, so with ".queue([]) .stop() .animate(... " I am acting a little blindly. My problem

[jQuery] Re: Menu animations problem

2008-02-22 Thread Stoyan
Hello Ariel, The calculations are ok. It works on the old example, but only with jquery 1.1.x and ugly limit hack, found somewhere in the forums. I am not very much into the animation stuff to fix it myself, so with ".queue([]) .stop() .animate(... " I am acting a little blindly. My problem

[jQuery] jqModal using jqmShow instead of trigger gives problems

2008-02-22 Thread Tom
Hi I use the following function to open modal windows by passing the correspondingly ID html url . function jqmWindow(div_id , page){ $('div_id).jqm({ //trigger: '#edit', ajax: page, target: false, modal: true, /* FORCE FOCUS */

[jQuery] Media Plugin Issue

2008-02-22 Thread Jake McGraw
I'm trying to use the Media Plugin as it appears to be a gift from god in the way it handles multiple media types with the same code. Unfortunately, I've got two problems: 1) I can't get it to acknowledge my custom flash video player. When I do something like: $(.mediabox).mediabox({

[jQuery] Re: Tool tip advice

2008-02-22 Thread tlphipps
Are you asking for a plugin recommendation? If so, I know the tooltip plugin (http://plugins.jquery.com/project/tooltip) detects the browser border and avoids it. On Feb 21, 3:08 pm, Mark [EMAIL PROTECTED] wrote: Hey all, the design team here has a grid/table layout, with each image in a

[jQuery] Re: jqmodal nested ajax

2008-02-22 Thread Tom
Check out section 3 [ AJAX RELATED ] of the documentation at http://dev.iceburg.net/jquery/jqModal/README A Nested Modal demo can be found here http://dev.iceburg.net/jquery/jqModal/ I have never used it myself but I assume that you can just add ajax as a parameter to the second nested jqm call?

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

2008-02-22 Thread Tom
Well I seem to have been able to fix this. Still now 100% sure what the problem was though! I originally had some header footer info in the html page to be ajaxed into the modal window. I had it set up this way as I ahd hope dto allow uses with JS disabled to redirect to the page when the Modal

[jQuery] Re: Menu animations problem

2008-02-22 Thread Ariel Flesler
Yes I see, I dunno what happens :( Ariel Flesler On 22 feb, 11:57, Stoyan [EMAIL PROTECTED] wrote: Hello Ariel, The calculations are ok. It works on the old example, but only with jquery 1.1.x and ugly limit hack, found somewhere in the forums. I am not very much into the

[jQuery] Re: jquery and math functions

2008-02-22 Thread Dan G. Switzer, II
Vlad, Is there something special that needs to be done to values selected with jQuery so math functions can work on them? parseInt or something? I am not sure, but all my calculations are getting NaN. For example, I have the following function that always produces NaN: var startmin

[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). However that

[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: function

[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() ) || 0; var

[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

[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,

[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

[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: 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 the

[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 script in the head of every html page. And I want to load these

[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.

[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

[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 p 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

[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;i5;i++) { setTimeout(function() {alert('first '+i);},5000); } 2. for (i=0;i5;i++) { (function(num) { setTimeout(function() {alert('second '+num);},

[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] 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

[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] 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

[jQuery] Tutorial here

2008-02-22 Thread thanus thanus
PLEASE PASS THIS MAIL TO YOUR FRIENDS http://systemkeeper.blogspot.com PC Booster 2008http://systemkeeper.blogspot.com/2008/02/pc-booster-2008.html http://bp0.blogger.com/_BGIBm_yZJ-Q/R76e054d0vI/J4M/rE4TCdicerk/s1600-h/7e3721a477e4.jpg If you are like most PC users, you may feel that

[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] 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: Hi,

[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

[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

[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 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

[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] 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

[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] 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 allow your existing

[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 example

[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

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

2008-02-22 Thread Doug Sparling
IE6 and older only supports hover on anchor (a). 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 area inside map. but find that its working ok

[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] 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()

[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

[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 not in my

[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] $_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

[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. a href=# id=blackbook class=showshow blackbook/a a href=# id=redbook class=showshow redbook/a div class=book hidden id=blackbook-contentblackbook stuff.../ div div class=book hidden id=redbook-contentredbook

[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 its

[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: 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 it) :).

[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

[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: 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

[jQuery] Dynamic Script Tag n code!!!

2008-02-22 Thread fshuja
how can i insert dynamic script tag inside the head tag like script language=javascript function test(){ alert('hello'); } /script 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

[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] 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

[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 (rowspan/colspan), and

[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('div id=result_messageResult

[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

[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] [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] 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: tabletr class=headtdgeneric header stuff/td/tr tr class=main/td...now wrap this.../td/tr/table John Resig wrote: I think you want .wrap():

[jQuery] Re: Selecting the ancestor of an element

2008-02-22 Thread Richard D. Worth
Then it looks like you want $(childObj).parent().prepend('div id=result_messageResult Processed/div'); 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

[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] 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] 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

[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 when

[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: 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+onbeforeunloadie=utf-8oe=utf-8aq=trls=org.mozilla:en-US:officialclient=firefox-a

[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. a href=# id=blackbook class=showshow

[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] 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

[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... file1.js:

[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 all

[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

[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 them all

[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 fixed,

[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: 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

[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 overrides

[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

[jQuery] Re: jQuery Firefox bug.

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

  1   2   >