[jQuery] Re: prevent tab changing + user message

2008-08-31 Thread Klaus Hartl
See FAQ: http://docs.jquery.com/UI/Tabs#...prevent_switching_to_the_tab_on_click_depending_on_form_validation.3F --Klaus On Aug 31, 5:23 pm, oscarml <[EMAIL PROTECTED]> wrote: > Hi to everybody, > > I'm trying to control tab switching depending on user answer to a > dialog. Here is my code; > >

[jQuery] Re: UI Tabs not working in IE

2008-08-31 Thread Klaus Hartl
Nothing related to Tabs, in IE there is a Javascript error, because of a trailing comma in an object literal: jQuery("#one").lavaLamp({fx: "backout", speed: 700,}); IE can't handle that: jQuery("#one").lavaLamp({fx: "backout", speed: 700}); --Klaus On Sep 1, 12:47 am, furio <[EMAIL PROTECTE

[jQuery] Having trouble with date picker in AJAX div

2008-08-31 Thread Tom
I created a page with a functional jQuery date picker, works exactly as intended. Even changed that page over to a PHP page, with echo's, and it still works perfectly. Problem is, when I call that PHP page from a Javascript AJAX script, even though everything displays properly, the date picker c

[jQuery] Re: Problem with taconite

2008-08-31 Thread Mike Alsup
> I see that but if you test on my web test page there is a bug > http://www.olympsport.be/contacts6";>test page > Click on the lock icon on the right and after on the button "password > oublié"  and there i don't have the value in the alert message ! > > Could you test there ? > Thanks ! Aha! Y

[jQuery] Re: Mouseover /Mouseout div issue

