thanks, would you be able to tell me how to post a value to a textbox using html or asp without using on click or any javascript please?
Main Topics
Browse All Topicshi I would like to use onclick to post a value to a textbox without using a javascript function is it possible?
thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
hi
<html>
<head>
<title></title>
<script type="text/javascript" language="javascript"><!--
fu
{
var MyElement = document.getElementById("M
MyElement.value = "If you see this, it worked!";
return true;
}
//--></script>
</head>
<body
<br><br>
<center
<img src="my_image.gif" alt="Click Me!" onclick="ChgText()" />
<br><br><br>
<input type="text" size="35" id="MyTextBox" value="" />
</center>
</body>
</html>
@Senz79: The asker is looking for a non-Javascript way of doing this.
@ac_davis2002: The bottom line is...It can't be done. Pages will only go back to a server when the browser tells the page to do so. There are only two ways to get a browser to send a page back to a server... Have a user click on a submit button or a link...and the other way is to have javascript code send information back to the server.
Also, there are only two ways to modify HTML objects on a page. 1) Have the server create (or re-create) the page and send it to the browser or 2) Have client-side script make modifications to the page.
You could use VBScript to do it (so you're not using JavaScript) but then your page would ONLY work correctly on Internet Explorer.
Depending on what exactly you wanted to do, you could 'cheat' a little bit. Say you had a couple of radio buttons, and you wanted a text field filled in with what was in the radio button....
Each button would have the code below for it. The image button causes the page to be submitted to the server. Then, the server could see which hidden variable was sent and fill in the text field and send the page back to the client.
Inefficient, but workable in some circumstances.
Seriously, what is wrong with JavaScript? My personal opintion as a web developer is that I have LOOOOONG since stopped caring if my site worked with and without JavaScript. Anyone who disables javascript is missing out on quite a bit of functionality on the Web. (AJAX comes to mind....)
Business Accounts
Answer for Membership
by: CCongdonPosted on 2009-11-03 at 06:11:08ID: 25729059
No. OnClick *IS* a javascript call. Even in .NET, all OnClick does is trigger some client-side javascript to post the page back.
Apparently if you're using TYPO3 Formidable there might be a way
http://formidable.typo3 .ug/pasteb in/snippet /100.html