Which web programming language should i use

Discussion about everything. New games, 3d math, development tips...

Which web programming language should i use

Postby Lil Margin » Sat Feb 04, 2012 2:32 pm

Hey,
I know this is not a website forum but i though i could ask this little question here tho, I wish to create a website, i have programming experience in c++, delphi, visual basic and html. I am not new to the programming world but i don't know which language i will have to use to achieve what i want, what i want is that i want to create 2 pages.1 page named Admin.html and another named News.html...in Admin.html there is an editbox and a button(with the caption submit) and when i enter a text in the editbox and click on the button it appears on News.html, if i repeat the process 2 times i will want to see all the text's i have typed in News.html.

The problem is that i don't know which language i must use to achieve what i want...
Thank you in advanced.


PS: if there is something you did not understand from my post pleas let me know.
User avatar
Lil Margin
 
Posts: 212
Joined: Sun Jul 19, 2009 4:24 am
Location: Netherlands Antilles, Curacao

Re: Which web programming language should i use

Postby serengeor » Sat Feb 04, 2012 3:40 pm

You could probably just use a content management system. These have some security features and other useful things.
If you really don't want to use one I guess you could use html + php to achieve this. Also you could grab some javascript WYSIWYG editor and integrate it so you wouldn't have to write html stuff yourself. Php will be pretty much similar to c++.
I've done one something like this myself and hosted it somewhere on a free host server but I doubt I will remember what host I used.
Edit: Seams the files were erased due to my inactivity :/
Working on game: Marrbles (Currently stopped).
User avatar
serengeor
 
Posts: 1695
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Re: Which web programming language should i use

Postby greenya » Sat Feb 04, 2012 9:34 pm

Lil Margin wrote:Hey,
i want to create 2 pages.1 page named Admin.html and another named News.html...in Admin.html there is an editbox and a button(with the caption submit) and when i enter a text in the editbox and click on the button it appears on News.html, if i repeat the process 2 times i will want to see all the text's i have typed in News.html.

I guess it is possible to do even with pure Javascript.
User avatar
greenya
 
Posts: 943
Joined: Sun Jan 21, 2007 1:46 pm
Location: Ukraine

Re: Which web programming language should i use

Postby Lil Margin » Sat Feb 04, 2012 10:07 pm

Hmmmm ok, i started to look in php...today i got to install it locally on my pc... so i guess its all good, thanks guys
User avatar
Lil Margin
 
Posts: 212
Joined: Sun Jul 19, 2009 4:24 am
Location: Netherlands Antilles, Curacao

Re: Which web programming language should i use

Postby serengeor » Sun Feb 05, 2012 12:06 am

greenya wrote:
Lil Margin wrote:Hey,
i want to create 2 pages.1 page named Admin.html and another named News.html...in Admin.html there is an editbox and a button(with the caption submit) and when i enter a text in the editbox and click on the button it appears on News.html, if i repeat the process 2 times i will want to see all the text's i have typed in News.html.

I guess it is possible to do even with pure Javascript.

Is it? iirc you need server side language to do this.
Working on game: Marrbles (Currently stopped).
User avatar
serengeor
 
Posts: 1695
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Re: Which web programming language should i use

Postby greenya » Sun Feb 05, 2012 12:22 am

Is it? iirc you need server side language to do this.

Javascript allows to read and write cookies, so first page sets and the second one reads it. :)
User avatar
greenya
 
Posts: 943
Joined: Sun Jan 21, 2007 1:46 pm
Location: Ukraine

Re: Which web programming language should i use

Postby randomMesh » Sun Feb 05, 2012 1:19 am

Sorry, this is nonsense. It doesn't work with JavaScript.
"In fact, nearly every sequence of punctuation is used for something in Perl. So, if you get writer’s block, just let the cat walk across the keyboard, and debug the result."

Katastrophe - A free, open source flocking boids simulation
User avatar
randomMesh
 
Posts: 1138
Joined: Fri Dec 29, 2006 12:04 am

Re: Which web programming language should i use

Postby CuteAlien » Sun Feb 05, 2012 1:28 am

serengeor wrote:You could probably just use a content management system.


This. If your provider supports it use something like Wordpress.
IRC: #irrlicht on irc.freenode.net
My patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Games with Irrlicht: http://www.irrgheist.com/
News: http://www.reddit.com/r/irrlicht/
User avatar
CuteAlien
Admin
 
Posts: 5364
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: Which web programming language should i use

Postby kazymjir » Thu Feb 09, 2012 6:23 pm

Lil Margin wrote:Hey,
i want to create 2 pages.1 page named Admin.html and another named News.html...in Admin.html there is an editbox and a button(with the caption submit) and when i enter a text in the editbox and click on the button it appears on News.html, if i repeat the process 2 times i will want to see all the text's i have typed in News.html.

