Re: Help with JavaScript



akwarisk@xxxxxxxxx meinte:
When I try to run this web page, it says I have an error on my <Select
name="customer" onchange="showcustomer(this.value)"> line. Here is
the error I get:

Line: 57
Char: 1
Error: Object expected
Code:0
URL: http://akwarisk.brinkster.net/W3Schools/ajaxinline.html

No it says: Get a decent browser.


Perhaps
function showCustomer(str){
^
<Select name="customer" onchange="showcustomer(this.value)">
^
will already do the trick. Anyway, why are you randomly omitting the terminating semicolon?

Gregor


--
http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
http://web.gregorkofler.com ::: meine JS-Spielwiese
http://www.image2d.com ::: Bildagentur für den alpinen Raum
.



Relevant Pages

  • Re: Loading a char value from an SQL parameter - Crashing!
    ... why don't you set a breakpoint in the if line and see the type of ... a quickwatch will do the trick. ... > char - all other types are converting just fine. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: #import not resolving correctly
    ... That done the trick, thanks a million. ... So presumably that would mean that TCHAR is now char? ... -- RFC 1925 ...
    (microsoft.public.vc.language)
  • Re: one element array as name of struct typedef
    ... char *buf; ... My guess is that it's a neat trick for having objects that are (in ... effect) automatically passed by reference. ...
    (comp.lang.c)
  • Re: Basic Question
    ... levinsontodd@xxxxxxxxx meinte: ... this result the alert is being popped up. ... However in your onload listener this.hi won't do the trick. ...
    (comp.lang.javascript)
  • RE: [PHP] something stupid... split().
    ... means any char in regular expressions. ... will do the trick for ya. ... Med venlig hilsen / best regards ...
    (php.general)

Loading