V4 Vs V5 Issue



Hi

First Post here, I hope this is the right place for this post.

This is probably not a php problem, I think it may a configuration issue, but sorry I just dont know where to look

I have a V4 site the calls an on line editor and part of the process is by window.onload. If I had to explain how it all works I could'nt JS is not my thing and this is a fairly old piece of code.

anyways

-------------------------- Have a bit of code that looks like this

..
..
<body leftmargin="2" marginwidth="2" topmargin="2" marginheight="2" onResize="blockDefault();">
content;

include($settings['app_dir'].'/js/core_js.php');

echo <<<content
<script LANGUAGE="Javascript">
window.onload=initEditor
</script>

<table border="0" cellpadding="5" cellspacing="0" width="100%" height="100%" class="framed">
..
..
..
----------------------------------------------------------

Under My V4 Sever it works fine .....the Java script loads and an all is fine.

On my V5 Sever

I get the following Errors

Line: 68
Char: 21
Error: Syntax error
Code: 0
URL: ......
and then

Line: 600
Char: 11
Error 'initEditor' is undefined
Code 0
URL........

Now the thing is, when I view source code in IE off both servers the the core_js.php is being read and is visible, the initEditor function is there for all the world to see.

If I rename the initEditor function on the V5 version and add a new empty function I still get the same error messages.

I dont have much hair and I am tearing out the rest as we speak :).....I have no idea where to look so I am just hoping someone can point me in the right direction.

Like I said in the beginning I think it must be a configuration issue but I just dont know what or where.

Anyways TIA

Cheers

Neil





.



Relevant Pages

  • Re: [PHP] V4 Vs V5 Issue
    ... First Post here, I hope this is the right place for this post. ... This is probably not a php problem, I think it may a configuration issue, ... If I rename the initEditor function on the V5 version and add a new empty ... Like I said in the beginning I think it must be a configuration issue but I ...
    (php.general)
  • Re: [PHP] V4 Vs V5 Issue
    ... I dont know where I should be looking. ... php and JS is absolutely identical on both machines. ... > First Post here, I hope this is the right place for this post. ... > This is probably not a php problem, I think it may a configuration ...
    (php.general)
  • Re: Hmmm
    ... insulting since my post never had a sign on it saying ... First off I though the lead in my first post in this thread made it ... Does that mean I dont care about people? ... statement of how I feel about what these fights do to what I formerly ...
    (alt.support.chronic-pain)
  • Re: noisy breaks , micra
    ... you didn't like the advice you were given - have a look. ... its the abusive grammar police that i am having a problem with. ... they dont suffer people whose grammar isnt up to scratch. ... where in my first post did i expect anything? ...
    (uk.rec.cars.misc)
  • stupid posts.
    ... This is my first post, ... dont get a satisfactory response then post a question. ... In my view you dont Know shit about this art Untill you have ... All of you fucks that are about to start arguing about "how I do ...
    (rec.pyrotechnics)