Learn PHP and how to use MySQL, eventually some XML parsers.
First page insert data into database/xml file, second page reads it.


CuteAlien wrote:
serengeor wrote:You could probably just use a content management system.

This. If your provider supports it use something like Wordpress.

Or this


greenya wrote:
Is it? iirc you need server side language to do this.

Javascript allows to read and write cookies, so first page sets and the second one reads it. :)

:D :D :D

But seriously, it's possible to do this using only pure JavaScript.
All is needed, to use some pastebin like website (with edit ability) and connect to it through AJAX requests.
Firsty, you create new pastebin paste and set password to have edit ability.
Admin page edits this pastebin paste using admin password, News page just read paste page, parse it and send it to browser.
Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
kazymjir
 
Posts: 669
Joined: Sat Feb 20, 2010 4:05 pm
Location: Poland

Re: Which web programming language should i use

Postby serengeor » Thu Feb 09, 2012 7:11 pm

kazymjir wrote:But seriously, it's possible to do this using only pure JavaScript.
All is needed, to use some pastebin like website (with edit ability) and connect to it through AJAX requests.
Firsty, you create new pastebin paste and set password to have edit ability.
Admin page edits this pastebin paste using admin password, News page just read paste page, parse it and send it to browser.

Even better, create a blackhole in server. It will suck in the news automatically, though not sure about the possibility of retrieving them :lol:
Working on game: Marrbles (Currently stopped).
User avatar
serengeor
 
Posts: 1695
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Re: Which web programming language should i use

Postby kazymjir » Thu Feb 09, 2012 7:53 pm

Hmmm, according to Stephen Hawking theories, we can try to open a wormhole, but bills for power consumption to hold wormhole open all the time on server may be a bit too high.

edit:
Hey, I found cheaper solution! We can use MORSE CODE!
This will require an additional optics used to send data and also require to hire worker who will work as human-server.
I made an illustration:

Image
Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
kazymjir
 
Posts: 669
Joined: Sat Feb 20, 2010 4:05 pm
Location: Poland

Re: Which web programming language should i use

Postby Lil Margin » Sat Feb 11, 2012 4:01 am

LMAO, by the way guys i have picked up a book on php and since its familliar too c++ i picked it up fast and i already made that news page i wanted, instead of using a database i just used plain text.
User avatar
Lil Margin
 
Posts: 212
Joined: Sun Jul 19, 2009 4:24 am
Location: Netherlands Antilles, Curacao

Re: Which web programming language should i use

Postby Sudi » Sun Feb 12, 2012 12:58 pm

Checkout gwt its actually pretty cool and lets you code all logic in java.

http://code.google.com/intl/de/webtoolkit/
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
User avatar
Sudi
 
Posts: 1600
Joined: Fri Aug 26, 2005 8:38 pm

Re: Which web programming language should i use

Postby kazymjir » Sun Feb 12, 2012 1:04 pm

Sudi wrote:Checkout gwt its actually pretty cool and lets you code all logic in java.
http://code.google.com/intl/de/webtoolkit/

Looking interesting, but this thing may be too hard to learn for newbie.
http://jquery.com/ is a better solution.
Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
kazymjir
 
Posts: 669
Joined: Sat Feb 20, 2010 4:05 pm
Location: Poland

Re: Which web programming language should i use

Postby Sudi » Sun Feb 12, 2012 1:11 pm

kazymjir wrote:
Sudi wrote:Checkout gwt its actually pretty cool and lets you code all logic in java.
http://code.google.com/intl/de/webtoolkit/

Looking interesting, but this thing may be too hard to learn for newbie.
http://jquery.com/ is a better solution.


Actually jQuery doesn't address his problem. Its only a client side lib which gives you a nice api to make the interface appealing and connect to the backend. But you still have to code the backend.
GWT on the other side is the complete deal. It makes writing the frontend an backend a brease. Besides writing javascript can be really tedious. Having java at your disposal for clientside coding is actually pretty nice. Redeuces stupid type errors by 100%.
So if you want to create a webApplication(means has a frontend(webpage) and a backend(that actually does stuff like access a db or whatever)) then gwt is actually one of the easiest things you can use. Even for a beginner.

Edit: Another option would be RubyOnRails which is as well pretty easy and powerfull
Or if you want to get adventures you could create your own webserver with node.js but yeah that would be actually not a valid option for him bc you just want to create a webapp

Edit2: RubyOnRails: http://rubyonrails.org/
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
User avatar
Sudi
 
Posts: 1600
Joined: Fri Aug 26, 2005 8:38 pm

Next

Return to Off-topic

Who is online

Users browsing this forum: No registered users and 1 guest