This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Javascript error :object expected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Javascript error :object expected" Watch "Javascript error :object expected" New topic
Author

Javascript error :object expected

raghavendra pola
Greenhorn

Joined: Jan 18, 2007
Posts: 11
HI , i am using this javascipt to create a printer friendly view of a html page


I put this is in the Scripts folder and named it "test.js"

Now, i am using this sample HTML page to test it


When i Run this page in IE , i get the error " object expected at line 0"

Can anyone help me with this


perfection is making best effort within constraints of space ,time and resources
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
When you posted your code you did not click the disable HTML checkbox which screwed up your html in your code block. [known forum bug]

Can you repost/edit that code.

Eric
raghavendra pola
Greenhorn

Joined: Jan 18, 2007
Posts: 11
HI Eric, The following was the HTML code
Just a sample page i created to test the Javascript


 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Javascript error :object expected
 
Similar Threads
Problem compiling the code
this.title returning undefined
How to include css in new window using javascript
Printer friendly page with javascript
object expected error in IE only