Hi,
I loaded 2 pages with:
- $.get( href , function(data){
- $('.ajax').html(data);
- });
in my home, and worked..
In each page have a form with $.ajax():
Page "News":
- url: "1598d4ee2266574bbd85e7b6c1d0d402/paginas/news/config.php",
Page "Empresa":
- url: "1598d4ee2266574bbd85e7b6c1d0d402/paginas/empresa/config.php",
If i load the page "News" and "Empresa" and use one form of then.. send for this 2 url's.. in trying to send each form for their respective pages, anyone can help me ?
$.ajax():
- $(".admin-post").show();
- $("#news-form").live('submit', function(){
- $(".msg-ok").hide();
- $("#news-mensagem").show();
- $.ajax({
- cache: false,
- url: "1598d4ee2266574bbd85e7b6c1d0d402/paginas/empresa/config.php",
- type: "POST",
- data: $('#news-form').serialize(),
- success: function()
- {
- $("#news-mensagem").hide();
- $(".msg-ok").slideDown();
- },
- });
- return false;
- });