473,503 Members | 3,171 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting html button invisible

I'm trying to create an html page that will change dynamically. I need to
switch html -buttons between visible and invisible.

Is there any way I can do this with a script?

Regards
MW
Nov 19 '05 #1
6 2049
Sure,

<input type=button id=myButton value="Press me">

myButton.style.display="none";

myButton.style.display="inline";

Eliyahu

"MW de Jager" <mw*******@privatemail.me.uk> wrote in message
news:d8**********@ctb-nnrp2.saix.net...
I'm trying to create an html page that will change dynamically. I need to
switch html -buttons between visible and invisible.

Is there any way I can do this with a script?

Regards
MW

Nov 19 '05 #2
Thanks Eliyahu

I knew you would come up with a quick and easy solution.

Now I have a different problem though. I'm using showModalDialog to display
my html page and I receive a result back from showModalDialog. I would like
to respond to this result immediately in C#, but by the time the user
pressed a button, the pageload of my initial calling page has already fired.

Is there any way to refresh my page once the dialog was closed?

Kind regards

MW

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:ua**************@TK2MSFTNGP15.phx.gbl...
Sure,

<input type=button id=myButton value="Press me">

myButton.style.display="none";

myButton.style.display="inline";

Eliyahu

"MW de Jager" <mw*******@privatemail.me.uk> wrote in message
news:d8**********@ctb-nnrp2.saix.net...
I'm trying to create an html page that will change dynamically. I need
to
switch html -buttons between visible and invisible.

Is there any way I can do this with a script?

Regards
MW


Nov 19 '05 #3
MW,

This time I am not in luck. I don't get what exactly you want to achieve.

Can you elaborate your scenario?

The calling page client side calls showModalDialog,
The calling page client side gets result back,
You want to get the result in the calling page server-side
???

Eliyahu

"MW de Jager" <mw*******@privatemail.me.uk> wrote in message
news:d8**********@ctb-nnrp2.saix.net...
Thanks Eliyahu

I knew you would come up with a quick and easy solution.

Now I have a different problem though. I'm using showModalDialog to display my html page and I receive a result back from showModalDialog. I would like to respond to this result immediately in C#, but by the time the user
pressed a button, the pageload of my initial calling page has already fired.
Is there any way to refresh my page once the dialog was closed?

Kind regards

MW

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:ua**************@TK2MSFTNGP15.phx.gbl...
Sure,

<input type=button id=myButton value="Press me">

myButton.style.display="none";

myButton.style.display="inline";

Eliyahu

"MW de Jager" <mw*******@privatemail.me.uk> wrote in message
news:d8**********@ctb-nnrp2.saix.net...
I'm trying to create an html page that will change dynamically. I need
to
switch html -buttons between visible and invisible.

Is there any way I can do this with a script?

Regards
MW



Nov 19 '05 #4
Correct.

I am getting the result on the server side in a hidden component. The
problem is, I want server side to do something immediately on receiving the
result back.

Here is the scenario:
Say you have a page where the user flags a number of items for deletion. If
he flags all of them, you popup a dialog to confirm deleting all the items
on the page. If he clicks yes, server side needs to know that immediately,
to start processing.

I cannot do this from client side, unless I can find a way to fire the
pageload or a refresh of some kind from the client side code.
Is there another way to do this that I'm missing?

Kind regards
MW

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
MW,

This time I am not in luck. I don't get what exactly you want to achieve.

Can you elaborate your scenario?

The calling page client side calls showModalDialog,
The calling page client side gets result back,
You want to get the result in the calling page server-side
???

Eliyahu

"MW de Jager" <mw*******@privatemail.me.uk> wrote in message
news:d8**********@ctb-nnrp2.saix.net...
Thanks Eliyahu

I knew you would come up with a quick and easy solution.

Now I have a different problem though. I'm using showModalDialog to

display
my html page and I receive a result back from showModalDialog. I would

like
to respond to this result immediately in C#, but by the time the user
pressed a button, the pageload of my initial calling page has already

