[jQuery] pleeease heeelp me nowwwwww
hi i have written jquery for a site; after a while for sth that i don't know it don't work anymore and direbug give an error like this: $(div#peik) is null $(div#peik).hide(); and when i try to write $(document).ready() in firebug, it return : TypeError: $(document) is null whyyy is that? pleeeas answer as soon as posible thanks
[jQuery] Re: pleeease heeelp me nowwwwww
nooo, it wasn't helpful if anybody can help me please send a pm me at yahoo messsenger at ( [EMAIL PROTECTED]) thankks :-s On Dec 10, 12:22 pm, JQueryProgrammer [EMAIL PROTECTED] wrote: Try this: $(function() { // your code goes here. }); Also while including the jquery file, write it as: script type=text/javascript src=jquery.js/script Check whether this helps. On Dec 10, 2:17 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi i have written jquery for a site; after a while for sth that i don't know it don't work anymore and direbug give an error like this: $(div#peik) is null $(div#peik).hide(); and when i try to write $(document).ready() in firebug, it return : TypeError: $(document) is null whyyy is that? pleeeas answer as soon as posible thanks
[jQuery] Re: pleeease heeelp me nowwwwww
ok, the code is: var flag=false; $().ready(function(){ $(div#peik).hide(); $('div#cardbanki div').hide(); $('div#pardakht div').hide(); ... the error is on first div (like i said in first post) and if you want url , i must say that it's a persian eshop site http://www.finaleshop.com you must buy a product and then goto checkout_confirmation.php page (i suggest that pm me to talk about it ! :-s ) On Dec 10, 12:33 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: nooo, it wasn't helpful if anybody can help me please send a pm me at yahoo messsenger at ( [EMAIL PROTECTED]) thankks :-s On Dec 10, 12:22 pm, JQueryProgrammer [EMAIL PROTECTED] wrote: Try this: $(function() { // your code goes here. }); Also while including the jquery file, write it as: script type=text/javascript src=jquery.js/script Check whether this helps. On Dec 10, 2:17 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi i have written jquery for a site; after a while for sth that i don't know it don't work anymore and direbug give an error like this: $(div#peik) is null $(div#peik).hide(); and when i try to write $(document).ready() in firebug, it return : TypeError: $(document) is null whyyy is that? pleeeas answer as soon as posible thanks
[jQuery] Re: pleeease heeelp me nowwwwww
(thanks for your answers :*) script type=text/javascript src=includes/javascript/jqCore.js/ script script type=text/javascript src=includes/javascript/rahnema1.js/ script the urls are : http://www.finaleshop.com/includes/javascript/rahnema1.js http://www.finaleshop.com/includes/javascript/jqCore.js On Dec 10, 12:38 pm, Alexandre Plennevaux [EMAIL PROTECTED] wrote: can you cut and paste the full html on the page, and show the javascript external file links. that should be enoughf thanks. On Wed, Dec 10, 2008 at 10:36 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: ok, the code is: var flag=false; $().ready(function(){ $(div#peik).hide(); $('div#cardbanki div').hide(); $('div#pardakht div').hide(); ... the error is on first div (like i said in first post) and if you want url , i must say that it's a persian eshop site http://www.finaleshop.com you must buy a product and then goto checkout_confirmation.php page (i suggest that pm me to talk about it ! :-s ) On Dec 10, 12:33 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: nooo, it wasn't helpful if anybody can help me please send a pm me at yahoo messsenger at ( [EMAIL PROTECTED]) thankks :-s On Dec 10, 12:22 pm, JQueryProgrammer [EMAIL PROTECTED] wrote: Try this: $(function() { // your code goes here. }); Also while including the jquery file, write it as: script type=text/javascript src=jquery.js/script Check whether this helps. On Dec 10, 2:17 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi i have written jquery for a site; after a while for sth that i don't know it don't work anymore and direbug give an error like this: $(div#peik) is null $(div#peik).hide(); and when i try to write $(document).ready() in firebug, it return : TypeError: $(document) is null whyyy is that? pleeeas answer as soon as posible thanks
[jQuery] Re: pleeease heeelp me nowwwwww
no James, but i think you'd better to know that i have this code : script type=text/javascriptvar xmlhttp=false,response=null,spinner = document.createElement('IMG'),expanded=''; spinner.src = 'images/c/ spinner.gif'; try {xmlhttp = new ActiveXObject(Msxml2.XMLHTTP);} catch (e) {try {xmlhttp = new ActiveXObject(Microsoft.XMLHTTP);} catch (E) {xmlhttp = false;}} if (!xmlhttp typeof XMLHttpRequest != 'undefined') { xmlhttp = new XMLHttpRequest();}/script in top of my page, for other javascripts (i didn't add this now) but there was no errors till now! On Dec 10, 12:40 pm, James Hughes [EMAIL PROTECTED] wrote: Are you mixing any other frameworks on the page e.g. Prototype? From: jquery-en@googlegroups.com on behalf of [EMAIL PROTECTED] Sent: Wed 10/12/2008 09:36 To: jQuery (English) Subject: [jQuery] Re: pleeease heeelp me noww ok, the code is: var flag=false; $().ready(function(){ $(div#peik).hide(); $('div#cardbanki div').hide(); $('div#pardakht div').hide(); .. the error is on first div (like i said in first post) and if you want url , i must say that it's a persian eshop sitehttp://www.finaleshop.comhttp://www.finaleshop.com/ you must buy a product and then goto checkout_confirmation.php page (i suggest that pm me to talk about it ! :-s ) On Dec 10, 12:33 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: nooo, it wasn't helpful if anybody can help me please send a pm me at yahoo messsenger at ( [EMAIL PROTECTED]) thankks :-s On Dec 10, 12:22 pm, JQueryProgrammer [EMAIL PROTECTED] wrote: Try this: $(function() { // your code goes here. }); Also while including the jquery file, write it as: script type=text/javascript src=jquery.js/script Check whether this helps. On Dec 10, 2:17 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi i have written jquery for a site; after a while for sth that i don't know it don't work anymore and direbug give an error like this: $(div#peik) is null $(div#peik).hide(); and when i try to write $(document).ready() in firebug, it return : TypeError: $(document) is null whyyy is that? pleeeas answer as soon as posible thanks This e-mail is intended solely for the addressee and is strictly confidential; if you are not the addressee please destroy the message and all copies. Any opinion or information contained in this email or its attachments that does not relate to the business of Kainos is personal to the sender and is not given by or endorsed by Kainos. Kainos is the trading name of Kainos Software Limited, registered in Northern Ireland under company number: NI19370, having its registered offices at: Kainos House, 4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland. Registered in the UK for VAT under number: 454598802 and registered in Ireland for VAT under number: 9950340E. This email has been scanned for all known viruses by MessageLabs but is not guaranteed to be virus free; further terms and conditions may be found on our website -www.kainos.com
[jQuery] Re: pleeease heeelp me nowwwwww
:)) no dear you're right but i was trying somthing that JQueryProgrammer was said i just write wrong for a scond see it now ! ;) it has error nooow! On Dec 10, 12:53 pm, Alexandre Plennevaux [EMAIL PROTECTED] wrote: inhttp://www.finaleshop.com/includes/javascript/rahnema1.js you have a typo var flag=false; //$().ready(function(){ $(function() { that sign is problematic. continuing reading... On Wed, Dec 10, 2008 at 10:40 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: (thanks for your answers :*) script type=text/javascript src=includes/javascript/jqCore.js/ script script type=text/javascript src=includes/javascript/rahnema1.js/ script the urls are : http://www.finaleshop.com/includes/javascript/rahnema1.js http://www.finaleshop.com/includes/javascript/jqCore.js On Dec 10, 12:38 pm, Alexandre Plennevaux [EMAIL PROTECTED] wrote: can you cut and paste the full html on the page, and show the javascript external file links. that should be enoughf thanks. On Wed, Dec 10, 2008 at 10:36 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: ok, the code is: var flag=false; $().ready(function(){ $(div#peik).hide(); $('div#cardbanki div').hide(); $('div#pardakht div').hide(); ... the error is on first div (like i said in first post) and if you want url , i must say that it's a persian eshop site http://www.finaleshop.com you must buy a product and then goto checkout_confirmation.php page (i suggest that pm me to talk about it ! :-s ) On Dec 10, 12:33 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: nooo, it wasn't helpful if anybody can help me please send a pm me at yahoo messsenger at ( [EMAIL PROTECTED]) thankks :-s On Dec 10, 12:22 pm, JQueryProgrammer [EMAIL PROTECTED] wrote: Try this: $(function() { // your code goes here. }); Also while including the jquery file, write it as: script type=text/javascript src=jquery.js/script Check whether this helps. On Dec 10, 2:17 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi i have written jquery for a site; after a while for sth that i don't know it don't work anymore and direbug give an error like this: $(div#peik) is null $(div#peik).hide(); and when i try to write $(document).ready() in firebug, it return : TypeError: $(document) is null whyyy is that? pleeeas answer as soon as posible thanks
[jQuery] Re: pleeease heeelp me nowwwwww
thanks Alexandre and other i have this problem yet ! and i have to go to university ! I check your other answers later thanks before... On Dec 10, 1:13 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: :)) no dear you're right but i was trying somthing that JQueryProgrammer was said i just write wrong for a scond see it now ! ;) it has error nooow! On Dec 10, 12:53 pm, Alexandre Plennevaux [EMAIL PROTECTED] wrote: inhttp://www.finaleshop.com/includes/javascript/rahnema1.js you have a typo var flag=false; //$().ready(function(){ $(function() { that sign is problematic. continuing reading... On Wed, Dec 10, 2008 at 10:40 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: (thanks for your answers :*) script type=text/javascript src=includes/javascript/jqCore.js/ script script type=text/javascript src=includes/javascript/rahnema1.js/ script the urls are : http://www.finaleshop.com/includes/javascript/rahnema1.js http://www.finaleshop.com/includes/javascript/jqCore.js On Dec 10, 12:38 pm, Alexandre Plennevaux [EMAIL PROTECTED] wrote: can you cut and paste the full html on the page, and show the javascript external file links. that should be enoughf thanks. On Wed, Dec 10, 2008 at 10:36 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: ok, the code is: var flag=false; $().ready(function(){ $(div#peik).hide(); $('div#cardbanki div').hide(); $('div#pardakht div').hide(); ... the error is on first div (like i said in first post) and if you want url , i must say that it's a persian eshop site http://www.finaleshop.com you must buy a product and then goto checkout_confirmation.php page (i suggest that pm me to talk about it ! :-s ) On Dec 10, 12:33 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: nooo, it wasn't helpful if anybody can help me please send a pm me at yahoo messsenger at ( [EMAIL PROTECTED]) thankks :-s On Dec 10, 12:22 pm, JQueryProgrammer [EMAIL PROTECTED] wrote: Try this: $(function() { // your code goes here. }); Also while including the jquery file, write it as: script type=text/javascript src=jquery.js/script Check whether this helps. On Dec 10, 2:17 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi i have written jquery for a site; after a while for sth that i don't know it don't work anymore and direbug give an error like this: $(div#peik) is null $(div#peik).hide(); and when i try to write $(document).ready() in firebug, it return : TypeError: $(document) is null whyyy is that? pleeeas answer as soon as posible thanks
[jQuery] Re: pleeease heeelp me nowwwwww
wos! something that Chandan said, was helpful !! some one had written a code and in his code define a function with $ it was the problem o... thanks guys :) On Dec 10, 12:21 pm, Chandan Luthra [EMAIL PROTECTED] wrote: the jquery library must be conflicting with some other library try *jquery(funtion(){});* instead of $(document).ready On Wed, Dec 10, 2008 at 2:47 PM, [EMAIL PROTECTED] [EMAIL PROTECTED]wrote: hi i have written jquery for a site; after a while for sth that i don't know it don't work anymore and direbug give an error like this: $(div#peik) is null $(div#peik).hide(); and when i try to write $(document).ready() in firebug, it return : TypeError: $(document) is null whyyy is that? pleeeas answer as soon as posible thanks -- With Regards, Chandan.
[jQuery] Re: jQuery Form Plugin - success callback function isn't called
Actually if you put a debugger; statement there and debug with firebug you will see that it actually gets called. But for some reason the alert does not work. But other js code will work so you can show your messages somewhere else on the page if you want or need to. On 7 nov, 15:34, Mike Alsup [EMAIL PROTECTED] wrote: Theformsubmits as it should, using an AJAX call. When I add a beforeSubmitcallbackfunction to the options array, that gets called as well, as it should. Only the successcallback(the alert) isn't called and I don't know why. Maybe the call wasn't successful. Can you post a link?
[jQuery] Re: jQuery Form Plugin - success callback function isn't called
I have the same problem here and the call sure is successful, because the rest of the commands get executed. The weird thing is that only the alert that does not get executed. I have even inspected the response with firebug and repeated the tests using selenium with and without the alert so I´m sure that the alert does not work on these callbacks (including error and complete ones either). On 7 nov, 15:34, Mike Alsup [EMAIL PROTECTED] wrote: The form submits as it should, using an AJAX call. When I add a beforeSubmit callback function to the options array, that gets called as well, as it should. Only the success callback (the alert) isn't called and I don't know why. Maybe the call wasn't successful. Can you post a link?
[jQuery] JQuery Validation Dynamic updates
I have javascript code that alters the values inside the validate attribute set on a ui element. An example of what I change is validate=required:true, messages{required:'Please give a value} to validate=required:true,messages{required:'Give a different value'}. This is changed via javascript and I find that the validation does not recognize these changes to the attributes. Is there anything I am supposed to call to make the framework recognize these changes that were made on the fly? Thanks, K
[jQuery] Traverse XML string
Hi, I want to read the values from a simple xml string but can't get it to work. Here's the code: var xml = foodburgercheese/burger/food; // example 1 var result = $(xml).find(food).find(burger).text(); // example 2 $(food, xml).each(function(i) { result = $(this).find(burger).text(); }); in both examples result is empty. I tested that jquery is working by setting the body backgroud color. Regards, FatSlags2004
[jQuery] Re: Traverse XML string
I tried that but still get an empty result. I seached google and saw examples like yours all over the place so maybe it's something else. here's the full source: html head title/title script type=text/javascript language=javascript src=jquery-1.2.6.min.js/script script type=text/javascript language=javascript $(document).ready(function() { $(body).css(background-color, yellow); var xml = foodburgercheese/burger/food; var result = $(xml).find(burger).text(); alert(result); }); /script /head /html On Dec 7, 5:44 pm, Dave Methvin [EMAIL PROTECTED] wrote: var xml = foodburgercheese/burger/food; var result = $(xml).find(food).find(burger).text(); The root node for your xml is food, so when you try to find a nested food node in that it fails. Try $(xml).find(burger).text();
[jQuery] UI Datepicker Regional
Hello all, I can't get the regional settings (language etc) to work with my datepicker - the changes I have made other than that are: $(#dateInput).datepicker({ closeText: 'Luk', prevText: 'laquo; M', nextText: 'M raquo;', currentText: 'M', navigationAsDateFormat: true, firstDay: 1, duration: 'fast', showAnim: 'fadeIn' }); What do I put in there to set the region? Thanx
[jQuery] cluetip mouse tracking
Hi, I'm interested in using the cluetip mouse tracking plugin, but I noticed that the feature is experimental. Does anyone have more info on this? Are there plans to support it fully? In the meantime, am I safe using it in the major browsers?
[jQuery] Re: someone please for to helps me!
awaitting ... On 11月21日, 上午5时47分, dickles [EMAIL PROTECTED] wrote: very simple codes not run right. test for when popup window is loaded... i try everything, very frustration! please for you to helps, 1,000 thanks in advance to you! from parent window: script type=text/javascript var popup = window.open('test.html', 'client_window', 'height=400,width=700'); $(popup.document).ready(function() { console.log($('#test', $(popup.document.body)).length);}); /script from 'test.html': html head/head body div id=testyes you can/div /body /html console.log() says the length is 0 if the popup is a new browser window. If the popup is already open and you refresh parent page, the length is 1. ready() is not working as i expects!
[jQuery] Re: how to avoid overhead
I would start by evaluating the requirement for adding 1599 divs. The way you have written it is probably the most efficent cross browser way of appending that much content but it will still crawl. On Dec 2, 10:53 am, Dirceu Barquette [EMAIL PROTECTED] wrote: Hi! The code: for (i = 0; i 1600 ;i ++) { htm += 'div/div';} $(htm).appendTo('#parentDiv'); How can avoid overhead? thanks, Dirceu Barquette
[jQuery] Re: Has jQuery development halted?
Hi Ariel, On Dec 1, 2:39 pm, Ariel Flesler [EMAIL PROTECTED] wrote: I'd simply check the trac to see if developmenthalted, instead of asking it publicly in such a challenging way. It might be obvious to you to 'simply check the trac', but i'm sure a lot of people have never been there. At the same time on the official jquery blog the latest post about Jquery UI is from september, and it says This is also the final version before the real deal, which can be expected to follow in the next days. It's two and a half months later, so you can't really blame me for asking about it, right? Anyhow, my apologies if I offended you, although I really don't understand _why_ you're offended.. If anything, my post was just about me being curious when we'll see a next release. And, if I didn't care about jQuery, I wouldn't be worried about it. Finally, if you're really into improving jQuery, this is how: http://dev.jquery.com/newticket I'd just add some more invalid tickets for you to close, so I won't do that. ;-) Like others have said: Thanks for your efforts, and I'm glad to see you take this so seriously. I'm looking forward to any and all new releases! Best, Bob.
[jQuery] jquery validation trailing comma error
Hey guys, i read about that trailing comma error in several other posts, but i just can't fix that problem. IE7 still submits the form even if the required fields are empty. Here's my jquery code: Hope you can help me. thanks in advance. var validator = $(#adventsform).validate({ rules: { anrede: { required: true }, vorname:{ required: true }, nachname: { required: true }, email: { required: true }, agb: { required: true } }, messages: { anrede: Bitte ausfuellen, vorname: Bitte ausfuellen, nachname: Bitte ausfuellen, email: Bitte ausfuellen, agb: Die AGBs muessen akzeptiert werden }, // the errorPlacement has to take the table layout into account errorPlacement: function(error, element){ if (element.is(:radio)) error.appendTo(element.next().next()); else if (element.is(:checkbox)) error.appendTo(element.next().next()); else error.appendTo(element.next()); }, // set this class to error-labels to indicate valid fields success: function(label){ // set as text for IE //alert(passt); label.html( ).addClass(checked); } });
[jQuery] How can JQuery trigger events in parent frame?
I have one html page with one iframe in parent frame, I have $('#x').bind('blur',function(){alert(1)}); input id='x' name='text'/input in the iframe, I can use $('#x',parent.document.body).val(); to retrieve the parent element value, but I cannot use $('#x',parent.document.body).blur(); to trigger the blur event my solution is create another function in parent and trigger that function, but I just curious why the above code doesn't work? my solution in parent frame $('#x').bind('blur',function(){alert(1)}); function parenttrigger(id){$(id).blur();} input id='x' name='text'/input in the iframe parent.parenttrigger('#x'); But I feel that this solution is a little bit ugly, can I trigger the blur event directly? Did I make any mistakes?
[jQuery] Can't get appropriate elements from server response.
Here is JS my code where I intend to get 2 DIVs and use there content. $.post( someAction, $.param(outData), onUpdatePostSuccess ); function onUpdatePostSuccess(data) { alert(data); var newTitleHTML = $(#newTopicTitle, data).html(); var newContentHTML = $(#newTopicMessage, data).html(); if (newTitleHTML newContentHTML) { $(#topicTitle).html(newTitleHTML); divMsg.html(newContentHTML); } else { divMsg.html(data); } } The alert(data); code line returns the following HTML code: div id=newToticTitleNew Topic Title/div div id=newTopicMessageNew Topic Message/div BUT, the code is always goes to else section in if conditional. Where can be the problem? I've used the same code in other section of the script and it works fine. Have spend a day struggling the problem but no luck :( Seems that I can't make any actions like $(expr, context) in onUpdatePostSuccess function.
[jQuery] jquery swfobject Flash detection
Hello. There is a Flash movie in my page - if the user doesn't have Flash, I want a jQuery Cycle slideshow to play instead. It all looks great, but I don't know how to tell whether the slideshow is running even if it's not needed! Will my jQuery function run, even after SWFObject has removed the div it's targeted to? If it does, I'm wasting memory so my next question would be: How should I write a conditional, to execute the function only if Flash is not present? Hope I've explained it clearly enough :/ Cherry.
[jQuery] Re: jquery swfobject Flash detection
Answered my own question: * Yes, the Ajax function was still running, even though its results were not being published, * I stopped that with a conditional ... if( $( '#xmlContent' ).find( 'object' ) ) { cycle_content (); }; Actually the Cycle loads quicker than the Flash, so I'm using it instead! I'd still like to know what vars can be returned from SWFObject for this purpose, though, if anybody has that info ... C. On Nov 26, 3:32 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello. There is a Flash movie in my page - if the user doesn't have Flash, I want a jQuery Cycle slideshow to play instead. It all looks great, but I don't know how to tell whether the slideshow is running even if it's not needed! Will my jQuery function run, even after SWFObject has removed the div it's targeted to? If it does, I'm wasting memory so my next question would be: How should I write a conditional, to execute the function only if Flash is not present? Hope I've explained it clearly enough :/ Cherry.
[jQuery] ajaxSubmit
Hi, I am using ajax form plugin. After I defined the new value (different with the attribute value of the form) of url and type properties within Option Object, and pass options to ajaxSubmit. It didn't override the form attribute value. Anyone knows why? Thanks
[jQuery] Ajax Call on form submit
Hi, I am sending user to different sites based on their attribute once they log in. I added a ajax call to check the users attribute before submitting login form. I am implementing this using ajax form plugin. The ajax call reside in beforeSubmit call back function, it seems that the ajax call is never invoked within the call back function. Anyone can help me? Thanks
[jQuery] trying to act on certain DIV's and not others
Hi folks, apologies if this is a completely noob question. I wish to close (hide) and number of div's whilst leaving others open. I considered the possibility that it might be feasible in Jquery to act on div's with a certain pattern in the id name. Not sure if this is true tho; for example div id-=contact_blah div id=contact_yak div id=nothanks so that the first two div's would be subject to being hidden, and the third left alone. I wish essentially to have a series of links toggle the visibility of some div's, but when a link is clicked and a div is unhidden, - all other divs to hide. Any ideas? best wishes and thanks Steve / Nibb
[jQuery] ajaxSubmit plugin
Hi, I am trying the ajax form plugin. After I defined new value of url and type properties within Option Object, those values of the properties didn't override the corresponding attributes value in the form. Does anyone know why? Thanks
[jQuery] Re: ANN: Books-a-million.com using jQuery
top site? 1Mb homepage downloadjq and proto...hmmm Am I missing something? On Nov 25, 4:37 am, Andy Matthews [EMAIL PROTECTED] wrote: I used to work for the web company who developed the original BAM site, and now a friend of mine is project manager for them. They just released a new version of their website and it uses jQuery: http://www.booksamillion.com/ From the source, it looks like they're really only making use of an accordion plugin, but hey...another notch in the belt of jQuery.
[jQuery] :nthchild, :eq help
Basic Issue: Can you use a variable in place of the index in functions like :nthchild() and :eq() and if so, how? Detailed description: I'm new to jquery and am trying to create an image viewer. I've marked it up and used jquery so that when you click on a thumbnail image, jquery returns the order of the thumbnail (1,2,3..) as a variable. I was hoping that I could use this variable as the parameter for :nthchild to select the corrisponding image from a list of images (1,2,3...). The goal is to be able to return the corrisponding image's offset and manipulate it. The thumbnail variable is returning properly, but I can't seem to select the corresponding image. I've noticed that :nthchild() and eq() require an index. Does this mean I can't insert a variable there? Any help would be appreciated. I could paste some code, but since this is a just a pet project, I will probably have to clean it up a bit first :) Thanks! Matt
[jQuery] Re: How to bind validation to new loaded form?
I still dont get it, how to bind my new loaded form. I have installed live query now, but i am still doing it the wrong way. used this to bind: $(#signupForm).bind(submit, function() { return false; }) I should expect that submitting this form, would be disabled thenbut no tried this: $(#signupForm).bind(submit, function() { alert(blah blah); return false; } no result too. and then i included the LiveQuery plugin: $(#signupForm).livequery(validateSignUp()); also no result i have 2 versions of my form, the one immediately loaded and the one loaded afterwards. first one validations still works second one still not. I am a real beginner with javascript and jQuery and am usy for several days now, so help will really really be appreciated. if needed, i can sent you the url.
[jQuery] Re: validate - only show certain messages
Hi there, i suppose, when you dont want to show a message error, you also do not want validate that particular input?? (else it sounds not logic to me, if you validate, you show error messages) Assuming your code is derivated from the example from the plugin, you see rules and messages inside the script. You can delete them. Also in your form you have included classes?? you can remove them. Not tried out, but i think above is a good thought. let me know
[jQuery] Re: jCarousel problem in Chrome
Update: Found the problem, it was a CSS issue, the carousel container not being floated correctly. Ade. On Nov 24, 1:50 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, Does this work with Google Chrome? All looks fine on page load. However, the thumbnails overshoot (can't think of a better way of describing it) when using the next button. In other words, when scrolling, the thumbnails are not contained within the carousel. I guess this is a CSS issue (script works fine for me in FF and IE), but wondered if anyone had come up for a fix with this. Thanks. Ade.
[jQuery] Re: jeditable - Tabbing between jeditable elements
Maybe onblur = submit is what you are after? This is what I am looking for. Submitting on the condition that the user tabbed out of the current jeditable input field. Man you thought of everything when you wrote this... I'll post my resulting code as soon as I get a chance to write and test it. -jl On Nov 21, 12:03 am, Mika Tuupola [EMAIL PROTECTED] wrote: On Nov 21, 2008, at 7:10 AM, [EMAIL PROTECTED] wrote: At present, a tab keyPress results in discarding the edits. I have not been able to get the callback to fire to submit the edit then change focus to the target element if I tab out of the element. I would like the tab key to result in the submit event which would trigger the callback function. Is there anything I could do short of modifying the plugin? * @param String options[onblur] 'cancel', 'submit', 'ignore' or function ?? cancel means discard edits when input goes out of focus. ignore means nothing happens. submit means the same as clicking submit. or you can write whatever function() { /* something *} if you have some unorthodox need :) Maybe onblur = submit is what you are after? -- Mika Tuupolahttp://www.appelsiini.net/
[jQuery] Re: How to bind validation to new loaded form?
hanks for the reply. I got this anwer on a previous question. (very helpfull, cause a few days ago i did not know binding even existed) So i understand that i have to bind my new form to my validation script. But i cant get it working this time. I have tried to validate just one input for an easier example. This is wat i made of it: $('#nieuwespeler').click(function(){ //alert(Nieuwe speler! howra); Got this alert var toLoad = 'forms/registratie.php'; $('#content').hide('slow',loadContent); // fast, slow, normal or milliseconden?? $('#load').remove(); $('#content').append('span id=loadLOADING.../span'); $('#load').fadeIn('slow'); function loadContent() { $('#content').load(toLoad,'',showNewContent()) } function showNewContent() { $('#content').show('slow',hideLoader) } function hideLoader() { $('#load').fadeOut('slow'); } $(#signupForm).validate({ rules:{ firstname: required, username: { required: true, minlength: 2} } }); return false; }); I have added above code in my document ready part. The signup form does appear, ut when i submit this form, without filling in anything, it submits without validation. My question is: What is wrong with the last part, where i try to bind the validation to my form? Validation does work, when including this form directly in the page, but not when loading afterwards.. Apperently i am binding the wrong way, but just cant see what is wrong with it. Please??
[jQuery] Capturing Tab and enter key at document level using JQuery
Hi, Could anyone of you suggest the best way to capture tab and enter key at document level using JQuery? Thanks in advance for your help
[jQuery] jCarousel problem in Chrome
Hi, Does this work with Google Chrome? All looks fine on page load. However, the thumbnails overshoot (can't think of a better way of describing it) when using the next button. In other words, when scrolling, the thumbnails are not contained within the carousel. I guess this is a CSS issue (script works fine for me in FF and IE), but wondered if anyone had come up for a fix with this. Thanks. Ade.
[jQuery] How to bind validation to new loaded form?
Hi all, i have tried to transform a bind example to my situation, but i can't get it working. Via my menu, i load a form which i want to validate. ( with Validation plugin from http://bassistance.de/jquery-plugins/jquery-plugin-validation/ Loading the form into my content div works fine, validation fails. maybe someone can give me a hint how to solve this? thanks in advance See my (small) code below: loaded javascript: !-- jQuery en plugins -- script src=JS/jquery-1.2.6.min.js type=text/javascript/script script src=JS/jquery.validate.min.js type=text/javascript/ script $(document).ready(function() { // Menu $('.sub li a').click(function(){ // test alert //alert(clicked on sub item..); var toLoad = $(this).attr('href'); // test alert //alert(content to load: + toLoad); got this alert $('#content').hide('normal',loadContent); $('#load').remove(); $('#wrapper').append('span id=loadLOADING.../span'); $('#load').fadeIn('normal'); function loadContent() { $('#content').load(toLoad,'',showNewContent()) } function showNewContent() { $('#content').show('normal',hideLoader()); } function hideLoader() { $('#load').fadeOut('normal'); } return false; }); // nieuwe speler...laadt aanmeld formulier $('#nieuwespeler').click(function(){ //alert(Nieuwe speler! howra); Got this alert var toLoad = 'forms/registreren.php'; $('#content').hide('slow',loadContent); // fast, slow, normal or milliseconden?? $('#load').remove(); $('#content').append('span id=loadLOADING.../span'); $('#load').fadeIn('slow'); function loadContent() { $('#content').load(toLoad,'',showNewContent()) } function showNewContent() { $('#content').show('slow',hideLoader(),function(){ $(#registratieform).validate();// rebind valideer aanmeld formulier ??? });// fast, slow, normal or milliseconden?? } function hideLoader() { $('#load').fadeOut('slow'); } return false; }); }); And this is my form: div id=register fieldset legendNieuwe speler aanmaken/legend form id=registratieform method=get action= input type=hidden name=TMS_ToDo value=NewUser !-- wijzigen: nieuw=ja -- input type=hidden name=rdoHistory value=pgn!-- vervallen? naar standaard instelling -- input type=hidden name=rdoTheme value=beholder!-- vervallen? naar standaard instelling -- label for=txtFirstNameEigen voornaam:/label em*/eminput id=txtFirstName type=text name=txtFirstName class=required size=15 p label for=txtFirstNameGewenste gebruikersnaam:/label em*/eminput id=txtNick type=text name=txtNick class=required size=15 minlength=2/p P label for=pwdPasswordGewenst paswoord:/label em*/eminput id=pwdPassword type=password name=pwdPassword class=required size=15 minlength=8/p p label for=pwdPassword2Herhaal paswoord:/label em*/eminput id=pwdPassword2 type=password name=pwdPassword2 size=15 class=required/p p label for=email_newuserUw email adres:/label em*/eminput id=email_newuser type=text name=email_newuser size=15 class=required email/p p p label for=agreeIk ga accoord met gebruikersvoorwaarden/label input type=checkbox id=agree name=agree / a href=#Lees hier de gebruikersvoorwaarden!/a!-- in popup! -- /p button id=registreren type=submit class=formbuttonRegistreren/button/p /form /fieldset /div
[jQuery] Re: exclude children from selected elements
It still doesn't work. I think part of the problem is because the children of main are added after I create the event listener. Second solution is to check in the event listener if the target is a child of main and if so, return. I know how to get the children of main , but how to I check the current tartget is one of them ? ricardobeat I need to select all objects of the page because I want to do a DOM inspector. But yes you are right, maybe I should only start from body ! Thanks On 20 nov, 18:25, ricardobeat [EMAIL PROTECTED] wrote: Are you sure you want to apply it to *all* elements on the page? That sounds a bit awkward. var main = $('#main, #main *'); $('body *').not(main).mouseover(function(){...}); On Nov 20, 2:07 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I want to apply a mouseover event on all elements but one and its children. I can't use class name to filter. How can I do it ? I've tried unsuccessfully : $(*:not(#main)).not($(#main).children()).mouseover(function() { }); thanks
[jQuery] Re: exclude children from selected elements
My mistake, it is working. The problem was my lack of understanding about how Dialog works. main is the div from which I create a Dialog and I didn't want the event listener to be added to the elements of main. However main is NOT the first element of the Dialog. I the background it is wrapped around other elements and the top one has class .ui-dialog . All sorted. Thanks . On 21 nov, 09:32, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: It still doesn't work. I think part of the problem is because the children of main are added after I create the event listener. Second solution is to check in the event listener if the target is a child of main and if so, return. I know how to get the children of main , but how to I check the current tartget is one of them ? ricardobeat I need to select all objects of the page because I want to do a DOM inspector. But yes you are right, maybe I should only start from body ! Thanks On 20 nov, 18:25, ricardobeat [EMAIL PROTECTED] wrote: Are you sure you want to apply it to *all* elements on the page? That sounds a bit awkward. var main = $('#main, #main *'); $('body *').not(main).mouseover(function(){...}); On Nov 20, 2:07 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I want to apply a mouseover event on all elements but one and its children. I can't use class name to filter. How can I do it ? I've tried unsuccessfully : $(*:not(#main)).not($(#main).children()).mouseover(function() { }); thanks
[jQuery] jCarousel (by Jan Sorgalla) scrolling integer problem
I am using Jan Sorgalla's jcarousel, and it seems that the integer for the scroll doesn't really work. No matter what I do, or set it to, it always scrolls/advances by 3 frames. scroll integer 3 The number of items to scroll by. If I set the above to 1 or 100, it always scrolls by three. Here is a test link: http://brandaiddesignco.com/jcarousel/jcarousel.html Any advice? I REALLY would appreciate it. Unfortunately, Jan has eliminated post responses on his tutorial page for this where he created it.
[jQuery] Re: jCarousel (by Jan Sorgalla) scrolling integer problem
Nevermind, I was able to dig this up from Jan on another post and it fixed my problem. It was inline on the actual html page, and not controlled by the js file that is referenced. I still don't understand why the document that is referenced doesn't control the scrolling, but hey, I'm a newbie!! jQuery('#mycarousel').jcarousel({ scroll: 1, itemFirstInCallback: {onAfterAnimation: mycarousel_itemFirstInCallback} });
[jQuery] dialog on the fly
Hi, In my ready function I create a div on the fly and try to create a dialog box out of it : $(document).append('div id=main class=flora/div'); $(#main).dialog(); But nothing happens. Is it at all possible to do this or should the div exists when the page is created ? Thanks
[jQuery] Re: dialog on the fly
actually it works if i append the div to the body $(body).append('div id=main class=flora/div') On 20 nov, 11:00, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, In my ready function I create a div on the fly and try to create a dialog box out of it : $(document).append('div id=main class=flora/div'); $(#main).dialog(); But nothing happens. Is it at all possible to do this or should the div exists when the page is created ? Thanks
[jQuery] Re: jsonp to WCF problem
Hi, Could you make the JsonModule and JsonStream objects available? That would save me a couple of hours making them myself. Your help is realy appreciated. Thanks, Edwin Vermeer
[jQuery] Re: jsonp to WCF problem
Hi, I am trying to implement a HttpModule but can't get it to work. Can you please post the code plus config changes? In the documentation it looks like a HttpModule can not work with WCF. When you look at http://msdn.microsoft.com/en-us/library/aa702682.aspx then you will see the folowing sentence: HttpModule extensibility: The WCF hosting infrastructure intercepts WCF requests when the PostAuthenticateRequest event is raised and does not return processing to the ASP.NET HTTP pipeline. Modules that are coded to intercept requests at later stages of the pipeline do not intercept WCF requests. On 20 nov, 08:06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, Could you make the JsonModule and JsonStream objects available? That would save me a couple of hours making them myself. Your help is realy appreciated. Thanks, Edwin Vermeer
[jQuery] loading css in the ready() function
Hi, I want to load the flora css on the fly in the ready() function : $(document).ready(function(){ $(head).append('link rel=stylesheet href=http://dev.jquery.com/ view/tags/ui/latest/themes/flora/flora.all.css type=text/css media=screen title=Flora (Default)'); $(body).append('div id=main class=flora/div'); $(#main).dialog(); }); When the dialog is created I get an exception in the jquery file in the attr function : invalid argument. At this line : elem[ name ] = value; It's trying to assign NaNpx to the attribute 'height'. If I load the css directly by adding the link in the html page, it works fine, but for reasons too long to explain I want to load it dynamically. Any idea what the problem could be ? Thanks
[jQuery] Re: jsonp to WCF problem
Ah, i found it. You have to set the aspNetCompatibility Config file: system.serviceModel serviceHostingEnvironment aspNetCompatibilityEnabled=true / Service class: [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required), System.Runtime.InteropServices.GuidAttribute(09A4A7FA-97AC-4CF8- B264-305EB987AC5F)] public class myService : ImyService On 20 nov, 13:15, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I am trying to implement a HttpModule but can't get it to work. Can you please post the code plus config changes? In the documentation it looks like a HttpModule can not work with WCF. When you look athttp://msdn.microsoft.com/en-us/library/aa702682.aspx then you will see the folowing sentence: HttpModule extensibility: The WCF hosting infrastructure intercepts WCF requests when the PostAuthenticateRequest event is raised and does not return processing to the ASP.NET HTTP pipeline. Modules that are coded to intercept requests at later stages of the pipeline do not intercept WCF requests. On 20 nov, 08:06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, Could you make the JsonModule and JsonStream objects available? That would save me a couple of hours making them myself. Your help is realy appreciated. Thanks, Edwin Vermeer
[jQuery] exclude children from selected elements
Hi, I want to apply a mouseover event on all elements but one and its children. I can't use class name to filter. How can I do it ? I've tried unsuccessfully : $(*:not(#main)).not($(#main).children()).mouseover(function() { }); thanks
[jQuery] Re: exclude children from selected elements
That doesn't work, it doesn't exclude #main and its children On 20 nov, 17:07, Hector Virgen [EMAIL PROTECTED] wrote: This might work better with filter() (untested): $('*').filter('#main, #main *').mouseover(function() { }); -Hector On Thu, Nov 20, 2008 at 8:07 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I want to apply a mouseover event on all elements but one and its children. I can't use class name to filter. How can I do it ? I've tried unsuccessfully : $(*:not(#main)).not($(#main).children()).mouseover(function() { }); thanks
[jQuery] jeditable - Tabbing between jeditable elements
I am using the jeditable plugin with autocomplete and its working perfectly. (Thanks Mike!) I would also like to have the ability to tab from one jeditable element to another jeditable element. It is possible to tab between text inputs in forms and I would like to have this analogous behavior with jeditable elements. My approach is as follows: 1. In the element callback of the declaration of a jeditable custom input: add a keyPress handler to recognize the tab (keyCode == 9) keypress. Add tab_target variable to the settings hashtable, which is the id of the jeditable element that we will tab over to. 2. The assigned jeditable event can be triggered on the tab_target element in the callback function on the jeditable element, provided the target is known. At present, a tab keyPress results in discarding the edits. I have not been able to get the callback to fire to submit the edit then change focus to the target element if I tab out of the element. I would like the tab key to result in the submit event which would trigger the callback function. Is there anything I could do short of modifying the plugin? TIA for any help. -jl
[jQuery] Problem with $(this).animate() on IE (naturally)!!
Hi,everyone, I try to do menu with animate efect, but it doesn't work on IE or work in a strange way: animate height and margin, but not the colors, or don't animate things in second function...?!! This is my function: $(document).ready(function(){ $(.menuEffect).hover(function() { $(this).css({color:white}); $(this).animate({height:50px, marginTop:0px, borderRight: 1px solid white}, 800 ); }, function() { $(this).stop(); $(this).animate({height:25px, marginTop:25px, borderRight: 1px solid black, color:black}, 400); } ); }); Can anyone tell me what may be the problem and how can I deal with it? :) 10x a lot and
[jQuery] highlighting elements of the page
Hi, I'm trying to highlights elements of the page on mouseover. I want to highlight all td's h1's and p's when the mouse is over. $(td, h1, p).mouseover(function() { $(this).css(backgroundColor, CC); }); $(p, h1, td).mouseout(function() { $(this).css(backgroundColor, mObj.prevBGColor); }); That doesn't do what I want. Indeed if a p is inside a td, only the td gets highlighted (or maybe the p too, but then since the td is also hightlighted, it doesn't look right) How can I specify that only top element should be highlighted ? Thanks
[jQuery] Searchbox - Search into a Page - only in letters a-z
Hi Dudes! My question in like this: I use jquery-1.2.6.min and have created a function (thanks to Waldek at Imtech who has opened the port from SharePoint to Jquery) wich contains a search box in a regular ASPX- file, when you search in the box for ex as, all the words in the content on the page are highlighted who begins with as. Nice! It works very well, but it´s one issue that i cant figure out, only A-Z are searchable, in my language swedish we have three more letters (åäö). Do anyone know how to handle that? Rgds, Christian
[jQuery] Searchbox - Search into a Page - only in letters a-z
My question in like this: I use jquery-1.2.6.min and have created a function (thanks to Waldek at Imtech who has opened the port from SharePoint to Jquery) wich contains a search box in a regular ASPX- file, when you search in the box for ex as, all the words in the content on the page are highlighted who begins with as. Nice! It works very well, but it´s one issue that i cant figure out, only A-Z are searchable, in my language swedish we have three more letters (åäö). Do anyone know how to handle that? Rgds, Christian
[jQuery] Executing Dynamic Javascript
I have an issue that I initially thought was a jQuery problem, but after simplifying things in preparation for posting my question, I see that it's a fundamental javascript matter. I don't understand why this works: http://pastebin.com/m3a767745 but this doesn't: http://pastebin.com/m346451b4 Note that the external.js file is just a single alert statement. What I'm trying to do (with javascript) is create a script element, place it inside a particular element and execute it. Thanks, -Rob
[jQuery] How do I write an expression to get all checked items of a certain class?
Hi, How do I write a JQuery expression that will give me all the elements that are inputs of type=checkbox, that have class=subscrCheckbox and that are checked? Thanks, - Dave
[jQuery] [validate] equalTo negative ? :)
Hi everyone, i'm interested in checking two of my inputs to be not equal to each other ( username and password ). Anyone had this problem before ?
[jQuery] History with Ajax
I'm using this plugin http://plugins.jquery.com/node/2472 to manage history in Ajax I've changed the line code $([EMAIL PROTECTED]'history']).click(function(){ by $j('body').intercept('click', [EMAIL PROTECTED]'history'], function(e){ it works perfectly in Firefox i still have the problem using IE7 could you Helps please thinks
[jQuery] [validate] not equalTo ?
Hi everyone, i'm new to jQuery and yesterday i got into a little issue with form validation. What i want to do is to check if username and password fields are having the same input, but I haven't found a solution to do this. Is there any way to make equalTo 'nagative' so if user enters the same username and password, form doesn't validate ?
[jQuery] Re: not equalTo ?
sorry for double posting it, but i'm really stuck on this one and can't go on with the project until it's done :( On Nov 17, 6:03 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi everyone, i'm new to jQuery and yesterday i got into a little issue with form validation. What i want to do is to check if username and password fields are having the same input, but I haven't found a solution to do this. Is there any way to make equalTo 'nagative' so if user enters the same username and password, form doesn't validate ?
[jQuery] Update div works in IE but not in FF?
Hi all, i wanted to update a div, depending on a click in my menu. I get both alert test-messages in both browserswith the right text, but AFTER the second alert in Firefox it goes wrong. The original content dissapears, but Instead of placing the new content, inside my content div, the original content shows up again?? Usually things goes well in Firefox en IE gives the problem, but now its Firefox which gives me a headache.. Please, can someone give me a clue, cause i have tried for hours now, without any result. Thanks in advance for your time Here is the code: $(document).ready(function() { $('#nav1 li a').click(function(){ // test alert alert(clicked on nav1..); var toLoad = $(this).attr('href'); // test alert alert(content to load: + toLoad); $('#content').hide('normal',loadContent); $('#load').remove(); $('#wrapper').append('span id=loadLOADING.../span'); $('#load').fadeIn('normal'); function loadContent() { $('#content').load(toLoad,'',showNewContent()) } function showNewContent() { $('#content').show('normal',hideLoader()); } function hideLoader() { $('#load').fadeOut('normal'); } return false; }); });
[jQuery] Ajax / XmlHttpRequest Problems with some routers / providers ( MTU) ( No jQuery problem!)
Hi, we're running a recently launched website ( http://www.smashdown.net). We're using AJAX requests (in JSON) to communicate with our servers. A couple of customers complained about that some functionalities on our website are not working. We've found out that some AJAX requests does simply timeout (because they're not send to our servers). We further found out that this only occurs to a couple of customers. Now we've been able to track down the problem. There is a customer using Alice DSL (a german internet provider). This customer uses a D- Link WLAN router to connect to the internet. If this customer is sending the AJAX request, it will not processed ( in fact, the request is not sent to our server). When this customer does not using the D-Link router (by connecting his computer directly to the DSL modem), everything works. We visited the customer at home :-) and tried to change each possible setting on the router. When we've changed the MTU value from 1492 to 1452 (as suggested by his internet provider). Now everything works. :-) This happened on a Mac Book (Firefox Safari ) and Linux (Firefox). My question is if anybody else encountered similar problems when using AJAX. Of course, it seems to be a problem of the customer, if he is using the wrong MTU. BUT: It's not very easy to tell our customers that they should use the right MTU, because all other common websites are working with this MTU (they are thinking their internet is working, of course). For a quick and dirty fix we could use a hidden iframe instead of AJAX request. But that's not really a good solutions. Maybe some of you had similar problems like this? I know, that this is not a jQuery issue, but I think this is a good place to ask other developers using AJAX if they had similar problems (and maybe found a good solution for this)? Greetings Christian
[jQuery] Re: Pause after .load request
I've been trying to play around with this, my javascript knowledge is very limit still (learning!). I keep getting this error: Error: useless setInterval call (missing quotes around argument?) I changed the script after running it a bit, to try and fix the error, still having problems: $(document).ready(function() { var date_reg = $(input#date_requested).val(); var counter = -1; slideTimer = setInterval((function(date_reg,counter){ //global var if (counter = date_reg) { $('#result').load('/get_time_lapse.pl', {date_requested: date_reg}); counter++; date_reg--; } else { clearInterval(slideTimer); } })(date_reg,counter),2000); }); On Nov 16, 1:04 pm, ricardobeat [EMAIL PROTECTED] wrote: There is no 'delay' or 'pause' in Javascript, you have to use a timeout or interval. Maybe this will work (interval, vars passed with a closure, if instead of while): $(document).ready(function() { var date_reg = $(input#date_requested).val(); var counter = -1; slideTimer = setInterval((function(date,counter){ //global var if (counter = date) { $('#result').load('/get_time_lapse.pl', {date_requested:date}); counter++; date--; } else { clearInterval(slideTimer); } })(date_reg,counter),2000); }); - ricardo On Nov 16, 3:22 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, I'm trying to fetch some data from a Perl script and have it begin to display as many times as there is data. More or less a data slideshow. The data is actually very visual, but at the moment, i dont want to implement a pause, forward/backward option, until I get the automatic option working. Basically what I'm trying to do is have the content load, wait, load, wait, etcWith a reasonable 2 - 3 seconds between each load...Here is the code I have that isn't quite working: $(document).ready(function() { var date_reg = $(input#date_requested).val(); var counter = -1; while (counter = date_reg) { $(#result).load('/get_time_lapse.pl', {date_requested: date_reg}); counter = counter + 1; date_reg = date_reg - 1; } }); where date_reg is just the number of times I want to load the screens. However, if I look at the logs for my Perl script, it does say all 10 calls, immediately, as fast as it can. I've tried to put a javascript pause or whatever that function was called in here, but it doesnt seem to work. Any suggestions to implement a pause between each .load? Thanks
[jQuery] Identifying the tag
Hi All, Let's say we have the following set up where doSomething is a function: $(h1, h2, h3).doSomething(); How can one identify which tag is currently having something done to it? Thanks
[jQuery] Pause after .load request
Hello, I'm trying to fetch some data from a Perl script and have it begin to display as many times as there is data. More or less a data slideshow. The data is actually very visual, but at the moment, i dont want to implement a pause, forward/backward option, until I get the automatic option working. Basically what I'm trying to do is have the content load, wait, load, wait, etcWith a reasonable 2 - 3 seconds between each load...Here is the code I have that isn't quite working: $(document).ready(function() { var date_reg = $(input#date_requested).val(); var counter = -1; while (counter = date_reg) { $(#result).load('/get_time_lapse.pl', {date_requested: date_reg}); counter = counter + 1; date_reg = date_reg - 1; } }); where date_reg is just the number of times I want to load the screens. However, if I look at the logs for my Perl script, it does say all 10 calls, immediately, as fast as it can. I've tried to put a javascript pause or whatever that function was called in here, but it doesnt seem to work. Any suggestions to implement a pause between each .load? Thanks
[jQuery] Cluetip and xml
Hello all, I start with ajax (jquery) and xml. I need to use cluetip in a table like this example: http://beckelman.net/Demos/jQueryTruncateAndClueTip/default.aspx As against that I do must be in Cluetip information from several different fields. Would you like a piece of code explaining the procedure to do with php? Do you have examples to this need ? Thank you in advance Benoit
[jQuery] JQuery Auto Complete?
hello! I'm using the JQuery auto complete ( jquery.autocomplete.js ). and I'm wondering how can I submit a form once an item has been selected? currently when an item is select you have to hit enter twice, once to get the item into the search field, and once to submit the search. I'd like to submit the search on the first enter. I see the option for : onItemSelect how can I use this to submit the form? thanks inadvance for your time! -Ken
[jQuery] Re: jeditable autocomplete - time to revisit?
That is exactly why I posted. I noticed that you had done a lot of work on inputs. Unfortunately I could not figure out how to do it myself from reading through your website. Thanks again for your help. -jl On Nov 13, 1:51 am, Mika Tuupola [EMAIL PROTECTED] wrote: On Nov 12, 2008, at 9:25 PM, [EMAIL PROTECTED] wrote: Wow, that was sooo simple. Works like a charm! Impressive.. Now, thats the way a plugin should work. Nice work Mike. Thank you :) Usually when someone has the need to do something special (such as useautocomplete) withJeditablethere is no need to touch Jeditablecode itself. All you need to do is to write a custom input. The reason why I created the plugin architecture (plugins for plugin) was to avoid bloat. Take 10 people and they have at least eight different needs. Making all their needs a configurable option would bloat the code. Thus the solution: Make all basic features configurable and create API with which people can extend the features how ever they want. -- Mika Tuupolahttp://www.appelsiini.net/
[jQuery] Re: Third horizontal navigation?
I found where. It's in the superfish-navbar.css, with all the .sf- navbar li li li and .sf-navbar li li ul, etc... Thx. Dom On Nov 12, 3:44 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thx. But I can't find it. Because all four and fifth level are the same as... the vertical third. Dom On Nov 12, 3:12 pm, Joel Birch [EMAIL PROTECTED] wrote: I don't have an example to point you to, but it is definitely possible. How easy it is will depend on your CSS skills though. I guess you should start with the version that has the third tier vertical, and adjust that third tier to be more like the second. Joel.
[jQuery] Animation Question
Right now, I have it so that the menu animates as follows: animation : {opacity:'show',height:'show'}, How would I go about coding the js so it animates out in the opposite effect animation {opacity:'hide',height:'hide'}? Example of what I have so far can be seen here: http://zidea.zidea.com/test/about.html
[jQuery] Re: jeditable autocomplete - time to revisit?
Wow, that was sooo simple. Works like a charm! Impressive.. Now, thats the way a plugin should work. Nice work Mike. -jl On Nov 12, 7:04 am, Mika Tuupola [EMAIL PROTECTED] wrote: On Nov 12, 2008, at 10:28 AM, Mika Tuupola wrote: On Nov 12, 2008, at 1:46 AM, [EMAIL PROTECTED] wrote: I was wondering if it my be possible to add autocomplete functionality using the addInputType API. It looks like it might be possible to attach autocomplete to the text input through the element: argument when declaring a custom input type. It should be fairly easy. Usually you just to need to create the element using element and add plugin to it using plugin. It is basically 5 lines of code. Quick and dirty autocomplete input for Jeditable: -cut- $.editable.addInputType('autocomplete', { element : $.editable.types.text.element, plugin : function(settings, original) { $('input', this).autocomplete(settings.autocomplete.data); } }); -cut- Then you can call it with something like: -cut- $(.autocomplete).editable(http://www.example.com/save.php;, { type : autocomplete, tooltip : Click to edit..., onblur : submit, autocomplete : { data : [Aberdeen, Ada, Adamsville, Addyston, Adelphi, Adena, Adrian, Akron] } }); -cut- -- Mika Tuupolahttp://www.appelsiini.net/
[jQuery] Re: [Superfish] Third horizontal navigation?
Thx. But I can't find it. Because all four and fifth level are the same as... the vertical third. Dom On Nov 12, 3:12 pm, Joel Birch [EMAIL PROTECTED] wrote: I don't have an example to point you to, but it is definitely possible. How easy it is will depend on your CSS skills though. I guess you should start with the version that has the third tier vertical, and adjust that third tier to be more like the second. Joel.
[jQuery] Re: jquery.timepickr.js: first official release
Still torn. I'd like to see a version that is click-based. On Nov 11, 10:20 am, MorningZ [EMAIL PROTECTED] wrote: This even got blogged about on John Resig's blog http://ejohn.org/blog/picking-time/ While i agree that it is a nice plugin, the lack of, and seemingly tough luck attitude given by the plugin's main page, it working in IE6 (or 7 as mentioned above) and WebKit for iPhone is a huge strike against..
[jQuery] jeditable autocomplete - time to revisit?
Hi, I would like to combine autocomplete (http://bassistance.de/jquery- plugins/jquery-plugin-autocomplete/) functionality with inline editing of jeditable. (http://www.appelsiini.net/projects/jeditable) I have looked at previous postings and done a google search and turned up an instance where someone has modified the jeditable plugin to do this, by adding autocomplete config info as a third argument to the .editable command. I was wondering if it my be possible to add autocomplete functionality using the addInputType API. It looks like it might be possible to attach autocomplete to the text input through the element: argument when declaring a custom input type. Has anyone been able to do this already? Thanks, -jl
[jQuery] Keeping track of the current clicked link
Hi, these are my first attempts with jQuery and I would be glad if somebody could help me. My Problem: I'm using the ASP.net MVC framework and wanted to keep track of the current clicked menu link. The menu links are in the master page and so is the jscript. What I tried to do is to attach some code to the click event of my links (in a marked list) and attach a selected class to the current clicked link: sample code 1 i started with this little jquery script: $(document).ready(function() { $(#menu a).click(function() { $(this).parents(li).addClass(active); }); }); end sample code 1 but soon found out that because the click function reloads the page it does apply the css right after the click but looses the class info after the (other content's ) page recreation. I played around with storing the var outside the call but it always led to the result that all info is lost because I actually navigate to a new page. Finally I tried the approach below, where I use the ready function for the click event so that the page actually is done with the navigation but again I'll loose the context of the this function - although it should keep it when I read the documentation of chaining jQuery I already tried to return the element with this line return $ (this).parents.(li) inside of the click function but that does not work either. Can somebody help me please? Or is it not possible because of the actual navigation? sample code 2 $(document).ready(function() { $(#menu a).click(function() { }).ready(function() { $(this).parents(li).addClass(active); }); }); end sample code 2
[jQuery] Resizable textarea
Hello, I can't get the jQuery UI resizable function, in any browsers. Here's my code : link rel=stylesheet href=http://dev.jquery.com/view/tags/ui/ latest/themes/flora/flora.all.css type=text/css media=screen title=Flora (Default) script src=http://code.jquery.com/jquery-latest.js;/script script type=text/javascript src=http://dev.jquery.com/view/tags/ui/ latest/ui/ui.core.js/script script type=text/javascript src=scripts/jquery/ui.resizable.js/ script script $(document).ready(function() { $(#txtArea).resizable({ handles: all }); }); /script textarea id=txtArea test/textarea I can't see what I'm missing. In the debugger the ready function is hit but the textarea is not converted to a resizable element. Can someone help ?
[jQuery] jQuery getJSON syntax error
hi all, I have a valid json string returned from the server(checks valid, ok by jsonlint.org) But get a syntax error from the browser. The call looks like: $.getJSON(url, addData);' The returned string looks like: [{EMAIL:[EMAIL PROTECTED],FIRSTNAME:Neal,ID: 80235,LASTNAME:Dombroski,PHONE:9258958113}, {EMAIL:[EMAIL PROTECTED],FIRSTNAME:Flaviomeral,ID: 80236,LASTNAME:UBertitidito,PHONE:4152861138}, both IE and firefox show error, firefox error console says syntax error followed by the json string. Can anyone suggest why the syntax error occurs for seemingly valid string?
[jQuery] Re: Resizable textarea
Right you are ! I was not linking properly to ui.resizable.js. However I do use my own local version and I think there's an issue with it because if I link to the online one one dev.jquery.com, it works fine. Thanks for putting me back on track. On 10 nov, 13:27, nmiddleweek [EMAIL PROTECTED] wrote: Hello, I don't think you're ui.resizable.js is loading properly. See this link for your fixed example:http://www.getdiverted.com/test/test3.html Also, it's probably better to download the ui.core.js and ui.resizable.js and put them into your own fodlers on your website, rather than linking to the jquery.com site... I think google host jQuery code if you don't want to. Search for the archives for more info on that one. Hope that helps... Cheers, N On Nov 10, 11:13 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, I can't get the jQuery UI resizable function, in any browsers. Here's my code : link rel=stylesheet href=http://dev.jquery.com/view/tags/ui/ latest/themes/flora/flora.all.css type=text/css media=screen title=Flora (Default) script src=http://code.jquery.com/jquery-latest.js;/script script type=text/javascript src=http://dev.jquery.com/view/tags/ui/ latest/ui/ui.core.js/script script type=text/javascript src=scripts/jquery/ui.resizable.js/ script script $(document).ready(function() { $(#txtArea).resizable({ handles: all }); }); /script textarea id=txtArea test/textarea I can't see what I'm missing. In the debugger the ready function is hit but the textarea is not converted to a resizable element. Can someone help ?
[jQuery] form submit without page refresh
Hi Friends I just want to submit the form without page refresh i want to do this using j query, Am actually working in DRUPAL ,Tell me how to implement this in drupal,
[jQuery] JCarousel multiple column/row view?
Yeah I posted on the other list and no one bothered to reply heres original link http://groups.google.com/group/jquery-plugins/browse_thread/thread/3a7764d42f7be662
[jQuery] Does the JQuery Ajax and load work properly? It seems to work like an iframe rather than like add html in FF, Opera, Chrome, but works as I would expect in IE
Hi, Check out the example at http://docs.jquery.com/Ajax/load#urldatacallback Click on one of the links in FF 3.0.3 or Chrome and instead of redirecting the entire window, it just redirects the content within the ul tags. However, do it in IE and it redirects the browser window properly. To me the ie functionality makes the most sense if we are just loading in pure html tags. I am trying to use this in a project but when I load any content that contains link in ajax, the link only changes the content of the containing div rather than changing the page. Is this a bug? Is there a work around?
[jQuery] Poll sumbit
Hi all, I want to build something so that when someone submits his poll choise that the poll will change into the results without any refresh. Whats the best way to start of with for building this? So: - user visite the site - user chooses a option on the poll - he presses on vote - then his answer will be added to the database - poll results will show When a person already voted he also has to show the results. Whats the best way to start of with? Erwin
[jQuery] Re: Understanding JQuery/Javascript.
It merges the new function into jQuery, meaning you can then apply all of the library's methods to it. Try http://docs.jquery.com/Plugins/Authoring if you haven't yet seen it. I often write tiny add-ons in basic style, eg function menutoggle () { do stuff }; But these only serve one purpose; they can't be 'plugged into' other jQuery routines. Steven Holzner's book on OOP has a section on extending; try http://tinyurl.com/6nv5hh Cherry. George wrote: Hi guys, I need some help with understanding JQuery/Javacript. I am far away form being a Javascript guru so I am not sure I understand why something done this (or other) way. I am looking at tablesorterPager plug-in and it's written following way (function($) { $.extend({ tablesorterPager: new function() { ...blablabla.. } }); // extend plugin scope $.fn.extend({ tablesorterPager: $.tablesorterPager.construct }); })(jQuery); If I were to write this plug in I would do it like this (function($) { $.fn.tablesorterPager = function() { .blabblabla } })(jQuery); Questions: Any advantages of writing it the way it's written? Basically what is this $.extend({}) for? What does it achive. Thanks George.
[jQuery] Re: Selectors with :has and with variables
I owe you an apology, Hector - I'd been looking at the same lines for so long, I'd stopped seeing what I'd written ... and was doubling-up my selector. This DOES work: $( '#themenu' ).children( 'li[id]' ).hover( function() { var theID = $(this).attr('id'); $( # + theID + ul ).toggle() ; }); Thank you very much! Cherry. On Nov 7, 12:27 am, Hector Virgen [EMAIL PROTECTED] wrote: Maybe this: $( '#cat [ + theID + ] ul' ).toggle() ; Should be like this? $( #cat # + theID + ul ).toggle() ; -Hector On Thu, Nov 6, 2008 at 4:14 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have read the other threads on this topic, but am still getting nowhere ... I'm trying to make a simple (haha) show-hide menu. The first last menu items are static - and don't have IDs. I need to select them out, otherwise I get a g is undefined error. Problem 1: The initial selection doesn't work $( '#themenu' ).children( 'li:has(id)' ).hover( function() { alert ( 'Got an id!' ); }); What have I done wrong? Problem 2: Getting the relevant var into my toggle statement. This works: $( '#cat2 ul' ).toggle() ; This doesn't work: $( this.hash ).children( 'ul' ).toggle() ; This doesn't work, either: var theID = $(this).attr('id'); $( '#cat [ + theID + ] ul' ).toggle() ; I'm at my wits' end, and desperate for your insights
[jQuery] Re: Selectors with :has and with variables
Having - finally! - finished this, I thought I'd post my code. I'm very sure it could be more compact, but I'm a bit of a Javascript dork and thought others might benefit from my step-by-step approach ;) // menu show/hide $( '#themenu' ).children( 'li[id]' ).hover( function() { var theID = $( this ).attr( 'id' ); var theSiblings = $( this ).siblings() ; // second level var theList = # + theID + ul:first ; $( theList ).slideToggle( 'slow' ); $( theSiblings ).children( 'ul' ).hide() ; // third level var theSub = $( theList ).children( 'li' ) ; $( theSub ).hover( function() { var theSubSibs = $( this ).siblings() ; $( this ).children( 'ul' ).fadeIn( 'slow' ) ; $( theSubSibs ).children( 'ul' ).fadeOut( 'fast' ) ; }); }, function() { $( this ).children( 'ul' ).hide( 'slow' ) ; }); Cherry.
[jQuery] Re: Executing jquery from jqueried div
I am not sure about using the element button ? The W3C says it isn't supported cross browser ( http://www.w3schools.com/tags/tag_button.asp ). Have you tried this using an input element instead? On Nov 7, 10:01 pm, Althalos [EMAIL PROTECTED] wrote: Hello, I have a very general question on how jquery actually works. It seems that when I change content in a div using $.post and .html() I can't use jquery in that info that I just pulled from my external php script. Is this right, or am I doing something wrong? I have a js file that looks like this: $(button).click(function () { alert('test'); $(p).hide(slow); }); and my php file generates code like this: echo trtd colspan='2'buttonMove/button; And that code is inserted into a certain div. But when I click the button there is not alert and p doesn't hide. Can anyone please tell me why?
[jQuery] Thickbox FF problem
Hi! I'm using the iframe modal option with thickbox but i'm experiencing a problem with Firefox. The page that loads the thickbox is where i login in first place and if i leave FF with the remember password bar on top when i submit the form in the thickbox (modal) the page reloads and the thickbox closes. But if i close the firefox remeber password bar when i login, i can submit the form in the thickbox modal iframe window and it will only close when i call 'tb_remove()' function. My Code to call thickbox: The link: a href='./get_date.cgi? KeepThis=trueamp;TB_iframe=trueamp;height=250amp;width=500amp;modal=trueamp;contact_id=1amp;campaign_id=1' class='thickbox' id='link_thickbox'/a Call: script type='text/javascript'$(document).ready(function() { $ ('#link_thickbox').click(); });/script Any help to solve this issue with Firefox? Cya, AV
[jQuery] Link in an iFrame changing Parent window elements
I'm currently working on a very interesting interface for a game, in which I use many iFrames. I have a div set up as a link(using $ ('.link').click) in an iFrame and need it to run some jQuery that I have written out that works correctly for the same link set up on the parent page. I'm not sure if there is simple change for the elements in the code to just then include in the iFrame page or possibly a way to link the iFrame link to a function stored on the parrent page. Any help is appreciated. Thank you in advance, CodingCyborg
[jQuery] Selectors with :has and with variables
I have read the other threads on this topic, but am still getting nowhere ... I'm trying to make a simple (haha) show-hide menu. The first last menu items are static - and don't have IDs. I need to select them out, otherwise I get a g is undefined error. Problem 1: The initial selection doesn't work $( '#themenu' ).children( 'li:has(id)' ).hover( function() { alert ( 'Got an id!' ); }); What have I done wrong? Problem 2: Getting the relevant var into my toggle statement. This works: $( '#cat2 ul' ).toggle() ; This doesn't work: $( this.hash ).children( 'ul' ).toggle() ; This doesn't work, either: var theID = $(this).attr('id'); $( '#cat [ + theID + ] ul' ).toggle() ; I'm at my wits' end, and desperate for your insights
[jQuery] Re: Selectors with :has and with variables
Karl, thank you SO much for that! At least I can now be sure my toggle thing isn't failing because of the g error :)) Cherry. On Nov 7, 12:26 am, Karl Rudd [EMAIL PROTECTED] wrote: You don't want :has you want a normal attribute selector. $( '#themenu' ).children( 'li[id]' ) Karl Rudd On Fri, Nov 7, 2008 at 11:14 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have read the other threads on this topic, but am still getting nowhere ... I'm trying to make a simple (haha) show-hide menu. The first last menu items are static - and don't have IDs. I need to select them out, otherwise I get a g is undefined error. Problem 1: The initial selection doesn't work $( '#themenu' ).children( 'li:has(id)' ).hover( function() { alert ( 'Got an id!' ); }); What have I done wrong? Problem 2: Getting the relevant var into my toggle statement. This works: $( '#cat2 ul' ).toggle() ; This doesn't work: $( this.hash ).children( 'ul' ).toggle() ; This doesn't work, either: var theID = $(this).attr('id'); $( '#cat [ + theID + ] ul' ).toggle() ; I'm at my wits' end, and desperate for your insights
[jQuery] Re: Selectors with :has and with variables
Thank you, Hector, but there's still nothing happening . Any other clues? (My grandmother and firstborn are now on offer) Cherry On Nov 7, 12:27 am, Hector Virgen [EMAIL PROTECTED] wrote: Maybe this: $( '#cat [ + theID + ] ul' ).toggle() ; Should be like this? $( #cat # + theID + ul ).toggle() ; -Hector On Thu, Nov 6, 2008 at 4:14 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have read the other threads on this topic, but am still getting nowhere ... I'm trying to make a simple (haha) show-hide menu. The first last menu items are static - and don't have IDs. I need to select them out, otherwise I get a g is undefined error. Problem 1: The initial selection doesn't work $( '#themenu' ).children( 'li:has(id)' ).hover( function() { alert ( 'Got an id!' ); }); What have I done wrong? Problem 2: Getting the relevant var into my toggle statement. This works: $( '#cat2 ul' ).toggle() ; This doesn't work: $( this.hash ).children( 'ul' ).toggle() ; This doesn't work, either: var theID = $(this).attr('id'); $( '#cat [ + theID + ] ul' ).toggle() ; I'm at my wits' end, and desperate for your insights
[jQuery] menu with checkmark
I was wondering if there is any plugin that would allow me to have checkmarks (and perhaps radio buttons) on the menus... Something like what is described here: http://www.balsamiq.com/blog/?p=180 I looked through the menu plugins; but couldn't find anything suitable... Felix
[jQuery] Re: on the fly div and ui droppable problem
Hi all i found a problem with jquery ui droppable, i give the target div a css class which drag and drop is working fine , but when i create another div with the same class on the fly and append it to the HTML the drop doesn't work are there any solution ? the code is like that script $(.pheader).droppable({ accept: .ads, drop: function(ev, ui) { ui.draggable.clone().fadeOut(fast, function() { $(this).fadeIn(fast) ; }).appendTo($(this).empty()); } }); /* the problem div */ $('div class=pheader nbsp;/div').appendTo(#ground); /script
[jQuery] Toggle and Nested Divs
Hi all. I have an outer div that contains several child divs (event search form that lets the user pick dates, categories, etc...). The user can toggle the outer div and the child divs as well. This all works for me AS LONG AS the outer div is visible and not able to be toggled. When I let the user toggle the outer div, when the outer div is toggled to visible and the user tries to toggle a child div, the child div opens and then closes again right away. I believe this is happening because the child div is somehow inheriting the parent's visibility. I debugged it and showHideExactDates() is being run twice. So, it seems like it is starting out as visible, even though it is not visible on the form. Here is a snippet of the code: pa href=javascript:void(0) id=searchFormShowHideLink_imageimg src=$content.getURI(images/icon_plus.gif) name=searchFormShowHideIcon id=searchFormShowHideIcon border=0 align=left alt=+ //a stronga href=javascript:void(0) id=searchFormShowHideLink_textSearch Form/a/strong/p div id=eventSearchFormDiv pa href=javascript:void(0) id=dateExactShowHideLink_image title=show/hide exact date form fieldsimg src=$content.getURI(images/icon_plus.gif) name=dateExactShowHideIcon id=dateExactShowHideIcon border=0 align=left alt=+ //a a href=javascript:void(0) id=dateExactShowHideLink_textSpecify Exact Dates/a/p div id=dateExactDiv style=display: none; Occurs between input type=text size=3 name=dateRangeStartMonth id=dateRangeStartMonth title=date range start month value=$!dateRangeStartMonth maxlength=2/ input type=text size=3 name=dateRangeStartDay id=dateRangeStartDay title=date range start day value=$! dateRangeStartDay maxlength=2/ input type=text size=5 name=dateRangeStartYear id=dateRangeStartYear title=date range start year value=$! dateRangeStartYear maxlength=4a href=javascript:void(0) id=dateRangeStartCalendarLink title=event range start calendar date pickerimg src=$content.getURI(images/icon_calendar.gif) alt=Choose range start date border=0 align=absmiddle/anbsp; and input type=text size=3 name=dateRangeEndMonth id=dateRangeEndMonth title=date range end month value=$! dateRangeEndMonth maxlength=2/ input type=text size=3 name=dateRangeEndDay id=dateRangeEndDay title=date range end day value=$! dateRangeEndDay maxlength=2/ input type=text size=5 name=dateRangeEndYear id=dateRangeEndYear title=date range end year value=$! dateRangeEndYear maxlength=4a href=javascript:void(0) id=dateRangeEndCalendarLink title=event range end calendar date pickerimg src=$content.getURI(images/icon_calendar.gif) alt=Choose range end date border=0 align=absmiddle/a /div /div function showHideSearchForm() { jq(#eventSearchFormDiv).toggle(blind, {}, 1000); } //add the form submit handler jq(document).ready(function() { jq(#searchFormShowHideLink_image).click(showHideSearchForm); jq(#searchFormShowHideLink_text).click(showHideSearchForm); }); function showHideExactDates() { alert(running showHideExactDates()); jq(#dateExactDiv).toggle(blind, {}, 1000); } //add the form submit handler jq(document).ready(function() { jq(#dateExactShowHideLink_image).click(showHideExactDates); jq(#dateExactShowHideLink_text).click(showHideExactDates); jq(#dateRangeStartCalendarLink).datepicker(); jq(#dateRangeEndCalendarLink).datepicker(); }); Help please! I have been banging my head on this now for several hours! Thanks.
[jQuery] Re: Arabic tutorials first of Arabic tutorials
Great work .. keep going by the way second link is not found On Nov 4, 3:25 am, islam [EMAIL PROTECTED] wrote: Hi every One this is my first post and i want to say that it's glad to be the First One to write a arabic and it's a video tutorial and a introduction to jquery with the arabic language in text Mode the text tutorial is here :http://www.hack-systems.com/2008/11/01/introduction-to-jquery-in-arabic/ and the Video Tutorials is there :http://www.hack-systems.com/2008/11/03/get-start-with-jquery-arabicge... the Description : in this tutorials we will get to Now the jquery library in good way in this tutorial we will get to know this steps setup the page for this library the Hello world example and the select Elements and the Events And the Effects Thanks Every One .
[jQuery] jScrollPane loaded display: none
Hi @ all, i have some problems, if i load a div with scrollbar like jScrollPane and set it like $('.scroller').hide() it won't show it if i do $ ('.scroller').show(). I saw in the FireBug that the heigt and width is 0px. Any ideas? Thx Andi
[jQuery] on the fly div and ui droppable problem
hi all i found a problem with jquery ui droppable, i give the target div a css class which drag and drop is working fine , but when i create another div with the class on the fly and append it to the HTML the drop doesn't work are there any solution ? the code is like that script $(.pheader).droppable({ accept: .ads, drop: function(ev, ui) { ui.draggable.clone().fadeOut(fast, function() { $(this).fadeIn(fast) ; }).appendTo($(this).empty()); } }); /* the problem div */ $('div class=pheader nbsp;/div').appendTo(#ground); /script
[jQuery] Re: remove() Method Causes Flicker in Firefox
Not sure why you would remove the photo... What happens when you hide it. On my G4 mac everything looks good except on the photo of Little Dave Thompson. It moves up and down as it comes in. No flicker but it doesn't look right. I think your problem is related to different dimension in your images. When you display Little Dave Thompson you are removing an image with different height dimensions. I'd recommend keep heights and widths the same on all images. No need to remove images either. Just hide them, check to see if they are there before you load them. (Easy to do in JQuery) The website looks great BTW. I have my own band (http:// RodeoClownsBand.com) Regards, -b On Oct 31, 3:18 pm, Joe [EMAIL PROTECTED] wrote: Go here: http://www.theshedbbq.com/dev/franchise/events Click on one of the rows in the table and you'll see the image fade out and then flicker. var livePhoto = $('img#eventImage'); livePhoto.fadeOut('fast'); livePhoto.remove(); Not sure what is causing this but I use setTimeout( livePhoto.remove(), 50 but it did not work. Suggestions?
[jQuery] simple rollover on a tag show or hide div tag in jQuery
I am creating a profile update page using jQuery. The content of the profile is loaded dynamically into a div tag on the page. $(document).ready(function() { // Your code goes here $(div#notifications).load(supportscripts/writeoutprofile.asp); }); So this loads the profile into the nofifications div tag. This will load a series of div tags which look similar to this: div class=profileLinediv class=profileTitlea href=# id=a_ep1Name/adiv class=editProfile id=ep1Edit Profile/ div/divdiv class=profileTextGrahamnbsp;Cole/div/div All the A tags are dynamically named a_ep1 through a_ep6 and all the DIV tags are dynamically named ep1 through ep6. So I would like to have this set up so that when I rollover the A tag the DIV tag shows and when I rollout it hides. I had this running using several lines of code and an event handler on each A tag but apparently it is much easier in jQuery. For some reason though the code I am using does not appear to work: $(#a_ep1).hover( function () { $(#ep1).show(); }, function () { $(#ep1).hide(); return false; } ); does anybody have any suggestions on what I might be missing. My initial thoughts are because the A and DIV tags do not exist in the source code but are loaded dynamically that jQuery cannot find them, but I am only guessing. Any help greatly appreciated? Graham
[jQuery] Re: Viewing XHTTPRequests in Opera
That can be. Maybe it is in one of the weekly builds: http://dragonfly.opera.com/app/weekly/zips/ Then there is also Firebug Lite http://getfirebug.com/lite.html On Oct 30, 10:40 am, Stefan Sturm [EMAIL PROTECTED] wrote: Hello, You may want to check out Dragonflyhttp://www.opera.com/products/dragonfly/ I know about this. It is included in Opera since 9.5. But I can't find something to display the XHTTPRequests :-( Greetings, Stefan Sturm