Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/_main.inc.php on line 123

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/_main.inc.php on line 129

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/_main.inc.php on line 136

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/_main.inc.php on line 170

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/_main.inc.php on line 200

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/_main.inc.php on line 206

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/_main.inc.php on line 231

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/_main.inc.php on line 242

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/_main.inc.php on line 254

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/_main.inc.php on line 293

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/_main.inc.php on line 351

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/_main.inc.php on line 352

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/_main.inc.php on line 353

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/_main.inc.php on line 354

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/_main.inc.php on line 355

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/_main.inc.php on line 571

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/_misc/_misc.funcs.php on line 197

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/_misc/_misc.funcs.php on line 202

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/_connect_db.inc.php on line 27

Strict Standards: Declaration of UserSettings::get() should be compatible with AbstractSettings::get($col_key1, $col_key2 = NULL, $col_key3 = NULL) in /home/probitys/public_html/blog/inc/MODEL/users/_usersettings.class.php on line 202

Strict Standards: Declaration of UserSettings::set() should be compatible with AbstractSettings::set() in /home/probitys/public_html/blog/inc/MODEL/users/_usersettings.class.php on line 202

Warning: Creating default object from empty value in /home/probitys/public_html/blog/inc/MODEL/settings/_abstractsettings.class.php on line 221

Warning: Creating default object from empty value in /home/probitys/public_html/blog/inc/MODEL/settings/_abstractsettings.class.php on line 221

Warning: Creating default object from empty value in /home/probitys/public_html/blog/inc/MODEL/settings/_abstractsettings.class.php on line 221

Warning: Creating default object from empty value in /home/probitys/public_html/blog/inc/MODEL/settings/_abstractsettings.class.php on line 221

Warning: Creating default object from empty value in /home/probitys/public_html/blog/inc/MODEL/settings/_abstractsettings.class.php on line 221

Warning: Creating default object from empty value in /home/probitys/public_html/blog/inc/MODEL/settings/_abstractsettings.class.php on line 221

Warning: Creating default object from empty value in /home/probitys/public_html/blog/inc/MODEL/settings/_abstractsettings.class.php on line 221

Warning: Creating default object from empty value in /home/probitys/public_html/blog/inc/MODEL/settings/_abstractsettings.class.php on line 221

Warning: Creating default object from empty value in /home/probitys/public_html/blog/inc/MODEL/settings/_abstractsettings.class.php on line 221

Warning: Creating default object from empty value in /home/probitys/public_html/blog/inc/MODEL/settings/_abstractsettings.class.php on line 221

Warning: Creating default object from empty value in /home/probitys/public_html/blog/inc/MODEL/settings/_abstractsettings.class.php on line 221

Warning: Creating default object from empty value in /home/probitys/public_html/blog/inc/MODEL/settings/_abstractsettings.class.php on line 221

Warning: Creating default object from empty value in /home/probitys/public_html/blog/inc/MODEL/settings/_abstractsettings.class.php on line 221

Warning: Creating default object from empty value in /home/probitys/public_html/blog/inc/MODEL/settings/_abstractsettings.class.php on line 221

Warning: Creating default object from empty value in /home/probitys/public_html/blog/inc/MODEL/settings/_abstractsettings.class.php on line 221

Warning: Creating default object from empty value in /home/probitys/public_html/blog/inc/MODEL/settings/_abstractsettings.class.php on line 221

Warning: Creating default object from empty value in /home/probitys/public_html/blog/inc/MODEL/settings/_abstractsettings.class.php on line 221

Warning: Creating default object from empty value in /home/probitys/public_html/blog/inc/MODEL/settings/_abstractsettings.class.php on line 303

Warning: Cannot modify header information - headers already sent by (output started at /home/probitys/public_html/blog/inc/_main.inc.php:123) in /home/probitys/public_html/blog/inc/MODEL/sessions/_session.class.php on line 222

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/MODEL/generic/_genericelement.class.php on line 112

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/MODEL/dataobjects/_dataobject.class.php on line 428

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/MODEL/dataobjects/_dataobject.class.php on line 437

Strict Standards: Declaration of Blog::set() should be compatible with DataObject::set($parname, $parvalue, $make_null = false) in /home/probitys/public_html/blog/inc/MODEL/collections/_blog.class.php on line 1034

Strict Standards: Declaration of BlogCache::option_list() should be compatible with DataObjectCache::option_list($default = 0, $allow_none = false, $method = 'name') in /home/probitys/public_html/blog/inc/MODEL/collections/_blogcache.class.php on line 272

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/MODEL/collections/_category.funcs.php on line 390

