[jQuery] Re: Adding events to newly added fields
u should try livequery plugin its really works On Feb 7, 2008 10:54 AM, bikuta [EMAIL PROTECTED] wrote: Hi I am trying to make form which contains a list of items. I have a set of events which need to be bound to each item, at the moment everytime I add a new item, I have to unbind all items and add the event again to all items for the new item to work like the rest of them. This means my application becomes quite slow as the number of items becomes very large. Is there a better way to bind events only to newly added items? or is there something I can do to speed things up? The way I'm adding the item is just by adding another row to the html table using the append() method. Should I be doing it another way?
[jQuery] Re: accordion problem in IE
steve i changed the code of accordion little bit u... u need to set the fixed height of inner ul li i.e. (#navigation li li a) in css and then in js file there is no need to set height as in IE 6 and IE 7 u can not set height in negative. i m weak in english but if u need code i can email u On Feb 3, 2008 3:46 AM, SteveM [EMAIL PROTECTED] wrote: I too am having the same problem with both IE6 and IE7. using. jQuery().ready(function(){ jQuery('#sideMenu').Accordion({ active: false, header: '.stitle', navigation: true, animated: 'easeslide' }); }); In IE you can click on the first menu and it will slide fine, but the next menu with animation does nothing and throws up a script error. The error points to the html file with a line number that isnt the problem. otherwise this works perfect in FF and is very nice. Thanks, Steve On Jan 29, 10:14 am, Jörn Zaefferer [EMAIL PROTECTED] wrote: mohsin schrieb: i m having problem inIEonce i click on accordion its work but next time it doesn't my code is follow [...] please tell me wht is problem Could you post a testpage? Jörn
[jQuery] Re: New to jquery. Things just don't work.
hello sathya there is an error in ur code. u miss the semi colon(;) after the function end. ${document}.ready(function() { ${'a'}.click(function() { alert(Link clicked); ${'#main-content'}.html('h1 Hello /h1'); return false; }); =Here u miss the semi colon }); u need to provide semi colon after each function On Feb 3, 2008 5:47 PM, Sathya [EMAIL PROTECTED] wrote: Hi, Am new to jquery and also not so proficient with . So bear with me if it sounds silly. I just can't get jquery to work the way its promised. I did these, 1. Downloaded jquery-1.2.js 2. Included it in my html. And wrote my first code as this ${document}.ready(function() { ${'a'}.click(function() { alert(Link clicked); ${'#main-content'}.html('h1 Hello /h1'); return false; }) }); This didnt work. I got an error that said missing ; before statement 3. Changed my code to replace all ${} references with jQuery(). Though this works, I get two alerts everytime i click a link. And content of div with id main-content doesn't change either. What am I doing wrong. Any help/pointer will be appreciated. Regards Sathya
[jQuery] Re: accordion problem in IE
thnx jorn i changed few things i change the heights attribute as ie is giving javascript error when height is in negative. i m using ul navigation
[jQuery] Re: Include javafile
thanks seedy for the help. now i m including all js file in bottom of page. but jquery seems to have problem in bottom. do u know wht is the issue
[jQuery] Re: Include javafile
i mean in head of the page. head meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 ? include($ROOT_PATH/includes/meta.php); ? script src=? echo $URL_PATH; ?/javascript/jquery/jquery.js type=text/javascript /script script src=? echo $URL_PATH; ?/javascript/jquery/jquery.livequery.js type=text/javascript /script script src=? echo $URL_PATH; ?/javascript/listings_java.js language=javascript/script script src=? echo $URL_PATH; ?/javascript/jquery/imagebox.js type=text/javascript /script script src=? echo $URL_PATH; ?/javascript/jquery/iutil.js type=text/javascript /script script src=? echo $URL_PATH; ?/javascript/overlib/overlib.js type=text/javascript /script script src=? echo $URL_PATH; ?/javascript/jquery/jcarousellite.js type=text/javascript/script script src=? echo $URL_PATH; ?/javascript/jquery/easing.js type=text/javascript/script script src=? echo $URL_PATH; ?/javascript/jquery/support.js type=text/javascript/script listing java doesn't work here but works well when i write this code in end of page /head On 11/1/07, mohsin [EMAIL PROTECTED] wrote: I am using separate javascript file for the function I have written. When I include this file in header of my page these function doesn't worked. But when I include it in the bottom of page it start working. I want to include it in header can anyone help me.
[jQuery] Re: Include javafile
jquery code is in listing java $('.price_convert').each(function() { $(this).mouseover(function() { alert(IN); }); $(this).mouseout(function() { alert(OUT); }); }); });
[jQuery] Re: Posted varilbes
On 8/31/07, mohsin [EMAIL PROTECTED] wrote: I have a page with a form, when I post the form I want a jquery on the target page to read POST variables.
[jQuery] Re: Select box help from ajax
thnx sir for ur help ...can u provide me plugin for that purpose On 8/22/07, Wizzud [EMAIL PROTECTED] wrote: First off, you need to read this http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery#Rate_me:_Using_Ajax http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery#Rate_me:_Using_Ajax tutorial by Jorn Zaefferer, particularly the bit the starts 'A very common problem encountered...' about half way down. Having read that... You either need to look into the Behaviors plugin - which will automatically attach existing events to any new (and appropriate) elements loaded - or you need to include event assignment for the new selects in your callback. Muhammad Mohsin wrote: Hello I want to associate a select box coming from ajax to change function of form which is defined in the page. Can anyone help me $('#frmNewDev select').each(function() { $(this).change(function() { if(this.id != sl_developer) { var load_image = http://; + this_domain + /images/ common/loading.gif ; //$('#nn').html(load_image); $.get('http://' + this_domain + '/cp/ajax_cp_locality.php', {cat_id: this.value}, function(str) {$(#nn).append(str);}); return false; } }); }); I m using above code for associate all select box with this function but select which are coming from ajax page are not associatedhow can I associate that select box with this function. thnx -- View this message in context: http://www.nabble.com/Select-box-help-from-ajax-tf4311393s15494.html#a12277377 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: Select box help from ajax
i am new to jquery and cann't figure out way to do it On 8/23/07, Muhammad Mohsin [EMAIL PROTECTED] wrote: thnx sir for ur help ...can u provide me plugin for that purpose On 8/22/07, Wizzud [EMAIL PROTECTED] wrote: First off, you need to read this http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery#Rate_me:_Using_Ajax http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery#Rate_me:_Using_Ajax tutorial by Jorn Zaefferer, particularly the bit the starts 'A very common problem encountered...' about half way down. Having read that... You either need to look into the Behaviors plugin - which will automatically attach existing events to any new (and appropriate) elements loaded - or you need to include event assignment for the new selects in your callback. Muhammad Mohsin wrote: Hello I want to associate a select box coming from ajax to change function of form which is defined in the page. Can anyone help me $('#frmNewDev select').each(function() { $(this).change(function() { if(this.id != sl_developer) { var load_image = http://; + this_domain + /images/ common/loading.gif ; //$('#nn').html(load_image); $.get('http://' + this_domain + '/cp/ajax_cp_locality.php', {cat_id: this.value}, function(str) {$(#nn).append(str);}); return false; } }); }); I m using above code for associate all select box with this function but select which are coming from ajax page are not associatedhow can I associate that select box with this function. thnx -- View this message in context: http://www.nabble.com/Select-box-help-from-ajax-tf4311393s15494.html#a12277377 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: Select box help from ajax
thnx i found live query and it is replace of behaviour thnx for help man On 8/22/07, Wizzud [EMAIL PROTECTED] wrote: First off, you need to read this http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery#Rate_me:_Using_Ajax http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery#Rate_me:_Using_Ajax tutorial by Jorn Zaefferer, particularly the bit the starts 'A very common problem encountered...' about half way down. Having read that... You either need to look into the Behaviors plugin - which will automatically attach existing events to any new (and appropriate) elements loaded - or you need to include event assignment for the new selects in your callback. Muhammad Mohsin wrote: Hello I want to associate a select box coming from ajax to change function of form which is defined in the page. Can anyone help me $('#frmNewDev select').each(function() { $(this).change(function() { if(this.id != sl_developer) { var load_image = http://; + this_domain + /images/ common/loading.gif ; //$('#nn').html(load_image); $.get('http://' + this_domain + '/cp/ajax_cp_locality.php', {cat_id: this.value}, function(str) {$(#nn).append(str);}); return false; } }); }); I m using above code for associate all select box with this function but select which are coming from ajax page are not associatedhow can I associate that select box with this function. thnx -- View this message in context: http://www.nabble.com/Select-box-help-from-ajax-tf4311393s15494.html#a12277377 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Help
How to send jquery $.get php varibles. i need to call ajax file with multivaribles how can i do it