last day (14 days later) » 

9:26 AM
1
A: tab bootstrap - open external link

ManwalYou could remove the data-toggle="tab" attribute from the tab as it's hooked up using live/delegate events CODE: <ul id="myTab" class="nav nav-tabs" role="tablist"> <li class=""><a href="#Tab1" role="tab" data-toggle="tab">TAB1</a></li> <li class="active"><a href="#archiviobando" role="...

 
Lix
Have you tested this?
 
I have tested but don't work
 
Lix
Ahh - yes - sorry. I was testing it on an older version of bootstrap (2.3.2). With the current version it does work :)
 
I have updated my question...when I click on the last tab ...generate an error JS
 
Lix
@DanieleGrillo - please add details of this error to your question. Saying "there is an error" is of no use to anyone if you don't share what the error was.
 
9:26 AM
@Lix When I click on Tab3 Firebug show this error: Error: Syntax error, unrecognized expression: google.it ...ed?a.value:null:a},at.error=function(e){throw Error("Syntax error, unrecognized ...*
 
Lix
@DanieleGrillo - in your original post please - not in the comments.
 
@Lix sorry...ok I have updated the post
 
Lix
Hello there :)
 
Hello Lix
 
Lix
Ok - so that error is because bootsrap is still seeing that <a> link as one of the tabs.
 
9:28 AM
Yes
 
Lix
You'll have to exclude that specific link from the tab click handler:
 
how can I do?
 
Lix
You could do this in many ways but I think the easiest would be to match all the elements that contain data-toggle="tab"
because that was the attribute that you removed, your normal link won't be affected... So you would want to do something like this:
$('#myTab a[data-toggle]').click(function
That will only match <a> elements that have the data-toggle attribute.
 
oh my friend! tnx a lot
work well
 
Lix
works?
 
9:32 AM
tnx you very much!
 
Lix
Yay! Glad to hear :)
 
yes I have tested
 
Lix
great! so have a good day!
Happy coding!
 

last day (14 days later) »