fired.

Is there any way to refresh my page once the dialog was closed?

Kind regards

MW

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:ua**************@TK2MSFTNGP15.phx.gbl...
> Sure,
>
> <input type=button id=myButton value="Press me">
>
> myButton.style.display="none";
>
> myButton.style.display="inline";
>
> Eliyahu
>
> "MW de Jager" <mw*******@privatemail.me.uk> wrote in message
> news:d8**********@ctb-nnrp2.saix.net...
>> I'm trying to create an html page that will change dynamically. I
>> need
>> to
>> switch html -buttons between visible and invisible.
>>
>> Is there any way I can do this with a script?
>>
>> Regards
>> MW
>>
>>
>
>



Nov 19 '05 #5
Call myForm.submit() on the client. This will post back to the server. You
can communicate any extra information to the server in other hidden fields.
For example, you might want to tell the server that you want it to delete
items. Allocate a hidden input for "action code" like "delete" etc.

Eliyahu

"MW de Jager" <mw*******@privatemail.me.uk> wrote in message
news:d8**********@ctb-nnrp2.saix.net...
Correct.

I am getting the result on the server side in a hidden component. The
problem is, I want server side to do something immediately on receiving the result back.

Here is the scenario:
Say you have a page where the user flags a number of items for deletion. If he flags all of them, you popup a dialog to confirm deleting all the items
on the page. If he clicks yes, server side needs to know that immediately, to start processing.

I cannot do this from client side, unless I can find a way to fire the
pageload or a refresh of some kind from the client side code.
Is there another way to do this that I'm missing?

Kind regards
MW

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
MW,

This time I am not in luck. I don't get what exactly you want to achieve.
Can you elaborate your scenario?

The calling page client side calls showModalDialog,
The calling page client side gets result back,
You want to get the result in the calling page server-side
???

Eliyahu

"MW de Jager" <mw*******@privatemail.me.uk> wrote in message
news:d8**********@ctb-nnrp2.saix.net...
Thanks Eliyahu

I knew you would come up with a quick and easy solution.

Now I have a different problem though. I'm using showModalDialog to

display
my html page and I receive a result back from showModalDialog. I would

like
to respond to this result immediately in C#, but by the time the user
pressed a button, the pageload of my initial calling page has already

fired.

Is there any way to refresh my page once the dialog was closed?

Kind regards

MW

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:ua**************@TK2MSFTNGP15.phx.gbl...
> Sure,
>
> <input type=button id=myButton value="Press me">
>
> myButton.style.display="none";
>
> myButton.style.display="inline";
>
> Eliyahu
>
> "MW de Jager" <mw*******@privatemail.me.uk> wrote in message
> news:d8**********@ctb-nnrp2.saix.net...
>> I'm trying to create an html page that will change dynamically. I
>> need
>> to
>> switch html -buttons between visible and invisible.
>>
>> Is there any way I can do this with a script?
>>
>> Regards
>> MW
>>
>>
>
>



Nov 19 '05 #6
Hi Eliyahu

I now know how they make those miserable little popups that refuse to close
on some of those seedy websites. I forgot to set my hidden control that
starts the whole thing, back to null. Anyway fixed it and now its working
beautifully!

Thanks again, your help is very much appreciated.

Kind regards
MW
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:eZ**************@TK2MSFTNGP09.phx.gbl...
Call myForm.submit() on the client. This will post back to the server. You
can communicate any extra information to the server in other hidden
fields.
For example, you might want to tell the server that you want it to delete
items. Allocate a hidden input for "action code" like "delete" etc.

Eliyahu

"MW de Jager" <mw*******@privatemail.me.uk> wrote in message
news:d8**********@ctb-nnrp2.saix.net...
Correct.

I am getting the result on the server side in a hidden component. The
problem is, I want server side to do something immediately on receiving

the
result back.

Here is the scenario:
Say you have a page where the user flags a number of items for deletion.

If
he flags all of them, you popup a dialog to confirm deleting all the
items
on the page. If he clicks yes, server side needs to know that

