aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Object creation issue wiht Javascript. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Object creation issue wiht Javascript." Watch "Object creation issue wiht Javascript." New topic
Author

Object creation issue wiht Javascript.

Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
I have the following code ,



I am expecting 15 , but its not alerting anything. Why ?
Thanks in advance.


Rahul Bhattacharjee
LinkedIn - Blog
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Rahul Bhattacharjee:

obj.trigger;
obj.showResults;


It's not doing anything becuase you're not calling your functions.
Try:


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Thanks Ben.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Object creation issue wiht Javascript.