[jQuery] Re: fastest way to move dom nodes?

2009-02-26 Thread ricardobeat
This should be a little bit faster: var $divB = ('.divB', '#wrapper'); $('#divA').children('.a-specific-class').appendTo($divB[0]); If it's possible, try moving a single wrapper element containing all the links, that will be certainly faster. - ricardo On Feb 26, 8:40 pm, Jack Killpatrick wro

[jQuery] Re: Help me!: $(this) ???

2009-02-26 Thread ricardobeat
Oh, I guess the select is not a descendant of the button. It all depends on the HTML. Try this, if it doesn't work please paste your html so we can see what's going on. $(".myButtons").click(function(){ $(this).parent().find('select').val(1); }); - ricardo On Feb 26, 10:15 pm, Jsudesign

[jQuery] Re: I want to do validation via AJAX and then submit form...

2009-02-26 Thread Charles Liu
i think you can : 1. put the new page in the action (as you said) , run the "submit" function of the form when the ajax response is correct 2. run "top.location= the new page" when the ajax response is correct warning: newbie's suggestions above ;) 2009/2/27 Coder > > I need the answer of this

[jQuery] Re: I want to do validation via AJAX and then submit form...

2009-02-26 Thread Coder
I need the answer of this question On Feb 23, 10:13 pm, "webspee...@gmail.com" wrote: > Hey all. > > I am creating a login type screen and when the login button is > clicked, I validate the ID/password via AJAX and if successful, I then > submit the form. > > I have the code to validate, but whe

[jQuery] Re: SuperSubs behaving strangely in Superfish Joomla extension

2009-02-26 Thread oobie
Hi Yak, I just downloaded the module, installed it using the Joomla admin and then set a few parameters in the module screen. No editing scipts, files or otherwise as yet. Cheers, oobie On Feb 27, 1:59 pm, yak wrote: > I took a look at your site and it looks great.  The drop down menu > featur

[jQuery] Re: tab overflow

2009-02-26 Thread Jack Killpatrick
perhaps of interest: http://beta.ksscholl.com/jquery/tabnavigation.html - Jack Paul Georges wrote: hey guys and gals, any ideas on how the tabs code can be modified to add an arrow at each extremity to make the tabs scroll. this way, tabs can remain on one row instead of several. any sugges

[jQuery] tab overflow

2009-02-26 Thread Paul Georges
hey guys and gals, any ideas on how the tabs code can be modified to add an arrow at each extremity to make the tabs scroll. this way, tabs can remain on one row instead of several. any suggestions? has this been done yet?

[jQuery] Re: adding html to tab labels

2009-02-26 Thread Paul Georges
however... when i add another image in the tab which has an anchor tag (delete button for tab) the css explodes and the tab goes all ugly... On Feb 25, 10:29 am, Paul Georges wrote: > solved... wasn't liking my floating divs... > > On Feb 25, 9:48 am, Paul Georges wrote: > > > i'm trying to add

[jQuery] Validate form labels disappear

2009-02-26 Thread LVR
First, let me say my skill level with jQuery and javascript is low. Apparently too low to figure this out. I am currently using the Validate plugin for form validation. It works well, except for this problem: when an element validates, the label element disappears. I'm using the following code

[jQuery] Re: SuperSubs behaving strangely in Superfish Joomla extension

2009-02-26 Thread yak
I took a look at your site and it looks great. The drop down menu feature is what I'm trying to achieve with my site but I'm having a devil of a time trying to get it to work. Would you be willing to share your CSS script or advice on how you achieved the drop down menu using superfish? thanks,

[jQuery] Re: Help for beginners. Inspecting objects.

2009-02-26 Thread mkmanning
As a followup, I suggest you get Firebug (for Firefox) and spend some time learning to use it. You can inspect an element in the DOM tab and get everything you'd ever want to know (and more) about that element. Likewise you can access jQuery objects through Firebugs console. On Feb 26, 6:54 pm, m

[jQuery] Re: SuperSubs behaving strangely in Superfish Joomla extension

2009-02-26 Thread yak
I got the same problem and would be interested in knowing what the solution is. Also, if I can't use the supersubs, can anyone tell me how to readjust the fixed width of the submenu fields using CSS? thanks. On Feb 26, 5:55 pm, oobie wrote: > After deploying the Superfish Joomla extension

[jQuery] Re: Help for beginners. Inspecting objects.

