[jQuery] Re: traverse complete DOM of a webpage

2009-06-02 Thread Sourabh
Thanks this solved my problem :) On May 21, 6:57 am, RobG wrote: > On May 20, 8:35 pm, Sourabh wrote: > > > Hi > > > I am new to jQuery.I have a problem where I want to traverse through > > DOM.For example a complete webpage.Is there any jQuery way to traverse > > complete DOM of the current pa

[jQuery] Re: How to prevent a particular field being submitted in form submission

2009-06-02 Thread waseem sabjee
you could also completely remove the field from the DOM ("#myfield").remove(); On Wed, Jun 3, 2009 at 7:40 AM, mkmanning wrote: > > To set the value of a form field, use this: > > $("#myFieldId").val("") > > To do this without setting the field to an empty value, modify your > original approach:

[jQuery] Re: Help getting a variable

2009-06-02 Thread waseem sabjee
lets say you have a page called data.php you do not need to form a query string but you can place the variables in html tags with a specific ID in the URL you are requsting data.php == $x = 5; $y = 8; // this is the jquery to request from the above page $.ajax({ URL:"data.php", success: fu

[jQuery] Re: How to prevent a particular field being submitted in form submission

2009-06-02 Thread mkmanning
To set the value of a form field, use this: $("#myFieldId").val("") To do this without setting the field to an empty value, modify your original approach: $("#MyForm").submit(function(){ var params = $(this).serializeArray(); $.post('/register.php', $(par

[jQuery] Re: How to prevent a particular field being submitted in form submission

2009-06-02 Thread Clare
I tried disabing the field, but unfortunately no respose from the server in ajax call. $("#myFieldId").attr({value:""}) works fine. Is there any way to do this without resetting the field value?

[jQuery] Re: Superfish Horizontal Nav-bar Question

2009-06-02 Thread Charlie
not a perfect solution but you won't see any subs for any of the time cursor is over "Home" $(".sf-menu li:eq(0)").hover(   function () {     $(".lower").css("left","-999em");   },   function () {     $(".lower").css("left","0em");   } ); gerbert wrote: Joel Birch are you around? Anyb

[jQuery] Re: jQuery + .Net + json

2009-06-02 Thread MorningZ
I suggest starting with as simple an example as possible, the code you posted at first simply is too much too soon. On Jun 2, 6:09 pm, will wrote: > MorningZ: > > Do you mind if we communicate offline. I'm not getting any errors but > I still can't get the example to work. I'm new to jQuer

[jQuery] TreeView - what alternatives are there?

2009-06-02 Thread Devin
I like TreeView, but its a little bland. Is there anything with similar functionality?

[jQuery] Re: jCarousel sliding 2 items

2009-06-02 Thread Gustavo Salomé
Try to specify your carousel itens, like this: jQuery('#mycarousel').jcarousel({ auto: 0, scroll: 2, * items: 'li div.jcarousel_item_content**',* wrap: 'last', buttonNextHTML: '', buttonPrevHTM

[jQuery] Re: Equivalent of Event.observe

2009-06-02 Thread Gustavo Salomé
$(document).bind('keydown', function(e) { if (e.keyCode == 27) $('#input').focus(); return true }); 27 is the ESC key. Check out the ascii table for the keys you want. 2009/6/2 Adam S > > I'm trying to make the cursor focus on a certain input element when > someone hits a certai

[jQuery] Re: jquery dialog - close if clicking outside dialog area?

2009-06-02 Thread Gustavo Salomé
Sure. $('body').click(function(){ $('dialog.selector').dialog( 'close' ); }); 2009/6/2 Dennis Morgan > Is it possible to have the jquery ui dialog close when clicking outside the > area of the dialog? Like facebox? Thanks. -- Gustavo Salome Silva

[jQuery] Re: jquery dialog - close if clicking outside dialog area?

2009-06-02 Thread Jonathan
$(document).bind('click', function() { $('#dialog_id').dialog('close'); }); Something like this should do it, although you're going to want to put some checks to test if you're clicking on the something within the dialog so it doesn't close erroneously. And you may also want to only bind the ev

[jQuery] [validate] Why isn't this validator catching bad usernames?

2009-06-02 Thread m...@chrisadams.me.uk
Hi guys, I'm trying to set up a validator to check that usernames consist letters, numbers and underscores here, and I can't work out why the validator isn't listing this field as one with a problem. The regexp tests okay, and I've added the jQuery validator the way you would expect, by followin

[jQuery] Re: fadeIn() on elements with alpha filter not working properly in IE

2009-06-02 Thread danny.copel...@gmail.com
How about targeting the child, like so: $('elementToFade').find('div.opacity').css('filter','alpha (opacity=80)').fadeIn(); On Jun 2, 3:21 pm, Luch Univision wrote: > Mauricio, > > I am dealing with the fading in of one which in turn has three > child elements: > > ... > >     >     >  

[jQuery] Equivalent of Event.observe

2009-06-02 Thread Adam S
I'm trying to make the cursor focus on a certain input element when someone hits a certain key combo (such as Shift+S). Does anyone know how you attach a listener like that and bind it to a key combo? Thanks in advance, Adam

[jQuery] jquery dialog - close if clicking outside dialog area?

2009-06-02 Thread Dennis Morgan
Is it possible to have the jquery ui dialog close when clicking outside the area of the dialog? Like facebox? Thanks.

[jQuery] Multiple image requests in IE 6 when using the html() function

2009-06-02 Thread Gowtham
Hi, I am using jQuery.ajax to make an ajax request and my response contains an IMG tag. I use html(val) to update the contents of my DIV, but there are 3 requests for each image referenced in my IMG tag when i monitor this request using HTTP watch. If i use a regular DOM innerHTML property there a

[jQuery] jCarousel sliding 2 items

2009-06-02 Thread m.naetl...@googlemail.com
Hi there, I just set up a jCarousel and I am impressed of what it's capable of. I display two items at a time and want to scroll two items per click. Currently there are 6 items in the containing the data for the carousel. Apperently, I got a problem with sliding always two. My problem is that

[jQuery] Re: Superfish Horizontal Nav-bar Question

2009-06-02 Thread gerbert
Joel Birch are you around? Anybody else feel like giving it a crack? Thanks. On Jun 2, 2:20 pm, waseem sabjee wrote: > yeah. browser computability does take a bit of time when you start from > scratch > usually either ie7 or ie6 is the problem for mefirefox, chrom and safari > i'm good with.

[jQuery] Help getting a variable

2009-06-02 Thread Dave Maharaj :: WidePixels.com
I am trying to get 2 variablesbut not sure how I can get them from the form i have hard coded $(this).ajaxSubmit({ type:'post', url: '/joesmith/update/profile', data: queryString, target: '#profile', success: function() {alert(queryString);}

[jQuery] Re: jQuery + .Net + json

2009-06-02 Thread will
MorningZ: Do you mind if we communicate offline. I'm not getting any errors but I still can't get the example to work. I'm new to jQuery and the client side debugging. Thanks On Jun 2, 3:17 pm, MorningZ wrote: > "What I've learned is that the $.getJason > will not work on .Net because of the h

[jQuery] Re: Form plugin asynchronous behavior

2009-06-02 Thread dann
> $.ajaxSetup({async:true}); I added that at the top of the $(document).ready(function() function, but I'm still getting the same result. > Btw, i work a lot with ajax and i've never had this problem. I'm wondering if maybe I'm not describing this problem properly... I feel like the trouble I'm

[jQuery] Re: Net Tuts interviews Karl Swedberg

2009-06-02 Thread Rey Bango
Thanks for posting this! Karl, apart from being my friend and jQuery teammate, is one of the biggest supporters of the jQuery project and one of the nicest guys you will ever meet. I'm glad he's getting the recognition he deserves. And everyone should be sure to visit his site http://learnin

[jQuery] Re: fadeIn() on elements with alpha filter not working properly in IE

2009-06-02 Thread Matt Critchlow
An alternative might be to use the fadeTo function and pass in the opacity you want. This worked for me in a very similar case with IE. Just a thought. On Jun 2, 12:45 pm, "Mauricio \(Maujor\) Samy Silva" wrote: > It's hard to figure out what you are trying to do without a test case. > Woulkd yo

[jQuery] Re: Superfish Horizontal Nav-bar Question

2009-06-02 Thread waseem sabjee
yeah. browser computability does take a bit of time when you start from scratch usually either ie7 or ie6 is the problem for mefirefox, chrom and safari i'm good with. On Tue, Jun 2, 2009 at 10:09 PM, gerbert wrote: > > I was thinking I should probably just start from scratch, but opted > w

[jQuery] Re: tilde (~) selector

2009-06-02 Thread Karl Swedberg
Looks like it has been reported a few times: http://dev.jquery.com/ticket/4243 http://dev.jquery.com/ticket/4569 http://dev.jquery.com/ticket/4606 and possibly: http://dev.jquery.com/ticket/4428 --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 2, 2009,

[jQuery] Re: Ajax forms

2009-06-02 Thread Dave Maharaj :: WidePixels.com
Thanks! Appreciate the time. Dave _ From: Gustavo Salomé [mailto:gustavon...@gmail.com] Sent: June-02-09 5:41 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Ajax forms Its simple. Just remove the $.post function then do this: $(this).ajaxSubmit({

[jQuery] Re: jQuery + .Net + json

2009-06-02 Thread will
Thanks for the response. I may have jumped to the incorrect conclusion - the article was about web services: http://encosia.com/2008/03/27/using-jquery-to-consume-aspnet-json-web-services/ I do use the json helper you mentioned, thanks. Never used .ashx. I'll try that. On Jun 2, 3:17 pm, Morning

[jQuery] Re: JSON- PHP generated JS-file question

2009-06-02 Thread Kristof
i like the idea of building in a treager. each time the user ads a new product or changes a product i could rewrite the new file. Good idea thanks! thanks for the URL"s too ! On Jun 2, 8:02 pm, jsuggs wrote: > Look at some of the auto-complete plugins, they do a lot of what you > are asking for

[jQuery] Re: Request: build hoverFlow in jquery core

2009-06-02 Thread Ralf Stoltze
Hi Mark, First let me say that your request might be better suited for the jquery-dev list. As the author of hoverFlow I'm not quite sure if and how hoverFlow should be included in core. I think that hoverFlow doesn't solve a general problem with animations, it solves a special issue that arise

[jQuery] Re: JSON- PHP generated JS-file question

2009-06-02 Thread Kristof
thanks for your insight. Well the idea is to make a small offline "bank/ cash register"? (where you can create an invoice per client each time he/she buys something.) So basically for my project i could use the DB method but if i ever want to make it for a big client that has > 1000 products and t

[jQuery] Re: tilde (~) selector

2009-06-02 Thread Ricardo
Ran into this just yesterday, I wonder how it wasn't caught in the test suite. On Jun 2, 4:29 pm, "Mauricio \(Maujor\) Samy Silva" wrote: > Yes, it appear to be a 1.3.2 jQuery version bug. > Take a look at test cases: > > Version 1.3.1 working:http://jsbin.com/usidi/edit > > Version 1.3.2 doesn'

[jQuery] Re: Form plugin asynchronous behavior

2009-06-02 Thread Gustavo Salomé
Try $.ajaxSetup({async:true}); I think its the only reasonable explanation. Btw, i work a lot with ajax and i've never had this problem. 2009/6/2 dann <00d...@gmail.com> > > Thank you both for the help! > > > Is the 30 second request a file upload? > > No file uploads involved: it's just a sing

[jQuery] Re: Form plugin asynchronous behavior

2009-06-02 Thread dann
Thank you both for the help! > Is the 30 second request a file upload? No file uploads involved: it's just a single text input that's submitted, but the processes on the server can take awhile. > Be sure to set the ajax param 'async' to true. In the ajax docs it looks like it's set to true by

[jQuery] Re: jQuery + .Net + json

2009-06-02 Thread MorningZ
"What I've learned is that the $.getJason will not work on .Net because of the handler" I have no idea how such a conclusion came about, but rest assured that the $.getJSON method most definitely works with .NET I don't have time to really go through all that code, but i will provide some advice

[jQuery] Re: scrollTo plugin: prevent tabbing between slides?

2009-06-02 Thread Jack Killpatrick
Anyone have any ideas? TIA. - Jack Jack Killpatrick wrote: Hi, Does anyone know of a way to prevent tabbing (via keyboard tab key) between form fields in different "slides" when using the jquery scrollTo plugin? For example, I have a UL with 2 LI's in it and each LI has a inside of it. I

[jQuery] Feature Request - Customized/Bundled Downloads

2009-06-02 Thread jsuggs
I've been thinking about this for a while. What level of effort would be required to be able to specify all of the plugins that you want "bundled" then it pull the latest versions and automatically create a set of customized downloads (full,min,gzipped,etc)? It would allow you to have your one o

[jQuery] Re: Ajax forms

2009-06-02 Thread Gustavo Salomé
Its simple. Just remove the $.post function then do this: $(this).ajaxSubmit({ type: 'post', url:'/update', * data: queryString,* target: '#userForm',

[jQuery] Re: Superfish Horizontal Nav-bar Question

2009-06-02 Thread gerbert
I was thinking I should probably just start from scratch, but opted with superfish because I liked that it used hoverintent, that it degraded nicely, and that it is compatible with all the browsers. I didn't think I would be able to acomplish all that myself being a beginner. I would love some li

[jQuery] jQuery + .Net + json

2009-06-02 Thread will
I can not get this combo to work with an example from jQuery in action. I'm trying to port the examples from jsp to .net. I'll post the least amount of code. What I've learned is that the $.getJason will not work on .Net because of the handler (not sure if this is true but either method does not w

[jQuery] Re: Superfish Horizontal Nav-bar Question

2009-06-02 Thread waseem sabjee
Would you like me to show you how to create your very own jquery plug in ? usually when i get a request for a menu system at work. the design and animation on it would be custom and I would make my own plug in with parameters or extend one of my existing plugins :) On Tue, Jun 2, 2009 at 9:43 P

[jQuery] Re: text of first sibling of a parent...How do I get it

2009-06-02 Thread Mauricio (Maujor) Samy Silva
var myText = $('#knowndiv').parents('table').find('td:first').text(); alert(myText); Maurício -Mensagem Original- De: con-man-jake Para: jQuery (English) Enviada em: terça-feira, 2 de junho de 2009 16:38 Assunto: [jQuery] text of first sibling of a parent...How do I get it

[jQuery] Re: text of first sibling of a parent...How do I get it

2009-06-02 Thread waseem sabjee
first lets give an ID to your table now heres your script. var obj = $("mytable"); var rows = $("tr"): // according to this we going to find text in the first td of the first tr rows.each(function(i) { var columns = rows.eq(i); alert(columns.eq(0).text()); }); the script above should give

[jQuery] Re: fadeIn() on elements with alpha filter not working properly in IE

2009-06-02 Thread Mauricio (Maujor) Samy Silva
It's hard to figure out what you are trying to do without a test case. Woulkd you please host a test case? Or, provide the relevant HTML markup and jQuery code? Maurício -Mensagem Original- De: Luch Univision Para: jQuery (English) Enviada em: terça-feira, 2 de junho de 2009 16

[jQuery] Re: Superfish Horizontal Nav-bar Question

2009-06-02 Thread gerbert
Thanks waseem, I'm not sure what superdrop is, but mine is a slightly modified version of the superfish "nav-bar style" located here: http://users.tpg.com.au/j_birch/plugins/superfish/#examples I will try to implement your code. The hard part is going to be putting it in the right place. These

[jQuery] text of first sibling of a parent...How do I get it

2009-06-02 Thread con-man-jake
Still a newbie. I have this: text I want to get If I have the div with id of "knowndiv" as an object (call it "obj"), How do I get the text inside the first ?

[jQuery] Re: Can jQuery parse XML locally?

2009-06-02 Thread fredriley
On Jun 2, 6:42 pm, jsuggs wrote: > Basic answer, yes.  If you copied and pasted the example html, then > the url parameter references "labels.xml", which would have to reside > in the same directory as where you saved the html file. Also, don't > forget that you also need the jquery file it refer

[jQuery] Re: jquery help

2009-06-02 Thread alienfactory
ok i added a click handler to the callback 'callbackOnStart':function(){ $('.target').click(function(){$(this).css ({'visibility': 'hidden'}); }); but when clicked on the first time it does nothing but any time after that it work as intended

[jQuery] Re: tilde (~) selector

2009-06-02 Thread Mauricio (Maujor) Samy Silva
Yes, it appear to be a 1.3.2 jQuery version bug. Take a look at test cases: Version 1.3.1 working: http://jsbin.com/usidi/edit Version 1.3.2 doesn't working: http://jsbin.com/upapu/edit Maurício -Mensagem Original- De: Jakub Suder Para: jQuery (English) Enviada em: terça-feira

[jQuery] Re: Superfish Horizontal Nav-bar Question

2009-06-02 Thread waseem sabjee
Isn't this a "Superdrop" style menu ? ahh anyway in order to achieve that you would need to have a specific class for those that don't have drop downs. then for the hove event var theclass $(this).attr("class"); if(theclass != "nosub") { $("lower").show(); } else { $("lower").hide(); } On Tu

[jQuery] Re: fadeIn() on elements with alpha filter not working properly in IE

2009-06-02 Thread Luch Univision
Mauricio, I am dealing with the fading in of one which in turn has three child elements: ... ... .opacity { -moz-opacity: .8; opacity:0.80; filter:alpha(opacity=80); } ... $('#foo').fadeIn('slow'); ... So, by doing what you suggested, the entire will have the

[jQuery] Re: Mouseleave event

2009-06-02 Thread zayatzz
Thanks for the info This mouseintent is quite cool script. I did just what you suggested - i just removed the extra 2 seconds timeout and used config from the example instead. Thanks again. Alan On Jun 2, 9:41 pm, Gustavo Salomé wrote: > Check out this > plugin:http://cherne.net/brian/resou

[jQuery] Superfish Horizontal Nav-bar Question

2009-06-02 Thread gerbert
On the Superfish Horizontal Nav-bar there is one issue I am having: when a user hovers over a button that doesn't have a subnav, it doesn't clear out the "current" subnav menu...I think it would be better usability-wise to clear out the links so the subnav is empty when a parent link has no sub-me

[jQuery] Re: jquery help

2009-06-02 Thread alienfactory
thanks for responding, fanctbox is a lightbox plugin if you have not already notice, when clicking on a image it loads an ajax requested file it works find the code below will hide all classes with the name target. i need a callback function to hide the item that is clicked i imagine the click ha

[jQuery] Re: Any way to make an anonymous function die?

2009-06-02 Thread Laker Netman
On Jun 2, 1:59 pm, Laker Netman wrote: > On Jun 2, 1:08 pm, Ricardo wrote: > > > > > Or add another class name: > > > > >     > > > > > > >     > > > > > $('.myselects:not(.clicked)').live('click', function(){ > >      $(this).addClass('clicked'); > > > }); > > > On Jun 2, 1:00 pm, Isaac G

[jQuery] Re: tilde (~) selector

2009-06-02 Thread Jakub Suder
I've checked in multiple browsers using browsershots.org, and only the ones from Opera 10 and Firefox 3.1 were OK, the rest were broken (example: Firefox 3.0: http://dl.getdropbox.com/u/41808/ff3win.png). It looks like this might be the answer: http://osdir.com/ml/jquery-dev/2009-03/msg00185.htm

[jQuery] Re: CSS attributes as a variable.

2009-06-02 Thread jeff
Worked! Thanks!!! On Jun 2, 2:58 pm, waseem sabjee wrote: > something like this > > var mycolor = "#000"; > $("h1").css({color:mycolor }); > > this is your statement > > 'color', ' + color + ' > > it should be > > color:color > > On Tue, Jun 2, 2009 at 8:50 PM, jeff wrote: > > > Hello, I am try

[jQuery] Re: CSS attributes as a variable.

2009-06-02 Thread mkmanning
$("h1").css({'color':color}); On Jun 2, 11:50 am, jeff wrote: > Hello, I am trying to get the color of an element and change the color > of another element with that color. Does this make sense? > > What is wrong with this? I would like all of the H1 tags to inherent > the color of ".ui-state-er

[jQuery] Re: Any way to make an anonymous function die?

2009-06-02 Thread Laker Netman
On Jun 2, 1:08 pm, Ricardo wrote: > Or add another class name: > > >     > > > >     > > > $('.myselects:not(.clicked)').live('click', function(){ >      $(this).addClass('clicked'); > > }); > > On Jun 2, 1:00 pm, Isaac Gonzalez wrote: > > > I'm not sure if this is the best solution but yo

[jQuery] Re: CSS attributes as a variable.

2009-06-02 Thread waseem sabjee
something like this var mycolor = "#000"; $("h1").css({color:mycolor }); this is your statement 'color', ' + color + ' it should be color:color On Tue, Jun 2, 2009 at 8:50 PM, jeff wrote: > > Hello, I am trying to get the color of an element and change the color > of another element with th

[jQuery] Re: jquery help

2009-06-02 Thread Michael Lawson
Hmm, i'm not familiar with fancy box, but I don't see an onclick event being bound to any objects. What should your code do, and what is it doing instead? cheers Michael Lawson Development Lead, Global Solutions, ibm.com Phone: 1-276-206-8393 E-mail: mjlaw...@us.ibm.com 'Examine my teachings

[jQuery] jquery help

2009-06-02 Thread alienfactory
can anyone in the jquery community help me with an issue. the group for fancybox is not very active my problem is the following i am trying to use a callback in the fancybox plugin 'callbackOnStart':function(){ $(".target").css({'visibility': 'hidden'}); this example hides all the classes marked

[jQuery] CSS attributes as a variable.

2009-06-02 Thread jeff
Hello, I am trying to get the color of an element and change the color of another element with that color. Does this make sense? What is wrong with this? I would like all of the H1 tags to inherent the color of ".ui-state-error". Thank you in advance! $(function(){ var color =

[jQuery] Re: Ann: jqPlot 0.6.2 released

2009-06-02 Thread Jack Killpatrick
This is really great work, thanks for sharing! Good stuff! - Jack Chris Leonello wrote: jqPlot is an open source plotting plugin for jQuery. The 0.6.2 release adds many new features including: Rotated axis text. Vertical and horizontal bar charts. Automatic trend line computation. Data point

[jQuery] Re: fadeIn() on elements with alpha filter not working properly in IE

2009-06-02 Thread Mauricio (Maujor) Samy Silva
Sorry for the previous post.Hit send early :-( Reset the opacity to IE when fading in the element like so: $('elementToFade').css('filter','alpha(opacity=80)').fadeIn(); Maurício -Mensagem Original- De: Luch Univision Para: jQuery (English) Enviada em: terça-feira, 2 d

[jQuery] Re: Mouseleave event

2009-06-02 Thread Gustavo Salomé
Check out this plugin: http://cherne.net/brian/resources/jquery.hoverIntent.html It may help you. Instead of mouseenter and leave do $('object').hoverIntent(function(){ $("ul.LvlTwo").slideToggle('medium'); },function(){ setTimeout(functi

[jQuery] Re: fadeIn() on elements with alpha filter not working properly in IE

2009-06-02 Thread Mauricio (Maujor) Samy Silva
Reset the opacity to IE when fading in the element like so: -Mensagem Original- De: Luch Univision Para: jQuery (English) Enviada em: terça-feira, 2 de junho de 2009 14:46 Assunto: [jQuery] fadeIn() on elements with alpha filter not working properly in IE I am running in

[jQuery] Re: accessing dom from different domain ?

2009-06-02 Thread waseem sabjee
That data I transfer was non-sensitive data, but yeah...I am looking for a better way. On Tue, Jun 2, 2009 at 8:24 PM, Ricardo wrote: > > I guess you're using local pages on IE, otherwise same origin policy > applies. > > On Jun 2, 1:08 pm, waseem sabjee wrote: > > I currently use that cod on a

[jQuery] Re: Create Ajax Request & and edit html request

2009-06-02 Thread Andy Matthews
If you're loading in a chunk of HTML, then you can treat that chunk as a jQuery object. For example, if you have the following HTML code that is being pulled back from an AJAX call, and you only want to use the div tag you might do something like this. REMOTE HTML: This is a

[jQuery] Re: Create Ajax Request & and edit html request

2009-06-02 Thread Gustavo Salomé
Select the elements you want before the request, like: var $elements=$('input'); $.ajax({success:function(data){ alert($elements.html()); }}); 2009/6/2 Kevz > > [b]Hay guys![/b], > > I worked with now in jQuery. Property however at present the following > problem: > > [i]I provide a AJAX Request

[jQuery] Re: accessing value in ajax form without submitting the form

2009-06-02 Thread waseem sabjee
$.ajax({ URL:"someurl.php", success: function(html) { var radios = $("radio", html); $("body").prepend('<\/div>'); radios.each(function(i) { $(".radios").append(radios.eq(i).val() + ""); }); }); }); The Above example retrieves all the html from someurl.php then i narrow my selection down to every

[jQuery] Re: Mouseleave event

2009-06-02 Thread zayatzz
Thanks. I did that: $(document).ready(function () { $("ul.LvlOne li:has(ul)").bind("mouseenter",function(event){ $("ul.LvlTwo").slideToggle('medium'); }); $("ul.LvlOn

[jQuery] Re: accessing dom from different domain ?

2009-06-02 Thread Ricardo
I guess you're using local pages on IE, otherwise same origin policy applies. On Jun 2, 1:08 pm, waseem sabjee wrote: > I currently use that cod on a few sties. it works perfectly. > > On Tue, Jun 2, 2009 at 3:58 PM, kaspar wrote: > > > This restriction calls Same origin policy > >http://en.wik

[jQuery] Re: accessing dom from different domain ?

2009-06-02 Thread Ricardo
Right, you won't be able to circumvent that. Thinking of it, it's not feasible to use OAuth via javascript. One, because of these cross-domain issues, two, because you would expose your secret to the browser. You should probably do the authentication server-side and pass only what's necessary to

[jQuery] Re: [autocomplete] hard time with accent

2009-06-02 Thread Tom Worster
On 6/1/09 2:48 PM, "Gui" wrote: > I'm currently using this JQuery autocomplete plugin. It fits my needs, > pretty cool, however I'm having a hard time with accents. If I type: > Antonio, the plugin won't retrieve Antônio. I mean, it won't handle > the special characters (á, à, é, í, ó, ú and so

[jQuery] Create Ajax Request & and edit html request

2009-06-02 Thread Kevz
[b]Hay guys![/b], I worked with now in jQuery. Property however at present the following problem: [i]I provide a AJAX Request. the side is loaded, the parameters all conveyed and back receives I a complete HTML side. Now I would like to have only certain elements however from this side, like DIV

[jQuery] Re: JSON- PHP generated JS-file question

2009-06-02 Thread James
I don't mean to step on your idea, but I think the database method probably works better. Databases are usually highly optimized to do text-search and it should be fairly quick. By using the separate JSON file method, you're just placing all the processing work on the client- side, which might hin

[jQuery] Re: Any way to make an anonymous function die?

2009-06-02 Thread Ricardo
Or add another class name: $('.myselects:not(.clicked)').live('click', function(){ $(this).addClass('clicked'); }); On Jun 2, 1:00 pm, Isaac Gonzalez wrote: > I'm not sure if this is the best solution but you can always change   > the class name of the li after it's been clic

[jQuery] Re: Form plugin asynchronous behavior

2009-06-02 Thread Gustavo Salomé
Be sure to set the ajax param 'async' to true. 2009/6/2 Mike Alsup > > > The problem I'm having is that the form submissions seem to be queued > > and submitted synchronously, so if a user submits a request that takes > > say 30 seconds and then immediately submits another request that only > >

[jQuery] Re: JSON- PHP generated JS-file question

2009-06-02 Thread jsuggs
Look at some of the auto-complete plugins, they do a lot of what you are asking for already including caching of results so that you don't have to do as many lookups or requests. http://plugins.jquery.com/project/autocompletex http://plugins.jquery.com/project/js-autocomplete http://plugins.jquer

[jQuery] Re: fadeIn() on elements with alpha filter not working properly in IE

2009-06-02 Thread Gustavo Salomé
Its true, i had the same problem a while ago. I couldnt solve it. 2009/6/2 Luch Univision > > I am running into an effect issue with IE only. I have a with > about 4 and I apply the fadeIn() on individual based on user > actions. Inside of each I have a div that is styled with: > > -moz-op

[jQuery] fadeIn() on elements with alpha filter not working properly in IE

2009-06-02 Thread Luch Univision
I am running into an effect issue with IE only. I have a with about 4 and I apply the fadeIn() on individual based on user actions. Inside of each I have a div that is styled with: -moz-opacity:.8; opacity:0.80; filter:alpha(opacity=80); The problem is that when I fadeIn() the all of its c

[jQuery] Re: Can jQuery parse XML locally?

2009-06-02 Thread jsuggs
Basic answer, yes. If you copied and pasted the example html, then the url parameter references "labels.xml", which would have to reside in the same directory as where you saved the html file. Also, don't forget that you also need the jquery file it references as well. So to more succinctly answ

[jQuery] Re: Mouseleave event

2009-06-02 Thread Gustavo Salomé
Try the setTimeout function 2009/6/2 zayatzz > > Hello > > Is it possible to mouseleave event have some kind of delay inserted > into it? > > I have this small script, which is working just fine : > > >$(document).ready(function () { >$("ul.LvlOne

[jQuery] Re: Stop .blur() on tabbing out.

2009-06-02 Thread Gustavo Salomé
Im not sure if i understood what you want, but try this: function glow(){ if($('#front').data('state')==true)return false; var myCols = [{param:'background-color', fromColor: '#222', toColor: 'random', random: true}] $('#front').colorBlend(myCols).data('state',true); } function stop

[jQuery] Mouseleave event

2009-06-02 Thread zayatzz
Hello Is it possible to mouseleave event have some kind of delay inserted into it? I have this small script, which is working just fine : $(document).ready(function () { $("ul.LvlOne li:has(ul)").bind("mouseenter",function(event){

[jQuery] Re: Already Exist jquery plugin

2009-06-02 Thread Chris Chen
why 2009/6/3 jsuggs > > You are going to have to be more specific than that. Where are the > values for user or email stored? In a database? If so, then you'd > probably need to make an ajax call with the values that you would want > to check. You might want to take a look at one of my other

[jQuery] Re: accessing value in ajax form without submitting the form

2009-06-02 Thread jsuggs
You said the form is replaced by an ajax call. Can you show us what is going on in that call? On Jun 2, 12:25 pm, "in...@reenie.org" wrote: > I have a form. Upon submit, the data is sent to the server. Under > certain conditions, the form is replaced via ajax with a set of radio > buttons that

[jQuery] Re: Already Exist jquery plugin

2009-06-02 Thread jsuggs
You are going to have to be more specific than that. Where are the values for user or email stored? In a database? If so, then you'd probably need to make an ajax call with the values that you would want to check. You might want to take a look at one of my other posts where I show you how I do

[jQuery] accessing value in ajax form without submitting the form

2009-06-02 Thread in...@reenie.org
I have a form. Upon submit, the data is sent to the server. Under certain conditions, the form is replaced via ajax with a set of radio buttons that offer the user a a choice. I need to access the radio buttons before I submit the form again. Normally I could just access the buttons with gete

[jQuery] Re: Edittable plugin problem

2009-06-02 Thread Gustavo Salomé
Its here: http://jquery.izfree.com/editable.js Now any function get the return (data, object) You can use it, for example, this way: $('object').editable({onSubmit:function(data,$this){ class=$this.attr('class'); }}); 2009/6/2 bharani kumar > yes please send it > > > On Tue, Jun 2, 2009 at 6:26

[jQuery] Re: Parsing a very large xml file

2009-06-02 Thread Gustavo Salomé
I had the same problem a while ago Theres a bug about it, you cant use the success function, you must use the complete function function in the ajax request 2009/6/2 Gordon > > Your best bet in that case is trying to talk your client out of it > then. XML is not a very efficient format for data

[jQuery] Re: Add Class to all form elements

2009-06-02 Thread mkmanning
"if you have inputs that are not within forms" That should never happen if you're using valid markup ;) Although the OP gave no indication there'd be other forms on the page, if you want to target a specific form just use the context: $(':text,:checkbox,:radio',$('SPECIFIC_FORM')).addClass ('YOU

[jQuery] Re: Superfish menu - I want my current active tab and corresponding sub nav to display on certain pages -- a newbie begging for help.

2009-06-02 Thread Laker Netman
On Jun 2, 8:41 am, Juliane wrote: > I'm a novice and relied on freelancer to build my superfish menu. > Everything is working correctly here --http://www.cmpl.org/but I > want to take it to the next level.  When a user clicks on a major sub > tab (such as "About Us") I want the horizontal sub nav

[jQuery] Ajax forms

2009-06-02 Thread Dave Maharaj :: WidePixels.com
Can someone give me a hand getting this right. Using the jQuery Form Plugin on http://malsup.com/jquery/form/ I am trying to submit a form but the script I am having problems with. I know its wrong...but cant figure out how to remove the duplicate post and url parts. $(document).ready(function()

[jQuery] Re: Add Class to all form elements

2009-06-02 Thread Gustavo Salomé
Try it: $('form').find(':input,:radio,:checkbox').addClass('class'); 2009/6/2 waseem sabjee > Yes but he only wants to add class to forms. myway is loop through all > forms. or all forms with a specific class. then for each form loop through > all inputs. this way is better only if you want cer

[jQuery] Re: jqPlot - New charting plugin

2009-06-02 Thread Chris Leonello
I've made significant updates to the jqPlot plotting plugin: data tooltips, rotated axis text, customizable date formatters, vertical and horizontal bar charts and many other features. Visit the home page, http://www.jqplot.com/ or the project page, http://www.bitbucket.org/cleonello/jqplot/ if

[jQuery] Re: How to prevent a particular field being submitted in form submission

2009-06-02 Thread Gustavo Salomé
Try to disable the field. I think its gonna work. 2009/6/2 waseem sabjee > SORRY > SYNTAX ERROR > here is the correct > > $("#myfieldid").attr({ > value:"" > }); > > > > On Tue, Jun 2, 2009 at 6:11 PM, waseem sabjee wrote: > >> $("#myfieldid").attr({ >> value:""; >> }); >> >> this should set the

[jQuery] Re: How to prevent a particular field being submitted in form submission

2009-06-02 Thread waseem sabjee
SORRY SYNTAX ERROR here is the correct $("#myfieldid").attr({ value:"" }); On Tue, Jun 2, 2009 at 6:11 PM, waseem sabjee wrote: > $("#myfieldid").attr({ > value:""; > }); > > this should set the value to nothing. > > > On Tue, Jun 2, 2009 at 7:24 AM, Clare > wrote: > >> >> I have email, passw

[jQuery] Re: How to prevent a particular field being submitted in form submission

2009-06-02 Thread waseem sabjee
$("#myfieldid").attr({ value:""; }); this should set the value to nothing. On Tue, Jun 2, 2009 at 7:24 AM, Clare wrote: > > I have email, password and some other fields, and I'm using $.post to > send data for Ajax submission. > > $("#MyForm").submit(function(){ >$.post('/register.php',

  1   2   >