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

Need form onClick output to be on the same page as the form

Hi

I have forgotten how to do this.

Got a <form ... >
with
<input type="button" name="Hit Me" onclick="whatever()">
</form>

The output of the Javascript function 'whatever' appears on a separate
page.

I need it to go below the form on the same page.

Help.

John

Mar 8 '06 #1
7 3246
"John" <jo**@heathdrive.com> wrote in message
news:OI********************@eclipse.net.uk...
Hi

I have forgotten how to do this.

Got a <form ... >
with
<input type="button" name="Hit Me" onclick="whatever()">
</form>

The output of the Javascript function 'whatever' appears on a separate
page.

I need it to go below the form on the same page.

Help.


Show us "function whatever()".
Mar 8 '06 #2

"John" <jo**@heathdrive.com> wrote in message
news:OI********************@eclipse.net.uk...
Hi

I have forgotten how to do this.

Got a <form ... >
with
<input type="button" name="Hit Me" onclick="whatever()">
</form>

The output of the Javascript function 'whatever' appears on a separate
page.

I need it to go below the form on the same page.

Help.

John


If you put a text area on the page, you can put the output in it.
Mar 9 '06 #3
Hi

Thanks. I just to need to output a reply so an already defined text area
will do it.
I knew there was an obvious way to do it.

Thanks.

John
Mar 9 '06 #4
JRS: In article <e7********************@comcast.com>, dated Wed, 8 Mar
2006 14:41:00 remote, seen in news:comp.lang.javascript, McKirahan
<Ne**@McKirahan.com> posted :
"John" <jo**@heathdrive.com> wrote in message
news:OI********************@eclipse.net.uk...
I have forgotten how to do this.

Got a <form ... >
with
<input type="button" name="Hit Me" onclick="whatever()">
</form>

The output of the Javascript function 'whatever' appears on a separate
page.

I need it to go below the form on the same page.

Show us "function whatever()".


If you had read and understood the newsgroup FAQ, you could have given a
useful answer.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Mar 9 '06 #5
"Dr John Stockton" <jr*@merlyn.demon.co.uk> wrote in message
news:3+**************@merlyn.demon.co.uk...
JRS: In article <e7********************@comcast.com>, dated Wed, 8 Mar
2006 14:41:00 remote, seen in news:comp.lang.javascript, McKirahan
<Ne**@McKirahan.com> posted :
"John" <jo**@heathdrive.com> wrote in message
news:OI********************@eclipse.net.uk...

I have forgotten how to do this.

Got a <form ... >
with
<input type="button" name="Hit Me" onclick="whatever()">
</form>

The output of the Javascript function 'whatever' appears on a separate
page.

I need it to go below the form on the same page.

Show us "function whatever()".


If you had read and understood the newsgroup FAQ, you could have given a
useful answer.


There you go again, John: Always criticizing, rarely contributing.

It was stated that the
"output of the Javascript function 'whatever' appears on a separate page."
thus, there is some logic within the unshown function that is causing it;
perhaps a "document.write" or "window.open()" statement.

Asking to see the function would be a step toward identifying the problem.


Mar 9 '06 #6
JRS: In article <tM******************************@comcast.com>, dated
Thu, 9 Mar 2006 13:39:06 remote, seen in news:comp.lang.javascript,
McKirahan <Ne**@McKirahan.com> posted :
"Dr John Stockton" <jr*@merlyn.demon.co.uk> wrote in message
news:3+**************@merlyn.demon.co.uk...
JRS: In article <e7********************@comcast.com>, dated Wed, 8 Mar
2006 14:41:00 remote, seen in news:comp.lang.javascript, McKirahan
<Ne**@McKirahan.com> posted :
>"John" <jo**@heathdrive.com> wrote in message
>news:OI********************@eclipse.net.uk...
>> I have forgotten how to do this.
>>
>> Got a <form ... >
>> with
>> <input type="button" name="Hit Me" onclick="whatever()">
>> </form>
>>
>> The output of the Javascript function 'whatever' appears on a separate
>> page.
>>
>> I need it to go below the form on the same page.

>Show us "function whatever()".


If you had read and understood the newsgroup FAQ, you could have given a
useful answer.


There you go again, John: Always criticizing, rarely contributing.


