[jQuery] Re: document.ready - how to make sure all js is loaded?

2009-07-13 Thread Steven Yang
ohoh so even if you do that your myevents.js still doesnt get loaded when document.ready is run? thats weird. I have never run in to problem like that. just wondering is your tag script type=text/javascript src=myevents.js? or script type=text/javascript src=myevents.js/script? because script is

[jQuery] Re: document.ready - how to make sure all js is loaded?

2009-07-13 Thread Michael Geary
As I mentioned, script tags are always executed in order. None of the code in your second script tag will run until the first script tag has finished running. This includes the code inside the document ready function. This will not run until after the first script tag finishes. What made you

[jQuery] Re: document.ready - how to make sure all js is loaded?

2009-07-13 Thread Veeru
Hi michael, i understand the script tags are loaded in order, but i was wondering if there is a chance that document.ready is fired even before all the script tags have loaded. According to the documentation document.ready fires once the DOM is ready, but js is not part of the DOM or is it? So

[jQuery] Re: send table with input elements to server

2009-07-13 Thread david
Dear Charlie, I mean if i have a table table tr td input type=text value= name=a' /td tdinput type=text value= name=b /td /tr /table and then i enter in a david and b michael i want at the end table tr td input type=text value=david name=a' /td tdinput type=text value=michael name=b /td /tr

[jQuery] Re: document.ready - how to make sure all js is loaded?

2009-07-13 Thread Veeru
I have an example for the scenario I am using cometchat in my application. Its a third party script, that provides a chat interface to the website. It adds some containers to the body of the document. One such container is cometchatbase. I want attach something to this container on

[jQuery] (Validation) how to add validation on a select box with auto post

2009-07-13 Thread mnaveed
Hi, I have a select box with and onchange event to get the data from serever, SELECT name=States id=Stateonchange=getData(this.value) Now i want to validate that if no value is selected from the above list, then it should not send the ajax request. How can i apply the Jquery

[jQuery] Re: (Validation) how to add validation on a select box with auto post

