[jQuery] Help your friend ajith win RC merchandise
Hi jquery-en Your friend really enjoys the fan club and activity at www.RoyalChallengers.com, and would like to invite you to join as well. We're also running a promotion - your sign up could help your friend win RC merchandise and IPL tickets. Help them out and experience the magic of belonging to an active cricket community. Sign up now! Even more... Game for Life! Team Royal Challengers The information contained in this electronic transmission may be confidential and/or privileged. Access to this electronic transmission by anyone other than the intended recipient(s) is unauthorised. If you have received it in error please notify the sender immediately. Please then delete the e-mail and do not disclose its contents to any person. Within the bounds of law electronic transmissions through internal and external networks may be monitored to ensure compliance with internal policies and legitimate businesses purposes.
Re: [jQuery] Show/hide div based on URL parameter
script type=text/javascript id=demoscript $(function(){ if (document.location.href.indexOf('showdiv=yes') 0) $(#display).show(); }); /script On Sat, Feb 13, 2010 at 5:37 PM, dikker dikkk...@hotmail.com wrote: Hi guys, Am a beginner with Jquery and what i want is as follows. I have a div that should be hidden on default, but when a certain URL parameter is present, then the div is visible. I am basing the following on this demo : http://sandbox.ajaxcssblog.com/jquery/jquery.url/url-demo.htm I have the following html div id=display style=display:hidden; h2header/h2 ptest text/p /div And i have the following in the head script type=text/javascript id=demoscript $(function(){ $(#display).text($.url.param(loginstatus) || ... nothing yet); }); /script What i basically want is that when the URL parameter shows index.html?showdiv=yes then the div should be displayed. So it would make sense to put an IF statement in the script as well, the only problem is that i cannot or do not understand how i can modify the JS script in such a way that it does just that. I have tried many variations with IF and ELSE statements but nothing ever seems to work as i am probably missing how to close tags properly etc. Would anyone be willing to steer me in the right direction? -- View this message in context: http://old.nabble.com/Show-hide-div-based-on-URL-parameter-tp27576002s27240p27576002.html Sent from the jQuery General Discussion mailing list archive at Nabble.com. -- Andrei Eftimie http://eftimie.com +40 758 833 281 Punct http://designpunct.ro
[jQuery] Jquery form plugin can't find resolution
I have a form that is loaded using .load it is then posted using the jquery form plugin. But it won't post see code: script type=text/javascript $(document).ready(function() { //shows loading screen whilst posting via ajax $().ajaxStart($.blockUI).ajaxStop($.unblockUI); //post form add_customer ajax var options = { target: '#alert', }; $('#add_customer').submit(function() { $(this).ajaxSubmit(options); return false; }); //load form $('#theform').hide().load('form.php', function() { $(this).fadeIn(); return false; }); }); /script I am sure there are others that have had this problem. Help ismuch appreciated.
[jQuery] Re: superfish: disable arrows in first list
Hi Dasher, That may make the arrows disappear, but the .sf-menu li element is still stretched out as if there was still an arrow there. On Dec 31 2009, 9:51 pm, Dasher sea...@gocreate.com.au wrote: Hi Frank, In the $(document).ready(function() { area... Below the superfish ($('ul.sf-menu').superfish({ call... add... $('ul.sf-menu li a span').remove(); I found that in this forum somewhere and that worked for me. Good luck