I have a scenario like the one I described below…
how can I accomplish by using $.get / $ post jquery function ?
Send.html
<script type="text/javascript">
$(function ()
{
$("#btn").click(function() {
Receive.ShowMsg("Heloword"); //
});
</script>
<body>
<input type="button" id="btn" value="SendMessage">
</body>
Receive.html
<script type="text/javascript">
function ShowMsg (strtext)
{
$("#result").val(strtext);
}
</script>
<body>
<div class="input"> <input type="text" id="result"></input> </div>
</body>
thank’s in advance
If you want changes in a certain page to reflect on another page, I suggest you build an intermediate server script (e.g. in PHP), with a database backend or other storage system. One page pushes its results to the server, while the other pulls the needed information from the server. I don’t think there is a way to have seperate pages in a browser directly communicate with each other, except under certain circumstances (like iframes or child windows).