2009-02-26 Thread mkmanning
If you're going to work with jQuery then all you need to know (assuming you know HTML and CSS, and have a general understanding of JavaScript) is contained in the docs. var list = document.createElement("li"); uses a DOM method (not jQuery). The variable 'list' is a DOM node, a way to add text t

[jQuery] Re: Help for beginners. Inspecting objects.

2009-02-26 Thread Charles Liu
btw, usually you should focus on the property "target" which contains all html properties 2009/2/27 Charles Liu > function get(obj) > { > var str; > for(var i in obj) > > str+=i+"="+obj[i]+";\n" > > alert(str); > } > > > > 2009/2/27 Sonya > > >> Hello, >> >> I just begin

[jQuery] Re: Help for beginners. Inspecting objects.

2009-02-26 Thread Charles Liu
function get(obj) { var str; for(var i in obj) str+=i+"="+obj[i]+";\n" alert(str); } 2009/2/27 Sonya > > Hello, > > I just begin to work with jQuery and have some questions. Where I can > find a list of all properties for elements. E.g. I generate a list > item:

[jQuery] Re: Help for beginners. Inspecting objects.

2009-02-26 Thread James
var list = $("some text"); list.text('hello world'); // 'some text' is changed to 'hello world' $("#myUL").append(list); // puts the element into your #myUL in your html document. On Feb 26, 3:53 pm, Sonya wrote: > Hello, > > I just begin to work with jQuery and have some questions. Where I

[jQuery] Re: BlockUI help needed - limit function to only one button

2009-02-26 Thread Mike Alsup
> I've managed to get BlockUI working in conjunction with a page on my > site that uploads files. However, the way I've done it works off the > window.onbeforeunload event, so it is displayed on every single click > or navigation on the page. > > How can I force it to display only with the upload

[jQuery] Re: Decide then its error/success on ajax submit?

2009-02-26 Thread James
Oh, and to answer "how do I trigger the error function?" You don't. The error callback is triggered automatically if the script times out, or a 404 status is returned, or your response data does not match your dataType, etc. Your focus is to get the user to not get to this 'error' callback, but it

[jQuery] jCarousel: Show only one picture

2009-02-26 Thread silfver
Hi! I'm trying to configure the jCarousel to show only one picture with the dimensions: 800x533 pixels. But when I change the CSS the navigation flips through 4 images every time. How can I change it to just go to next picture? See the example here: http://sorgalla.com/projects/jcarousel/example

[jQuery] Re: slideToggle function not working in IE6

2009-02-26 Thread Court Simas
Try 1.3.1. I have a similar issue and it works in 1.3.1 but not 1.3.2. So weird. I don't know why. On Feb 23, 5:56 pm, SteelRing wrote: > This is using jQuery 1.3.2 btw, didn't check older versions. Perhaps > just me doing something wrong here? > > On Feb 23, 5:55 pm, SteelRing wrote: > > > I h

[jQuery] Help for beginners. Inspecting objects.

2009-02-26 Thread Sonya
Hello, I just begin to work with jQuery and have some questions. Where I can find a list of all properties for elements. E.g. I generate a list item: var list = document.createElement("li"); How can I fill in in the list? list.text doesn't work. I have to guess again and again for each element w

[jQuery] Re: Decide then its error/success on ajax submit?

2009-02-26 Thread James
A success status is whatever HTTP 200 status plus a valid dataType that you specified as the response. You can use PHP to echo back JSON like: $error = 1 $json = array('error' => $error, 'text' => 'hello world!'); echo json_encode($json); exit; Then in your AJAX success callback: success: functi

[jQuery] Re: Ajax capability question...

2009-02-26 Thread James
What you want to do is possible. If you're getting a response that quick for something that's suppose to take long, then it must not be executing what you want correctly. Do you have any code you want to provide here for us to help debug? On Feb 26, 2:06 pm, theinternot wrote: > Hi All, > > I am

[jQuery] Decide then its error/success on ajax submit?

