473,320 Members | 1,982 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,320 software developers and data experts.

loading a form on button click (client-side)

hi can anyone show me how to load a simple form (i.e. make its contents
visible) on the click of a button (not in that same form)

regards

marc

Jul 4 '06 #1
4 1627
*** monomaniac21 escribió/wrote (4 Jul 2006 08:45:25 -0700):
hi can anyone show me how to load a simple form (i.e. make its contents
visible) on the click of a button (not in that same form)
My answer would be that you only need to specify the URL in the 'action'
attribute of the 'form' tag and make the button of 'submit' type, but
that's basic HTML, not PHP at all; so I guess I don't understand you :-?

--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
Jul 4 '06 #2

Alvaro G. Vicario wrote:
*** monomaniac21 escribió/wrote (4 Jul 2006 08:45:25 -0700):
hi can anyone show me how to load a simple form (i.e. make its contents
visible) on the click of a button (not in that same form)

My answer would be that you only need to specify the URL in the 'action'
attribute of the 'form' tag and make the button of 'submit' type, but
that's basic HTML, not PHP at all; so I guess I don't understand you :-?

--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
I know that but i want to use a client side function to cut down on
server load (i.e. javascript)

Jul 5 '06 #3
Message-ID: <11**********************@j8g2000cwa.googlegroups. comfrom
monomaniac21 contained the following:
>
I know that but i want to use a client side function to cut down on
server load (i.e. javascript)

So you posted this to comp.lang.php why exactly?
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 5 '06 #4
monomaniac21 wrote:
Alvaro G. Vicario wrote:
>*** monomaniac21 escribió/wrote (4 Jul 2006 08:45:25 -0700):
>>hi can anyone show me how to load a simple form (i.e. make its contents
visible) on the click of a button (not in that same form)
My answer would be that you only need to specify the URL in the 'action'
attribute of the 'form' tag and make the button of 'submit' type, but
that's basic HTML, not PHP at all; so I guess I don't understand you :-?

--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--

I know that but i want to use a client side function to cut down on
server load (i.e. javascript)
Not a php, let alone server-side question, but...

www.quirksmode.org has lots of DHTML (javascript + CSS ) code which
should inspire you enough to write your own solution.

Think along the lines of:
* catching the submit action with javascript
* setting display: none; to display: block; for the form you want to show

Be wary though - if a user has javascript turned off, your actions will
fail.

Good luck,
Juliette
Jul 6 '06 #5

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

Similar topics

3
by: Cary Linkfield | last post by:
I have a standard form I use. It inherits from Windows.Forms.Form. I usually add a Cancel button the form in the designer. I want to raise the Cancel button's Click event when the user presses...
3
by: Scott Schade | last post by:
I have a form onto which I add a control during execution. The control is a control that I wrote. The control has a number of controls on it. I would like to click on a button on the control and...
4
by: Mark Lingen | last post by:
I've found a problem with postback event handling and webcontrol buttons. Try out the following code in an ASP.Net project and you will see. Create a web project in VB.Net and drop this code...
11
by: CW | last post by:
I have message entry screen that's causing me a bit of an issue. At the moment, there are 2 buttons, one is used to send message to another user (btnSend) and another is used to send messages to...
1
by: Martin | last post by:
Hi, I have produced a custom server control that simple outputs a row of 26 buttons, one button for each letter of the english alphabet. now what I would like to do is catch the button click...
16
by: Barry Gilmore | last post by:
Is there a way to disable a button after it is clicked? I am trying to avoid having someone click on it twice while they wait for it to process. Thank you!
1
by: regelcom | last post by:
My son is trying to create an about form button for a form he has already created. Any help would be great. Thanks
17
by: Eric | last post by:
I'm new to JavaScript and I wrote this code to play with. Oddly, if I enter text in a box and then press the button, I only get the onChange event for the text box and not the button's onclick...
5
by: plumba | last post by:
Ok, another query.... I have a checkbox at the bottom of my form which when checked unhides a <div> block which displays the submit button. The problem I have is when the clear form button is...
1
by: daonho | last post by:
I tried to use javascript to trigger up the button click function when user press enter key from the textbox. This function work fine with a single button click such has login page. However, if the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.