Link to home
Start Free TrialLog in
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
Avatar of santhimurthyd
santhimurthyd
Flag of United States of America image

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>
Avatar of jws2bay
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
Avatar of santhimurthyd
santhimurthyd
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 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