Kirk Udovich | 1 Mar 2003 05:51

dynamically resizing columns w/in nested frameset???

i can resize a frameset's column widths whether it is a nested frameset
or not in ie6, but can not do it in mozilla.  does anybody have an idea
as to how to do this.  here is some sample code:

<frameset rows="50%, 50%">
    <frame src=...>
    <frameset id=nestedfrset cols="50%, 50%">
        <frame src=....>
        <frame src=....>
    </frameset>
</frameset>

from the following clientside jscript i can modify (physically) the
frameset' column width to "10%, 90%":

document.nestedfrset.cols="10%, 90%".

however, this only works in ie.  when i do it on mozilla or netscape7.0,
the value actually changes to "10%, 90%", but it doesn't physically
change on the screen.  it will work, however, if you modify the topmost
frameset.  i need to resize the inner frameset.
can someone please help me out, here?
thanks

Boris Zbarsky | 1 Mar 2003 06:45
Picon
Favicon

Re: css/javascript and scrolling...

ric <at> realise wrote:
> Does anyone have any comment on this, any work arounds or even just a simple
> explanation on why the two browsers decide to implement this in different
> ways.

Because in Mozilla, overflow:hidden divs were not scrollable by design 
(since the CSS spec states that overflow:hidden content should not be 
accessible by the user).  Now when the ability to scroll things via 
scrollLeft was added to Mozilla, it was decided to _not_ totally rewrite 
the handling of overflow:hidden in the process.  You can see the 
discussion at
http://bugzilla.mozilla.org/show_bug.cgi?id=62536#c44 that ensued.

(I've set the followup to the proper newsgroup)

Boris Zbarsky | 1 Mar 2003 06:46
Picon
Favicon

Re: dynamically resizing columns w/in nested frameset???

Kirk Udovich wrote:
> i can resize a frameset's column widths whether it is a nested frameset
> or not in ie6, but can not do it in mozilla.  does anybody have an idea
> as to how to do this.

"Don't try to do it in Mozilla 1.0/Netscape 7.0" is my idea....  It's 
fixed in 1.1 and newer versions.  I tried to find a decent workaround 
for 1.0, but never came up with a way to do it.

Vishy | 1 Mar 2003 21:48
Picon
Favicon

Accessing DOM in Java/LiveConnect

Hi,

I am trying to build a XUL/JS front-end to an existing Java API, which
operates on the Mozilla DOM. I am having trouble getting things to
work, so I would appreciate if I got some ideas on the following few
issues:

a) I am unable to make my Java package and the classes within it
visible to Javascript. I have included the path to these classes not
only in the CLASSPATH environment variable in the shell that starts
Mozilla, but also as a -classpath argument to the JRE from the Mozilla
JRE 1.3.1_02 plugin control panel. In either case, I get a
ClassNotFoundException. Note that my Java API is not encapsulated in
an applet. At best, it can be made available as a .jar file on the
client machine. Is this just a LiveConnect issue? Should I try
modifying the client machine's classpath programmatically? Any other
ideas or references.

(So far, I am able to call the java.*, sun.* and netscape.* packages
from Javascript. However, I am simply unable to make Javascript see
objects from other (custom) classes.)

b) I also see the Java DOM API as part of Blackwood project, a
Mozilla-Java bridge. Could somebody lead me to an example of using the
Java DOM API to access a Mozilla document object?

Any other ideas would be greatly appreciated!

Thanks so much.

(Continue reading)

semi | 2 Mar 2003 01:58
Picon
Favicon

Re: changing image source no longer works in Mozilla 1.2

When Jon Perez was making a web page, a question appears and wrote:
>This looks like a serious & critical bug.
>
>Assigning to HTMLImageElement.src no longer works.
>Any suggested workarounds?
>
><html>
><head>
>  <script language="javascript">
>  <!--
>  function pic1() {
>    picnode=document.getElementById("pic")
>    picnode.src="pics/minusonly.gif"
>  }
>  function pic2() {
>    picnode=document.getElementById("pic")
>    picnode.src="pics/plusonly.gif"
>  }
>  </script>
></head>
><body>
>  <img id='pic' onmouseover='pic1()' onmouseout='pic2()' src='pics/minusonly.gif'>
></body>
></html>
>

Try it with double quote like:
<img id="pic" onmouseover="pic1()" onmouseout="pic2()" src="pics/minusonly.gif">
--

-- 
Edwin
(Continue reading)

Jon Perez | 2 Mar 2003 14:43
Picon
Favicon

Re: changing image source no longer works in Mozilla 1.2

"semi" <e_vdvaart <at> yahoo.co.uk> wrote in message:

> Try it with double quote like:
> <img id="pic" onmouseover="pic1()" onmouseout="pic2()" src="pics/minusonly.gif">
> --
> Edwin

No go.  Did it work for you?

I don't see the point of making only double quotes
for attributes work.  It didn't use to be the case
and I don't think such a requirement exists in the
DOM spec.

Emmanuil Batsis (Manos | 2 Mar 2003 22:54

Re: changing image source no longer works in Mozilla 1.2

A quick workaround would be to load two img elements and swap the CSS 
display or z-index property. With z-index it would be more efficient but 
you will also have to use absolute positioning ;-)

Manos

Jon Perez wrote:
> "semi" <e_vdvaart <at> yahoo.co.uk> wrote in message:
> 
> 
>>Try it with double quote like:
>><img id="pic" onmouseover="pic1()" onmouseout="pic2()" src="pics/minusonly.gif">
>>--
>>Edwin
> 
> 
> No go.  Did it work for you?
> 
> I don't see the point of making only double quotes
> for attributes work.  It didn't use to be the case
> and I don't think such a requirement exists in the
> DOM spec.
> 
> 
> 

Jon Perez | 3 Mar 2003 02:22
Picon
Favicon

Re: changing image source no longer works in Mozilla 1.2

"Stanimir Stamenkov" <stanio <at> notvalid.net> wrote:

>
> Works for me:
>
> http://www.geocities.com/stanio/chngimgsrc.html
>
> Does it work for you?

Nope, :-(.  Which version of Mozilla are you using?
This functionality stopped working at Mozilla 1.2
for me (am using the Windows version) - upgrading to
1.2.1 didn't work.  Used to work in Mozilla 1.1.x...

ric@realise | 3 Mar 2003 14:06

Re: css/javascript and scrolling...

> Because in Mozilla, overflow:hidden divs were not scrollable by design
> (since the CSS spec states that overflow:hidden content should not be
> accessible by the user).  Now when the ability to scroll things via
> scrollLeft was added to Mozilla, it was decided to _not_ totally rewrite
> the handling of overflow:hidden in the process.  You can see the
> discussion at
> http://bugzilla.mozilla.org/show_bug.cgi?id=62536#c44 that ensued.
>

So are you saying this will never be implemented? As the same thing applies
to frames and iframes. If the scrolling isn't set then I can't move it
dynamically.

Thanks for the reply, btw.

Ric.

Boris Zbarsky | 3 Mar 2003 17:44
Picon
Favicon

Re: css/javascript and scrolling...

ric <at> realise wrote:

> So are you saying this will never be implemented? As the same thing applies
> to frames and iframes. If the scrolling isn't set then I can't move it
> dynamically.

I have no idea whether it will be implemented or not; now that you've 
read that thread you have all the information I do.  I'm pretty sure 
that jst has no plans to work on it, though.  So someone would have to 
step up and do it.


Gmane