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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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.
 
jQuery in Action, 2nd edition
 
subject: Object creation issue wiht Javascript.