Frames


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Frames

  1. #1
    Douglas Guest

    Frames

    Hi all,

    I have a form of asp message board. When the user enters data and clicks the
    "submit" button, I want both it's page, and the "left" frame to be updated
    with different/same-but-new pages.

    How can it be done?

    Thanks,
    Doug



  2. #2
    Sergey Guest

    Re: Frames

    left_frame.window.location.reload();
    where "left_frame" is the name of the frame to be refreshed

    if you want to refresh on submit use onSubmit event of the form

    <form onsubmit="left_frame.window.location.reload();return true;">

    hope this works,
    Sergey.

    "Douglas" <hot_n_cold_2000@hotmail.com> wrote in message
    news:3a2e7986@news.devx.com...
    > Hi all,
    >
    > I have a form of asp message board. When the user enters data and clicks

    the
    > "submit" button, I want both it's page, and the "left" frame to be updated
    > with different/same-but-new pages.
    >
    > How can it be done?
    >
    > Thanks,
    > Doug
    >
    >




  3. #3
    Douglas Guest

    Re: Frames

    Thanks for the reply.

    I am getting "'left' not defined" errors....

    I am using:

    <SCRIPT LANGUAGE="JavaScript">left.window.location.reload();</script>

    with

    <FRAME name="left"...

    What am I doing wrong?

    Thanks,
    Doug

    "Sergey" <skats@sequoianet.com> wrote in message
    news:3a2e80d7$1@news.devx.com...
    > left_frame.window.location.reload();
    > where "left_frame" is the name of the frame to be refreshed
    >
    > if you want to refresh on submit use onSubmit event of the form
    >
    > <form onsubmit="left_frame.window.location.reload();return true;">
    >
    > hope this works,
    > Sergey.
    >
    > "Douglas" <hot_n_cold_2000@hotmail.com> wrote in message
    > news:3a2e7986@news.devx.com...
    > > Hi all,
    > >
    > > I have a form of asp message board. When the user enters data and clicks

    > the
    > > "submit" button, I want both it's page, and the "left" frame to be

    updated
    > > with different/same-but-new pages.
    > >
    > > How can it be done?
    > >
    > > Thanks,
    > > Doug
    > >
    > >

    >
    >




  4. #4
    Sergey Guest

    Re: Frames

    Try this:
    parent.left.window.location.reload();

    If it doesn't work, try web.dhtml.general or web.dhtml.scripting news
    groups, they should know.

    Sergey.

    "Douglas" <hot_n_cold_2000@hotmail.com> wrote in message
    news:3a2e86bb$1@news.devx.com...
    > Thanks for the reply.
    >
    > I am getting "'left' not defined" errors....
    >
    > I am using:
    >
    > <SCRIPT LANGUAGE="JavaScript">left.window.location.reload();</script>
    >
    > with
    >
    > <FRAME name="left"...
    >
    > What am I doing wrong?
    >
    > Thanks,
    > Doug
    >
    > "Sergey" <skats@sequoianet.com> wrote in message
    > news:3a2e80d7$1@news.devx.com...
    > > left_frame.window.location.reload();
    > > where "left_frame" is the name of the frame to be refreshed
    > >
    > > if you want to refresh on submit use onSubmit event of the form
    > >
    > > <form onsubmit="left_frame.window.location.reload();return true;">
    > >
    > > hope this works,
    > > Sergey.
    > >
    > > "Douglas" <hot_n_cold_2000@hotmail.com> wrote in message
    > > news:3a2e7986@news.devx.com...
    > > > Hi all,
    > > >
    > > > I have a form of asp message board. When the user enters data and

    clicks
    > > the
    > > > "submit" button, I want both it's page, and the "left" frame to be

    > updated
    > > > with different/same-but-new pages.
    > > >
    > > > How can it be done?
    > > >
    > > > Thanks,
    > > > Doug
    > > >
    > > >

    > >
    > >

    >
    >




  5. #5
    Douglas Guest

    Re: Frames

    Thanks!

    Later,
    Doug

    "Sergey" <skats@sequoianet.com> wrote in message
    news:3a2eaa94$1@news.devx.com...
    > Try this:
    > parent.left.window.location.reload();
    >
    > If it doesn't work, try web.dhtml.general or web.dhtml.scripting news
    > groups, they should know.
    >
    > Sergey.
    >
    > "Douglas" <hot_n_cold_2000@hotmail.com> wrote in message
    > news:3a2e86bb$1@news.devx.com...
    > > Thanks for the reply.
    > >
    > > I am getting "'left' not defined" errors....
    > >
    > > I am using:
    > >
    > > <SCRIPT LANGUAGE="JavaScript">left.window.location.reload();</script>
    > >
    > > with
    > >
    > > <FRAME name="left"...
    > >
    > > What am I doing wrong?
    > >
    > > Thanks,
    > > Doug
    > >
    > > "Sergey" <skats@sequoianet.com> wrote in message
    > > news:3a2e80d7$1@news.devx.com...
    > > > left_frame.window.location.reload();
    > > > where "left_frame" is the name of the frame to be refreshed
    > > >
    > > > if you want to refresh on submit use onSubmit event of the form
    > > >
    > > > <form onsubmit="left_frame.window.location.reload();return true;">
    > > >
    > > > hope this works,
    > > > Sergey.
    > > >
    > > > "Douglas" <hot_n_cold_2000@hotmail.com> wrote in message
    > > > news:3a2e7986@news.devx.com...
    > > > > Hi all,
    > > > >
    > > > > I have a form of asp message board. When the user enters data and

    > clicks
    > > > the
    > > > > "submit" button, I want both it's page, and the "left" frame to be

    > > updated
    > > > > with different/same-but-new pages.
    > > > >
    > > > > How can it be done?
    > > > >
    > > > > Thanks,
    > > > > Doug
    > > > >
    > > > >
    > > >
    > > >

    > >
    > >

    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center