2009-07-13 Thread 刘永杰
is it difficult?$(#State).val() 2009/7/13 mnaveed mnaveed...@gmail.com Hi, I have a select box with and onchange event to get the data from serever, SELECT name=States id=Stateonchange=getData(this.value) Now i want to validate that if no value is selected from the above list,

[jQuery] Re: Dynamic Links

2009-07-13 Thread mnaveed
sorry I did not clear my point, here is what i want to do, I am running a PHP for loop, which generates a table. In the table, I have a column in which links are generated with an onclick event and the item id is set as parameter, so it looks like this, for(x = 0; xitems.length; x++) // this

[jQuery] Re: (Validation) how to add validation on a select box with auto post

2009-07-13 Thread mnaveed
I am using the JQuery Validation plug in to validate my form. How can i do this with that? On Jul 13, 1:34 pm, 刘永杰 liuyongjie...@gmail.com wrote: is it difficult?$(#State).val() 2009/7/13 mnaveed mnaveed...@gmail.com Hi, I have a select box with and onchange event to get the data from

[jQuery] Re: (Validation) how to add validation on a select box with auto post

2009-07-13 Thread 刘永杰
sorry!i didn't use JQuery Validation plug in. 2009/7/13 mnaveed mnaveed...@gmail.com I am using the JQuery Validation plug in to validate my form. How can i do this with that? On Jul 13, 1:34 pm, 刘永杰 liuyongjie...@gmail.com wrote: is it difficult?$(#State).val() 2009/7/13 mnaveed

[jQuery] Re: document.ready - how to make sure all js is loaded?

2009-07-13 Thread Lauri B.
check if there is callback for cometchat and attach your events there On Jul 13, 10:12 am, Veeru swamyve...@gmail.com wrote: I have an example for the scenario I am using cometchat in my application. Its a third party script, that provides a chat interface to the website. It adds some

[jQuery] Re: Can't drag items outside Carousel

2009-07-13 Thread Fanel Dev
I did find the solution. Anyway, it worked for me. Try to add : appendTo: body in your jQuery call, on your draggable items : $(.draggable).draggable({ revert : true, helper: clone, opacity: 0.7, zIndex: 999, appendTo: body, drag : function() {

[jQuery] Re: how can i make in joomla 1.5 - superfish expand or close on click

2009-07-13 Thread allenm541
What is Superfish? The reason you may be having a hard time getting answers is because you need to be more specific in general. You're just trying to make something expand and close? $loginBtn.click(function(){ $topPanel.stop().animate({ height: 300px }, 800);

[jQuery] Re: how can i make in joomla 1.5 - superfish expand or close on click

2009-07-13 Thread allenm541
Sorry, I was in the middle of posting how to do it and hit tab key and it posted before I was finished. Anyway, there's a good tutorial on how to do this here: http://net.tutsplus.com/tutorials/javascript-ajax/build-a-top-panel-with-jquery/ That tutorial is about how to create a log in form,

[jQuery] Chaining $.append

2009-07-13 Thread dnagir
Hi, I'm using the code to create DOM. But the append returns current element and not the one it has created. So after I create some elements via append (or similar) I have to query to obtain the element. Isn't there other way of doing it? Instead of this code : var domId = prod- + data.Id;

[jQuery] Multiple Image uploads

2009-07-13 Thread anjith
Hi, I need some portal using jquery and html...for uploading multiply images. Actual requirement is when page opens i must have single file upload option when user clicks more in the next line i must get 4 more image upload input boxes. I tired Javascript on click function but i am unable to

[jQuery] Re: Determine content type in $.post callback

2009-07-13 Thread dnagir
Hi Rob, But I don't see where I can get the XMLHttpRequest objects. Only one thing related to XHR is this.xhr() function. And it returns a new XHR object, so obviously it has no headers. What am I missing? Cheers, Dmitriy. How can I check the ContentType header in the $.post callback? Try

[jQuery] Re: Determine content type in $.post callback

2009-07-13 Thread Peter Edwards
Hi Dimitriy, To get the options used by the xhr request (including the ContentType header), use the this keyword in the callback function: $.post(url, data, function(){ /* the content of this from a typical $.post operation this[type]=POST this[url]=url this[data]=data

[jQuery] Re: (Validation) how to add validation on a select box with auto post

2009-07-13 Thread Mean Mike
what you should do is take the onchange event out of the html and put it into a document ready like this $(document).ready(function(){ $(#State).change(function() { //check to see if the feild has a value if ($(this).val() != ){

[jQuery] Re: Multiple Image uploads

2009-07-13 Thread Leonardo K
Look this plugin http://www.fyneworks.com/jquery/multiple-file-upload/#tab-Examples On Mon, Jul 13, 2009 at 07:37, anjith anjithkumar.garap...@gmail.comwrote: Hi, I need some portal using jquery and html...for uploading multiply images. Actual requirement is when page opens i must have

[jQuery] How to Animate Innitially Hide Html Div by jQuery

2009-07-13 Thread abhi
How to Animate Innitial Hide Html Div by jQuery I want to animate Html Div that is Innitially hide , Div only dispaly on an perticular Event. I have a problem when it is Innitially hide

[jQuery] Clone tr w/ New Data

2009-07-13 Thread Nate
I have a table set up like so: table id=groups tr tdGroup Name/td tdOptions/td /tr tr td class=tbldata/td td class=tbldata/td /tr /table I'm using Impromptu to pop up a message when you click Add New Group. You type in the group name, and then submit. It posts to a PHP file, and then returns

[jQuery] TreeView - New Color

2009-07-13 Thread Keith
Hello, Is there a psd or some other kind of editable image that someone can send me so I can make different colored themes? Thanks. Keith

[jQuery] Trying to force field change (tab event)

2009-07-13 Thread webspee...@gmail.com
Hey all. I have a table being returned from an AJAX call that has input fields, 1 in each row. I want to give focus to the next element (next row) when the user hits enter key. Basically, the user is going to be in the first field and can either change the value of that field *or* simply move

[jQuery] Re: both 'if' and 'else' blocks being executed

2009-07-13 Thread Matt Zagrabelny
On Fri, 2009-07-10 at 23:51 +0200, Massimo Lombardo wrote: Please, using plain English only, explain what you want to do. Then we'll try to help ;) Alright. The glitch is probably caused by the fact that the two input fields *do* share the same name; then when you touch one, you *do* alter

[jQuery] Re: TreeView - New Color

2009-07-13 Thread Jörn Zaefferer
There is no PSD. You can edit the gif files. Jörn On Mon, Jul 13, 2009 at 3:39 PM, Keithkeithhen...@gmail.com wrote: Hello, Is there a psd or some other kind of editable image that someone can send me so I can make different colored themes? Thanks. Keith

[jQuery] Re: jCarousel Appears Vertical then Horizontal

2009-07-13 Thread Sparky12
Hey MorningZ, Thanks for the suggestion - this worked for Firefox and seems to have fixed the error ... but the error remains in IE ? Any more ideas ? Thanks so much.

[jQuery] Re: both 'if' and 'else' blocks being executed

2009-07-13 Thread Peter Edwards
Hi Matt, The if and else blocks are not both being executed. try this: $(function(){ $('#billable_checkbox').change(function(event){ if (this.checked) { $('#billable_hidden').attr(disabled, disabled); } else { $('#billable_hidden').removeAttr(disabled); } }); }); The

[jQuery] [jQuery][Cluetip] Cluetip/live issues

2009-07-13 Thread Alexandru Adrian Dinulescu
Hello. Is there a way to have the elements loaded by cluetip (which is ajax) live(ed). Because i want to put some triggers INSIDE the loaded element itself and based on jQuery docs i ned to use the live function, but i dont know how to use that with the cluetip. --- Alexandru

[jQuery] .load: how to make sure ajax-loader.gif stays visible until the injected html is actually visible?

2009-07-13 Thread jjshell
Hi, In the below code, the ajax-loader disappears before the html returned by .load is actually visible in the browser. How can I correct it? $.post(registerClient.php, data, function(returned){ $(#client).html(returned); $(#all-clients).load(allClients.php, function(){

[jQuery] Re: .load: how to make sure ajax-loader.gif stays visible until the injected html is actually visible?

2009-07-13 Thread MorningZ
I'd switch to the more generic $.ajax syntax, then you have more granular control over your HTML as things happen On Jul 13, 10:32 am, jjshell blahblahcoui...@gmail.com wrote: Hi, In the below code, the ajax-loader disappears before the html returned by .load is actually visible in the

[jQuery] Re: Chaining $.append

2009-07-13 Thread Cody Lindley
Try.. $(li id='prod- + data.Id + '/li).text (data.Name).appendTo(#prods-list); cody On Mon, Jul 13, 2009 at 4:27 AM, dnagir dna...@gmail.com wrote: Hi, I'm using the code to create DOM. But the append returns current element and not the one it has created. So after I create some elements

[jQuery] Re: document.ready - how to make sure all js is loaded?

2009-07-13 Thread Cesar Sanz
There is no chance that it occurs.. js are loaded in order.. jQuery(document).ready() start executing when DOM is ready BUT, if js are placed above this line of code, js will be loaded first.. - Original Message - From: Lauri B. lau...@gmail.com To: jQuery (English)

[jQuery] Re: Rare .die() behaviour

2009-07-13 Thread Leeoniya
created a ticket: http://dev.jquery.com/ticket/4894 On Jul 11, 1:57 pm, Leeoniya leeon...@gmail.com wrote: yeah, that seems like a bug. here is a more concise version showing the bug and a non-delegation based version: // without event delegation -- works fine $(function() {        

[jQuery] Re: Can't drag items outside Carousel

2009-07-13 Thread menslow
Thanks Fanel, but I'm still having issues with this... Here's my code: $(.swatch).draggable({ revert: true, helper: clone, opacity: .5, zIndex: 999, appendTo: body, drag: function() { } }); It seems that whenever I combine using the helper and the appendTo

[jQuery] Re: Dynamic Links

2009-07-13 Thread brian
That looks like a mix of PHP javascript. Try this: ?php for($x = 0; $x $items.length; $x++) { ? trtda href=# class=Whatever rel=?= $items[$x].id ? Get data /a/td/tr ?php } ? JS: $(function() { $('a.Whatever').click(function() { alert($(this).attr('rel'));

[jQuery] Re: slideUp(), slideDown() choppy on IE 6, 7, 8

2009-07-13 Thread Bill
Thanks very much for your reply, Olaf. I tried removing the 0.625em of padding from the top and bottom and it doesn't help at all. See it in action here: http://69.59.182.148:4080/test/07132009/html-scaffolding/advanced-search.html On Jul 11, 1:15 pm, Olaf Bosch olaf.bo...@t-online.de wrote:

[jQuery] Re: Simple selector problem

2009-07-13 Thread Chris
That was it. When I turn Firebug off, it returns 3. Thanks. On Jul 10, 2:50 pm, Brett Ritter swift...@swiftone.org wrote: On Fri, Jul 10, 2009 at 11:34 AM, Chrischrisb...@gmail.com wrote: I'm using jQuery 1.3.2.  In IE, this returns 3.  In Firefox, it returns 4. Are you running Firebug

[jQuery] trigger click on an anchor

2009-07-13 Thread sso
if I have a link on my page like this a id=clickme href=home/download/myfile.pdftriggerclick/a should I be able to click it with jquery? on event { $('#clickme').trigger('click'); } or will it disallow it because its linking to a file

[jQuery] Re: trigger click on an anchor

2009-07-13 Thread pedalpete
jQuery doesn't care what you are linking to, as long as that file is there, it will be retrieved (I can't think of any reason why not).' you could use $('#clickme').click(function() that would I believe be more efficient On Jul 13, 8:45 am, sso strongsilent...@gmail.com wrote: if I have a

[jQuery] Re: trigger click on an anchor

2009-07-13 Thread Cesar Sanz
trigger fires inmediatly the event. $('#clickme').click(function()) binds an event to the element. Both are different.. Just test it.. I must work. Best regards - Original Message - From: pedalpete p...@hearwhere.com To: jQuery (English) jquery-en@googlegroups.com Sent:

[jQuery] Re: document.ready - how to make sure all js is loaded?

2009-07-13 Thread Michael Geary
It wouldn't matter if document.ready did fire before all script tags are loaded, because it wouldn't affect the case you were talking about: script type=text/javascript src=jquery.js /script ... Imagine that document.ready somehow fires here... script type=text/javascript

[jQuery] Re: Can't drag items outside Carousel

2009-07-13 Thread menslow
OK, found a solution that I think will work: $(.swatch).draggable({ revert: true, helper: clone, opacity: .5, zIndex: 100, drag: function(event, ui) { $(ui.helper).appendTo(body); $(ui.helper).addClass(swatch-helper); } }); I had to use the helper option to

[jQuery] livequery breaking on inserting html in IE

2009-07-13 Thread pedalpete
I've been working on this for quite a while trying to figure out why I can only get a click to be recognized by IE once. If a user clicks on another element, and then goes back to the original one, nothing happens. I've gone right down to this code jQuery(ul.showList li.show

[jQuery] Re: document.ready - how to make sure all js is loaded?

2009-07-13 Thread Michael Geary
Ah, finally you ask the *real* question. Let's start with that next time, OK? ;-) Don't feel bad, it's a good thing to provide a simplified test case - but in this case the simplified example obscured the essential problem. The problem isn't the order of execution of script tags, or whether

[jQuery] validates after blur

2009-07-13 Thread Mean Mike
I've been trying to figure out how to add validation to jquery.autobox and it works except if I have more than one on the page it only validates the first one on submit though it will validate all other fields around it ! I can get it to validate the remaining autobox inputs if I give them focus

[jQuery] Re: validates after blur

2009-07-13 Thread Mean Mike
figured it out had to mode autobox to have unique input box names as autoobox does not put in any names or id's on the input bummer I hate moding plugins Mean Mike On Jul 13, 2:30 pm, Mean Mike mcgra...@gmail.com wrote: I've been trying to figure out how to add validation to jquery.autobox and

[jQuery] Re: both 'if' and 'else' blocks being executed

2009-07-13 Thread Michael Geary
From: Matt Zagrabelny My main question is how does both the 'if' block and the 'else' block get executed in the same pass through the function? I haven't been following the thread in detail, but the simple answer to that question is they don't, and they can't. Fundamental JavaScript

[jQuery] jQuery syntax question

2009-07-13 Thread Matthew
So it seems like everyday I learn a new way to code the same thing. What I am trying to do is add some code after a paragraph depending on how many paragraphs are in the content. I'm not to worried about logic right now just syntax. Here is my code: My questions is regarding this syntax: $(p,

[jQuery] Re: jQuery syntax question

2009-07-13 Thread Matt Zagrabelny
On Mon, 2009-07-13 at 12:09 -0700, Matthew wrote: So it seems like everyday I learn a new way to code the same thing. What I am trying to do is add some code after a paragraph depending on how many paragraphs are in the content. I'm not to worried about logic right now just syntax. Here is my

[jQuery] Re: jQuery syntax question

2009-07-13 Thread MorningZ
$(p, body#seniors #text)[2]. does not mean third paragraph nth-child would be what you could use http://docs.jquery.com/Selectors/nthChild#index On Jul 13, 3:09 pm, Matthew mvbo...@gmail.com wrote: So it seems like everyday I learn a new way to code the same thing. What I am trying to do

[jQuery] Re: jQuery syntax question

2009-07-13 Thread James
The eq() selector is one way of doing it: http://docs.jquery.com/Selectors/eq On Jul 13, 9:09 am, Matthew mvbo...@gmail.com wrote: So it seems like everyday I learn a new way to code the same thing. What I am trying to do is add some code after a paragraph depending on how many paragraphs are

[jQuery] Encapsulation Style

2009-07-13 Thread Jeff.M
When writing plugins and such, what is your preferred style for encapsulation? I know of two styles: var PublicObject = function () { // Private function Function1() { } // Exposed function Function2() { } return {

[jQuery] Using jQuery to completely separate HTML from Javascript

2009-07-13 Thread Thierry
Hi, I am trying to remove every Javascript reference from my HTML data (except the inclusion headers of course). I would like some advice regarding event listeners when parameters come into play. Here is the typical example: For event handlers in HTML like: a href=# onclick=foo();/a I would

[jQuery] IE doesn't seem to see classes created by other JQuery Script

2009-07-13 Thread zorba
Hi, I'll do my best to explain the following. I simply want to do this: $(myDiv p).find(.highlight:contains(someText)).doSomeStuff... where the class .highlight has just been appended by another script. It works great with FF but not with any of the IE navigators. I verified with the most

[jQuery] Add function (transverse)

2009-07-13 Thread aakoch
I find it frustrating that the transversing add function (http:// docs.jquery.com/Traversing/add) doesn't allow passing in a context like the jQuery function (http://docs.jquery.com/Core/ jQuery#expressioncontext). Here's a use case: I want to select two different classes under the same element.

[jQuery] Help with jQuery validator plug in

2009-07-13 Thread erin_mcg
I've been searching for days for help on this and cannot find it anywhere and if I am posting in the wrong place, accept my apologies, I am desperate for help My project is due to the client today. I am building a form using a jQuery contact form slider. Got that working, no problem. I need

[jQuery] IE and div height

2009-07-13 Thread Ranadave
I have a problem whereby on IE8 (also 6) the jQuery width/height on a div is wrong. I have the w/h set through a style. This works correctly: div.style.height.split('px')[0] While jQuery(div).height does not It is worth noting that IE returns the wrong value for div.height Should I log a bug

[jQuery] jquery alerts

2009-07-13 Thread renearaujo
can anyone suggest some good jquery alert windows/dialogs?

[jQuery] Strange Issue in IE 8 (portlets and sortables)

2009-07-13 Thread Macroman
In strarting a proyect using PHP+Xajax+Jquery. In traying to use 2 sortable lists into a portlet. It work fine in FF, Safary and Opera, but not in IE8. When I try to drag an element form a list, the portlet moves and the elment gets mad. Can see an example in

[jQuery] Re: Using jQuery to completely separate HTML from Javascript

2009-07-13 Thread James
Something like this could achieve what you want: a href=# class=link id=foo-1/a a href=# class=link id=foo-2/a a href=# class=link id=foo-3/a $(a.link).click(function() { var id = this.id.split('-')[1]; // - 1, 2, or 3 foo(id); return false; // prevents follow through of link

[jQuery] Re: table cells selector question

2009-07-13 Thread James
Try closest(): http://docs.jquery.com/Traversing/closest table trtd class=someclasstext 1/td/tr trtd class=someclasstext 2/td/tr trtd class=someclasstext 3/td/tr /table $(td.someclass).click(function() { var parentTable = $(this).closest(table); // and you can get the

[jQuery] Re: table cells selector question

2009-07-13 Thread Brad
I should have mentioned this site is still on 1.2.6, so I can't use closest. However, replacing closest w/ parents does work for me. Thanks! On Jul 13, 1:54 pm, James james.gp@gmail.com wrote: Try closest():http://docs.jquery.com/Traversing/closest table      trtd class=someclasstext

[jQuery] Re: document.ready - how to make sure all js is loaded?

2009-07-13 Thread Ricardo
It's probable that your chat script is adding #cometchatbase to the DOM in the onload event handler, if it's not happening at script evaluation time. Check it's source to confirm. If that's the case, you should be able to use $(window).load(function(){ $('#cometchatbase'). }); instead of

[jQuery] Re: slideUp(), slideDown() choppy on IE 6, 7, 8

2009-07-13 Thread Bill
Thanks again for looking at this. The padding still exists in all browsers except IE 6, 7, and 8, because those are the only ones exhibiting the issue. A conditional IE- only stylesheet applies the following style: .advanced-search #smart-filters li .added-criteria UL LI { padding: 0; }

[jQuery] Re: Why does my Jquery elements handles not work?

2009-07-13 Thread Rick Faircloth
Check out the .livequery plug-in or, for jQuery 1.3 and above, the .live() function. -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of macjohn Sent: Monday, July 13, 2009 4:12 PM To: jQuery (English) Subject: [jQuery] Why does my

[jQuery] Re: Why does my Jquery elements handles not work?

2009-07-13 Thread Rick Faircloth
If you're using jQuery 1.3 or above, it has a built-in function, .live(), that does almost the same thing are the .livequery plugin. However, .live() is a little more limited as to the type of events it effects, such as blur. Go with the .live() function if you can and avoid having to use

[jQuery] Why does my Jquery elements handles not work?

2009-07-13 Thread macjohn
Hi all! I am a newbie in Jquery. And I have encountered a problem: Using Jquery, I am replacing a submit button with a different submit button. So far so good. It works and looks right, in the generated sourcecode (when checking it in Firebug). HOWEVER: The new generated submit button does

[jQuery] Re: Why does my Jquery elements handles not work?

2009-07-13 Thread macjohn
I use http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js Instead of keeping a version of the library myself. Is that a bad idea? (I just thought Id always have the latest version this way) BUT This is where it REALLY shines thorough that I dont know what I am talking about: I dont

[jQuery] Re: Why does my Jquery elements handles not work?

2009-07-13 Thread Rick Faircloth
If linking to the google api works, that's no problem. I tend to have a particular version on my server so if a new version comes out that breaks functionality in some code or another plugin, I'm not affected by the change and can test the new code before it affects my sites. As far as using the

[jQuery] Re: table cells selector question

2009-07-13 Thread Mauricio (Maujor) Samy Silva
$('td').click(function() { context = $(this).parents('table')[0]; var cells = $('td.a', context); }) Maurício -Mensagem Original- De: Brad Para: jQuery (English) Enviada em: segunda-feira, 13 de julho de 2009 16:39 Assunto: [jQuery] table cells selector question I

[jQuery] Re: jQuery syntax question

2009-07-13 Thread Matthew
Ok, so eq() seems to work fine, I tried nth-child but im not sure if it worked the way I wanted. When I console.log eq() for the code snipet I provided i get [p] does that look right? Here is a DOM example from my page: body id=seniors ... ... div id=text some divs and ul navigation h1../h1

[jQuery] Re: Add function (transverse)

2009-07-13 Thread mkmanning
Is there another way to accomplish this? $(.post).hover(function () { $(this).find('.category,.comments').show(); }, function () { $(this).find('.category,.comments').hide(); }); On Jul 13, 9:50 am, aakoch outofthem...@gmail.com wrote: I find it frustrating that the

[jQuery] Re: Why does my Jquery elements handles not work?

2009-07-13 Thread macjohn
It worked! Thanks a million!! OK now that I am asking syupid questions: I pick up variables from the form using Jquery: var element = $(this); var Id = element.attr(id); var item = $('#vare_'+Id).val(); var other_item =

[jQuery] Re: jQuery syntax question

2009-07-13 Thread Matthew
nevermind my last reply, eq() works great, I just forgot to change my code... here is the code snipet that works (for future reference) jQuery.get(http://www.online-health-insurance.apollobackstage.com/ includes/seniorFreeQuoteBody.php, function(data){

[jQuery] Re: Why does my Jquery elements handles not work?

2009-07-13 Thread James
parseInt(): http://www.w3schools.com/jsref/jsref_parseInt.asp Example: var sNum = 1234; var n = parseInt(sNum, 10); // 10 means base-10 number sytem On Jul 13, 11:20 am, macjohn ba...@basix.dk wrote: It worked! Thanks a million!! OK now that I am asking syupid questions: I pick up

[jQuery] Re: return false; on links only working on first click in IE

2009-07-13 Thread James
I'm not sure what the problem exactly is, but just pointing out what I see: var vtid=jQuery(this)..parent('div.controller') Do you have two dots there, or is that a typo? On Jul 12, 7:43 pm, pedalpete p...@hearwhere.com wrote: I've been trying to make my very ajaxy site more SEO friendly, lots

[jQuery] Re: my .click with UI Dialog is making me have to double click instead of one click to open it

2009-07-13 Thread Scott
got it to work had to move $(function() { $(#pro_edit_profile).dialog({ bgiframe: true, autoOpen: false, modal: true, buttons: { Cancel:

[jQuery] Re: slideUp(), slideDown() choppy on IE 6, 7, 8

2009-07-13 Thread Olaf Bosch
Bill schrieb: The padding still exists in all browsers except IE 6, 7, and 8, because those are the only ones exhibiting the issue. A conditional IE- only stylesheet applies the following style: Ah, sorry, i look not to deep in your Code ;) I played now direct in IE with

[jQuery] Re: Help with jQuery validator plug in

2009-07-13 Thread James
You have a copy of both jQuery 1.3.2 and 1.2.6 loaded on the page at the same time. That will probably cause issues... Use one or the other (preferably the latest version). On Jul 13, 3:45 am, erin_mcg ummhumm.creat...@gmail.com wrote: I've been searching for days for help on this and cannot

[jQuery] Clone and Replace

2009-07-13 Thread Nate
I have a table that is dynamically populated by PHP and MySQL. At the bottom, I've created an empty table row: tr/tr I have a jQuery function that posts data to a PHP file. When the PHP file returns true, I want it to clone that emtpy table row, and then manipulate it by giving the table row

[jQuery] Re: Clone and Replace

2009-07-13 Thread James
I don't see anywhere in the code where you're setting an ID to the tr. And if you're cloning an existing tr that has an ID, that may cause issues because IDs are suppose to be unique on a page. Is there any reason you're cloning an existing tr/tr instead of just appending it in with all the other

[jQuery] Re: Clone and Replace

2009-07-13 Thread Nathan Ledet
Here is the PHP code that generates the entire table, plus the empty table row. table width=555px border=0 id=groups ?php $query = SELECT * FROM users JOIN groups ON users.userID = groups.userID WHERE users.username = ' .

[jQuery] Re: IE doesn't seem to see classes created by other JQuery Script

2009-07-13 Thread Ricardo
What is the other script that adds the class, does it involve ajax/get/ load? On Jul 13, 10:49 am, zorba tra...@visages-trekking.com wrote: Hi, I'll do my best to explain the following. I simply want to do this:     $(myDiv p).find(.highlight:contains(someText)).doSomeStuff... where the

[jQuery] Re: Clone and Replace

2009-07-13 Thread Nate
Also, James, each table row has a unique id. it will be called something like id=group34 or id=group35 - no two are the same. It's info that is related to the ID of the database. So when my jQuery posts to addgroup.php, it inserts the data into the database, and then I use the mysql_inser_id()

[jQuery] Re: jQuery syntax question

2009-07-13 Thread Ricardo
Well, $( $(x)[2] ) is exactly the same as $(x).eq(2), and eq() is way slower cause it needs to preserve the object and stuff. The point everyone missed is that $(x)[2] gives you a DOM element, not a jQuery object, that's why you need to rewrap it in jQuery. Also, IDs should be unique (only one

[jQuery] Re: Why does my Jquery elements handles not work?

2009-07-13 Thread Michael Geary
It looks like you've both misunderstood how versioning works on Google Ajax Libraries server. The link you have below specifically loads version 1.3.0 of jQuery. It doesn't load the latest version, it's 1.3.0 and will always be the 1.3.0 code with no changes. In fact, it's not even 1.3.2 - you

[jQuery] Re: Clone and Replace

2009-07-13 Thread James
How about just removing the empty tr/tr and use something like the following for your insert row after your AJAX response: $(#groups).append('tr id=group'+data.id+'td/td/tr'); On Jul 13, 1:00 pm, Nate nathanle...@gmail.com wrote: Also, James, each table row has a unique id.  it will be

[jQuery] Re: Chaining $.append

2009-07-13 Thread dnagir
Hi Cody, $(li id='prod- + data.Id + '/li).text (data.Name).appendTo(#prods-list); I tried this: $(a href='#' onclick='return false;LINK/a).text('new link').appendTo(#foo) just on the jQuery doc page: http://docs.jquery.com/Manipulation/appendTo But it doesn't seem to work for me. Cheers,

[jQuery] Re: send table with input elements to server

2009-07-13 Thread Charlie
still not sure if this is 2 tables and exactly what you are trying to do, david wrote: Dear Charlie, I mean if i have a table table tr td input type="text" value="" name="a' /td tdinput type="text" value="" name="b" /td /tr /table and then i enter in a david and b michael i want at the

[jQuery] Re: Clone and Replace

2009-07-13 Thread Nate
LOL - I swear I thought of almost the exact same thing when I went out and took a drive...it's amazing what time away from the computer does...and of course, a little help. Now I seem to be missing something (yeah, I am new to jQuery...) I still want that table row to fade in...but neither

[jQuery] Re: Determine content type in $.post callback

2009-07-13 Thread dnagir
Hi Peter,     var ContentTypeHeader = this.contentType; this.contentType is the content type of the REQUEST. I need to get the ContentType of the RESPONSE. No chance of getting it? Cheers, Dmitriy.

[jQuery] Re: Clone and Replace

2009-07-13 Thread James
I think there's some issues with fadeIn/fadeOut for tr. Try something like the following: var html = 'tr id=ohaitd class=hidehello/td/tr'; $('#groups').append(html).find(td).fadeIn(fast); The class hide on the td is style with display:none; Add this to all your td if you have more than one. On

[jQuery] Re: Chaining $.append

2009-07-13 Thread James
You forgot a closing quote on: onclick='return false; On Jul 13, 2:00 pm, dnagir dna...@gmail.com wrote: Hi Cody, $(li id='prod- + data.Id + '/li).text (data.Name).appendTo(#prods-list); I tried this: $(a href='#' onclick='return false;LINK/a).text('new link').appendTo(#foo) just on

[jQuery] Re: jquery alerts

2009-07-13 Thread James
The jQuery UI Dialogs are pretty decent. Is there any style in particular that you're interested in? On Jul 13, 7:45 am, reneara...@gmail.com wrote: can anyone suggest some good jquery alert windows/dialogs?

[jQuery] Re: trigger click on an anchor

2009-07-13 Thread James
Yes, it's a little different. Calling click() will not do an auto- mouseclick on the link. You'd have to do something like: // set click callback $(#clickme).click(function() { location.href = this.href; // goes to link }); // trigger click callback $(#clickme).click(); On Jul 13, 7:02 

[jQuery] Re: Clone and Replace

2009-07-13 Thread Nate
Thanks a lot for the help James. I'll give that a shot. I am re- tooling this little application and I'm beginning to think I may not need tables at all. I'll keep you posted. Thanks again On Jul 13, 8:24 pm, James james.gp@gmail.com wrote: I think there's some issues with fadeIn/fadeOut

[jQuery] Re: Decent Date Checking using the JQuery Validate Plugin?

2009-07-13 Thread Mr Fett
I've been continuing my search on this but still haven't found anything - anyone else? On Jun 23, 5:37 pm, Mr Fett bob.mc...@freshmango.com wrote: Hi all, I've been using the fantastic validate plugin for a while now but I've always found the support for date validation sorely lacking as it

[jQuery] Any expert on this???

2009-07-13 Thread sixthmatrix
If I use ajax to load a new page within a DIV called test... It seems that all the classes and ids that are loaded within that 'test' div does not work with my preloaded header jQuery functions. Do I also have to reload my header jQuery functions?

[jQuery] Re: Any expert on this???

2009-07-13 Thread Charlie
http://docs.jquery.com/Frequently_Asked_Questions#Why_doesn.27t_an_event_work_on_a_new_element_I.27ve_created.3F sixthmatrix wrote: If I use ajax to load a new page within a DIV called "test"... It seems that all the classes and ids that are loaded within that 'test' div does not work

  1   2   >