PDA

View Full Version : Script runs on Miva but not Mia


donb
05-18-06, 10:29 PM
I have a script which runs quite nicely on Miva 3.96 but when I run it on Mia all I get is a blank screen. When I look at the source in the browser everything looks correct. Any ideas on what may be causing this.

Thanks

DesignExtend-MSI
05-19-06, 08:50 PM
Is it accessing the server? If so, are you asking the server via Mia?

donb
05-19-06, 08:59 PM
Yes I have a whole series of scripts that are running on a mia server just fine. This one does access the mia engine and is parsed back to the browser but there is no display. If I look at the source in the browser all the code is there with the proper values inserted but it will not display. I suspect there is some hidden special character that is confusing the browser but I havn't a clue on how to find it.

Thanks

ILoveHostasaurus
05-20-06, 09:34 AM
Is the script forgetting to output "Content-Type: text/html"? Keep in mind I don't do MivaScript programming so Mia and Empresa may output that automatically.

mvmarkus
05-21-06, 12:03 PM
Can you see the page when you save the source as an html page? It may very well be a simple (well, or not so simple...) html/DHTML-issue. Firefox for example doesn't like invalid comments, even if they work fine in IE. Unmatched div's occasionally make an entire page disappear, too.

Other than that Mia and Empresa don't mind very much what you try to display - they just push the code out, regardless of what is in it, provided that the automatically added content type is not explicitly and incorrectly overridden, as David described.

Markus

aGorilla
05-25-06, 09:32 PM
External javascript files can also cause problems with Mia. If you have any, try putting the javascript into your source.