Poonam Sachdeva
8/15/2014 10:56:00 PM
On Friday, August 15, 2014 3:43:35 PM UTC-7, PS wrote:
> I have my own browser which is webkit as well. the code doesnt work in that one.
>
>
>
> On Friday, August 15, 2014 3:40:30 PM UTC-7, Evertjan. wrote:
>
> > PS <poonam.sachdeva5@gmail.com> wrote on 16 aug 2014 in
>
> >
>
> > comp.lang.javascript:
>
> >
>
> >
>
> >
>
> > > Doesnt work in webkit.
>
> >
>
> > > Works in FF.
>
> >
>
> >
>
> >
>
> > Please do not toppost,
>
> >
>
> > as [that way?] you forget to answer my pertinent Q.
>
> >
>
> >
>
> >
>
> > My code works fine in Chrome, which is Webkit.
>
> >
>
> >
>
> >
>
> > My code also works fine in Chrome Mobile, which is Webkit.
>
> >
>
> >
>
> >
>
> > So what browser do you mean that does not work?
>
> >
>
> > What do you mean by "Doesnt work" exactly, btw?
>
> >
>
> >
>
> >
>
> > >
>
> >
>
> > > On Friday, August 15, 2014 3:15:33 PM UTC-7, Evertjan. wrote:
>
> >
>
> > >> PS <poonam.sachdeva5@gmail.com> wrote on 15 aug 2014 in
>
> >
>
> > >>
>
> >
>
> > >> comp.lang.javascript:
>
> >
>
> > >>
>
> >
>
> > >> > I am trying to change my GUI on onclick. It works fine in google chrome
>
> >
>
> > >> > and firefox but doesnt work in webkit browser. Tried to debug but it
>
> >
>
> > >> > doesnt go into the function only.
>
> >
>
> > >>
>
> >
>
> > >> Is Chrome not a webkit browser?
>
> >
>
> > >>
>
> >
>
> > >> > Have tried using addEventListeners but
>
> >
>
> > >> > it doesnt work as well. it doesnt trigger the onclick.
>
> >
>
> > >>
>
> >
>
> > >> Try:
>
> >
>
> > >>
>
> >
>
> > >> object.onclick = function(){alert(this.value);};
>
> >
>
> > >>
>
> >
>
> > >> > <select name="MetricType" id="MetricType"
>
> >
>
> > >> > onclick="UpdateMetricFromGUI();">
>
> >
>
> > >> > <option value=CDatHT >CD</option>
>
> >
>
> > >> > <option value=HT >HT</option>
>
> >
>
> > >> > <option value=BowCD >BowCD</option>
>
> >
>
> > >> > <option value=NeckCD >NeckCD</option>
>
> >
>
> > >> > </select>
>
> >
>
> > >>
>
> >
>
> > >> Why not go back to the bare code when asking a Q?
>
> >
>
> > >> The extra code you showed only complicates the issue.
>
> >
>
> > >>
>
> >
>
> > >> Try:
>
> >
>
> > >>
>
> >
>
> > >> <select onclick='alert(this.value);'>
>
> >
>
> > >> <option value='1 selected' >One</option>
>
> >
>
> > >> <option value='2 selected' >Two</option>
>
> >
>
> > >> </select>
>
> >
>
> >
>
> >
>
> > --
>
Evertjan,
Is there any different way of executing a function when I change the items in dropdown instead of Onclick, onchange or AddEventListener
> >
>
> > Evertjan.
>
> >
>
> > The Netherlands.
>
> >
>
> > (Please change the x'es to dots in my emailaddress)