Menu

#6 HTML output problem

closed
nobody
None
5
2008-08-13
2008-07-30
icmono
No

Hey people!
First of all really nice script! I've started learning perl after using this script.

Here is my problem:
I've registered with a webstats provider site in my country and they gave me a code to insert in my website

<!-- script statistics.ro : V2 : xhtml-easy -->
<script type="text/javascript" src="http://hitx.statistics.ro/hitx2.js"></script>
<a href="http://www.wta.ro/0myid0stats_index" title="Statistici web live pe Statistics.ro"><script type="text/javascript">
st_ro_start(0myid0, "", "", "");</script></a>
<noscript><div><a href="http://www.wta.ro/"><img src="http://hitx.statistics.ro/0myid0/1/-/-/-/a-x/nojs.gif" width="88" height="31" alt="Statistici web"/></a></div></noscript>
<!-- end of script statistics.ro : V2 : xhtml-easy -->

(I have replaced my personal numeric id with "0myid0")

I've pasted the script inside _foot.html before de </div>
tag. In IE7 everything's perfect (but IE sux) and in Firefox3 the image does not display. When I remove de <noscript></noscript> tag from the image anchor and append border="0" to the <img> tag, everything works well.

I've reported this problem to the webstats site
and all I got back was this reply: "Nice script :-)" from somemail@gmail (so not official). Funny but not helpfull.

Can anyone help? I don't even know if the stats script works well after modifying. I have the same problem with another webstats provider in mu country, and when I remove the <noscript> tag, the image turns red and my site isn't indexed :(

Am I doing something wrong?

BTW: Shouldn't the *.html's in the template be renamed to *.xhtml ? because http://validator.w3.org reports that might be an issue "The document is being served with the text/html Mime Type which is not a registered media type for the XHTML 1.1 Document Type. The recommended media type for this document is: application/xhtml+xml"

Hope someone can help. If Y get an answer from either of the webstats providers I will post.

Thanks.

--
iCM

Discussion

  • icmono

    icmono - 2008-07-30

    Logged In: YES
    user_id=2163319
    Originator: YES

    I forgot to mention... I'm using Chirpy! v0.4-svn and my server is running Apache/2.2.3 (Debian) PHP/5.2.0-8+etch11 mod_ssl/2.2.3 OpenSSL/0.9.8c with virtualmin and suexec recompiled with AP_DOC_ROOT="/home" and virtualmin (so no perl problems. all required modules installed and checked). Other cgi apps work perfectly. No suexec issues.

    --
    iCM

     
  • Nobody/Anonymous

    Logged In: NO

    The problem was solved by the webstats site staff. They told me that the doctype was very restrictive so they gave me a "XHTML strict" code that dows not differ from the original I've posted. The only difference is that the js they provid is hitx3.js so it's a totaly different js.

    --
    iCM

     
  • Tim De Pauw

    Tim De Pauw - 2008-08-13

    Logged In: YES
    user_id=642776
    Originator: NO

    Yes, their JavaScript code uses document.write(), which isn't supported in XHTML strict mode. Glad to see you've sorted it out.

     
  • Tim De Pauw

    Tim De Pauw - 2008-08-13
    • status: open --> closed
     

Log in to post a comment.