Strict Standards: Declaration of Group::set() should be compatible with DataObject::set($parname, $parvalue, $make_null = false) in /home/probitys/public_html/blog/inc/MODEL/users/_group.class.php on line 420

Strict Standards: Declaration of User::dbdelete() should be compatible with DataObject::dbdelete() in /home/probitys/public_html/blog/inc/MODEL/users/_user.class.php on line 1145

Strict Standards: Declaration of User::set() should be compatible with DataObject::set($parname, $parvalue, $make_null = false) in /home/probitys/public_html/blog/inc/MODEL/users/_user.class.php on line 1145

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/_misc/_resultsel.class.php on line 549

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/_misc/_resultsel.class.php on line 563

Strict Standards: Declaration of ResultSel::display_list_start() should be compatible with Results::display_list_start($detect_no_results = true) in /home/probitys/public_html/blog/inc/_misc/_resultsel.class.php on line 48

Strict Standards: Declaration of ResultSel::display_list_end() should be compatible with Results::display_list_end($detect_no_results = true) in /home/probitys/public_html/blog/inc/_misc/_resultsel.class.php on line 48

Strict Standards: Declaration of Filetype::set() should be compatible with DataObject::set($parname, $parvalue, $make_null = false) in /home/probitys/public_html/blog/inc/MODEL/files/_filetype.class.php on line 197

Strict Standards: Declaration of UserCache::option_list() should be compatible with DataObjectCache::option_list($default = 0, $allow_none = false, $method = 'name') in /home/probitys/public_html/blog/inc/MODEL/users/_usercache.class.php on line 288

Strict Standards: Declaration of Comment::set() should be compatible with DataObject::set($parname, $parvalue, $make_null = false) in /home/probitys/public_html/blog/inc/MODEL/comments/_comment.class.php on line 1164

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/MODEL/items/_itemlist.class.php on line 602

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/MODEL/items/_item.class.php on line 2952

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/_misc/_plugins.class.php(3113) : eval()'d code on line 1

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/_misc/_plugins.class.php(3113) : eval()'d code on line 1

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/_misc/_plugins.class.php(3113) : eval()'d code on line 1

Notice: Array to string conversion in /home/probitys/public_html/blog/inc/_misc/_misc.funcs.php on line 1253

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/_blog_main.inc.php on line 306

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/MODEL/items/_itemlist2.class.php on line 120

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/inc/MODEL/items/_itemlist2.class.php on line 796

Strict Standards: Declaration of ItemList2::query() should be compatible with Results::query($create_default_cols_if_needed = true, $append_limit = true, $append_order_by = true) in /home/probitys/public_html/blog/inc/MODEL/items/_itemlist2.class.php on line 48

Notice: Array to string conversion in /home/probitys/public_html/blog/inc/_misc/_misc.funcs.php on line 1253

Notice: Array to string conversion in /home/probitys/public_html/blog/inc/_misc/_misc.funcs.php on line 1317

Deprecated: Function ereg() is deprecated in /home/probitys/public_html/blog/inc/_blog_main.inc.php on line 413

Warning: Cannot modify header information - headers already sent by (output started at /home/probitys/public_html/blog/inc/_main.inc.php:123) in /home/probitys/public_html/blog/inc/MODEL/skins/_skin.funcs.php on line 71

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/plugins/code_highlight_plugin/_code_highlight.plugin.php on line 528

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/plugins/code_highlight_plugin/_code_highlight.plugin.php on line 541

Strict Standards: Declaration of code_highlight_plugin::AdminEndHtmlHead() should be compatible with Plugin::AdminEndHtmlHead(&$params) in /home/probitys/public_html/blog/plugins/code_highlight_plugin/_code_highlight.plugin.php on line 559

Strict Standards: Declaration of code_highlight_plugin::SkinBeginHtmlHead() should be compatible with Plugin::SkinBeginHtmlHead(&$params) in /home/probitys/public_html/blog/plugins/code_highlight_plugin/_code_highlight.plugin.php on line 559

Strict Standards: Declaration of code_highlight_plugin::PluginVersionChanged() should be compatible with Plugin::PluginVersionChanged(&$params) in /home/probitys/public_html/blog/plugins/code_highlight_plugin/_code_highlight.plugin.php on line 559
Kumar Majethia's Blog
Warning: Creating default object from empty value in /home/probitys/public_html/blog/inc/MODEL/settings/_abstractsettings.class.php on line 303

