![]() |
|
#1
|
|||
|
|||
php image & javascript issueIn my test.php file, I cannot run javascript and images do not show up. If I run this file using the URL
http://localhost/index/?m=login&name=Sachin I can see 'My name is Sachin'. If I rename this file to test.html and open it, the image shows up and clicking on 'Click Me!' button works fine. I had to comment img tag because it disappears here. Pls uncomment to run it. ================================================== ===== <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>SPIDR</title> <script src="javascript/test.js" language="javascript"> </script> <link href="style.css" rel="stylesheet" type="text/css"> </head> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <!-- pls un comment it to test it --> // <img src="images/login.png" width="84" height="24" border="0"> <p><input type="button" name="TEST" onclick="Hello()" value="Click Me!" /></p> <?php $name = $_GET['name']; echo 'My name is ' . $name; ?> </body> </html> ================================================== ===== test.js function Hello() { alert('Hello Ronaldo'); } |
|||
|
#2
|
|||
|
|||
Re: php image & javascript issueI have this img tag near the comment.
//<img src="login.png" width="84" height="24" border="0"> |
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP image and javascript include | javasac | MySQL / PHP Forum | 5 | 09-Sep-2008 12:28 |
| Image onto JFrame | tedds | Java Forum | 8 | 25-Oct-2007 21:04 |
| GIM gidedit - a fltk fluid resize project | cable_guy_67 | FLTK Forum | 2 | 01-Jun-2005 16:00 |
| Checking source codes of image, audio and video files | onauc | C Programming Language | 5 | 26-Feb-2005 22:47 |
| An Introduction to Javascript | JasonMichael | Web Design Forum | 2 | 24-Oct-2004 11:19 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The