|
hi..please be specific what you want..
your web application have only one page??
And you want help regarding GUI for this..Am i right?
|
|
|
|
|
Hi.My web application will have one page.
and i want help regarding GUI. can you help me with how many controls i can have.
Thank you
|
|
|
|
|
You keep asking the same questions, but you seem to be making no effort to actually write your application.
sturabumukiza wrote: can you help me with how many controls i can have.
You can have as many controls as you need - it's up to you to design the interface, and the code behind it which does the work. This is a very simple application, and doesn't need much of an interface, or program to run it.
Since this seems to be a course-related project, I have to wonder how you've managed to do any of the course work up to now...
Why not make a start, try to write it, and if you run into problems then come and ask for specific help with those problems - not "how can I design an interface?".
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
stop posting the same question. read the previous responses (especially the one from the forum admin) and adhere to them. or give SPECIFIC questions. unless you want to pay us to do your work for you?
I suggest you go to w3schools.com if you want to learn web design.
|
|
|
|
|
Looks to me like you require 3 TextBox controls and 2 Labels. Unless I misunderstood your question.
|
|
|
|
|
|
|
I'm looking at trying to write something similar to the Google Calendar, but can't quite figure out what language(s) to use. I've dome mostly desktop applications in C#, VB, and Python. What would I use for an online webapp? I'd like to give the user a nice GUI, click-to-edit, drag-and-drop, etc. I've looked at ASP.NET, but haven't seen anything that indicates I can make a nice GUI in in. any other suggestions?
The Code Demon Rises.
|
|
|
|
|
web apps are generally styled using html and css - it looks as good as you can imagine it. use asp & c#/vb or python for the dynamic bits. you will also probably want to use a database such as mssql or mysql (free).
Alternatively you could use html,css,php,mysql,javascript(esp. jQuery for animation and drag n drop).
|
|
|
|
|
Okay, first, thanks for the pointers. After more research, here's what I'm thinking. First, can javascript and/or jQuery establish a secure connection to a server side MySQL database? Let me know if this will work:
Server running:
Apache
MySQL
possibly a java backend to handle DB interactions, making client load easier
Client Side/viewable site written using:
HTML
CSS
javascript and/or jQuery, connected to either MySQL directly, or backend java
I just want to know if this path will work, before I dive in and get myself lost.
The Code Demon Rises.
|
|
|
|
|
thecodedemon wrote:
First, can javascript and/or jQuery establish a secure connection to a server side MySQL database?
no. use php or asp (server side code).
thecodedemon wrote:
Client Side/viewable site written using:
HTML
CSS
javascript and/or jQuery, connected to either MySQL directly, or backend java
sounds good to me
|
|
|
|
|
|
I would love to be able to use Python, but I cannot find any explanations or examples of how to get a python script to run in a web browser. The actual data manipulation should be easy, but writing the interface is where I'm stuck. Everything I find on either ASP.NET or Python is on how to communicate with the server, or create a static page based on dynamic information. I want a dynamic page. Any tutorials or books on this subject using ASP or Python would be appreciated.
The Code Demon Rises.
|
|
|
|
|
I would suggest looking at a UI toolkit such as http://www.extjs.com[^] or http://developer.yahoo.com/yui/[^]
They use a combination of HTML/CSS/Javascript inside the browser.
Then their controls talk to the web server via a communication object written in javascript which can use Http GET, Http POST, or SOAP web services (behind the scenes its using jQuery Ajax[^] to talk to the server).
Google uses python on the backend. It's still using HTML/CSS/Javascript within the client.
As for the server side code that talks to mysql you can use pretty much whatever. I would suggest PHP or Rails for the server side goop unless you already have experience in asp.net.
Todd Smith
|
|
|
|
|
Latest post to top
Hi, I'm working on a forum script which does what it's supposed to do, except for one thing. That is, listing the latest reply or new thread at the top of the topic list correctly.
I had help on the code below from a forum which is now closed. The code works, but - this happens:
If this month is say May, then the latest post goes to the top of the list (only because May is at the top).
If someone posts a reply to a thread made in say April or March, then the reply only goes to the top of the section in the list where that particular month is displayed. Which is not what I want it to do.
Does that make sense?
What is needed to make any posting go to the top of the whole list, regardless of the month the original thread began?
I do not know how to do that (I'm not all that good a programmer).
sub printMonthLines {
my($filename) = @_;
$filename =~ s/[\^<>'\$!#;\*\?\&\|\`\/\~\\\(\)\{\}\"\n\r]//go;
$filename =~ s/\.\.//go;
# open file
$thefilenm = "$cgidir/$forumdata/$filename.txt";
if (open(DATA,"$thefilenm")) {
my %records;
while (<DATA>) {
chomp;
my @data = split(/_/);
my $date = join '', (split(/[\/:-]/, $data[5]))[2,1,0,3,4,5];
push @{$records{$date}},$_;
}
close(DATA);
foreach my $key (sort {$b cmp $a} keys %records) {
@sorted = "@{$records{$key}}";
# split new array
foreach $line (@sorted ) {
if ($line ne '') {
@info = split (/_/, $line);
$num = $info[0];
$subject = $info[1];
$name = $info[2];
$date = $info[3];
$responses = $info[4];
$replytime = $info[5];
$replyname = $info[6];
# print it all out
print qq ~
<TR valign="top"><td>
<A HREF="$ENV{'SCRIPT_NAME'}?msg=$num" onFocus="if(this.blur)this.blur()">$subject</A>
<div class="small">Posted on: $date</div></td>
<td>$name</td>
<td>$responses</td>
<td align="right">$replytime<br>by $replyname <A HREF="$ENV{'SCRIPT_NAME'}?msg=$num#$responses" onFocus="if(this.blur)this.blur()">$viewpost</a></td></TR>
~;
}}}}}
I hope someone can help please,
Thanks
|
|
|
|
|
look up "reverse sorting vb" - i presume you are using vb.
|
|
|
|
|
|
well then "reverse array perl"
i'd try inserting the following after "@sorted = "@{$records{$key}}";":
reverse(@sorted);
|
|
|
|
|
I tried that but it didn't change anything. Also tried adding an epoch date field at the end and sorting it by that (think I did it right) and that didn't work either. This is so far beyond me it's scary :-/
It's a pity as everything else works a treat on the forum scripts (so far - I'm redoing them). I had thought this would be an easy thing to do (famous last words).
|
|
|
|
|
or:
@sorted = reverse(@sorted);
????
if that doesn't work i suggest passing it to a web designer.
|
|
|
|
|
Okay. We'll just consider the thread closed now.
|
|
|
|
|
Hi,
I am trying to get the height of the page after the page loads everything, I currently used document.body.scrollHeight but now it keeps on returning 0, no matter in want page event I add it.
I am using ASP.NET 2.0.
Thanks
|
|
|
|
|
The method to get the height differs depending in what browser you are using. I have a javascript function that i use to center an element on a screen. This determines the browser being used and uses the correct method accordingly. Hope this helps.
function centerElement(element, left, top)
{
var x = document.body.scrollWidth;
var y = document.body.scrollHeight;
if (getBrowser().indexOf('IE') == 0)
{
x = document.documentElement.clientWidth;
y = document.documentElement.clientHeight;
}
x = (x / 2) + document.body.scrollLeft - (element.offsetWidth / 2);
y = (y / 2) + document.body.scrollTop - (element.offsetHeight / 2);
if (arguments.length < 2) left = true;
if (left) element.style.left = x + 'px';
if (arguments.length < 3) top = true;
if (top) element.style.top = y + 'px';
}
function getBrowser()
{
if (navigator.appName == 'Microsoft Internet Explorer')
{
return 'IE' + parseFloat((new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})")).exec(navigator.userAgent)[1]);
}
else if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1)
{
return 'Firefox';
}
return 'Other';
}
Cheers,
Craig
** I'd rather try and fail than fail to try **
|
|
|
|
|
I want to design a security software of a small company. the company has 3 books which are:
Visitors book
Occurrence book
tools book
the guard will be able to input to visitors book visitors name, time in, time out and so on...
even in the occurrence book the guard should be able to input some thing.
I am having some difficulties in coming up with the interface of this software. Especially in the visitors book (time out column). the manager of the company should be able to view those how visited and any thing else every day. The software will use an intranet. Pleas
|
|
|
|
|
So come clean and tell your client you lied and have no idea what you are doing and that he better get a real programmer to do the job.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|