04/09/09

Permalink 07:28:39 am, by Kumar Email , 84 words, 29 views   English (US)
Categories: General

Importing Data into Postgres

Code:

CREATE TABLE bulk_sampledata
  (
    id serial PRIMARY KEY,
    "name" character varying(100),
    description text,
    amount numeric(16,4),
    uid numeric(16),
    udate date,
  )
 
  COPY BULK_SampleData ( id, name, description, amount, uid, udate )
  FROM E'/home/postgres/Test.txt' WITH DELIMITER AS E'\t';
 
  CREATE SEQUENCE SEQ_BULK_SampleData
  INCREMENT 1
  MINVALUE 1
  MAXVALUE 9223372036854775807
  START 5499
  CACHE 1;
 
 
  INSERT INTO SampleData
  SELECT nextval('SEQ_BULK_SampleData'), name, description, amount, uid, udate from BULK_SampleData
 
 
 
  CREATE TABLE SampleData
  (
    id numeric(16),
    "name" character varying(100),
    description text,
    amount numeric(16,4),
    uid numeric(16),
    udate date
  )
 
  select * from SampleData

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/skins/_feedback.php on line 102

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/skins/_feedback.php on line 223

09/12/08

Permalink 01:21:17 am, by Kumar Email , 11 words, 25 views   English (US)
Categories: General

I18NBundle Project

Here’s the project for Internationalization using JSTL

Locale & Internationalization project


Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/skins/_feedback.php on line 102

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/skins/_feedback.php on line 223

09/11/08

Permalink 01:51:29 am, by Kumar Email , 1602 words, 23 views   English (US)
Categories: General

JSP & JSTL

Code:

Syntax of JSP directives is:
 
<%@directive attribute="value" %>
 
Where directive may be:
 
page: page is used to provide the information about it.
Example: <%@page language="java" %>
    
include: include is used to include a file in the JSP page.
Example: <%@ include file="/header.jsp" %>
  
taglib: taglib is used to use the custom tags in the JSP pages (custom tags allows us to defined our own tags).
Example: <%@ taglib uri="tlds/taglib.tld" prefix="mytag" %>
    
and attribute may be:
 
language="java"
This tells the server that the page is using the java language. Current JSP specification supports only java language.
Example: <%@page language="java" %>
    
extends="mypackage.myclass"
This attribute is used when we want to extend any class. We can use comma(,) to import more than one packages.
Example: <%@page language="java" import="java.sql.*,mypackage.myclass" %>
    
session="true"
When this value is true session data is available to the JSP page otherwise not. By default this value is true.
Example: <%@page language="java" session="true" %>
  
errorPage="error.jsp"
errorPage is used to handle the un-handled exceptions in the page.
Example: <%@page language="java" session="true" errorPage="error.jsp"  %>
    
contentType="text/html;charset=ISO-8859-1"
Use this attribute to set the mime type and character set of the JSP.
Example: <%@page language="java" session="true" contentType="text/html;charset=ISO-8859-1"  %>
 
    
JSP Scriptlets
 
Syntax of JSP Scriptles are:
  <%
  //java codes
   %>
 
JSP Scriptlets begins with <% and ends %> .We can embed any amount of java code in the JSP Scriptlets. JSP Engine places these code in the _jspService() method. Variables available to the JSP Scriptlets are:
 
request:
request represents the clients request and is a subclass of HttpServletRequest. Use this variable to retrieve the data submitted along the request.
Example:
  <%
  //java codes
   String userName=null;
   userName=request.getParameter("userName");
   out.println(userName);
   %>
 
response:
response is subclass of HttpServletResponse.
  
session:
session represents the HTTP session object associated with the request.
  
out:
out is an object of output stream and is used to send any output to the client.
 
 
JSP Expressions
 
Syntax of JSP Expressions are:
 
  <%="Any thing"   %>
 
JSP Expressions start with
 
Syntax of JSP Scriptles are with <%= and ends with  %>. Between these this you can put anything and that will converted to the String and that will be displayed.
 
Example:
  <%="Hello World!" %>
Above code will display 'Hello World!'.
 
 
 
 
 
JSP Declarations
 
The JSP you write turns into a class definition.  All the scriptlets you write are placed inside a single method of this class.
 
You can also add variable and method declarations to this class.  You can then use these variables and methods from your scriptlets and expressions.
 
