473,666 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

without pressing any buttons???

Hi,

I have a page with 4 radiobuttons on it and no buttons on it. I want
to post the value of the selected radio button to the other page
without pressing any buttons (with only selecting the radio button)
How can I accomplish this??? I made a code block like below but
couldn't make it work???

Thank you,
Cem Louis

<html>
<head>
</head>
<SCRIPT LANGUAGE="Javas cript">
function Submit(){
document.getEle mentById("form1 ").Submit()
}
</SCRIPT>
<form name="form1" method="post" action="process .php">
<input name="radiobutt on" type="radio" value="radiobut ton"
onClick="Submit ()">Apple<br>
<input name="radiobutt on" type="radio" value="radiobut ton"
onClick="Submit ()">Banana<br >
<input name="radiobutt on" type="radio" value="radiobut ton"
onClick="Submit ()">Peach<br>
<input name="radiobutt on" type="radio" value="radiobut ton"
onClick="Submit ()">Melon
</form>
Jul 23 '05 #1
2 1562
"Cem Louis" <ce******@phrea ker.net> wrote in message
news:12******** *************** ***@posting.goo gle.com...
Hi,

I have a page with 4 radiobuttons on it and no buttons on it. I want
to post the value of the selected radio button to the other page
without pressing any buttons (with only selecting the radio button)
How can I accomplish this??? I made a code block like below but
couldn't make it work???

Thank you,
Cem Louis

<html>
<head>
</head>
<SCRIPT LANGUAGE="Javas cript">
function Submit(){
document.getEle mentById("form1 ").Submit()
}
</SCRIPT>
<form name="form1" method="post" action="process .php">
<input name="radiobutt on" type="radio" value="radiobut ton"
onClick="Submit ()">Apple<br>
<input name="radiobutt on" type="radio" value="radiobut ton"
onClick="Submit ()">Banana<br >
<input name="radiobutt on" type="radio" value="radiobut ton"
onClick="Submit ()">Peach<br>
<input name="radiobutt on" type="radio" value="radiobut ton"
onClick="Submit ()">Melon
</form>


Try lowercase "s" for ".submit()" .
Jul 23 '05 #2
Ivo
"McKirahan" wrote
"Cem Louis" wrote
<input name="radiobutt on" type="radio" value="radiobut ton"
onClick="Submit ()">Melon
</form>


Try lowercase "s" for ".submit()" .


And just for the sake of completeness and crossbrowsernes s, you might
as well write it in full:

onclick=" this.form.submi t(); "

--
Ivo


Jul 23 '05 #3

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

Similar topics

2
2018
by: VK | last post by:
A while ago there was a discussion how to implement a select list that would call a function right upon new selection is being made w/o clicking any additional buttons: <http://groups-beta.google.com/group/comp.lang.javascript/browse_frm/thread/aa4a8da635e42592/ba2c264d6a9b3558?q=drag+group:comp.lang.javascript+author:VK&rnum=2&hl=en#ba2c264d6a9b3558> The main issue was to overcome IE's accessibility bug: if user scrolls the list using...
3
1450
by: Dan Brussee | last post by:
I have a form with 2 or more buttons. How do I control which one will fire when I press the Enter key? In traditional ASP, I could create 2 or more forms, each with their own Submit buttons. Since there is only one form, how do I control which of the submit buttons will fire?
2
7184
by: Cindy | last post by:
Hi all you smarties out there, I'm having a little conundrum with my asp.net page Scenario: I have a form (asp.net) with no code behind (as yet). I have placed a javascript function on a server side textbox control to do something - eg change the words on label - when the key pressed is the "enter" key. I can see the label change to what i expect ----- BUT .... then the
2
1689
by: Ersin Gençtürk | last post by:
I show errors as popup boxes via alert() but I write this scripts in header of html page.So if there is an error on the server side , in the next postback a popup shows the error via alert , this works fine.But when user presses the back button then the former error messages appear ,because pages are loaded from the cache.I need to find a way in javascript if a page is loaded from server or navigated to page by pressing back or forward...
1
1532
by: George Homorozeanu | last post by:
Hi, I have an ASP.Net Page with some control on it (buttons, textboxes, calender, etc). When I'm changing the text in the textbox I want to run some code and change the date of the calendar. The problem is that when I press enter, the code for the button event is called. It looks like the button is the default action for pressing enter somewhere on the page. How can I change that? The button is an asp button. Thanks,
2
5350
by: Asterbing | last post by:
Hi all. I'm trying and don't succeed to include an HTML page into another without any border nor visible scroll-bar. Even if I would like something which will work under Netscape too, at this point, my tests are made under IE6 with the following HTML files, using <object>, <embed> and <iframe> : The main HTML page : ******************** <html> <head>
1
2492
by: GlennMBella2 | last post by:
this is probably basic, however I ahve a form with number of buttons and upon pressing certain buttons as part of hte buttons press function, i would like to update a table (communications) with basic information. eg, pressing teh EMAIL button , after sending a outlook message i want funtion to update the table with current date.time pdatetimefield], also then a text field in table with "EMAILED"
18
3941
by: Shocky | last post by:
Hi there, I am trying to detect whether my IE6 users have pressed both right and left mouse buttons simultaneously in my Javascript code, by using: if(event.button==3) {alert("Both right and left mouse buttons pressed");} I am calling the above code on mousedown or mouseup events.
0
955
by: John Sheppard | last post by:
Hello there, I was wondering if anyone knew how to close a form when the user presses the esc key. I dont have any buttons on the form so I cannot use the cancelButton property of the form. I have tried using the forms keypressed event but it doesnt seem to be firing. Does anyone have any suggestins? Thank you
0
8356
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
8781
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
8550
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
8639
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6192
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5663
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
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4366
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1772
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.