DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
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
    > > > >
    > > > >
    > > >
    > > >

    > >
    > >

    >
    >




Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links