You are not logged in.
Pages: 1
When I load my page on IE I get a syntax error on this line char: 3;
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
there is the error on IE so you can see it.
I really don't know what would cause it.
I do know it works on FF.
Offline
Which is the file that contains the line? (The URL reported by IE error message is not always the file that contains the faulty js; also the line reported is usually not quite right).
The syntax you quote is OK, supposed you define the vars beforehand using
var varName;
Why do you use the $-naming? that is not usual in js.
Please give more information, an URL to have a look at might help solve the problem quickly.
Offline
here is the link
http://usd465.com/winfieldaged/frontpag … index2.php
I didnt know make the code I am useing Macromedia Dreamweaver MX 2004 to edit.
Offline
think the problem is in your mu_config.js file - you've added PHP code to it....this doesn't usuallt get parsed in JS files
<?php
require_once('/contrib/php-xinha.php');
xinha_pass_to_php_backend(
array(
'images_dir' => '../../../../Pictures/Image',
'images_url' => 'http://www.usd465.com/winfieldaged/PicturesImage'
)
);
?>
Last edited by jedi58 (2007-01-29 17:26:38)
David G. Paul
[url]http://www.newearthonline.co.uk[/url]
Offline
Yes, that's obvious. The solution is simple: just rename my_config.js to my_config.php
P.S. You can also put
AddType application/x-httpd-php .js
in a .htaccess file in folder (if you're running apache)
Offline
well I didn't think it'd be obvious to everyone, can't assume everything is everyone's area of expertise so I thought I should point it out
David G. Paul
[url]http://www.newearthonline.co.uk[/url]
Offline
No that was not the problem! In IE it does not convert the textarea at all, but it will in Firefox.
Offline
I did try it and it does not work.
Offline
I have found out the problem. All i did was delete the php code.
Offline
Pages: 1