• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javascript error :object expected

 
raghavendra pola
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Eric, The following was the HTML code
Just a sample page i created to test the Javascript


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic