473,386 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

question about a button

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?
Nov 18 '05 #1
5 1393
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.
"Bart Schelkens" <BS********@hotmail.com> wrote in message
news:Os**************@TK2MSFTNGP09.phx.gbl...
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?

Nov 18 '05 #2
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" <av*@newsgroups.com> wrote in message
news:Ow**************@TK2MSFTNGP14.phx.gbl...
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.
"Bart Schelkens" <BS********@hotmail.com> wrote in message
news:Os**************@TK2MSFTNGP09.phx.gbl...
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?


Nov 18 '05 #3
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 ?

"avnrao" <av*@newsgroups.com> wrote in message
news:Ow**************@TK2MSFTNGP14.phx.gbl...
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.
"Bart Schelkens" <BS********@hotmail.com> wrote in message
news:Os**************@TK2MSFTNGP09.phx.gbl...
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?


Nov 18 '05 #4
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.

"Bart Schelkens" <BS********@hotmail.com> wrote in message
news:OK**************@TK2MSFTNGP09.phx.gbl...
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" <av*@newsgroups.com> wrote in message
news:Ow**************@TK2MSFTNGP14.phx.gbl...
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.
"Bart Schelkens" <BS********@hotmail.com> wrote in message
news:Os**************@TK2MSFTNGP09.phx.gbl...
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?



Nov 18 '05 #5
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.

"Simon" <an*******@microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
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.

"Bart Schelkens" <BS********@hotmail.com> wrote in message
news:OK**************@TK2MSFTNGP09.phx.gbl...
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" <av*@newsgroups.com> wrote in message
news:Ow**************@TK2MSFTNGP14.phx.gbl...
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.
"Bart Schelkens" <BS********@hotmail.com> wrote in message
news:Os**************@TK2MSFTNGP09.phx.gbl...
> 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?
>
>



Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Franco Gustavo | last post by:
Hi I have a Architecture question. (Put the text on courier new font to understand the graphic) Imagine that you have the next objects: A = Form B = Panel C = ButtonEx inherit from Button D...
1
by: Ralph Krausse | last post by:
I know more html is needed to really produce this but enough is here for me to ask my question. So, this HTML code produce 2 buttons. One button is a HTML control and the other is ASP Web or Server...
14
by: 42 | last post by:
Hi, Stupid question: I keep bumping into the desire to create classes and properties with the same name and the current favored naming conventions aren't automatically differentiating them......
2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
5
by: John | last post by:
Hi, I have an asp.net form where if the user enters an incorect date I change the color of the textbox to red and also display a label field with a message saying the date is invalid. What I...
7
by: angus | last post by:
Dear all, I have 5 textboxes, and 2 buttons in a webform. 1-3 textboxes would be validated by 3 Required Field Validators if button 1 is click; 4-5 textboxes would be validated by 2 Required...
4
by: z. f. | last post by:
Hi, i stated that this is an advanced question because i have a post from few days ago that i received answers to with suggestions that looked good but did not work, so please if you post a...
4
by: Colin McGuire | last post by:
Hi again, thanks everyone for your previous help. But having resolved past problems, I'm moving on to new problems :( This one is a simple winforms application with two buttons, named Button1...
2
by: new coder | last post by:
I'm creating a web app in .net 2005, on the form I allow users to do a search based on the information they selected, then click a button then a grid is populated. So my question is the person that...
5
by: Dave | last post by:
I am new to Visual Web Developer 2005 Expres. I am using absolute positioning and every time I add a button control to my web form its width extends all the way to the edge of the page. IOW I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.