Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #7727

Re: What is wrong with this code?its not working

From sparky <simonp99@googlemail.com>
Newsgroups comp.lang.javascript
Subject Re: What is wrong with this code?its not working
Date 2011-10-27 09:46 -0700
Organization http://groups.google.com
Message-ID <fa2715ed-7056-40ec-98fd-6ef0706e2606@g7g2000vbv.googlegroups.com> (permalink)
References <55a344ce-8a2b-494a-bfe8-fadd3a5e2e08@h30g2000pro.googlegroups.com> <4ea616f4$0$28474$a8266bb1@newsreader.readnews.com> <PQAs9OURnHqOFwC+@invalid.uk.co.demon.merlyn.invalid> <4ea89904$0$28587$a8266bb1@newsreader.readnews.com> <fa2162ee-2af7-48f0-95d3-02eb2d8f9714@s32g2000prj.googlegroups.com>

Show all headers | View raw


On Oct 27, 9:26 am, Mclaren Fan <himanshu1...@gmail.com> wrote:
> Thanks everyone for all the help i just want to tell you all that you
> all are professional people who know javascript thoroughly while i
> have just started with javascript 2 days ago and am a15 yeat
> old.Please dont be harsh on me I still have to learn a lot.Thanks to
> all once again.

I changed the function name add to addup and it still did not work
though.
firebug showed that the event handler was not being fired.
I then specified the onClick handler in the makevis function like
this:

function makevis(form) {
form.out2.type="text";
form.add.type="hidden";
form.equalsadd.type="button";
form.equalsadd.onClick="addup(this.form)"; //added by me


This 'works' ( except that the output is a string as noted by
others...

Back to comp.lang.javascript | Previous | NextPrevious in thread | Find similar


Thread

What is wrong with this code?its not working Mclaren Fan <himanshu1495@gmail.com> - 2011-10-22 23:33 -0700
  Re: Please google for a FAQ on asking questions Andreas Bergmaier <andber93@web.de> - 2011-10-23 10:52 +0200
  Re: What is wrong with this code?its not working Lasse Reichstein Nielsen <lrn.unread@gmail.com> - 2011-10-23 11:46 +0200
  Re: What is wrong with this code?its not working John G Harris <john@nospam.demon.co.uk> - 2011-10-23 11:25 +0100
    Re: What is wrong with this code?its not working Dr J R Stockton <reply1143@merlyn.demon.co.uk> - 2011-10-24 20:05 +0100
  Re: What is wrong with this code?its not working Denis McMahon <denismfmcmahon@gmail.com> - 2011-10-25 01:55 +0000
    Re: What is wrong with this code?its not working Dr J R Stockton <reply1143@merlyn.demon.co.uk> - 2011-10-26 22:21 +0100
      Re: What is wrong with this code?its not working Denis McMahon <denismfmcmahon@gmail.com> - 2011-10-26 23:34 +0000
        Re: What is wrong with this code?its not working Mclaren Fan <himanshu1495@gmail.com> - 2011-10-27 01:26 -0700
          Re: What is wrong with this code?its not working sparky <simonp99@googlemail.com> - 2011-10-27 09:46 -0700

csiph-web