|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Scripting in XHTML
Hi there,
I am trying to run php scripts in xhtml strict. The scripts work ok and produce the desired effect but when run through a validator throw up errors because the validator is looking at the script rather than the resultant mark-up. Is there a set rule when inserting server-side scripts? Regards |
|
#2
|
|||
|
|||
|
i don't have problems with it.
but you should validate the output, after the php scripts are parsed. try to validate them here: http://www.walidator.com/ the script tags i use for javascript e.g. are valid like this: Code:
<script type="text/javascript">
<!--
if (self != top) { top.location.href = self.location.href }
// -->
</script>
hope this helps, jarra
__________________
http://www.jarra.nl |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Scripting in XHTML |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|