Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 2 weeks ago
Jquery within JavaScript
Hi everybody
In my vaadin application I want to open a new Browser Window. This i realize with the "executeJavascript()"-method.
mainWindow.executeJavaScript("window.open(\"" + url + "\", \"_blank\"));
On the page which open, there are Jquery tabs. After clicking on the second tab this JQuery method will execute:
jQuery('#tabs').tabs( "select" , 2 );
What i want to do is that if the browser opens a new window the second tab should be selected. But how can i execute the Jquery Method within the Javascript Statement? Is this possible?
I hope i could explain my issue?
Greets
Erdal
Last updated on Mar, 7th 2012
You cannot reply to this thread.