To add a declaration, you must use the <%! and %> sequences to enclose your declarations, as shown below.
 
 
<%@ page import="java.util.*" %>
<HTML>
<BODY>
<%!
    Date theDate = new Date();
    Date getDate()
    {
        System.out.println( "In getDate() method" );
        return theDate;
    }
%>
Hello!  The time is now <%= getDate() %>
</BODY>
</HTML>
 
 
But this example no longer works!  The date will be the same, no matter how often you reload the page.  This is because these are declarations, and will only be evaluated once when the page is loaded!  (Just as if you were creating a class and had variable initialization declared in it.)
 
It is in general not a good idea to use variables as shown here. The JSP usually will run as multiple threads of one single instance. Different threads would interfere with variable access, because it will be the same variable for all of them.
 
 
JSP Tags
 
Another important syntax element of JSP are tags.  JSP tags do not use <%, but just the < character.  A JSP tag is somewhat like an HTML tag.  JSP tags can have a "start tag", a "tag body" and an "end tag".  The start and end tag both use the tag name, enclosed in < and > characters.  The end starts with a / character after the < character.  The tag names have an embedded colon character : in them, the part before the colon describes the type of the tag.  For instance:
 
<jsp:someTag>
body
</jsp:someTag>
 
Tags can be of two types: loaded from an external tag library, or predefined tags.   Predefined tags start with jsp: characters.  For instance, jsp:include is a predefined tag that is used to include other pages.
 
<HTML>
<BODY>
Going to include hello.jsp...<BR>
<jsp:include page="hello.jsp"/>
 
</BODY>
</HTML>
 
Now change the "jsp:include" to "jsp:forward" and see what is the difference.  These two predefined tags are frequently very useful.
 
Two ways to forward to another Page
 
  1) jsp:forward
  2) <%response.redirect();%>
 
Both work very very differently
 
1) <%response.redirect();%>
 
  redirect will send a redirect header to the Browser in the HTTP Response Header area.
  The browser will see this and go automatically to the URL in the Redirect Header
  A new request is created for the new URL (the submitted form etc. is all lost)
  The new URL shows up in the Address bar
  A good test for Cookies.
  buffered request must be set to true
 
2) jsp:forward
 
  fowards on the same request
  the request parameters and post data are available to the forwarded page
  buffered request must be set to true
 
 
JSP Sessions
 
On a typical web site, a visitor might visit several pages and perform several interactions.
If you are programming the site, it is very helpful to be able to associate some data with each visitor.  For this purpose, "session"s can be used in JSP.
 
A session is an object associated with a visitor.  Data can be put in the session and retrieved from it, much like a Hashtable.  A different set of data is kept for each visitor to the site.
 
http://faq.javaranch.com/java/ElOrJstlNotWorkingAsExpected
 
<HTML>
<BODY>
<FORM METHOD=POST ACTION="SaveName.jsp">
  What's your name? <INPUT TYPE=TEXT NAME=username SIZE=20>
<P><INPUT TYPE=SUBMIT>
</FORM>
</BODY>
</HTML>
 
The target of the form is "SaveName.jsp", which saves the user's name in the session.  Note the variable  "session".  This is another variable that is normally made available in JSPs, just like out and request variables.  (In the @page directive, you can indicate that you do not need sessions, in which case the "session" variable will not be made available.)
 
<%
   String name = request.getParameter( "username" );
   session.setAttribute( "theName", name );
%>
<HTML>
<BODY>
<A HREF="NextPage.jsp">Continue</A>
</BODY>
</HTML>
 
The SaveName.jsp saves the user's name in the session, and puts a link to another page, NextPage.jsp.
NextPage.jsp shows how to retrieve the saved name.
 
<HTML>
<BODY>
Hello, <%= session.getAttribute( "theName" ) %>
</BODY>
</HTML>
 
If you bring up two different browsers (not different windows of the same browser), or run two browsers from two different machines, you can put one name in one browser and another name in another browser, and both names will be kept track of.
 
The session is kept around until a timeout period.  Then it is assumed the user is no longer visiting the site, and the session is discarded.
 
 
Tag Libraries
=============
 
A tag library is a set of actions that encapsulate functionality. These tags are then used within JSP pages. JSTL provides a wide variety of functionality that can be broken down into specific functional areas. While JSTL is a single taglib, it is exposed through multiple Tag Library Descriptors (TLDs). This is done primarily for convenience (so that tags are in their appropriate functional area), but also so that each TLD can have its own namespace, or prefix. These four areas are:
 