2009-02-26 Thread Gelegrodan
Hello I use the validation plugin and the following code: submitHandler: function(form) { $('#submit').attr("disabled", "true"); $.ajax({ type: 'POST', url: 'submit.php'

[jQuery] Re: Select All Elements with Class Name Beginning With String

2009-02-26 Thread James
Remove the @. It has be deprecated and no longer used. On Feb 26, 4:05 pm, cfdvlpr wrote: > This line worked for jquery 1.2.6: > > $('l...@class^=classname]') > > This doesn't work for version 1.3.2 > > Is there some other syntax that works?

[jQuery] Re: Apply class to range of child elements

2009-02-26 Thread mkmanning
So do I :) Using the modulus is best, and without a doubt fastest. On Feb 26, 12:16 pm, ricardobeat wrote: > I like it cleaner: > > $('a').each(function(i){ >    var n = Math.floor(i/10) % 4; >    $(this).addClass( >       n == 0 ? 'first' : >       n == 1 ? 'second' : >       n == 2 ? 'third' :

[jQuery] Select All Elements with Class Name Beginning With String

2009-02-26 Thread cfdvlpr
This line worked for jquery 1.2.6: $('l...@class^=classname]') This doesn't work for version 1.3.2 Is there some other syntax that works?

[jQuery] Re: Combining jQuery validation, ajax Submit and jqUploader

2009-02-26 Thread Gelegrodan
"submitHandler CallbackDefault: default (native) form submit Callback for handling the actual submit when the form is valid. Gets the form as the only argmument. Replaces the default submit. The right place to submit a form via Ajax after it validated. Submits the form via Ajax when valid

[jQuery] Re: HELP: a = $('foobar'); a.after('xyz') not adding element

2009-02-26 Thread mkmanning
Sorry for not being clearer; that's what comes from posting at 3 in the morning :P I was going on the post's title, attempting to use .after(). As Ricardo says, append/appendTo, prepend/prependTo work on newly created nodes, but after/insertAfter, and before/insertBefore require that the nodes be

[jQuery] Re: AJAX File Upload Options

2009-02-26 Thread Rick Faircloth
Thanks for the tip on your site, Dylan. I did run into the issue of the overlay making the the browser appear as if it had locked up when I tried to page through the grid. I wish I had some ideas for you... Rick -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@goog

[jQuery] Ajax capability question...

2009-02-26 Thread theinternot
Hi All, I am posting to this group because of the number of members here. My question is really about ajax and not specific to jQuery (however if there is a specific jQuery solution please let me know). My question is this: Is it possible to send an ajax request to make an http request and not

[jQuery] Re: AJAX File Upload Options

2009-02-26 Thread DylanTusler
I am having similar issues. I have a site that employs a file upload control (www.ka72.com) and I tried to add Ajax to it. In the end, it became obvious that this wasn't going to work out, so I found a good example of using jquery to put an overlay on the page. That has all been fine, and it wor

[jQuery] Multiple JSON objects - using the parsing results from one JSON object within another $.getJSON $.each() parse of another JSON object

2009-02-26 Thread tatlar
Hi All, I have a JSON object (called 'dataloggers') that I am retrieving via $.getJSON, and then creating a dynamically with the results . I can parse it just fine with $.each(). The structure looks like this: { "dataloggers": { "TA_124A": { "values": {

[jQuery] Re: AJAX File Upload Options

2009-02-26 Thread DylanTusler
(The actual jquery plugin I used is BlockUI documented and exampled at http://malsup.com/jquery/block/#) Dylan On Feb 27, 10:06 am, "Rick Faircloth" wrote: > I've been researching my options for uploading a file via AJAX and found > info that says > > it can't be done in pure AJAX and an iframe

[jQuery] Multiple JSON objects - using results from one JSON object within a parse of another JSON object

2009-02-26 Thread tatlar
Third time a charm Attempt to post again. Hi All, I have a JSON object (called 'dataloggers') that I am retrieving via $.getJSON, and then creating a table dynamically with the results . I can parse it just fine with $.each(). The structure looks like this: { "dataloggers": {

[jQuery] Ajax capability question

2009-02-26 Thread theinternot
Hi All, I am posting to this group because of the number of members here. My question is really about ajax and not specific to jQuery (however if there is a specific jQuery solution please let me know). My question is this: Is it possible to send an ajax request to make an http request and not

[jQuery] BlockUI help needed - limit function to only one button

2009-02-26 Thread DylanTusler
I've managed to get BlockUI working in conjunction with a page on my site that uploads files. However, the way I've done it works off the window.onbeforeunload event, so it is displayed on every single click or navigation on the page. How can I force it to display only with the upload button clic

[jQuery] Multiple JSON objects - using results from one JSON object within a $.each() parse of another JSON object

2009-02-26 Thread tatlar
Attempt to post again. Hi All, I have a JSON object (called 'dataloggers') that I am retrieving via $.getJSON, and then creating a dynamically with the results . I can parse it just fine with $.each(). The structure looks like this: { "dataloggers": { "TA_124A": {

[jQuery] Re: listnav related - DL

2009-02-26 Thread MauiMan2
Thanks, Jack. When it is ready I will be ready to implement it. I have no other deadline than that so work at your own pace.

[jQuery] Re: Help me!: $(this) ???

2009-02-26 Thread Jsudesign
Hi James, thanks for the response. It wasn't that I did try your idea. It's something to do with the $(this) part. Example: $(this).find("select").val('1'); //this will select the option with// Does not work $("tr").find("select").val('1'); //this will select the option with//

[jQuery] Re: Help me!: $(this) ???

2009-02-26 Thread James
You probably need a 'value' attribute assigned to your options. eg.: 1 2 On Feb 26, 2:45 pm, Jsudesign wrote: > Thanks Ricardo, You are wonderful are understanding my problem. > > After trying your code. The append part works, but the selection part > does not. > > Any suggestions? Thanks for yo

[jQuery] Re: Help me!: $(this) ???

2009-02-26 Thread Jsudesign
Thanks Ricardo, You are wonderful are understanding my problem. After trying your code. The append part works, but the selection part does not. Any suggestions? Thanks for your help, I'm fairly new to jquery. // Code does not work...? hmm $(".myButtons").click(function(){ $(this).find('

[jQuery] Re: JSON handling: A modest non-proposal

2009-02-26 Thread Dave Methvin
> Please consider the following snippet of code, which transparently > intercepts all Ajax requests, detects whether the data being POSTed is > a JSON object, and based on that, switches the content type to > "application/json", and serializes the data to a string: That's detecting whether s.data

[jQuery] AJAX File Upload Options

2009-02-26 Thread Rick Faircloth
I've been researching my options for uploading a file via AJAX and found info that says it can't be done in pure AJAX and an iframe has to be used. I've seen code for it and I've seen a plug-in or two. I just thought I'd ask the group what the best option is. What's the best plug-in? AJAXUp

[jQuery] Re: Do the jQuery plugins & UI apps are licensed under the MIT license too?

2009-02-26 Thread Richard D. Worth
On Thu, Feb 26, 2009 at 2:31 PM, Dor wrote: > > Hi! > > I understand that it's possible to use jQuery under the MIT license. Correct. > > Do the jQuery UI apps & jQuery plugins are licensed under the MIT > license too? jQuery UI is licensed the same as jQuery. You can choose either MIT or G

[jQuery] Re: nested each

2009-02-26 Thread James
return this.each(function() { var parent = $(this); $(selector).each(function() { // use 'parent' here }); }); On Feb 26, 12:38 pm, mahakala wrote: > Hi all, > Is there a way to get reference to parent's this in nested each method > > return this.each(function() { > >    $(select

[jQuery] fastest way to move dom nodes?

2009-02-26 Thread Jack Killpatrick
Hi All, I have a need to move a few hundred dom nodes from one place in a page to another place. For example, to take all link tags inside a div and move them to another div, like from divA to divB below: Link Link Link Link Link Link I'm using jquery 1.3.2 (a

[jQuery] Re: File Input field Help

2009-02-26 Thread Chris
I tried this: $("#form_container").click(function(event) { event.stopPropagation(); $("#id_content").trigger('click'); }); AND This: $("#form_container").bind("click", function(event){ event.stopPropagation(); $("#id_content").trigger('click'); })

[jQuery] Re: validate range/min/max not working

2009-02-26 Thread Jörn Zaefferer
What exactly isn't working for you here? Jörn On Thu, Feb 26, 2009 at 9:12 PM, ericerau wrote: > > I'm using 1.5.1 with jquery 1.3.2. > > It doesn't look like range, min, max are working.  Check out: > > http://docs.jquery.com/Plugins/Validation/Methods/range#range > > Eric >

[jQuery] validate range/min/max not working

2009-02-26 Thread ericerau
I'm using 1.5.1 with jquery 1.3.2. It doesn't look like range, min, max are working. Check out: http://docs.jquery.com/Plugins/Validation/Methods/range#range Eric

[jQuery] Do the jQuery plugins & UI apps are licensed under the MIT license too?

2009-02-26 Thread Dor
Hi! I understand that it's possible to use jQuery under the MIT license. Do the jQuery UI apps & jQuery plugins are licensed under the MIT license too? Or that there are some apps that have different license which is specify in the application's page? I just want to make sure if I can use your

[jQuery] nested each

2009-02-26 Thread mahakala
Hi all, Is there a way to get reference to parent's this in nested each method return this.each(function() { $(selector).each(function() { // how to get reference to parent's current this :-( }); }); thx in andvance for any help.

[jQuery] Re: Problem with class attribute: Why this work in 1.2.6 and doesn't work on 1.3.1???

2009-02-26 Thread Dor
AndreMiranda, I'm not sure, but I think you should disable your browser plugins, if some of them are enabled. Sometimes plugins made a lot of troubles for me. (and they still do) On Feb 26, 8:46 pm, AndreMiranda wrote: > But why (".detalhes") doesn't work and ("div .detalhes") works??? > thank

[jQuery] JSON handling: A modest non-proposal

2009-02-26 Thread Nate
Hello all, Please consider the following snippet of code, which transparently intercepts all Ajax requests, detects whether the data being POSTed is a JSON object, and based on that, switches the content type to "application/json", and serializes the data to a string: $(document).ready(function(

[jQuery] Re: show/hide on hover event (newbie question)

2009-02-26 Thread Dor
you mean this: http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything ? On Feb 26, 11:33 pm, introvert wrote: > Hello > > I have a simple div inside which I want to show an image on hover > (rollover) and hide on mouseout of the div. > > I tried doing it with toggle() but

[jQuery] nested each - how to access parent's this??

2009-02-26 Thread mahakala
Hi all, I'm new to jQuery and just got stuck on a problem where I'm having 2 nested $.each methods and need to access this of the parent each loop, is this possible at all?? return this.each(function() { $(selector).each(function() { // how do i get reference to this in parent each??

[jQuery] SuperSubs behaving strangely in Superfish Joomla extension

2009-02-26 Thread oobie
After deploying the Superfish Joomla extension which went smoothly, I decided to activate the Supersubs feature as I wanted variable submenu widths and for the submenu items not break into two lines. Also, I don't currently have access the CSS and JS files so I can't manually edit the values etc.

[jQuery] Re: listnav related - DL

2009-02-26 Thread Jack Killpatrick
I think I have a way to make this work. Will mess with it some time in the next few days and let you know. I'm prepping the new release (for probably early next week). Thanks, Jack MauiMan2 wrote: So, the presence of the DD is what makes it difficult?

[jQuery] Re: Datepicker

2009-02-26 Thread Leroy
Thanks heaps for all your help! That works perfectly! On Feb 27, 9:34 am, MorningZ wrote: > to note, that CSS was for an older version of thedatepicker > >     img.ui-datepicker-trigger { >          cursor: pointer; >     } > > works on the later versions (i have ui.1.6.rc2.datepickerand that CS

[jQuery] Re: How to make a secured login form

2009-02-26 Thread phicarre
I found 2 empty lines in a script previously called. This seems to disturb the echo function. On 13 fév, 19:48, James wrote: > Do you want a refresh on the current page when the login is > successful? > Upon successful login, it will refresh your current page > (welcome.php), then the script (we

[jQuery] Re: Datepicker

2009-02-26 Thread MorningZ
to note, that CSS was for an older version of the datepicker img.ui-datepicker-trigger { cursor: pointer; } works on the later versions (i have ui.1.6.rc2.datepicker and that CSS works) On Feb 26, 5:31 pm, MorningZ wrote: > in the page's CSS (nothing to do with the datpicker

[jQuery] Re: Datepicker

2009-02-26 Thread MorningZ
in the page's CSS (nothing to do with the datpicker declaration).. easy as that On Feb 26, 5:22 pm, Leroy wrote: > Thanks for the reply... however i am just wondering where do i put the > CSS?  My code looks something like this: > $(document).ready(function() { >         $('#dp_date).datepic

[jQuery] Re: Datepicker

2009-02-26 Thread Leroy
Thanks for the reply... however i am just wondering where do i put the CSS? My code looks something like this: $(document).ready(function() { $('#dp_date).datepicker({speed: 'fast', showOn: 'both', showAnim: 'show', closeAtTop: false,

[jQuery] Re: show/hide on hover event (newbie question)

2009-02-26 Thread James
Use hover(). $(function() { $("#mainDiv").hover( function() { $("#myImage").show(); }, function() { $("#myImage").hide(); } ); }); On Feb 26, 11:33 am, introvert wrote: > Hello > > I have a simple div inside which I want to show an image on hover > (rollov

[jQuery] referencing parent window forms from thickbox window

2009-02-26 Thread HiddenPhoenix
on my main page. i have a form which users need to fill out data. i have a link on the form which opens up an iframed thickbox window. this iframed window has a form which lets users select diff data. once they select their data, i want the thickbox window to close and pass some data to the form

[jQuery] Re: Selectbox Manipulation...Works in FF but not in IE6 or IE7

2009-02-26 Thread Chris Jordan
James, Thanks for the response. I don't know why I didn't see it before, but your comment about the conditional check got me thinking. I did try $this.attr("selected", "selected"); and that works just as well as my original, but the conditional is where my problem was. FF understood the 'textC

[jQuery] Re: Problems getting validate plugin to work with select box

2009-02-26 Thread paulswansea
Many Thanks Jörn! :) On Feb 26, 9:17 pm, Jörn Zaefferer wrote: > All you need is required. Just remove minlength. > > Jörn > > On Thu, Feb 26, 2009 at 10:10 PM, paulswansea > wrote: > > > p.s. i just need the tick or cross instead of the default text, but if > > i remove the text from the mess

[jQuery] show/hide on hover event (newbie question)

2009-02-26 Thread introvert
Hello I have a simple div inside which I want to show an image on hover (rollover) and hide on mouseout of the div. I tried doing it with toggle() but that will only change the visibility on hover. How can I do that? Thanks for help!

[jQuery] Re: Selectbox Manipulation...Works in FF but not in IE6 or IE7

2009-02-26 Thread James
I'm not sure about the: if($this.attr("textContent") == PublishTo) part. It sounds very custom. Provided this conditional check is working correctly, how about trying: $this.attr("selected", "selected") ; to set the value. Or if you can get the actual options value, you can set the value

[jQuery] How open a painel in jQuery Accordion after a click event??

2009-02-26 Thread AndreMiranda
Hi everyone! I have 2 painels in my Accordion. One has a form and the other has a flexigrid showing me all data. What I needed is when I save data to database via $ajax, I change the form painel to the flexigrid painel, but so far I haven't been successful. this is what I'm doing: $("#btnAdici

[jQuery] Re: blockUI plugin fails in IE

2009-02-26 Thread rmurp...@gmail.com
Please disregard; problem solved, there were script siblings getting caught up in the mess. On Feb 26, 4:15 pm, "rmurp...@gmail.com" wrote: > Note that this happens regardless of whether a message is specified, > leading me to guess it's happening on line 204 of the plugin: > > $([lyr1[0],lyr2[0

[jQuery] Re: Selectbox Manipulation...Works in FF but not in IE6 or IE7

2009-02-26 Thread Chris Jordan
I just realized I may need to explain a little further. I've got a table on the same page. Clicking on a record in that table populates a small form on the page with the information from that record. The text and check boxes are easy enough to populate, but telling the select box which of it's op

[jQuery] Re: Problems getting validate plugin to work with select box

2009-02-26 Thread Jörn Zaefferer
All you need is required. Just remove minlength. Jörn On Thu, Feb 26, 2009 at 10:10 PM, paulswansea wrote: > > p.s. i just need the tick or cross instead of the default text, but if > i remove the text from the messages : > >                messages : { >                        country : { >    

[jQuery] Re: blockUI plugin fails in IE

2009-02-26 Thread rmurp...@gmail.com
Note that this happens regardless of whether a message is specified, leading me to guess it's happening on line 204 of the plugin: $([lyr1[0],lyr2[0],lyr3[0]]).appendTo(full ? 'body' : el); because that's the only place I see an append method being called that's not message-related. On Feb 26,

[jQuery] Selectbox Manipulation...Works in FF but not in IE6 or IE7

2009-02-26 Thread Chris Jordan
Hi folks, I'm trying to manipulate which item in a select box is selected using jQuery. The following code snippet works great in FF but fails miserably in IE6 and IE7 // select the publish to option $("#PublishToID > option").each(function(){ $this = $(this); if($this.attr("textContent"

[jQuery] Re: Problems getting validate plugin to work with select box

2009-02-26 Thread paulswansea
p.s. i just need the tick or cross instead of the default text, but if i remove the text from the messages : messages : { country : { required : 'select country', minlength : 'choose a country'

[jQuery] blockUI plugin fails in IE

2009-02-26 Thread rmurp...@gmail.com
I am trying to use blockUI to block the siblings of a div when the div is in "edit" mode, i.e.: ... var $active_module = $('#myDiv1'); $active_module.siblings().block(); This works in FF3 just fine, but in IE I get an error: Unexpected call to method or property access. The error

[jQuery] Re: Problems getting validate plugin to work with select box

2009-02-26 Thread paulswansea
sorry, so how do i check if the value is not blank? (i.e. not the first option) On Feb 26, 9:04 pm, Jörn Zaefferer wrote: > You specify minlength:2 for a single-select. There is no way to select > more then one item in that select. > > Jörn > > On Thu, Feb 26, 2009 at 10:03 PM, paulswansea > w

[jQuery] Re: Problems getting validate plugin to work with select box

2009-02-26 Thread Jörn Zaefferer
You specify minlength:2 for a single-select. There is no way to select more then one item in that select. Jörn On Thu, Feb 26, 2009 at 10:03 PM, paulswansea wrote: > > sure, try http://www.jondunlevy.com/seltest.html > > > On Feb 26, 8:54 pm, Jörn Zaefferer > wrote: >> Your code looks fine, cou

[jQuery] Re: Pagination control jquery -- Need some help

2009-02-26 Thread Doug C
Thanks man. I'll give it a shot and let you know. On Feb 26, 2:36 pm, Frederik Ring wrote: > Sorry I think it has to be: >  $('.page:visible').hide().prev('.page').show(); > > and > >  $('.page:visible').hide().next('.page').show(); > > Or is the second class selection not necessary? > > On Feb

[jQuery] Re: Problems getting validate plugin to work with select box

2009-02-26 Thread paulswansea
sure, try http://www.jondunlevy.com/seltest.html On Feb 26, 8:54 pm, Jörn Zaefferer wrote: > Your code looks fine, could you post a testpage? > > Jörn > > On Thu, Feb 26, 2009 at 9:53 PM, paulswansea > wrote: > > > I'm trying to get the validate plugin to work with a select box, but > > for s

[jQuery] Re: $('#tab1 tr:gt(0)>td').filter(':nth-child(2n+1)') select also 1st td in row - aargghh

2009-02-26 Thread ricardobeat
What are you trying to select (html)? You're asking for all *odd* td's that are children of the rows. Indexes in JS start at 0, so the first element is odd. Maybe what you want is this: $('#tab1 tr:gt(0)>td:nth-child(2n)') or $('#tab1 tr:gt(0)>td:even') If you actually want the odd ones except

[jQuery] Re: selectable + anchor not working

2009-02-26 Thread How
after so much trouble I found out that jQuery 1.3 have propagation of events. thats the reason FF doesnt work. but Opera works differently On Feb 26, 12:47 pm, How wrote: > Hi > > I tried the code again and still doesnt work in Firefox 3 > I am using different jquery than yours. I am using jque

[jQuery] Re: Problems getting validate plugin to work with select box

2009-02-26 Thread Jörn Zaefferer
Your code looks fine, could you post a testpage? Jörn On Thu, Feb 26, 2009 at 9:53 PM, paulswansea wrote: > > I'm trying to get the validate plugin to work with a select box, but > for some reason, it wont validate if i select a country, what am i > doing wrong? > > >         >                S

[jQuery] Problems getting validate plugin to work with select box

2009-02-26 Thread paulswansea
I'm trying to get the validate plugin to work with a select box, but for some reason, it wont validate if i select a country, what am i doing wrong? Select a country Afghanistan Aland Islands Albania Wales

[jQuery] Re: HELP: a = $('foobar'); a.after('xyz') not adding element

2009-02-26 Thread ricardobeat
after() will insert elements 'after' the selected elements in the DOM. If the element is not in the DOM, that is kind of 'outer space', there is no 'after' it. Append and prepend should work just fine: $('foobar') .append('.test') .prepend('test: ') .appendTo('body'); http://jquery.nodn

[jQuery] Re: ?? About the "window=this" in the source code of the jquery

2009-02-26 Thread ricardobeat
In jQuery's core the *local* variable window is being set. You're trying to rewrite the global variable 'window' that already exists. You can only set a var named 'window' in a scope that is not the global one, like this: function giveMeChocolate(){ var window = this; //this == the global windo

[jQuery] Re: position problem ( div is going up )

2009-02-26 Thread nasionalem
Hi Eric, thank you for your advice.. It looks better now :) I am new in jQuery :) I still learning it. and Its just a demo.. and I have still have a same problem.. the socond div's position is still going down when I append a new div. (insideParent2) This two div (insideParent and insideParent

[jQuery] Re: Apply class to range of child elements

2009-02-26 Thread ricardobeat
I like it cleaner: $('a').each(function(i){ var n = Math.floor(i/10) % 4; $(this).addClass( n == 0 ? 'first' : n == 1 ? 'second' : n == 2 ? 'third' : n == 3 ? 'fourth' : ''); }); or var classNames = ['first', 'second', 'third', 'fourth']; $('a').each(function(i){

[jQuery] Re: Overlay not working on jquery-ui-personalized-1.6rc6.min.js

2009-02-26 Thread bittermonkey
Yep just figured that out. Thanks. Sorry I posted on the wrong group. On Feb 26, 1:35 pm, "Richard D. Worth" wrote: > The overlay in 1.6rc6/1.7 is no longer specified as an option, but is part > of the jQuery UI CSS Framework. If you have a jQuery UI Theme, it will have > a default overlay sty

[jQuery] Re: How to Open Modal Dialog box on button click?

2009-02-26 Thread bittermonkey
Fixed this. File versioning problem. On Feb 26, 10:04 am, bittermonkey wrote: > Once "btnAddSession" button is clicked,  the div with the > "addproductsForm" ID should open as a modal dialog box.  In Firefox it > opens properly while in IE it submits the page even with return false; > > HTML >

[jQuery] Re: preventing redirection when opening modal dialog box

2009-02-26 Thread bittermonkey
Nevermind, this was a versioning problem on the jquery and ui plugin javascript files. On Feb 24, 11:35 am, bittermonkey wrote: > Yep I am. I event tried event.stopPropagation() but still the same > thing.  Can I say I hate IE? > > On Feb 24, 10:26 am, Hector Virgen wrote: > > > Are you passing

[jQuery] Re: Issue with .text() and line breaks

2009-02-26 Thread ricardobeat
Just remove them if you need: $('span').text().replace('\n', ''); - ricardo On Feb 26, 10:12 am, AdrenalineJunkie wrote: > Im building a form parser(plugin) that will build a json object to a specific > design.  One problem I am having involves how I render some html and > subsequently read th

[jQuery] Re: Problem with class attribute: Why this work in 1.2.6 and doesn't work on 1.3.1???

2009-02-26 Thread ricardobeat
What browser are you testing on? Are you using any kind of minifier/ packer? On Feb 26, 3:46 pm, AndreMiranda wrote: > But why (".detalhes") doesn't work and ("div .detalhes") works??? > thanks!! > > On 26 fev, 15:44, Eric Garside wrote: > > > Actually, the space is telling jquery that you want

[jQuery] pixastic + jquery: anyone ever work with these two?

2009-02-26 Thread claudes
Hi, I stumbled upon Pixastic recently and thought it perfect for a current project. I've implemented it on hover function swapImages() { var img1 = $j("#cell1 img"); $j('.cell-wrapper .cell').hover(function(){ $j('img', this).pi

[jQuery] Re: position problem ( div is going up )

2009-02-26 Thread Eric Garside
Your code is pretty confusing, and you're doing a lot of work yourself that jQuery is designed to do. It appears you're really only using jQuery for the draggable function, which is a shame. The addEvent function is a good example of where you can leverage jQuery to do a lot of work really simply

[jQuery] Re: Pagination control jquery -- Need some help

2009-02-26 Thread Frederik Ring
Sorry I think it has to be: $('.page:visible').hide().prev('.page').show(); and $('.page:visible').hide().next('.page').show(); Or is the second class selection not necessary? On Feb 26, 8:33 pm, Frederik Ring wrote: > Why don't you just do it like: > > $('#prev').css('cursor','pointer').c

[jQuery] Re: Pagination control jquery -- Need some help

2009-02-26 Thread Frederik Ring
Why don't you just do it like: $('#prev').css('cursor','pointer').click(function(){ $('.page:visible').hide().prev().show(); } Same with next. $('#next').css('cursor','pointer').click(function(){ $('.page:visible').hide().next().show(); } You will pro On Feb 26, 5:43 pm, Doug C wrote: > I wr

[jQuery] How can I make no tab having focus on initial load....

2009-02-26 Thread webspee...@gmail.com
I know how to make a specific tab the "default" tab selected, but how do I make none of them selected? I can pass either nothing (), (1) or (2) etc for that tab to be selected so I tried passing a 0 but it still selected the tab 1.

[jQuery] Re: A way to POST this?

2009-02-26 Thread James
your variable 'lol' is not a valid type to be POSTed. It should either be a serialized string: var lol = "myVar=hello&yourVar=world"; or JSON: var lol = {myVar:'hello', yourVar:'world'}; On Feb 26, 6:32 am, bheesham wrote: > Here is my code:http://pastebin.com/m2c7d97bd > > Now you see i want t

  1   2   3   >