Click here to Skip to main content
15,890,690 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a webpage. It has many tab pages. From one of the tab pages, I want to show other tab page in separate window.
I do it through anchor tag.

Issue seen is that the CSS and jQuery library are not read anymore when I try to show it in separate tab.

Any ways to dynamically link all the libraries for CSS and jQuery.


Thanks.
Posted
Comments
How exactly you are doing this? Please post the codes.
Shemeemsha (ഷെമീംഷ) 30-Oct-14 1:46am    
Your question is not clear..
[no name] 30-Oct-14 1:55am    
The best way is to put the Css and Jquery references in the layout and refer that layout in the tabs pages you want to show.
Please it would be better if you respond back what way are you proceeding.
Awaiting.
Thanks.
raghunath sahoo 30-Oct-14 2:57am    
function viewHDR(taskId)
{
$.ajax({
type: "POST",
url: "mmtasks_update_task.php",
data: {
task: taskId,
type: "view_hdr_rep"
},
success: function(dataRetrieved) {
alert(dataRetrieved);
//The dataRetrieved is the HTML i am getting back. If I show it in the same page the UI is fine. The CSS and jQuery library gets linked. But I need to show data in a separate new tab. Need jQuery code to show it in new tab and also with the CSS of the parent.
}
});
}
ansjain 30-Oct-14 3:37am    
yes, i will also applied same. This is the best way. You can create a master layout for every page in which same css and jquery applied. and one another way is that you can create saparate or external css and jquery and applied it reference in you new tab page it is also working properly.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900