Hi Felix or anyone that might be able to help.

In this window, I am loading a url within my own site. Within this url I
would like to be able to use the css styles and loaded javascript files of
the parent. For example, in the parent I have loaded PWC, Scriptaculous, and
Rico and Prototype(of course), plus my stylesheet and would like to be able
to make ajax requests, round corners(with rico), effects (scriptaculous)
inside my window without having to reload the js files within the URL that
is loaded in my window, as this would realy cut down on the efficiency of my
website. Is there a way to do this?

Of course, I could use the parent. object for some things, but it seems that
just makes things quite complicated, calling parent everywhere. Please
enlighten me...

Thanks alot...


Issachar


On 11/27/06, Issachar Brooks <[EMAIL PROTECTED]> wrote:

Luc Well, I actually used another approach to resize the window. My
difficulty was calling the Window from the DOM. After I figured that out, I
used the following function:

  function updateSize(width, height, id)
  {
    Windows.getWindow(id).setSize(width, height);
   Windows.getWindow(id).updateWidth();
  }

and called it through: parent.updateSize('xx', 'xx', 'id').

(setSize sets the size of the content, updateWidth updates the window to
fit the content)

I don't think the updateWidth would have done anything without first
setting the size of the content, in my case, but I didn't try that....

I don't know if that helps...


Issachar

 On 11/27/06, Luc Van den Borre <[EMAIL PROTECTED]> wrote:
>
> Issachar Brooks wrote:
> > Worked! Thanks! Forgive my javascript ignorance... I am quite new at
> > this... :)
> >
> > On 11/27/06, *Felix Shnir* <[EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>> wrote:
> >
> >     You could try parent.Windows.getWindow('30').updateWidth();
>
> Issachar, does this actually resize the PWC window to fit the content?
> I have the same situation, but for me this call will just set the window
>
> width to the one specified as a parameter in new Window(...), i.e. it
> will not change the width.
>
> Thanks,
>
> Luc
>
> _______________________________________________
> Javawin mailing list
> [email protected]
> http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com
>


_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

Reply via email to