@mat11authorOct 22.2007 — #Thanks for the warm welcome Kravvitz!
Basically I'm building some generic pieces of code for developing websites and managing databases, however I need to insert an include and specified variable into the header of the page (a different page to the one with the javascript on) - similar to a Dreamweaver Extension - I can insert into the HEAD tag, but can't find a way to reference 'at the start of the file' or 'before the prologue'...
?
I know it can be done, but I'm not an advanced javascripter...and help greatly appreciated.
This is what needs to be inserted - it is literally a Dreamweaver Extension, so the text field 'redirectURL' is inserted for the variable, then the lines above need to be added before the DOC tag, as Dreamweaver does with recordsets etc...
@FangOct 22.2007 — #I want to insert a block of PHP code before the <!DOC header, but without having to add anymore code.[/QUOTE]This is contradictory; somewhere more code has to be added.
@mat11authorOct 22.2007 — #The other files needed have already been written and saved - these are saved to the relevant folder as and when needed.
It is only the header information I want to add in to the main file, but don't want to have to manually add in <span> tags or whatever in order for the JScript to find it.