It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Help, quick question!

Help, quick question!

Postby perelandra on Mon Apr 13, 2009 6:22 am

Newb question: Is java script capable of allowing a user to change something in a webpage so that ANY user who visits that page sees this change? If not, what script or non-script language is capable of this?

Thanks!
perelandra
 
Posts: 6
Joined: Mon Aug 25, 2008 10:17 pm

Re: Help, quick question!

Postby dflynn on Mon Apr 13, 2009 7:58 am

Depends on what you want. If you are changing content and allowing the page to reload, then PHP will do the trick with a MySQL database.
User avatar
dflynn
500+ Club
 
Posts: 860
Joined: Wed Oct 03, 2007 9:06 pm
Location: Guelph, Canada

Re: Help, quick question!

Postby perelandra on Mon Apr 13, 2009 8:53 am

Must one have a database? Suppose you want a text input form that spits back the text in another paragraph. Can you code this in a way so users on other computers can see this new text, without the need of a database?

Otherwise I think I need to use something other than java script. Thanks a bunch for your input, I appreciate it immensely :)
perelandra
 
Posts: 6
Joined: Mon Aug 25, 2008 10:17 pm

Re: Help, quick question!

Postby dflynn on Mon Apr 13, 2009 3:22 pm

You can save it into flatfiles. I've never done this, but I know it's possible. Try googling that :P
User avatar
dflynn
500+ Club
 
Posts: 860
Joined: Wed Oct 03, 2007 9:06 pm
Location: Guelph, Canada

Re: Help, quick question!

Postby rangana on Mon Apr 13, 2009 5:21 pm

If you're doing things via Javascript, the changes are visible only to the client's machine as the script itself is "client-side".

Other users who viewed the page will not see the changes defined by the user.

When you do things server-side (PHP), it will be visible on all of your visitors.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Re: Help, quick question!

Postby perelandra on Mon Apr 13, 2009 9:05 pm

I'll look into that flatfile thing, dflynn. This makes sense rangana, I shall look into PHP as well. Are there any other common server-side scripting languages? Thanks all!
perelandra
 
Posts: 6
Joined: Mon Aug 25, 2008 10:17 pm

Re: Help, quick question!

Postby Suffer on Wed Apr 15, 2009 6:54 am

great post, thanks guys.
Suffer
100+ Club
 
Posts: 236
Joined: Tue Jan 20, 2009 6:34 am

Re: Help, quick question!

Postby webmaster on Wed Apr 15, 2009 7:03 am

perelandra wrote:I'll look into that flatfile thing, dflynn. This makes sense rangana, I shall look into PHP as well. Are there any other common server-side scripting languages? Thanks all!


There's PHP and ASP that are the two most used ones.
User avatar
webmaster
Site Admin
 
Posts: 2695
Joined: Tue Aug 17, 2004 1:07 pm
Location: Sweden


Who is online

Users browsing this forum: No registered users and 3 guests