You find that you are regularly criticised because of the low quality of
so much of what you post. You post in haste, and you do not read
enough. Your wisdom matches Thomas Lahn's tact.

My response above, if read intelligently, reveals all that it is
necessary to tell the enquirer : that the answer is given by the
newsgroup FAQ.

It was stated that the
"output of the Javascript function 'whatever' appears on a separate page."
thus, there is some logic within the unshown function that is causing it;
perhaps a "document.write" or "window.open()" statement.

Asking to see the function would be a step toward identifying the problem.


Because we regulars here do not have the failings that you have just
been described as showing, we already know what the problem is and what
the solution is and where the solution is briefly described with a link
to much more.

By your answer, you reveal your own incompetence.

As it happens, I needed the relevant solution myself several years ago.
I don't recall now whether I initiated the discussion or just joined in;
but it was then that Jim Ley produced the code in the FAQ and indeed
IIRC the FAQ entry itself.

Note that none of the regulars here thought, under the circumstances,
that the question was worth answering yet again in News. HR did provide
a serviceable answer, but one of limited applicability; it suffices
instead of writing into a simple <pre>...</pre>, for example, but it
could not provide a table such as in holidays.htm or output matching
js-clndr.htm#Ck .
Now stop your infantile Merkin whining, and set about learning enough to
be able to make worthwhile and reliable contributions.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Mar 11 '06 #7
Dr John Stockton wrote:
Now stop your infantile Merkin whining,


As an American, myself, allow me to say that you're a complete wanker.

--
John W. Kennedy
"O may the children of Columbia still
Be taught by every teacher of mankind,
Each circumstance of calculative gain,
Or wounded pride, which prompted our oppressors:
May every child be taught to lisp the tale:
And may, in times to come, no foreign force,
No European influence, tempt to mistate,
Or awe the tongue of eloquence to silence.
Still may our children's children deep abhor
The motives, doubly deep detest the actors;
Ever remembering, that the race who plan'd,
Who acquiesced, or did the deeds abhor'd,
Has pass'd from off the earth; and, in its stead,
Stand men who challenge love or detestation
But from their proper, individual deeds.
Never let memory of the sire's offence
Descend upon the son."
-- William Dunlap. "André: a Tragedy in Five Acts" (1798)
Mar 11 '06 #8

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

Similar topics

8
by: Johnny Knoxville | last post by:
I've added a favicon to my site (http://lazyape.filetap.com/) which works fine if you add the site to favourites the normal way, but I have some JavaScript code on a couple of pages with a link,...
1
by: David. E. Goble | last post by:
Hi all; I have the following files; index.html, sigsheader.js, sigsboby.js, smilesbody.js and smiles.js. The sourse is below. The page displays two manual slide shows... Each slideshow has a set...
7
by: David. E. Goble | last post by:
Hi all; I have the following files; index.html, sigsheader.js, sigsboby.js, smilesbody.js and smiles.js. The sourse is below. The page displays two manual slide shows... Each slideshow has a set...
18
by: Ed Jay | last post by:
<disclaimer>js newbie</disclaimer> My page has a form comprised of several radio buttons. I want to poll the buttons to determine which button was selected and convert its value to a string. I...
3
by: juicy | last post by:
Hi, I have 4 check box and a textarea. When user check each check box, it will append text in the textarea. In onclick event, it calls getSurcharge function and append value in variable output....
0
by: Michael L | last post by:
Hi Guys(I apologize for the lengty post - Im trying to explain it as best i can) I've been cracking my head on this one for the past 24+ hours and i have tried creating the function in ten...
1
by: rn5a | last post by:
A custom server control has a Button. Namespace Confirm Public Class ShowConfirm : Inherits Button Private strConfirmMsg As String Public Property ConfirmMessage() As String Get...
2
by: sorobor | last post by:
dear sir .. i am using cakephp freamwork ..By the way i m begener in php and javascript .. My probs r bellow I made a javascript calender ..there is a close button ..when i press close button...
11
by: dhtml | last post by:
(originally mis-posted on m.p.s.jscript...) I've just closed all windows in Firefox and its using 244MB of memory. I have no idea why. I had GMail open, a page from unicode, the CLJ FAQ. ...
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: 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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
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...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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.