Hi, By the way, this problem stills remains, i need to comment the line #25 , to the designers:
what was the intention of that line? (before to change anything) Thanks! Saludos, -------------------------------- Alfonso de la Guarda Twitter: @alfonsodg Redes sociales: alfonsodg Telef. 991935157 1024D/B23B24A4 5469 ED92 75A3 BBDB FD6B 58A5 54A1 851D B23B 24A4 On Fri, Jan 11, 2013 at 1:41 PM, Paolo Caruccio <paolo.carucci...@gmail.com> wrote: > While waiting web2py developers solve the issue, you could simply comment > the line in web2py_bootstrap.js and see if all works as expected. > In javascript a code line is commented when you put before it "//", so the > interested line becomes: > > // jQuery('ul.nav li.dropdown > a').click(function(){window.location=jQuery(this).attr('href');}); > > > Il giorno venerdì 11 gennaio 2013 16:36:47 UTC+1, Wes Hall ha scritto: >> >> Along these same lines: >> >> response.menu += [ >> (T('External Sites',), False, A('Web2Py', _href="http://web2py.com/", >> _target="_blank"), []), >> ] >> >> >> Gives the expected result of a new tab/window >> However, the following loads the link in both the current tab/window as >> well as the new one. >> >> response.menu += [ >> (SPAN('External Sites', _class='highlighted'), False, '#', [ >> ('', False, A('Web2Py', _href="http://web2py.com/", >> _target="_blank"),[]), >> ]) >> ] >> >> >> It looks like line #25 from web2py_bootstrap.js is forcing dropdowns to >> load in the current window regardless of any target. >> >> jQuery('ul.nav li.dropdown >> a').click(function(){window.location=jQuery(this).attr('href');}); >> >> I don't know js well enough to suggest a change. Am I at least looking in >> the right place? >> >> On Monday, June 25, 2012 9:31:35 AM UTC-4, Anthony wrote: >>> >>> You can control exactly what goes inside the <li> for a given menu item >>> by making the third element of that item a web2py HTML helper instead of >>> just a URL. So, instead of: >>> >>> ('External Link', False, 'http://somesite.com') >>> >>> You can do: >>> >>> ('', False, A('External Link', _href='http://somesite.com', >>> _target='_blank')) >>> >>> Anthony >>> >>> On Monday, June 25, 2012 9:06:20 AM UTC-4, Manuele wrote: >>>> >>>> What if I want to put a voice in the menu that link a page external to >>>> my application that I want to open in a new tab? >>>> >>>> thanks in advance >>>> >>>> Manuele >>>> >> > > -- > > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.