Nevermind,
  The browser just doesn't let bad syntax work.  Note, I left off the
px extension on posx and posy and that was what was making it fail.
Now back to your regularly scheduled program.
ml


On Nov 21, 10:14 am, Mark Lacas <[EMAIL PROTECTED]> wrote:
> I'm having a weird problem. . .
>
> When I add:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>             "http://www.w3.org/TR/html4/loose.dtd";>
>
> to the top of my index page, thecsscalls from the code snippet below
> stop working.
>
> //
> *************************************************************************
> // propfuncs -
> //
> *************************************************************************
> function update_property( id, property, value ) {
>         if ( property == "posx" ) {
>                 $("#" + id).css( "left", value );
>         } else
>
>         if ( property == "posy" ) {
>                 $("#" + id).css( "top", value );
>         } else
>
>         if ( property == "width" ) {
>                 $("#" + id).css( "width", value+"px" );
>         } else
>
>         if ( property == "height" ) {
>                 $("#" + id).css( "height", value+"px" );
>         } . . .
>
> If i remove the DTD header the code works fine.
>
> Is the latest jQuery from the SVN repository broken, or am I just
> missing something.
>
> Any thoughts or ideas?
>
> Thanks,
> ml

Reply via email to