473,408 Members | 2,832 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,408 software developers and data experts.

form button onclick and hide result

Problem: I want to send an URL via button but i don't want to get the result.

At the moment i use this form to send the URL, which enables a control unit:
<form><input type=button value="switch on"
onclick="location='cgi-bin/writeVal.exe?PLCO2+0';"></form>

As result i see a new page with "0" or "1", which i'd like to hide.
What can i do to send the URL without getting the result to the browser ?

Thanks,
Jul 23 '05 #1
5 1969
"Daniel H." wrote:
Problem: I want to send an URL via button but i don't want to get the result.

At the moment i use this form to send the URL, which enables a control unit:
<form><input type=button value="switch on"
onclick="location='cgi-bin/writeVal.exe?PLCO2+0';"></form>

As result i see a new page with "0" or "1", which i'd like to hide.
What can i do to send the URL without getting the result to the browser ?

Thanks,


You could write the value to a cookie and retrieve it on the next page, but at
some point the browser still has to know what the value is that is being written.

--
| Grant Wagner <gw*****@agricoreunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Jul 23 '05 #2
Daniel H. wrote:
Problem: I want to send an URL via button but i don't want to get the result.

At the moment i use this form to send the URL, which enables a control unit:
<form><input type=button value="switch on"
onclick="location='cgi-bin/writeVal.exe?PLCO2+0';"></form>

As result i see a new page with "0" or "1", which i'd like to hide.
[...]


This is (bordering to) a FAQ, please search before you post.
Ask Google (Groups) for "XMLHttp OR XMLHTTPRequest" (sic!).
HTH

PointedEars
Jul 23 '05 #3
Thomas 'PointedEars' Lahn wrote:
Daniel H. wrote:

Problem: I want to send an URL via button but i don't want to get the result.

At the moment i use this form to send the URL, which enables a control unit:
<form><input type=button value="switch on"
onclick="location='cgi-bin/writeVal.exe?PLCO2+0';"></form>

As result i see a new page with "0" or "1", which i'd like to hide.
[...]

This is (bordering to) a FAQ, please search before you post.
Ask Google (Groups) for "XMLHttp OR XMLHTTPRequest" (sic!).


And before you refer someone to Google, why not refer them to the
HTTPRequest references in the FAQ?

http://www.jibbering.com/faq/#FAQ4_38

Which leads to:

http://jibbering.com/2002/4/httprequest.html
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/
Jul 23 '05 #4
On Wed, 19 May 2004 15:48:48 -0400, Randy Webb
<hi************@aol.com> wrote:
Thomas 'PointedEars' Lahn wrote:
Which leads to:

http://jibbering.com/2002/4/httprequest.html


I believe it's somewhat out of date now, and may not even be correct
for Mozilla (and safari?)

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 23 '05 #5
Jim Ley wrote:
On Wed, 19 May 2004 15:48:48 -0400, Randy Webb
<hi************@aol.com> wrote:


Please ...
Thomas 'PointedEars' Lahn wrote:
Which leads to:

http://jibbering.com/2002/4/httprequest.html


I believe it's somewhat out of date now, and may not even be correct
for Mozilla (and safari?)


WFM. Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a)
Gecko/20040513 Firefox/0.8.0+

See <http://www.mozilla.org/xmlextras/>.
PointedEars
Jul 23 '05 #6

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

Similar topics

1
by: Building Blocks | last post by:
Hi, All I need is a simle calculate form script which contains this: A script that can handle text input, radio buttons, checkboxes, and dropdowns. Each one of these variables will contain a...
4
by: multimatum2 | last post by:
Hello, I need to enable/disable input text forms... But... I need to have the same style (color...) in both modes.. Could you help me ? Thanx a lot A small sample... ...
4
by: pizzy | last post by:
INTRO: I tried to clean it up for easy reading. I hope I didn't make any mistakes. PROBLEM: WOW, this is some crazy sh!t. I can't get my checkbox (see "TAGSELECTED") to print my textboxes (see...
4
by: jerryyang_la1 | last post by:
I've found this script that allows be to hide/show form elements.. <script language="JavaScript"><!-- var toggle = true; function show(object) { if (document.layers && document.layers)...
3
by: jeff29_b | last post by:
I am having a strange problem on a web form. I have an image button with an OnClick event handler. When I click the image the event isn't being called in the code behind when browsing in firefox....
11
by: Zytan | last post by:
I have created a new form from the main form. When I close the main form with the 'x' close button, its Form.FormClosed event is run, but not the dialog's. Is this normal? It is ok /...
19
by: zacks | last post by:
I have a .NET 2.0 MDI application where the child form has a Tab Control. Each of the Tab in the Tab Control has a Validating event to handle what it should do when the user changes tabs. But...
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...
0
bmallett
by: bmallett | last post by:
First off, i would like to thank everyone for any and all help with this. That being said, I am having a problem retrieving/posting my dynamic form data. I have a form that has multiple options...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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
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...
0
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,...
0
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...

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.