473,656 Members | 2,777 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 2055
Sure,

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

myButton.style. display="none";

myButton.style. display="inline ";

Eliyahu

"MW de Jager" <mw*******@priv atemail.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.co m> wrote in message
news:ua******** ******@TK2MSFTN GP15.phx.gbl...
Sure,

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

myButton.style. display="none";

myButton.style. display="inline ";

Eliyahu

"MW de Jager" <mw*******@priv atemail.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*******@priv atemail.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.co m> wrote in message
news:ua******** ******@TK2MSFTN GP15.phx.gbl...
Sure,

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

myButton.style. display="none";

myButton.style. display="inline ";

Eliyahu

"MW de Jager" <mw*******@priv atemail.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.co m> wrote in message
news:%2******** ********@tk2msf tngp13.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*******@priv atemail.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.co m> wrote in message
news:ua******** ******@TK2MSFTN GP15.phx.gbl...
> Sure,
>
> <input type=button id=myButton value="Press me">
>
> myButton.style. display="none";
>
> myButton.style. display="inline ";
>
> Eliyahu
>
> "MW de Jager" <mw*******@priv atemail.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*******@priv atemail.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.co m> wrote in message
news:%2******** ********@tk2msf tngp13.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*******@priv atemail.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.co m> wrote in message
news:ua******** ******@TK2MSFTN GP15.phx.gbl...
> Sure,
>
> <input type=button id=myButton value="Press me">
>
> myButton.style. display="none";
>
> myButton.style. display="inline ";
>
> Eliyahu
>
> "MW de Jager" <mw*******@priv atemail.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.co m> wrote in message
news:eZ******** ******@TK2MSFTN GP09.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*******@priv atemail.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.co m> wrote in message
news:%2******** ********@tk2msf tngp13.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*******@priv atemail.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.co m> wrote in message
>> news:ua******** ******@TK2MSFTN GP15.phx.gbl...
>> > Sure,
>> >
>> > <input type=button id=myButton value="Press me">
>> >
>> > myButton.style. display="none";
>> >
>> > myButton.style. display="inline ";
>> >
>> > Eliyahu
>> >
>> > "MW de Jager" <mw*******@priv atemail.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
1240
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 if the screen is clicked it goes to PAGE 2. There will be a delay of 3 seconds while it says PLEASE WAIT. PAGE 2 has a one line form (the form has a validation scheme and the OK button will only be able to be pressed once a certain amount of...
2
1183
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 if the screen is clicked it goes to PAGE 2. There will be a delay of 3 seconds while it says PLEASE WAIT. PAGE 2 has a one line form (the form has a validation scheme and the OK button will only be able to be pressed once a certain amount of...
3
31772
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 only? //x.visible = false; // doesn't exist?
7
7221
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
1502
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 is what my OBJECT partially looks like... <OBJECT id="MyActiveXControl" style="Z-INDEX: 104; LEFT: 200px; WIDTH: 132px; POSITION:..." codeBase="http://MyPc/Download/cwui.ocx" classid="clsid:D940..."
2
2673
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 click event of the asp:button working. I then decided to drop an asp:table on the form and then added the three component mentioned above into the asp:table. Now I cannot find a way to set the click even of the asp:button anymore. In fact,...
6
2827
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 details"></asp:ImageButton> <asp:ImageButton ID="CollapseButton" visible="false" runat="server" Font-Size="2" ImageUrl="../images/collapse.jpg" Width="16" Height="16" CommandName="Select" AlternateText="Click here to see...
1
3103
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 the button logout is visible. Otherwise is invisible.
2
1299
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 then remembers the status of that choice by setting a cookie. the technique was taken from here: http://www.exit404.com/2005/57/unobtrusive-persistant-scriptaculous-effects
0
8382
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8297
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8717
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8498
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7311
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5629
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1930
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1600
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.