I tried a simple program to do that in Safari,Webkit, Opera & Firefox, it
works as advertised. Did I miss something?

http://cigar.dynalias.org/plugins/debug/safari.html

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en">
        <head>
                <title>$("#emptyDiv").append(str).debug();</title>
                <script type="text/javascript">window.onerror =
function(e,f,l){alert(e + "\nin:" + f + "\n@" + l)} //just a little
extra error catching</script>
                <script type="text/javascript" src="/js/jquery.js"></script>
                <script type="text/javascript" 
src="jquery.debug-pack.js"></script>

                <script type="text/javascript">
                        jQuery(function($){

var str = 'lorem ipsum';

$("#emptyDiv").append(str).debug();

                        });
                </script>
        </head>
        <body>
                <div id="emptyDiv"></div>
        </body>
</html>



On 5/27/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:

Safari makes lots of false steps in its efforts at optimization. I always
try the webkit version at http://nightly.webkit.org/

If it still croaks, put a &nbsp; in the div.

On 5/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> well, I've developed an admin system which rely heavely on jQuery.
>
> But, safari can't seem to append html to empty div's (or perhaps any
> div) - is there a fix to this?
>
>
> im doing something like this:
>
> var str = 'lorem ipsum';
>
> $("#emptyDiv").append(str);
>
>
> But nothing happens, works in firefox though =/
>
>


--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ




--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ

Reply via email to