SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Jul 2003
    Location
    Singapore
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    refresh form in another iframe

    I have 2 iframes, the first that displays some dynamic content.
    The 2nd frame contains a form that has some textboxes for my users to enter content.

    Upon form submit, the form is posted to the 1st iframe and the page refreshed. I would like to clear all the textfields in the 2nd iframe. Any suggestions from anybody?

  2. #2
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In the document in the first frame

    <body onload="top.frames['2ndFrameName'].forms['formName'].reset();">
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev





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
  •