Core (with a URI of http://java.sun.com/jstl/ea/core and a prefix of c): provides the core JSTL tags, such as those that perform iteration, conditional processing, and expression language support. Access tags provided in this TLD by placing < %@ taglib prefix="c" uri="http://java.sun.com/jstl/ea/core" %> at the top of your JSP.
 
XML processing (with a URI of http://java.sun.com/jstl/ea/xml and a prefix of x): provides tags that allow parsing and XSL transformation of XML documents.
 
I18N-capable formatting (with a URI of http://java.sun.com/jstl/ea/fmt and a prefix of fmt): provides tags that support I18N and localized formatting and parsing.
 
Database access (SQL) (with a URI of http://java.sun.com/jstl/ea/sql and a prefix of sql: provides tags that allow direct database access from within JSPs.
 
 
One other point to mention about the JSTL tag libraries is that there are actually two versions each of the majority of the tags. One set takes advantage of the new expression language, and the other doesn't; the tags that don't make use of an expression language use request-time expressions. This is useful if you want the flexibility provided by the standard tags but don't want to use the expression language support yet. To access these tag libraries, simply append -rt to the end of the taglib URI like so: <%@ taglib prefix="c" uri="http://java.sun.com/jstl/ea/core-rt" %>

Code Samples


Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/skins/_feedback.php on line 102

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/skins/_feedback.php on line 223

09/08/08

Permalink 01:21:07 am, by Kumar Email , 541 words, 23 views   English (US)
Categories: General

User Stories

Story1 Share broker manages multiple customers

As a share broker I should be able to do following to manage my customer accounts:

Create Customer Account // emailAddress / id / password
Maintain Customer Account to modify the customer account details
Delete Customer Account (Mark as Deleted)

Acceptance Criteria

There should not be a duplication of customers. EmailID should used to identify the customer
Each customer should be allocated with unique customer ID
The customer should be inActive while deleting a customer (No open trade transactions for that customer)
Share-broker should not be allowed to change personal details of customer like password.

Story2 Customer Login

As a customer I should be able to login to the broker’s site.

Acceptance Criteria

A welcome message is displayed on successfule login
Invalid login/password combination is declined for login with a suitable error message
Password characters are not visible (*****)
If the customer is logging in first time, password modification should be mandatory
If the customer has been marked as Deleted then he shouldn’t be allowed to LogIn

Story3 Modify Customer Details

As a customer I should be able to modify my own details

Acceptance Cirteria

Customer ID is not available for modification
Customer password should be minimum 8 charecters

Story4 View Portfolio

As a customer I should be able to view my portfolio (Scrips I’m holding)
Scrip, Qty, Wtd Avg Cost, Market Price

Tisco 100 20
100 22
200 10
300 15

Acceptance Criteria

If customer holds no shares a suitable message is shown
The portfolio is shown as “Scrip” and “Quantity of Shares", Wtd Avg Cost, Market Price
TotalCost Net Worth
(Profit/Loss)

Story5 Trade OTC (With other customers of the broker)

As a broker I should be able to trade between two of my own customers for the same scrip and quantity.

Acceptance Criteria

Customer should not get an option to do an OTC
The seller should have balance that is more than or equal to the traded quantity for the scrip
The quantity should not be negative or zero

Story6 Trade with Market

As a customer I should be able to place a “Buy” or “Sell” order for a given scrip and quantity.

I should get a list of scrips to select from the available scrips “If I am buying” and the scrips from my portfolio “If I am selling”

Once the order is placed by me, the system should forward the order to the market and if the response from the market for the trade is:

“Accepted”
“Error”

“Successful”

Update my portfolio accordingly

“UnSuccessful”

Show relevent message

Acceptance Criteria

If I am selling I should have enough quantiy for the same scrip

Story7 Email Notification for transactions

As a customer I should get email notification of all my transactions

Acceptance Criteria

All successful as well as unsuccessful and OTC as well as Market trades are notified

Story8 Customer Preferences for notifications

As a customer I should be able to set my preferences to receive notifications for following types of transactions

OTC / Market
Buy / Sell
Successful / Unsuccessful

Story9 View Transaction Details

As a Customer, I should be able to see all my buys and sells and the status of all my
transactions. Cancelled, Open, Executed

As a Broker, I should be able to see all my OTC transactions and Exchange Transactions
by Customer / Scrip


Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/skins/_feedback.php on line 102

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/skins/_feedback.php on line 223

09/02/08

Permalink 01:08:48 am, by Kumar Email , 305 words, 23 views   English (US)
Categories: General

Javascript Code

Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
 
  <script language="javascript">
    
    function Party() {}
    Party.prototype.getMyId = function() {
      return this.id;
    };
    Party.prototype.initParty = function (id) {
      this.id = id;
    };
 
 
    function Person() {}
    Person.prototype = new Party();
    Person.prototype.initPerson = function (id, name, address, city) {
      this.initParty(id);
      this.name = name;
      this.address = address;
      this.city = city;
    };
 
 
    function Worker() {}
    Worker.prototype = new Person();
    Worker.prototype.initWorker = function (id, name, address, city, jobProfile) {
      this.initPerson(id, name, address, city);
      this.jobProfile = jobProfile;
    };
    
 
    var person = new Worker();
    person.initWorker(10, "Jane", "21 Harmony", "Pune", "ServiceWoman");
 
    var a;
    for(a in person) {
      alert(a);
      alert(person[a]);
    }
    
    alert("Id of the Person : " + person.getMyId());
 
    
 
 
    /*
 
 
 
 
 
    function sum(i, j) {
      alert("Why me??");
      var sum= i - j;
      return sum;
    }
 
 
    var mySumVariable = function sum() {
      alert("Hello??");
      var sum=0;
      for(i=0;i<arguments.length;i++) {
        sum = sum + arguments[i];
      }
      return sum;
    }
 
    function callCallback(anotherVariable) {
      return anotherVariable();
    }
 
    var returnValue = callCallback(mySumVariable);
    alert(returnValue);
 
    function getPerson() {
      return {firstName: "John", lastName: "Doe", address: "21 Harmony", city: "Pune"};
    }
 
    var myJSONObject = {"bindings": [
            {"ircEvent": "PRIVMSG", "method": "newURI", "regex": "^http://.*"},  
            {"ircEvent": "PRIVMSG", "method": "deleteURI", "regex": "^delete.*"},
            {"ircEvent": "PRIVMSG", "method": "randomURI", "regex": "^random.*"}
          ]
    };
 
    alert(myJSONObject.bindings[0].regex);
    alert(myJSONObject.bindings[2].method);
 
    var x=null;
    alert(x);
 
 
    var myHashtable = {firstName: "John", lastName: "Doe", address: "21 Harmony", city: "Pune"}; // JSON String
 
    <firstName>John</firstName>
    <lastName>Doe</lastName>
    <address>21 Harmony</address>
    <city>Pune</city>
    
    {firstName: "John", lastName: "Doe", address: "21 Harmony", city: "Pune"}
 
    var person = getPerson();
 
    var a;
    for(a in person) {
      alert(a);
      alert(person[a]);
    }
 
    var a;
    for(a in myHashtable) {
      alert(a);
      alert(myHashtable[a]);
    }
 
    alert(myHashtable.hasOwnProperty("age"));
    alert(myHashtable.hasOwnProperty("lastName"));
 
    */
 
    
  </script>
 
</HEAD>
 
<BODY>
 
 
 
</BODY>
</HTML>

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/skins/_feedback.php on line 102

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/skins/_feedback.php on line 223

:: Next Page >>

Kumar Majethia's Blog

| Next >


Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/plugins/_calendar.plugin.php on line 135

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/plugins/_calendar.plugin.php on line 870
February 2018
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28      

Search

Categories


Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/plugins/_archives.plugin.php on line 152

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/plugins/_archives.plugin.php on line 329

Strict Standards: Declaration of ArchiveList::count_total_rows() should be compatible with Results::count_total_rows($sql_count = NULL) in /home/probitys/public_html/blog/plugins/_archives.plugin.php on line 544

Deprecated: Assigning the return value of new by reference is deprecated in /home/probitys/public_html/blog/skins/_linkblog.php on line 46

Misc

XML Feeds

What is RSS?

Who's Online?

  • Guest Users: 16

powered by b2evolution free blog software


Warning: Creating default object from empty value in /home/probitys/public_html/blog/inc/MODEL/settings/_abstractsettings.class.php on line 303

Strict Standards: Non-static method Hitlist::dbprune() should not be called statically, assuming $this from incompatible context in /home/probitys/public_html/blog/inc/MODEL/sessions/_hit.class.php on line 483

Warning: Creating default object from empty value in /home/probitys/public_html/blog/inc/MODEL/settings/_abstractsettings.class.php on line 303