Skip to Content
avatar image
Former Member

Frames

Hi everyone,

I'm working with frames. Need to set a page in another frame, it is so simple using "Target", but how can i do this from OnInputProcessing ou OnInitialization events?

Thanks,

Points'll be rewarding,

Alexandre

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Sep 13, 2008 at 05:36 AM

    in oninputprocessing set some variable to a value and in the layout check the variable , based on the variable value you could call a js function to open the url in a another frame.

    <% if test = "success" . %>
    script
    
    window open ('targetur', 'framename');
    /script
    
    <% endif . %>
    

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Raja,

      This statament does not work with 'framename' parameter, framename means the windows name.

      I have to use "parent" statament, but I still got a question, take a look below:

      <frameset rows="70,*" framespacing="0" frameborder="0">

      header.htm" scrolling="no" noresize>

      <frameset cols="200,*" framespacing="0" frameborder="0">

      <frameset rows="50%,*" framespacing="0" frameborder="0">

      menu.htm" scrolling="auto">

      loading.htm" scrolling="auto">

      </frameset>

      Right.htm" scrolling="auto">--%>

      </frameset>

      </frameset>

      Inside my "Right.htm i have the following:

      <frameset rows="80%,20%" MARGINWIDTH="0" frameborder="0" framespacing="5" MARGINHEIGHT="0">

      create_po.htm" name="control">

      atp_trucks.htm" name="coding">

      </frameset>

      If i try to make any communication between those frames, they does not recognize those that are inside the "right.htm".

      but if i take off them and leave like below, its works very well:

      <frameset rows="70,*" framespacing="0" frameborder="0">

      header.htm" scrolling="no" noresize>

      <frameset cols="200,*" framespacing="0" frameborder="0">

      <frameset rows="50%,*" framespacing="0" frameborder="0">

      menu.htm" scrolling="auto">

      loading.htm" scrolling="auto">

      </frameset>

      <%-- defaultRight.htm?tag=create_po" scrolling="auto">--%>

      <frameset rows="80%,20%" MARGINWIDTH="0" frameborder="0" framespacing="5" MARGINHEIGHT="0">

      create_po.htm" name="control">

      atp_trucks.htm" name="coding">

      </frameset>

      </frameset>

      </frameset>

      My question is, how can i make any communication or data transfer in the first pattern?

      I have already test all of these:

      parent.frames[X].document.forms[0].cxtexto.value='test'.

      My page "right.htm" is a dynamic page, thats why i need it.

      Thank you in advance,

      Alexandre