Re: [jquery-ui] Tab loading (via ajax) another page with its own scripts.

2010-03-22 Thread Pradeep Patel
hi, you have attach css script also
-- 
Pradeep Patel
[email protected]
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.



[jquery-ui] Tab loading (via ajax) another page with its own scripts.

2010-03-22 Thread larini

Hi, when I try to load a page inside tabs, I get only the content. The
scripts are not activated. 

Here is my code:

main page (with tab):






$(document).ready(function() {
$("#tabs").tabs();
});

...
 

 #tabs-1 Preloaded 
 /Home/About Saudações 
 /Home/Incluir Incluir 
 /Home/Listar Listar 


test





page loaded:

<%@ Page Language="C#"
Inherits="System.Web.Mvc.ViewPage>"
%>

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

http://www.w3.org/1999/xhtml"; >

Listar


$(function() {
initializeTable();
$("#summits A").live("click", function() {
$.get($(this).attr("href"), function(response) {
$("#summits").replaceWith($("#summits", response));

initializeTable();

// Respect the (un)checked state of the "show heights"
check box
if (!$("#heights")[0].checked)
$("#summits td:nth-child(2)").hide();
});
return false;
});
});

function initializeTable() {
$("#summits tr:nth-child(even)").css("background-color",
"yellow");

// Deletion confirmations
$("#summits form[action$='/DeleteItem']").submit(function() {
var itemText = $("input[name='item']", this).val();
return confirm("Are you sure you want to delete '" +
itemText + "'?");
});

$("#btCarregar").live("click", function(event, ui) {
$(inserido).load("/home/listar");
});
}







nome
idade
regiao
Carregar
Ação


<% foreach (var item in Model) { %>


<%= Html.Encode(item.nome) %>
<%= Html.Encode(item.idade) %>
<%= Html.Encode(item.regiao.nome) %>
 Preloaded 

<% using (Html.BeginForm("DeleteItem", "Home"))
   { %>
<%= Html.Hidden("item", item.nome)%>

<% } %>



<% } %>



  Page:
  <%= Html.PageLinks((int)ViewData["currentPage"],
   (int)ViewData["totalPages"],
   i => Url.Action("Listar", new {page = i}))%>





This page generated at <%= DateTime.Now.ToLongTimeString() %>





-- 
View this message in context: 
http://old.nabble.com/Tab-loading-%28via-ajax%29-another-page-with-its-own-scripts.-tp27988776s27240p27988776.html
Sent from the jQuery UI Discussion mailing list archive at Nabble.com.

-- 
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.