DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 6 of 6

Thread: Subform function for an ASP page

  1. #1
    Craig Guest

    Subform function for an ASP page

    Hi

    I have a page that collects data for a master table and a child table. At
    the moment I add data to the child table by opening another window,
    collecting the data, and then updating the main page. This is a bit of a
    pain for the users and also means I have to put extra code in to make sure
    the child window has been closed and saved etc.

    In Access and VB you can have subforms. I was wondering how similar
    functionality could be achieved for an ASP page. I've seen a Data Repeater
    written in ActiveX, but I don't want my application to be browser specific.

    Thanks for your help.



  2. #2
    Jon Jackson Guest

    Re: Subform function for an ASP page


    You could use client side javascript to:

    a. open a form in an addtional window
    b. in the onLoad event(javascript) of the new window, set it's size, etc.
    c. in the new page, have a close button, and attach some inline script to
    copy the form values from the child window to some hidden form elements in
    the calling window.

    Post back here if you have any thoughts on the matter..

    Jon Jackson
    no_spam.jonj@osas.com
    "Craig" <nospam@paradise.net.nz> wrote:
    >Hi
    >
    >I have a page that collects data for a master table and a child table.

    At
    >the moment I add data to the child table by opening another window,
    >collecting the data, and then updating the main page. This is a bit of

    a
    >pain for the users and also means I have to put extra code in to make sure
    >the child window has been closed and saved etc.
    >
    >In Access and VB you can have subforms. I was wondering how similar
    >functionality could be achieved for an ASP page. I've seen a Data Repeater
    >written in ActiveX, but I don't want my application to be browser specific.
    >
    >Thanks for your help.
    >
    >



  3. #3
    Craig Guest

    Re: Subform function for an ASP page

    Unfortunately, that's what I'm doing at the moment. I was hoping there was
    someway to do it all in one page.
    "Jon Jackson" <jonj@osas.com> wrote in message
    news:39a6bcb1$1@news.devx.com...
    >
    > You could use client side javascript to:
    >
    > a. open a form in an addtional window
    > b. in the onLoad event(javascript) of the new window, set it's size, etc.
    > c. in the new page, have a close button, and attach some inline script to
    > copy the form values from the child window to some hidden form elements in
    > the calling window.
    >
    > Post back here if you have any thoughts on the matter..
    >
    > Jon Jackson
    > no_spam.jonj@osas.com
    > "Craig" <nospam@paradise.net.nz> wrote:
    > >Hi
    > >
    > >I have a page that collects data for a master table and a child table.

    > At
    > >the moment I add data to the child table by opening another window,
    > >collecting the data, and then updating the main page. This is a bit of

    > a
    > >pain for the users and also means I have to put extra code in to make

    sure
    > >the child window has been closed and saved etc.
    > >
    > >In Access and VB you can have subforms. I was wondering how similar
    > >functionality could be achieved for an ASP page. I've seen a Data

    Repeater
    > >written in ActiveX, but I don't want my application to be browser

    specific.
    > >
    > >Thanks for your help.
    > >
    > >

    >




  4. #4
    Dean Guest

    Re: Subform function for an ASP page


    You could use an I-Frame, which is a window inside your window. It will allow
    you to download a separet page and place it in your main page.


    "Craig" <nospam@paradise.net.nz> wrote:
    >Hi
    >
    >I have a page that collects data for a master table and a child table.

    At
    >the moment I add data to the child table by opening another window,
    >collecting the data, and then updating the main page. This is a bit of

    a
    >pain for the users and also means I have to put extra code in to make sure
    >the child window has been closed and saved etc.
    >
    >In Access and VB you can have subforms. I was wondering how similar
    >functionality could be achieved for an ASP page. I've seen a Data Repeater
    >written in ActiveX, but I don't want my application to be browser specific.
    >
    >Thanks for your help.
    >
    >



  5. #5
    Craig Guest

    Re: Subform function for an ASP page

    I've never used an I-Frame before. Is it cross-browser compatible (NN4+ and
    IE4+)? Where is a good source for more information on I-Frame? Thanks.

    "Dean" <andersond@home.com> wrote in message
    news:39a6ea39$1@news.devx.com...
    >
    > You could use an I-Frame, which is a window inside your window. It will

    allow
    > you to download a separet page and place it in your main page.
    >
    >
    > "Craig" <nospam@paradise.net.nz> wrote:
    > >Hi
    > >
    > >I have a page that collects data for a master table and a child table.

    > At
    > >the moment I add data to the child table by opening another window,
    > >collecting the data, and then updating the main page. This is a bit of

    > a
    > >pain for the users and also means I have to put extra code in to make

    sure
    > >the child window has been closed and saved etc.
    > >
    > >In Access and VB you can have subforms. I was wondering how similar
    > >functionality could be achieved for an ASP page. I've seen a Data

    Repeater
    > >written in ActiveX, but I don't want my application to be browser

    specific.
    > >
    > >Thanks for your help.
    > >
    > >

    >




  6. #6
    Craig Guest

    Re: Subform function for an ASP page

    Just found that I-Frame isn't NN4 compatible, so that isn't an option.
    "Craig" <nospam@paradise.net.nz> wrote in message
    news:39a71620@news.devx.com...
    > I've never used an I-Frame before. Is it cross-browser compatible (NN4+

    and
    > IE4+)? Where is a good source for more information on I-Frame? Thanks.
    >
    > "Dean" <andersond@home.com> wrote in message
    > news:39a6ea39$1@news.devx.com...
    > >
    > > You could use an I-Frame, which is a window inside your window. It will

    > allow
    > > you to download a separet page and place it in your main page.
    > >
    > >
    > > "Craig" <nospam@paradise.net.nz> wrote:
    > > >Hi
    > > >
    > > >I have a page that collects data for a master table and a child table.

    > > At
    > > >the moment I add data to the child table by opening another window,
    > > >collecting the data, and then updating the main page. This is a bit of

    > > a
    > > >pain for the users and also means I have to put extra code in to make

    > sure
    > > >the child window has been closed and saved etc.
    > > >
    > > >In Access and VB you can have subforms. I was wondering how similar
    > > >functionality could be achieved for an ASP page. I've seen a Data

    > Repeater
    > > >written in ActiveX, but I don't want my application to be browser

    > specific.
    > > >
    > > >Thanks for your help.
    > > >
    > > >

    > >

    >
    >




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