The toggle function, when tested with a button, works perfectly though...
I'm just getting an 'error on page' message in the Internet Explorer Status bar and nothing at all is working.
Many thanks, now the problems of implementation...
<?php
// retrieve the user name
$name = $_GET['name'];
// generate output depending on the user name received from client
if (empty($name)){
$return = 2;
} else {
//connect to mysql here
$conn = mysql_connect("localhost", "", "")...
I have this AJAX-linked PHP file, which gets a username input by the user, checks if it matches the list it has, then sends back a variable to tell the program what to do next (it only offers the log in option if the name matches).
<?php
// retrieve the user name
$name = $_GET['name'];
//...
I'm trying to load variables from the server into a Javascript application with AJAX.
Here are the relevant parts of the code;
Javascript;
var name = 1;
var xmlHttp = createXmlHttpRequestObject();
var newx = 0;
function createXmlHttpRequestObject()
{
var xmlHttp;
if(window.ActiveXObject)
{...
Don't worry, I fixed the problem by moving parts of the script into a different script in the m frame.
Thanks for your help anyway.
P.S. I had defined all my variables and called the script and correctly named my frames though.
Basically I have the following problem. I am writing a small frames-based Javascript game...
I have two frames in my frameset, one for menu functions and alerts which changes, and one 'bar' which stores all the game data and functions. What I need to be able to do is call a function from the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.