loading another page only returns the body code, include niceforms-default.css on the page you are loading into

algol wrote:
hi at all, i'm new of jquery, i try to load one page on a dialog the code by
this code:

<script type="text/_javascript_">
function loadContent(id, ed, ad) {
  $("#dialog").load("det.php?conto="+id+"&data_inf="+ed+"&nr_riga="+ad+"",
function() {
    $(this).dialog({
      modal:true,
      title:"Modifica Dettaglio",
      width:430,
      buttons: {
        "Chiudi": function() {
$(this).dialog("close");$(this).dialog("destroy"); }
      }
    });
  })
}
</script>

and the page i load is that:

<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<script language="_javascript_" type="text/_javascript_"
src=""></script>
<style type="text/css" media="screen">@import
url(niceforms-default.css);</style>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1 " />
<title>Contenzioso - Gestione Contenzioso</title>

<?php
  function data_stamp($data_gest){
    $di= substr($data_gest,8,2);
    $mi= substr($data_gest,5,2);
    $yi= substr($data_gest,0,4);
    $data_stamp = $di."/".$mi."/".$yi;
    return $data_stamp;
    }
$conto = $_GET['conto'];
$data_inf = $_GET['data_inf'];
$riga = $_GET['nr_riga'];
include('tabella.class');
?>
</head>
<body>
<table>
<tr>
<td valign="top">
<form class="niceform" action="" method="GET">
<label for=""> Codice </label><br>
<input type="text" name="codice" id="codice" value="<? echo $codice;?>"
size="10"><br>
<label for="">Ragione Sociale</label><br>
<input type="text" name="rag_soc" value="<? echo $rag_soc;?>" size="30"><br>
<label for="">Data Inserimento</label><br>
<input type="text" name="data_inf" value="<? echo data_stamp($data_inf);?>"
size="10" ><br>
<label for="">Data Visualizzazione</label><br>
<input type="text" name="data_rif" value="<? echo data_stamp($data_rif);?>"
size="10" ><br>
<label for="">Note</label><br>
<textarea  name="note" id="note" rows="4" cols="60"> <? echo $note;?>
</textarea>
<input type="hidden" name="conto" value="<? echo $conto;?>">
<input type="hidden" name="nr_riga" value="<? echo $riga;?>">
<br>
<input type="checkbox" name="sett" id="check1" value="sett"><label
for="">Ripeti Settimana Seguente</label><br>
<input type="checkbox" name="mese" id="check2" value="mese"><label
for="">Ripeti Mese Seguente</label><br>
<br>
<input type="submit" name="modifica" value="Modifica"><input type="submit"
name="elimina" value="Elimina">
</form>
<br>
</td>
</tr>
</table>
</body>
</html>

all work fine, but the page displaied in the dialog loss is css formatting. 
this the image that show all ^_^

p.s. sorry for my bad english

page alone:  http://www.nabble.com/file/p23293590/pag1.JPG pag1.JPG 
page in the dialog:  http://www.nabble.com/file/p23293590/pag2.JPG pag2.JPG 

  


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to