2008-08-31 Thread Brandon Aaron
Try using the mouseenter and mouseleave special events. $(...).bind('mouseenter mouseleave', function(event) { if ( event.type == 'mouseenter' ) { // just entered } else { // just left } }); You can also use the .hover helper method which uses mouseenter and mouseleave behind the sce

[jQuery] Mouseover /Mouseout div issue

2008-08-31 Thread MikeyJ
Hi All, I'm working on something similar in functionality to the lexus website. I've got a nav element that shows a large div on mouseover and hides it on mouseout. This div can hold other elements like thumbnails and form fields. When I move the mouse into the div all is well until I move over

[jQuery] Re: jQuery uploading. Data type question.

2008-08-31 Thread McBilly Wilford Sy
Hi Alex. Could you also give me the codes you used for the ajaxfileupload.php and doajaxfileupload.php? I tried your updated code but it still cannot understand the data file type. I tried upload both and image (jpeg) and word doc. Thanks a lot! Best, McBilly On Sun, Aug 31, 2008 at 8:55 PM, A

[jQuery] Re: jquery - adding flexibility to a function

2008-08-31 Thread Brad
The selector is a string. Therefore with a slight modification you should be able to do this function loadContent(id) { $("#contentArea"+id).load("rpc.php?o="+id+""); } On Aug 31, 6:47 pm, TheOriginalH <[EMAIL PROTECTED]> wrote: > > > funct

[jQuery] jquery - adding flexibility to a function

2008-08-31 Thread TheOriginalH
function loadContent(id) { $("#contentArea").load("rpc.php?o="+id+""); } Works well, but I'd like the function to work for an area with a variable div. So if the function is called with an id of 6, it loads the content to "#contentArea6". Any ideas on h

[jQuery] Re: IE Problem with jquery in dynamically loaded iframe.

2008-08-31 Thread Brad
I can't tell from your example, but in my experience "works in other browsers but not IE6" can usually be traced to invalid HTML markup. Also if your actual code has any more object literals than shown make sure they don't contain a trailing comma, e.g., { name: 'foo', status: 'bar', } On Aug 31

[jQuery] IE Problem with jquery in dynamically loaded iframe.

2008-08-31 Thread ScottyUCSD
This is a simplified example of an app that I'm working on. Can anyone figure out why this isn't working in IE6? I don't know if the iframe isn't loading the jquery.js file or if it's something deeper. Either way it isn't doing what it's supposed to do. When you click the button it should load new

[jQuery] Selecting same img using 2 selectors, but both doesn't return same value & doesnt equal each other :S !

2008-08-31 Thread Mahmoud M. Abdel-Fattah
I'm trying to select an image with two ways, here's a demo : http://www.duettographics.com/index.php when I apply the img.hover, I made an if statement to check if this image is current selected one, if so, it should doesn't apply the fade effect, but it does !! What's problem with this !!

[jQuery] UI Tabs not working in IE

2008-08-31 Thread furio
I am using UI Tabs in the portfolio section of my site to display the different categories of my work ( http://www.adamditota.com/portfolio www.adamditota.com/portfolio ). It seems to work fine in Firefox but not at all in IE7. I guess to kill two birds with one stone, I am also using the jQuer

[jQuery] Re: Using each() to check for content

2008-08-31 Thread hubbs
Thanks Michael, I expected that is was the invalid HTML, but didn't realize that the bowser would not let me get away with it, even if it was only for a split second before JS took over. I will change the way my list works to move the content outside of the anchor tag, and into a div. Thanks fo

[jQuery] Re: best techniques to optimize loading of multiple libraries?

2008-08-31 Thread Michael Geary
Holy moly, that is complicated! No, you don't need to do any of that. Even if it were the right approach, it's poorly coded, with the same ten-line function duplicated three times, and a completely hard-coded, non-generalized way of handing the load sequencing. (What do you do if you need to add

[jQuery] Re: simple fade in/out

2008-08-31 Thread chris
thanks that is what I was looking for :) sry for the double posts! On Aug 31, 5:00 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote: > jQuery UI Effects does color animations. See: > > http://docs.jquery.com/UI/Effects/ColorAnimations > > - Richard > > On Sun, Aug 31, 2008 at 2:24 PM, chris <[EM

[jQuery] Re: Using each() to check for content

2008-08-31 Thread Michael Geary
Yes, it's the invalid HTML that is tripping you up. You can't nest one tag inside another. The browser hoists the nested tag outside the parent to avoid this. No, you can't insert HTML that's as invalid as this into the DOM, not even momentarily. You can insert *some* kinds of invalid HTML into

[jQuery] Re: simple fade in/out

2008-08-31 Thread Richard D. Worth
jQuery UI Effects does color animations. See: http://docs.jquery.com/UI/Effects/ColorAnimations - Richard On Sun, Aug 31, 2008 at 2:24 PM, chris <[EMAIL PROTECTED]> wrote: > > It would be greatly appreciated if you can do me a test case > scenario. :) > > I know you can do it with css but I wan

[jQuery] Re: simple fade in/out

2008-08-31 Thread chris
It would be greatly appreciated if you can do me a test case scenario. :) I know you can do it with css but I wanna mess around with this for other stuff too. On Aug 31, 1:47 pm, Brad <[EMAIL PROTECTED]> wrote: > Chris, > > I don't have access to a public test server to create a demo, but I'll >

[jQuery] Re: simple fade in/out

2008-08-31 Thread chris
It would be greatly appreciated if you can do me a test case scenario. :) I know you can do it with css but I wanna mess around with this for other stuff too. On Aug 31, 1:47 pm, Brad <[EMAIL PROTECTED]> wrote: > Chris, > > I don't have access to a public test server to create a demo, but I'll >

[jQuery] Re: simple fade in/out

2008-08-31 Thread chris
It would be greatly appreciated if you can do me a test case scenario. :) I know you can do it with css but I wanna mess around with this for other stuff too. On Aug 31, 1:47 pm, Brad <[EMAIL PROTECTED]> wrote: > Chris, > > I don't have access to a public test server to create a demo, but I'll >

[jQuery] Re: simple fade in/out

2008-08-31 Thread chris
Would you know how to animate it? I really wouldn't have any ideas on how to get it to do that. but I appreciate all your help! On Aug 31, 2:40 pm, Brad <[EMAIL PROTECTED]> wrote: > Chris, > > A simple example that shows the background color of a link changing on > hover. This same effect could

[jQuery] Re: best techniques to optimize loading of multiple libraries?

2008-08-31 Thread Alex Weber
Thanks for the reply Mike, here goes: (the ==pagename.ext== denotes a new file - sure there are better ways of doing this but i hope its legible) ==index.html== http://www.mydomain.com/js/ mts_loader.js"> ==mts_loader.js== var mts_finan_times, mts_finan_timeout, mts_finan_loaded, mts_finan

[jQuery] Select menu dead in Safari

2008-08-31 Thread Eeby
I'm working on an application and I've found that a select menu within it doesn't pop up when you click on it in Safari. I've checked that the page is valid XHTML 1.0. I'm looking at this in Safari 3.1.2. I made sure there are no events bound to the select menu. Does anyone have any suggestions

[jQuery] Re: How to retrieve jQuery.query?

2008-08-31 Thread Tzury
SG, thanks for the livequery reference. it was very helpful, -- TBY > On Aug 31, 8:06 pm, Scott González <[EMAIL PROTECTED]> wrote: > That's most of what you need to do, but you also need to reassign the > prototype after overriding the init: > > $.prototype.init.prototype = $.prototype; > > Che

[jQuery] Re: simple fade in/out

2008-08-31 Thread chris
Would you know how to animate it? I really wouldn't have any ideas on how to get it to do that. but I appreciate all your help! On Aug 31, 2:40 pm, Brad <[EMAIL PROTECTED]> wrote: > Chris, > > A simple example that shows the background color of a link changing on > hover. This same effect could

[jQuery] Re: simple fade in/out

2008-08-31 Thread chris
yeah if you can create a test case it would be greatly appreciated. :) I know it can be done with just plain css, but I wanna figure this out so I can play around with it for other things too. On Aug 31, 1:47 pm, Brad <[EMAIL PROTECTED]> wrote: > Chris, > > I don't have access to a public test s

