question about a button

  • Thread starter Thread starter Bart Schelkens
  • Start date Start date
B

Bart Schelkens

Hi,

I have this website that consists of 2 frames.
In my leftFrame I have a button that performs some actions.
In my rightFrame I display a table or some textboxes.

I the action of the button was successful i want to display the textboxes,
otherwise i need to display the table.

I can't get this to work.
Can anyone help me?
 
since you have implemented frames, you have to use client side scripting to
get this done.
do this in javascript :

if(buttonActionSuccessful)
{
window.top.document.frames("secondFrame").document.forms("yourForm").textBox.visible
= true;
}

Av.
 
there is no vb.net way to do this?
I actually just want to refresh the mainFrame with my form.
I write some values in a cookie and when the form is loaded, it checks the
cookie for that certain value.
 
avnrao is right - doing stuff in other windows or frames must be
client-side...

window.open('fred.aspx','rightframe');

Also you should consider using Session rather than cookies to pass stuff
between pages.
 
There is no way for me to write something like :

window.top.frames("secondFrame").document.refresh
or
window.top.frames("secondFrame").document.reload

i'm depending on a cookie to display the correct fields ?
 
OK, I've put this in the onclick-event of my button.
The problem now is that he first performs the java-script and then the
actions i've put in the click-event in my form.

The button is a login-button.
When the user is logged in and has the proper rights my right frame should
display the form in administration-mode, otherwise the form is shown in
display-mode.
 
Back
Top