Re: Re: loadHTML/loadHTMLFile - DOM functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, September 17, 2006 9:48 am, Leonidas Safran wrote:
I'm far from an international expert, but I believe that if you want
ALL browsers to behave (and not just IE) then you want to use HEADERS
for your content type and charset, as well as the embedded META tag.

IE trusts Web Designers and their META tags.
Mozilla trusts Web Servers and their headers.
YMMV
NAIAV (Not applicable in all versions)

Sigh.

>     echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01
> Transitional//EN\"\n\"http://www.w3.org/TR/html4/strict.dtd\";>";
>     //echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0
> Transitional//EN\"
> \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\";>\n";
>     echo "<html>\n";
>     echo "<head>\n";
>     echo "<title>TecDax</title>\n";
>     echo "<script src = '../javascript/tecdax.js' type =
> 'text/javascript'></script>\n";
>     echo "<meta http-equiv = 'content-type' content = 'text/html;
> charset=UTF-8'>\n";
>     echo "</head>\n";
>     echo "<body onLoad = 'getAllStocks();showAllStocks();'>\n";
>     echo "<div style = 'display:none;' id = 'tecdax'>\n";
>     echo $this->ticker . "\n";
>     echo "</div>\n";
>     echo "</body>\n";
>     echo "</html>\n";
>   }
> }
>
> $stocks = new Stocks();
>
>
> ####################
> code(2)
> ####################
>
> /*
> functions for tecdax stocks ticker
> */
>
> var tecdax = "";
>
> function getAllStocks(){
>   tecdax = document.getElementById("tecdax").innerHTML;
> }
>
> function showAllStocks(){
>
>   var stocks = document.getElementsByName("stock");
>   var stock = new Array();
>
>   for( i = 0 ; i < stocks.length ; i++ ){
>
>     stock[i] = new Array();
>     var tmp_stock = new Array();
>     tmp_stock[i] = stocks[i].innerHTML;
>
>     var attributes = tmp_stock[i].split("--sep--");
>
>     var x = 0;
>
>     for( j = 0 ; j < attributes.length ; j++ ){
>
>       var result = attributes[j].match(/\w/gi);
>
>       if( ! result ){
>         continue;
>       }else{
>         //attributes[j].replace(/[Â|±]+/,"");
>         stock[i][x] = attributes[j] + " ";
>         x++;
>       }
>
>     }
>
>     alert(stock[i]);
>
>   }
>
> document.getElementById("tecdax").innerHTML = stock[0] + " " +
> stock[1];
> document.getElementById("tecdax").style.fontSize = "11px";
> document.getElementById("tecdax").style.display = "inline";
> }
>
> --
> "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
> Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux