I have done many attempts with posts and examples - but I'm unable to understand how to do this. I have this function in the head of my php file:
.....
<script type = "text/javascript" language="javascript">
function agicol() {
scheduler.clearAll();
var idname$ = $idencol;
scheduler.load("ret_l.php?connector=true&dhx_filter[IDCol]="+idname$,"json");
}
</script>
</head>
And in the body, I use a variable like so:
<body bgcolor="#C0DFFD" onLoad="init();">
<?php
if(isset($_GET['id']))
{
$idencol = $_GET['id'];
echo "<script>alert($idencol);</script>";
// Alert works properly
// $idencol contains id sended
}
?>
So, I should call function agicol(), and pass getted id $idencol.
Can someone tell me how?
Thanks in advance
alert($idencol)withagicol($idencol)idin the previous page. you're passingconnectoranddhx_filter[IDCol], neither of which would produce$_GET['id']for you.function agincol() {...}stuff into that page too, which means you'd be better off putting it into an external .js file and link it to both pages.