Avatar of jws2bay
jws2bay
 asked on

Object expected

I am working in a php/msql environment.  This is a 2 part question.  I have been trying to change the Select Content of a list/menu.  I keep having an error of " 'Options' is undefined" from the "new Options("","")" statement.  

I built up a test page and now I am having an Object expected error from the call of my function.  

First - what do I have wrong in my test page?

Second - why am I getting the "Options is undefined"?

my test page link is:

http://www.glassdivider.com/test.php

Thanks for the help
Web Languages and StandardsHTMLJavaScript

Avatar of undefined
Last Comment
jws2bay

8/22/2022 - Mon
santhimurthyd

You can enable the Javascript debugger in IE will help to stop at where the isssue is

i) Open IE
ii) Navigate to Tools
iii) Select "Internet Options"
iv) Select "Advance Tab"

v) Unde Browsing Category
Uncheck teh check box 'disable script Debugger" will help you at stop where the error in Jaavascript

In your case it's says "Update()" function not there

  <td><input type="button" name="button" id="button" value="Load" onclick="Update()" /></td>
jws2bay

ASKER
santhimurthyd

Thank you for the advice.  I was able to see the problem.  I had the function inside the <style> tage, so it wasn't being seen.  I knew it was something obvious.  Now I'm see the original problem.  

When I run the script now I'm getting the "Options is undefined from the  
new Options('' '','' '')   This is why I built the test page.

Any ideas on this problem?
ASKER CERTIFIED SOLUTION
santhimurthyd

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
jws2bay

ASKER
santhimurthyd

That works.  I've impliment the same function in my real page and it appears to work fine.  

Thanks for the help
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23