value is null or not an object

Posted on 2007-10-16
Last Modified: 2008-01-09
when i click on this button i get "value is null or not an object" but im sure the onclick event handler is fine.


If i remove the part that gets the select box value everything works fine.
Question by:ellandrd
    LVL 11

    Assisted Solution


    change to

    LVL 44

    Accepted Solution


    Without the ' around the this.form.persid.selectedIndex.
    LVL 30

    Assisted Solution

    remove the single quote


    <a href="#" onclick="launchOutlook(this.form.request.value,this.form.title.value,this.form.number.value,this.form.persid.options[this.form.persid.selectedIndex].value);return false;">click</a>
    LVL 16

    Author Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
    This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now