Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: Frames: Updating 2 page with the one click.


Message #1 by "chung hoang" <s9708970@y...> on Fri, 30 Mar 2001 16:03:14
Chung,

You can have a javascript function which you will call on submit. In that 
function you first change the image in the left frame and then assign your 
asp page to the form action and you can either call the submit right away 
yourself and you will get both things happened.

My example is in VBScript but I hope you get the idea.

Anthony


<form name=3D"frmChangeLogin" method=3D"post" action=3D"AssignPath()">
    <table width=3D"600" height=3D"182">
      <tr valign=3D"top" align=3D"left">
        <td width=3D"413" height=3D"115"> <b><font size=3D"4" face=3D"arial
" color=3D"steelblue"><i>Enter Your New password and Confirm the new 
Password And Click Submit</i></font></b><br>
          <br>
          <b><b>
          <table bgcolor=3D"steelblue" width=3D"400">
            <tr>
              <td>
                <table bgcolor=3D"steelblue" width=3D"457" border=3D"0">
                 
                  <tr>
                    <td width=3D"127"><b><font color=3D"white">User 
Name:</font></b></td>
                    <td width=3D"320"><b>
						<input class=3D"editfld" 
name=3D"UserName" style=3D"HEIGHT: 22px; WIDTH: 266px"> </b>
                    </td>
                  </tr>
                  <tr>
                    <td width=3D"127"><b><font color=3D"white">Password:</f
ont></b></td>
                    <td width=3D"320"><b>
                      <input class=3D"editfld" type=3D"password" name=3D"Pa
ssword" size=3D"50" style=3D"HEIGHT: 22px; WIDTH: 266px"> 
                      </b></td>
                  </tr>
                  <tr>
                    <td width=3D"127"><b><font color=3D"white">New 
Password:</font></b></td>
                    <td width=3D"320"><b>
						<input class=3D"editfld" 
name=3D"newpassword" style=3D"HEIGHT: 22px; WIDTH: 266px"> </b>
					</td>
                  </tr>
                  <tr>
                    <td width=3D"127"><b><font color=3D"white">Confirm 
Password:</font></b></td>
                    <td width=3D"320"><b>
                      <input class=3D"editfld" type=3D"password" name=3D"Co
nfirmPassword" size=3D"50" style=3D"HEIGHT: 22px; WIDTH: 266px"> 
                      </b></td>
                  </tr>
                  <tr>
                    <td width=3D"127"><b><font color=3D"white"></font></b><
/td>
                    <td width=3D"320"><b>
                      <input class=3D"butn" type=3D"submit" name=3D"Submit"
 value=3D"Submit">
					  <input class=3D"butn" type=3D"res
et" name=3D"Reset" value=3D"Cancel" onClick=3D"CancelPage()">
                      </b>
                      </td>
                  </tr>
                 
                </table>
              </td>
            </tr>
          </table></b></b></td>         
      </tr>     
    </table>

</form>

</center>

</body>

</html>

<script language=3D"VBSCRIPT">
Function AssignPath()
		if frmChangeLogin.UserName.value <> "" or frmChangeLogin.Pa
ssword.value <> "" or frmChangeLogin.NewPassword.value <> ""               
  frmChangeLogin.ConfirmPassword.value <> "" then
	'Here is where you will add code to change the image in the left 
frame=09
	frmChangeLogin.action =3D "Pricing.asp"	=09
		else
			frmChangeLogin.action =3D "Redirect.asp"
		end if
	end function
</script>



>>> "chung hoang" <s9708970@y...> 03/30 4:03 PM >>>


Hi there,

   I am not sure if this is a javascript problem or html, however here 
goes.
   I amm designing a home page with two frames, one on the left column for 
navgating
   and one on the right, the main page. For my navigation I have used 
buttons (images),
   the thing is that I want a button(image) highlighted on a particaular 
link I go to, and also
   the main page to change to what ever I have clicked on.

   In another words, I want two things to be updates with the one click. 
Say I click on
   PRICING link (which is an image, on the left frame,......currently the 
Home image is
   highlighted),  I want the Pricing to be highlighted and aslo the main 
page to change to the
   Pricing page.

   I was just wondering if there is a way for me to do this,

  Thanks heaps

  regards

  Chung

To unsubscribe send a blank email to leave-html_code_clinic-486482O@p...
x.com



  Return to Index