immediately,
to start processing.

I cannot do this from client side, unless I can find a way to fire the
pageload or a refresh of some kind from the client side code.
Is there another way to do this that I'm missing?

Kind regards
MW

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
> MW,
>
> This time I am not in luck. I don't get what exactly you want to achieve. >
> Can you elaborate your scenario?
>
> The calling page client side calls showModalDialog,
> The calling page client side gets result back,
> You want to get the result in the calling page server-side
> ???
>
> Eliyahu
>
> "MW de Jager" <mw*******@privatemail.me.uk> wrote in message
> news:d8**********@ctb-nnrp2.saix.net...
>> Thanks Eliyahu
>>
>> I knew you would come up with a quick and easy solution.
>>
>> Now I have a different problem though. I'm using showModalDialog to
> display
>> my html page and I receive a result back from showModalDialog. I would
> like
>> to respond to this result immediately in C#, but by the time the user
>> pressed a button, the pageload of my initial calling page has already
> fired.
>>
>> Is there any way to refresh my page once the dialog was closed?
>>
>> Kind regards
>>
>> MW
>>
>> "Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
>> news:ua**************@TK2MSFTNGP15.phx.gbl...
>> > Sure,
>> >
>> > <input type=button id=myButton value="Press me">
>> >
>> > myButton.style.display="none";
>> >
>> > myButton.style.display="inline";
>> >
>> > Eliyahu
>> >
>> > "MW de Jager" <mw*******@privatemail.me.uk> wrote in message
>> > news:d8**********@ctb-nnrp2.saix.net...
>> >> I'm trying to create an html page that will change dynamically. I
>> >> need
>> >> to
>> >> switch html -buttons between visible and invisible.
>> >>
>> >> Is there any way I can do this with a script?
>> >>
>> >> Regards
>> >> MW
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Nov 19 '05 #7

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

Similar topics

4
1229
by: Jonathan (Pickles) Sklan-Willis | last post by:
I need several things in HTML or Javascript. It canNOT be a server side script, it is for a standalone project in HTML ONLY! PAGE 1 is a simple blank page where there will be an on.click so that...
2
1174
by: Jonathan (Pickles) Sklan-Willis | last post by:
I need several things in HTML or Javascript. It canNOT be a server side script, it is for a standalone project in HTML ONLY! PAGE 1 is a simple blank page where there will be an on.click so that...
3
31768
by: FantaJ | last post by:
Hi, Is it possible to make a html button invisible using javascript? I can certainly disable it: var x=document.getElementById('button2'); x.disabled=true; //x.type = 'hidden'; // read...
7
7202
by: Geoff Cox | last post by:
Hello, I have a button which I wish to be invisible at the end of an application. How do delete it or simply make it invisible? Cheers Geoff
2
1494
by: VB Programmer | last post by:
In HTML how can I set an OBJECT to be invisible? I know if it was a label I could do this just set Visible="False", like this... (after id) <asp:label id="lblStatus" visible="False"...> This...
2
2645
by: Kevin | last post by:
I am just learning asp.net and ran into a problem that I have not been able to resolve. I have a web form with an html table that houses an asp:label, asp:textbox and asp:button within. I had the...
6
2803
by: tshad | last post by:
I have 2 buttons: <asp:ImageButton ID="ExpandButton" runat="server" Font-Size="2" ImageUrl="../images/expand.jpg" Width="16" Height="16" CommandName="Select" AlternateText="Click here to see...
1
3095
by: shapper | last post by:
Hello, I have a link button which signs out the user when it is clicked. I place on by button the code line ibLogout.Visible = My.User.IsAuthenticated. So, when the user is authenticated...
2
1287
by: anathema | last post by:
this is not specifically behaviour related, but i thought i would risk asking anyway. i am working on a script that triggers a blind down or blind up effect by clicking on a particular link. it...
0
7188
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
7063
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
7313
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...
1
6970
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5558
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4987
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3146
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1489
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
366
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.