Hola Javier, gracias por la bienvenida y la respuesta...
el problema esta en que me toma como incorrectas las comillas
<scr'+'ipt probe poniendo al lado type=text/javascript .. pero sin > cerrar ya que viene un src despues... el tema seria encontrar la manera de remplazar <scr'+'ipt
y ademas ya me pierdo con las comillas internas...
resumido es
Código:
<script type="text/javascript">
document.write('<scr'+'ipt type="text/javascript" src="'+document.location.protocol+'//wow.weather.com/weather/wow/module/'+wx_locID+'?config='+wx_config+'<?=$amp?>proto='+document.location.protocol+'<?=$amp?>target='+wx_targetDiv+'"></scr'+'ipt>');
</script>
aclaro $amp = "&"
y si pongo normalmente :
Código:
<script type="text/javascript">
document.write('<script type="text/javascript" src="'+document.location.protocol+'//wow.weather.com/weather/wow/module/'+wx_locID+'?config='+wx_config+'<?=$amp?>proto='+document.location.protocol+'<?=$amp?>target='+wx_targetDiv+'"></script>');
</script>
me muestra en vez del clima , '); .. o sea lo q viene despues de </script> supongo porq toma como q cierra el primer <script> abierto que esta afuera del document.write...
el error de validacion que muestra es el siguiente
Cita: Line 2, Column 20: an attribute specification must start with a name or name token.
document.write('<scr'+'ipt type="text/javascript" src="'+document.location.proto✉
An attribute name (and some attribute values) must start with one of a restricted set of characters. This error usually indicates that you have failed to add a closing quotation mark on a previous attribute value (so the attribute value looks like the start of a new attribute) or have used an attribute that is not defined (usually a typo in a common attribute name).
Line 2, Column 239: delimiter "'" invalid: only S separators and TAGC allowed here.
…=$amp?>target='+wx_targetDiv+'"></scr'+'ipt>');
gracias de nuevo.