|
From: Dan W. <da...@wi...> - 2003-04-24 21:56:01
|
On Thu, 2003-04-24 at 14:57, Raymond Irving wrote:
> As for the addHTML() function ....
>
> // Before the page loads you can use addHTML to add
> regular html text to the document.
> // this will behave similar to the document.write()
> function in both ns4 and other browsers
> dynapi.document.addHTML('Some Text <b>here Some
> Text</b> here Some Text here Some Text here Some Text
> here Some Text here');
>
> dynapi.onLoad(function(){
>
> // After the page has been loaded the addHTML()
> function will behave differently in ns4 than in other
> browsers.
> // All HTML content added after the page has been
> loaded in ns4 will appear at location 0,0
> // while in other browsers it will be appended to the
> end of the document.
> // It's best to use the addHTML() to add inline
> layers to the document after a page load.
>
> var html='<table border="1" width="100%"><tr><td>This
> is an inline layer that was created after page
> load</td></tr></table>';
>
> if(dynapi.ua.ns4) dynapi.document.addHTML('<layer
> id="myid2" width="100" height="100"
> bgcolor="yellow">'+html+'</layer>');
> else dynapi.document.addHTML('<div id="myid2"
> style="position:absolute;width:100px;height:100px;background-color:yellow;">'+html+'</div>');
>
> var lyr = new DynLayer();
> lyr.setID('myid2',true);
> dynapi.document.addChild(lyr);
> lyr.setLocation(100,100);
> lyr.setSize(150,100);
> lyr.setHTML(html);
> });
>
>
> Should we keep the addHTML() function or remove it and
> have the users implement their own functions?
I vote that we keep it, face it, eventually netscape 4 will be gone, and
then there won't be a problem anymore. I won't support scraping a
'newer' feature just because it doesn't work right in a 5+ year
browser. We could recommend not to use it if you want your webpage to
work entirely correctly in nn4.
>
>
> --
> Raymond Irving
>
> __________________________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo
> http://search.yahoo.com
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dynapi-Dev mailing list
> Dyn...@li...
> http://www.mail-archive.com/dyn...@li.../
--
Dan Willemsen <da...@wi...>
|