Glad you got it working, Charlie! Rick
> -----Original Message----- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > Behalf Of Charlie22 > Sent: Tuesday, January 20, 2009 7:36 PM > To: jQuery (English) > Subject: [SPAM]: [jQuery] Re: Content loading with AJAX is lost in IE after > click > > > yes, I found this solvent also, but than I have problem with double > IDs, because anchor has same ID as container with target text. Finally > I solved it by most easy way. > I set variable, which identify container id from content of anchor: > > var rules = '#'+$(this).html().toLowerCase(); > > Easy, isnt it? Anyway many thx for your time and tips!! > > Cya, > Charlie > > > On 21 Led, 00:31, "Rick Faircloth" <r...@whitestonemedia.com> wrote: > > What about forming your clickable link like this: > > > > <a id="general" href="#">General</a> > > > > Then write a function based on the id: > > > > $(document).ready(function() { > > > > $('#general').click(function() { > > ...your function here... > > }); > > > > }); > > > > That would remove the href from the sitation and > > still give you a clickable link... > > > > Thought it might be worth a try. > > > > I've set up a little demo of this method: > > > > Try this URL and click on "General":http://jsbin.com/uvuji, > > then have a look at the code source and see if it might > > be useful. > > > > Rick > > > > > > > > > -----Original Message----- > > > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > > > Behalf Of Charlie22 > > > Sent: Tuesday, January 20, 2009 5:31 PM > > > To: jQuery (English) > > > Subject: [jQuery] Re: Content loading with AJAX is lost in IE after click > > > > > ..so value isnt lost, but have other value as in FF and Gch: > > > problem is here: > > > > > <a href="general">General</a> > > > $(this).attr('href'); > > > Results: > > > FF> value is general //valid for script > > > IE> value ishttp://www.something.cz/general//IE is adding domain > > > > > is there any easy way how cut domain name ?? > > > > > On 20 Led, 22:49, Charlie22 <ch...@post.cz> wrote: > > > > hm, if I set directly $(#pilots). show(); it works, but if there is > > > > varibale $('#'+anyVariable).show(); IE is loosing value of this > > > > variable after click, thats all problem. But how can I solve it? > > > > > > On 20 Led, 20:06, "Rick Faircloth" <r...@whitestonemedia.com> wrote: > > > > > > > Try specifying "display:block" as the attribute, instead > > > > > of eliminating the style completely. Perhaps that will > > > > > override what IE is doing. > > > > > > > In your code (wherever would be appropriate), try > > > > > $('#general').css({'display':'block'}) > > > > > and see what happens. Since you're using an AJAX call to > > > > > replace your original content, be sure and do this after > > > > > the AJAX call is complete. > > > > > > > Rick > > > > > > > > -----Original Message----- > > > > > > From: jquery-en@googlegroups.com > > > > > > [mailto:jquery...@googlegroups.com] On Behalf Of Charlie22 > > > > > > Sent: Tuesday, January 20, 2009 1:37 PM > > > > > > To: jQuery (English) > > > > > > Subject: [jQuery] Re: Content loading with AJAX is lost in IE after > > > > > > click > > > > > > > > Thx for tips Rick, > > > > > > but still I have no success. IE is adding his style from reason > > > > > > unknown for me and isnt respect jQuery commands. > > > > > > > > I tried this code: > > > > > > $('#'+submenu).attr('style',''); > > > > > > > > IE is generating this code always: > > > > > > <DIV id="pilots" style="DISPLAY: none" oldblock="block"> > > > > > > > > I am really desparete from this... > > > > > > > > On 20 Led, 18:07, "Rick Faircloth" <r...@whitestonemedia.com> wrote: > > > > > > > Also, Charlie, if I use IE7's Developer Toolbar to change the > > > > > > > div id="general" from display:none to display:block, all the > > > > > > > content shows up normally, as it does in FF3. > > > > > > > > > Find out what's changing the display attr to display:none and > > > > > > > prevent that and you should be good-to-go... > > > > > > > > > Rick > > > > > > > > > > -----Original Message----- > > > > > > > > From: jquery-en@googlegroups.com > > > > > > > > [mailto:jquery...@googlegroups.com] On Behalf Of > > Charlie22 > > > > > > > > Sent: Tuesday, January 20, 2009 10:59 AM > > > > > > > > To: jQuery (English) > > > > > > > > Subject: [jQuery] Content loading with AJAX is lost in IE after > > > > > > > > click > > > > > > > > > > Hi all, > > > > > > > > can you check pls, what I am doing wrong in these scripts. > > > > > > > > Check pls > > > > > > > > menu "Rules" and its submenu functions. In FF3 and GCh its > > > > > > > > works fine, > > > > > > > > but in IE it lost part of ajax content. > > > > > > > > > > address:http://83.240.47.84/skyrace2/ > > > > > > > > > > Thank you for your help in advance.- Skrýt citovaný text - > > > > > > > > > - Zobrazit citovaný text -- Skrýt citovaný text - > > > > > > > - Zobrazit citovaný text -- Skrýt citovaný text - > > > > > > - Zobrazit citovaný text -