[jQuery] Re: simple fade in/out

2008-08-31 Thread chris
Would you know how to animate it? I really wouldn't have any ideas on how to get it to do that. but I appreciate all your help! On Aug 31, 2:40 pm, Brad <[EMAIL PROTECTED]> wrote: > Chris, > > A simple example that shows the background color of a link changing on > hover. This same effect could

[jQuery] Re: simple fade in/out

2008-08-31 Thread chris
Would you know how to animate it? I really wouldn't have any ideas on how to get it to do that. but I appreciate all your help! On Aug 31, 2:40 pm, Brad <[EMAIL PROTECTED]> wrote: > Chris, > > A simple example that shows the background color of a link changing on > hover. This same effect could

[jQuery] More detail needed on web forms - design pattern

2008-08-31 Thread flycast
I have been working in this for a while. When I build a web form there is typically numerous times when you ask a question like: Have you had any speeding tickets in the last three years? Yes No If yes, please give the details here. This kind of question pattern (ask a question, if answer is yes

[jQuery] Re: [autocomplete] append results to an input field

2008-08-31 Thread Mattl
Thanks - This is what I've ended up with: $(document).ready(function(){ $("#lotno1").autocomplete("../js/autocomplete.php", { mustMatch: true, max: 30, extraParams: { SaleNo: function() { return $("#salenumber").val(); } } }); $("#lotno1").result(function(

[jQuery] Re: Problem with taconite

2008-08-31 Thread alaiz007
Thanks Mike I see that but if you test on my web test page there is a bug http://www.olympsport.be/contacts6";>test page Click on the lock icon on the right and after on the button "password oublié" and there i don't have the value in the alert message ! Could you test there ? Thanks ! J-Marc

[jQuery] Trying Media Plugin -- Problem With IE

2008-08-31 Thread Tim Scott
I am getting started with the Media Plugin. I am testing with a flash movie. It seems to be working fine in Firefox. In IE however, it does not play and instead shows a broken link. Here's the generated source: http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/ swflash.cab#version=7"

[jQuery] Re: rules question

2008-08-31 Thread flycast
Perfect, thanks.

[jQuery] Re: How to retrieve jQuery.query?

2008-08-31 Thread Balazs Endresz
It would be good to know why you need this, I can hardly imagine what is this good for. Anyway, here's how you can do it: jQuery.fn.find=function( selector ) { this.query=selector; //this is the only line you have to modify var elems = jQuery.map(this, function(elem){ return jQuery.find

[jQuery] Re: jQuery Forum

2008-08-31 Thread Panzer
Im Happy to help start one, i work with forums (alot). Sooo uhh yeah, anyone want to get together on it? On Aug 31, 12:41 am, "Andy Horsman" <[EMAIL PROTECTED]> wrote: > Will there ever be an official jQuery forum?  Mailing lists are kinda > annoying and unorganized compared to forums. > > -- >

[jQuery] Detect Media Done Playing

2008-08-31 Thread Tim Scott
Is there any way to detect that a media (OBJECT or EMBED) is done playing? The specific action that I want to take is to go to another page; however, it would be ideal if I could take other different actions as well. I have seen an example of using a PARAM "flashvars" to to set a var named "endu

[jQuery] Using each() to check for content

2008-08-31 Thread hubbs
I have a listing of links that are titles for items in my database. Each item might have a description in the database as well, so I was wanting to print the description, then replace it with a * if there is any text for the description. The descriptions contain HTML such as links, so inserting t

[jQuery] Re: Using Validate with jqGrid

2008-08-31 Thread Steffan A. Cline
on 8/31/08 12:50 AM, Tony at [EMAIL PROTECTED] wrote: > > Hello, > The grid has build in fuctionality for validation. Also check the docs > for formediting. > > Regards > Tony > > On Aug 31, 8:06 am, "Steffan A. Cline" <[EMAIL PROTECTED]> wrote: >> Has anyone devised a way to have the grid use

[jQuery] Re: simple fade in/out

2008-08-31 Thread Brad
Chris, A simple example that shows the background color of a link changing on hover. This same effect could be achieved through pure CSS. Untitled Document $(document).ready(function(){ var bg = $("a").css('background-color'); // save to restore

[jQuery] Re: simple fade in/out

2008-08-31 Thread Brad
Chris, I don't have access to a public test server to create a demo, but I'll see if I can create a test case. You might also want to look at the .hover command. Can't you do this with normal CSS, or must you have a fancy fadein/ fadeout effect? Have you considered the the case where someone ro

[jQuery] Re: fadeIn/fadeOut problems

2008-08-31 Thread Karl Swedberg
It's possible that the problem is being caused by event bubbling. Rather than using .mouseover() and .mouseout() , you might want to try .hover() instead, since it accounts for those issues. $(document).ready( function() { $("#main-menu ul.menu li") .hover( function()

[jQuery] Re: simple fade in/out

2008-08-31 Thread chris
thanks for your help but I can't get it to work. Anyway you can make a test case or something for me, I am just looking for a link to have a background color and when you rollover the link it fades in a new background color, than on rollout it fades that background color out. On Aug 30, 8:09 pm,

[jQuery] using jquery hover and fade in fade out.....

2008-08-31 Thread Aaron
HI I am using jquery to use the hover event and the fadeIn fadeOut effects. the problem I get is that I want to use this on a image this image is the users image and I want to fade in a menu to edit the image or other settings ect the problem I face is that I want to use a if statement. The re

[jQuery] Ajax load to revealed content area.

2008-08-31 Thread TheOriginalH
I have the following code which nicely displays a list for me: $(document).ready(function() { $('dl> dd').hide(); //$('dl.menuleft> dd:gt(0)').hide(); use this if you want the first one to stay opened $('dl> dt').click(function() { if($(this).find("a").attr("href")){}else{ var $nextDT = $(th

[jQuery] [Valiate] rules question

2008-08-31 Thread Scott González
Built-in methods: http://docs.jquery.com/Plugins/Validate#List_of_built-in_Validation_methods Add custom methods: http://docs.jquery.com/Plugins/Validation/Validator/addMethod On Aug 30, 12:35 pm, flycast <[EMAIL PROTECTED]> wrote: > I am missing where the documentation specifies what kind of

[jQuery] Re: How to retrieve jQuery.query?

2008-08-31 Thread Scott González
That's most of what you need to do, but you also need to reassign the prototype after overriding the init: $.prototype.init.prototype = $.prototype; Check out the last few lines of the livequery plugin to see how to modify jQuery's init method. On Aug 31, 1:40 am, moester <[EMAIL PROTECTED]> w

[jQuery] Re: ajax?

2008-08-31 Thread Liam Byrne
If you're returning the login form via AJAX, the events can become "unbound" (i.e. any events bound to "login_submit" won't work). Check out livequery to counteract this fear and wonder wrote: what i'm trying to do is have a login form on my site, it looks like this right now... Email: Pas

[jQuery] prevent tab changing + user message

2008-08-31 Thread oscarml
Hi to everybody, I'm trying to control tab switching depending on user answer to a dialog. Here is my code; var TabSolicitud = $('#SolicitudAguaTabContainer > ul').tabs({ select: function(e, ui){ $("#InfoDialog").html("Do you want to save changes?");

[jQuery] Re: fadeIn/fadeOut problems

2008-08-31 Thread RichUncleSkeleton
I've made a test case: http://www.100pcmusic.com/files/menutest/ You should be able to see the problem clearly... -- Scott. On Aug 30, 9:14 pm, RichUncleSkeleton <[EMAIL PROTECTED]> wrote: > I'm creating a drop-down menu with jQuery. I made a basic version > which sets a sub-menu to display:b

[jQuery] Re: Properties escaped when sending JSON to PHP?

2008-08-31 Thread Mickster
Hi Tony, Thanks for your answer. Yes, you're right, magic quotes is on - I should have thought about that... Regards, Mickster On Aug 31, 9:55 am, Tony <[EMAIL PROTECTED]> wrote: > Hello, > usually this comes from settings on PHP. > Before get the param from php you should check if magic quot

[jQuery] Jquery Tooltip

2008-08-31 Thread Babu PCA
Hi every one, Jquery Tooltip, I have problem in showing the tooltip if i rollover on the label, i had created a structure for the tool tip using div of 200x60 length, how to do this with jquery Thanks

[jQuery] Re: Jquery Problem in IE 6

2008-08-31 Thread Mike Alsup
> I have the same problem in IE. The .html() it's not working. > > On Aug 30, 12:39 pm, Scott González <[EMAIL PROTECTED]> wrote: > > > Have you verified that the HTML you're trying to add is valid? > > > On Aug 27, 12:18 pm, Kusmayadi <[EMAIL PROTECTED]> wrote: > > > > I have the same problem too

[jQuery] Re: How to retrieve jQuery.query?

2008-08-31 Thread Tzury
On Aug 31, 3:35 am, dabear <[EMAIL PROTECTED]> wrote: > Not sure if I answer your question completly, but doing that test on > each elements tagName should do it what will you do in case of $('div > p')?

[jQuery] Re: Jquery Problem in IE 6

2008-08-31 Thread marcoshernandez
I have the same problem in IE. The .html() it's not working. On Aug 30, 12:39 pm, Scott González <[EMAIL PROTECTED]> wrote: > Have you verified that the HTML you're trying to add is valid? > > On Aug 27, 12:18 pm, Kusmayadi <[EMAIL PROTECTED]> wrote: > > > I have the same problem too ... I use jQ

[jQuery] Re: Problem with taconite

2008-08-31 Thread Mike Alsup
> I've a problem with a javascript in an taconite xml > > my xml here : > > http://www.olympsport.be/oubli_password.php > > The javascript in the eval balise don't put the value of my field in > the t1 variable. > > my eval balise has perhaps a problem in his form ? Seems to work ok for me. I've

[jQuery] Re: jQuery uploading. Data type question.

2008-08-31 Thread Alexandre Plennevaux
as a matter of fact, i just used that plugin and i had to do a lot of fixing in order for it to work on jquery 1.2.6 here is the updated code: jQuery.extend({ createUploadIframe: function(id, uri){ //create frame var frameId = 'jUploadFrame' + id; if (window.Activ

[jQuery] Re: Cycle plugin: more then elements in slideExpr:

2008-08-31 Thread Mike Alsup
> Is it also possible to use the CSS selectors to select images in a > certain class or ID? > > > > > > > and use 'img .cycle' as slideExpr to show only the images with class > 'cycle' or Yes, but your CSS is not correct. To select only images with a class of "cycle" you would do: slideExpr

[jQuery] Re: jQuery uploading. Data type question.

2008-08-31 Thread McBilly Wilford Sy
Hi Alex. Thanks for the help. I'm not sure what I'm doing wrong since the upload code works fine if I don't use jquery. I can upload the file and store it as a BLOB in the database. But this only works if I use the form and POST method and letting the whole page load. Anyway, thanks again. If I d

[jQuery] Re: Add span and class with text used inside a href - WrapInner according to text

2008-08-31 Thread José Pablo Orozco Marín
I was trying to use InnerWrap but firebug say is not a function. > Hi group, > > How do i dinamically convert strings like > view > view > view > view > To: > view > add > edit > delete > > I was reading: > http://docs.jquery.com/Attributes/text > http://docs.jquery.com/Manipulation/wrapInner > >

[jQuery] Re: How to retrieve jQuery.query?

2008-08-31 Thread dabear
Not sure if I answer your question completly, but doing that test on each elements tagName should do it Tzury skrev: > Say a user called $('div.foo') I would like to get this 'div.foo' from > within my plug-in context. > > I look through the code and couldn't find a property which contain > this

[jQuery] Re: ui.draggable choking focus event

2008-08-31 Thread LinskI
I moved this to the jQuery-ui list

[jQuery] Re: DnD slow(?) performance

2008-08-31 Thread LinskI
Oh that means that the other post is on the wrong place. Tnx for the info :) On Aug 30, 10:50 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote: > Sorry, I didn't read your email closely enough - you are using divs, Ok. > Well, like I said - UI list for UI questions. Sorry for the noise. > > - Ric

[jQuery] Problem with taconite

2008-08-31 Thread alaiz007
Hello, I've a problem with a javascript in an taconite xml my xml here : http://www.olympsport.be/oubli_password.php The javascript in the eval balise don't put the value of my field in the t1 variable. my eval balise has perhaps a problem in his form ? Could you help me Thanks

[jQuery] Cycle plugin: more then elements in slideExpr:

2008-08-31 Thread ppblaauw
Hi, I know it is possible to use 'img' as slideExpr to show images in e.g. a div or 'tr' to show rows in a table etc. You choose a HTML Element in slideExpr Is it also possible to use the CSS selectors to select images in a certain class or ID? and use 'img .cycle' as slideExp

[jQuery] Re: How to retrieve jQuery.query?

2008-08-31 Thread Tzury
On Aug 31, 12:46 pm, Olivier Percebois-Garve <[EMAIL PROTECTED]> wrote: > the appropriate name is : this sorry sir, bu 'this' does not represents the selector expression at any time I would like to retrieve the selector which initialized the jQuery instantiation. for example $('div.foo') ret

[jQuery] Re: How to retrieve jQuery.query?

2008-08-31 Thread moester
I had a similar need. Wanted to override the default load() functionality, and needed the original selector. I tried overriding jQuery.init to save the passed in selector, eg, jQuery.fn.extend(jQuery.fn, { _init : jQuery.fn.init, _selector : '', init : function (selector, context) {

[jQuery] .resizable => onmousedown: enlarges my box

2008-08-31 Thread js-victim
Hello, today I worry about jquery's API which does not do what I want :-/ I have an object () with .resizable() and .draggable(). These two features work without troubles, it is resizable and you can drag/drop it. BUT everytime I do a click on the object, it's size changes and becomes greater. Di

[jQuery] Re: How to retrieve jQuery.query?

2008-08-31 Thread Olivier Percebois-Garve
the appropriate name is : this Tzury wrote: Say a user called $('div.foo') I would like to get this 'div.foo' from within my plug-in context. I look through the code and couldn't find a property which contain this data; I was thinking that 'query' is the appropriate name for this property ex

[jQuery] Re: [autocomplete] append results to an input field

2008-08-31 Thread Giovanni Battista Lenoci
Mattl ha scritto: $(this).parent().next().find("input").val(data[1]); The error is in this line: $(this) -> refers to the input with the autocomplete parent -> refers to the containing the input fields next-> refers to the next after the that fired the autocompl

[jQuery] Re: Properties escaped when sending JSON to PHP?

2008-08-31 Thread Tony
Hello, usually this comes from settings on PHP. Before get the param from php you should check if magic quotes are on. If the are on you should apply stripslashes on this parameter. Regards Tony On Aug 31, 1:46 am, Mickster <[EMAIL PROTECTED]> wrote: > Hi there, > > I've just spent an hour trying

[jQuery] Re: Using Validate with jqGrid

2008-08-31 Thread Tony
Hello, The grid has build in fuctionality for validation. Also check the docs for formediting. Regards Tony On Aug 31, 8:06 am, "Steffan A. Cline" <[EMAIL PROTECTED]> wrote: > Has anyone devised a way to have the grid use validate for the edit and add > forms? > > Thanks > > Steffan > >