Oop Design
Sep 10, 2007
I read a lot on how to make in Javascript programs in a OOP way. After
I download
many third-party library (like YUI, prototype ecc.) and I have seen
that almost
all the function (class) are designed like literal object notation and
not in a normal
way like I learned ... now I'm confusing
on how to design my classes... I came to a Java/C++ experience ...
It seems that with object literal notation we cannot make all the OOP
constructs
that we can make with normal Javacript class creation constructs... so
why is it so largely used?
View 11 Replies
ADVERTISEMENT
Jul 23, 2005
I am having a tough time coming up with a good design for a webpage.
The following is a brief description of what i am trying to achieve.
The requirement is for an insurance company and the goal is to gather
insurance policy information to give its users a quote.
The user can add/edit/delete policies before submitting it and going to
the next step.
Each Policy can have 1 Amount (required) and 0 to 3 fees associated
with it.
At a given time a user can add a maximum of 8 rows.where each
amount/fee is considered a row. So if user enters all rows (1 Amount
and 3 Fees) for the policies then the user can add a maximum of 2
ploicies. On the other hand if the user wants to enter just the Amount
then he can go to 8 policies. I have developed the webpage for this
requirement using layers but there I had to write a lot of code for
that. I am sure there is a better way to handle such a situation and
that is what i am looking for.
I am unable to include the code with this post due to its size. If
anyone is interested in looking at the code i can email it to them.
View 5 Replies
View Related
Dec 1, 2010
I need a html Form to accept user's input, and before the user clicks the button "submit", the user also has to select one more option (a Radio Button) to call different JSPs depending upon the user's selection.
For example, if the user selects Radio Button 1, the Submit operation will call X.jsp; if the user selects Radio Button 2, the Submit operation will call Y.jsp and so on.
View 1 Replies
View Related
Jul 30, 2011
I was writing my classes in an old fashion until today when I came across a new design pattern. Javascript is not an established OOP like C++ or Java. It doesn't have any easy way to create classes and to make private/public methods or properties as well as class-constructor. But it could be done in many ways.
My old way of OO design in Javascript was like following:
Code:
Those who were trying to write constructor and access public vars from private or vice versa, you would have probably faced some minor difficulties. But it was doable.
Now, the challenge is how can we make things cleaner and better. Here's the procedure I came up with:
Code:
View 14 Replies
View Related
Jul 23, 2005
Just wondering what the current size standard is for web-page design ... it used to be 800 x 600 pxls (which seems quite small these days).
View 21 Replies
View Related
Jun 9, 2010
How to design a vertical progressbar. using jquery and css .. Also it must be having a flow like from up to down and vice versa. also the progress must be animated..
View 9 Replies
View Related
Sep 29, 2010
I was asked an interesting question today: what is the best design pattern for form validation? This got me thinking. Form validation, on a theoretical level, is pretty simple, you: listen for events from the form, pass inputted data from the form through some validation functions, then react accordingly. I haven't really thought about design patterns on such a macro level. This does seem like a pretty standard mvc setup when I think about it, but is there a better option? Some pattern I haven't though of or heard about?
View 1 Replies
View Related
Oct 5, 2011
How to design Fixed Web Page Header and footer using jquery in ASP.Net.
View 1 Replies
View Related
Jun 10, 2011
Which one is easier? and which gives best design and interface?
View 1 Replies
View Related
Oct 26, 2011
I have a search form all over my pages and I have a page for the results. What I wanted to do is when I clicked the button, I want message on the page where the results are. the message would would be "Results related for (text that inputted on the search form)" and I also wanted to put an image background for that.
<form action="http:pinoytopics.com/mark/gospel/test-2/" id="frm_search_form" method="get">
<input type="search" name="frm_search" id="frm_search">
<input type="submit"name="Submit"id="btnsubmit" value="Search">
</form>
View 1 Replies
View Related
Jun 8, 2010
I need save to my html page id path adress like id="#videos/fashion/test.txt" but if I want find this line like $("div").find("#videos/fashion/test.txt") it doesn't find it. I think it for the slashes. What is the best way to save into html page value and not to be seen on design view?
View 1 Replies
View Related
Sep 20, 2011
I wanted to start my research on the topic of slideshows here and ask if anyone knows what's the best method for creating a slideshow that should have the ability to display images and videos (and bookmark them)? It can be a plug-in, but this is for a client so it has to be okay for commercial use (and free).It should also be able to support other content like ads and polls/questionaires, in the form of a div. Also HTML 5 compatible with all the cross-browser compatibility one would expect.
View 4 Replies
View Related
Mar 17, 2011
I am trying to design a web page with multiple input fields to use the keypad, but I also want the prompt to change with each field
View 1 Replies
View Related
Nov 2, 2009
I'm using custom javascript tooltips to show information about designs in a t-shirt shop, such as design name and artist. I downloaded the code and CSS for the tooltips and am attempting to assign the tooltip to each design using a javascript array and a for-in loop. Only problem is that the tooltips aren't showing at all, no matter what I do. I think the problem is related to the onmouseover event that I'm using, but the only thing that seems to work even partway is changing the visibility to "show" in the CSS. From that I can see that the text is being assigned to the tooltips properly and that they are being positioned within the window, but the onmouseover event is having no effect either way when I revert the visibility back to "hidden."
[Code]...
View 6 Replies
View Related
Aug 15, 2011
i'm in need of a DHTML program for design tourism management program.. Since i don't have idea on it i unable to design it.
View 1 Replies
View Related