22, March 2010

Server Side operations in a .htm via AJAX - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  JavaScript
Topic: Server Side operations in a .htm via AJAX
« previous next »
Pages: [1] Print

Author Topic: Server Side operations in a .htm via AJAX  (Read 1839 times)
Where are my glasses?
*
Gender: Male
Posts: 22
148 credits
Members referred : 0



« on: Oct 07, 2007, 11:05:09 pm »

With the recent craze about AJAX, and all the possibilities it can give, there is a subject I have been dying to discuss.

Take for instance a login system, written in PHP. Would it be possible to put that into a .htm file, using AJAX to communicate between Client and Server?

Discuss.
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6690
34708 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Oct 08, 2007, 12:57:19 am »

sure your interface might be html files but you need php scripts to process everything


Last blog : A new Wordpress theme for our blog
Where are my glasses?
*
Gender: Male
Posts: 22
148 credits
Members referred : 0



« Reply #2 on: Oct 08, 2007, 09:28:35 am »

Well, yeh, my thoughts precisley. But how would sessions work?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6690
34708 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Oct 08, 2007, 09:41:00 am »

Well, yeh, my thoughts precisley. But how would sessions work?
the html files are only the interface (client code) everything on the serverside need to be processed by php scripts.

it makes no difference if the html code is generated by php or is presented by some html file


Last blog : A new Wordpress theme for our blog
Where are my glasses?
*
Gender: Male
Posts: 22
148 credits
Members referred : 0



« Reply #4 on: Oct 08, 2007, 09:54:05 am »

No! I mean, have a .htm file with NO php code, and have PHP proccessed by the AJAX
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6690
34708 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Oct 08, 2007, 10:06:53 am »

No! I mean, have a .htm file with NO php code, and have PHP proccessed by the AJAX

actually that what I said a php file is a html file in the clients browser


Last blog : A new Wordpress theme for our blog
Where are my glasses?
*
Gender: Male
Posts: 22
148 credits
Members referred : 0



« Reply #6 on: Oct 08, 2007, 10:10:15 am »

Mm i suppose...

I cant see how it would work though. How would you check if the user is logged in?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5660
45593 credits
Members referred : 3



« Reply #7 on: Oct 08, 2007, 01:34:20 pm »

I don't understand. Why to do this?

A user module is for security. One person can have some personalized features in your site.

If this would be done by javascript alone, anyone would be able to use anyone's rights.

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6690
34708 credits
Members referred : 374


It's time to use PHP5!


« Reply #8 on: Oct 08, 2007, 01:35:22 pm »

Mm i suppose...

I cant see how it would work though. How would you check if the user is logged in?

maybe you can tell us first what you try to do, just keeping us busy with your questions is not really fun Smiley


Last blog : A new Wordpress theme for our blog
Where are my glasses?
*
Gender: Male
Posts: 22
148 credits
Members referred : 0



« Reply #9 on: Oct 08, 2007, 05:36:11 pm »

Sorry :S

Ok... I think ive found a way, thanks Tongue
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5660
45593 credits
Members referred : 3



« Reply #10 on: Oct 08, 2007, 05:59:03 pm »

Of course there is a way, but I think there is no usability for such a thing. How do you intend to use it?

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Where are my glasses?
*
Gender: Male
Posts: 22
148 credits
Members referred : 0



« Reply #11 on: Oct 08, 2007, 07:46:00 pm »

Well, I was trying to convert a login system into AJAX, but the idea struck me and I decided to try it.
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=7198
Tags : ajax html Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  JavaScript
Topic: Server Side operations in a .htm via AJAX
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Mar 22, 2010, 02:55:29 am





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 44.238
Total Topics: 8.626
Total Members: 8.246
Tutorials : 58
Resources : 929
Designs : 361
Latest Member: handylady

26 Guests, 4 Users online :

10 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2010 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.