![]() |
|
#1
|
|||
|
|||
PHP image and javascript includeHi All,
Strange issue here. I m including images and javascript in my php file. None of them show/work up. If i change the .php file to .html, both thing start working. So no issues with path and all. Any idea? Thanks, Sachin |
|||
|
#2
|
|||
|
|||
Re: php image and javascript includeHTML Code:
Last edited by admin : 09-Sep-2008 at 16:57.
Reason: Please insert your example markup between [HTML] and [/HTML] tags
|
|
#3
|
||||
|
||||
Re: php image and javascript includeWhat are you trying to do? There's not any PHP code in the file.
Merely attempting to rename a .html with a .php extension will not make it a php file. __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#4
|
|||
|
|||
Re: php image and javascript includeit is just a design and images do not show up in either html or php file.
The images show up when i double-click the html file but when I run under Apache can't see images. |
|
#5
|
||||
|
||||
Re: php image and javascript includeWhere in the file system is the (.html, or .php) file being launched?
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#6
|
|||
|
|||
Re: php image and javascript includehere is the code
In 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. PHP Code:
test.js Code:
Last edited by admin : 09-Sep-2008 at 16:55.
Reason: Please insert your example PHP codes between [PHP] and [/PHP] tags
|
Recent GIDBlog
Vista ?Widgets? on Windows XP by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Preloading background image in display: none objects | Blake | Web Design Forum | 2 | 01-Mar-2007 01:45 |
| Javascript slideshow in webapplication....( | vatsaldesai24 | Miscellaneous Programming Forum | 0 | 02-Nov-2006 22:13 |
| javascript slide show.... | vatsaldesai24 | Java Forum | 1 | 02-Nov-2006 14:19 |
| php Disjointed rollover problem | seanollett | Web Design Forum | 0 | 21-Apr-2006 13:10 |
| Javascript: Pop Up Tutorial | BobbyDouglas | Web Design Forum | 0 | 20-Nov-2003 22:19 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The