9, July 2008

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

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ 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 649 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: 6274
38470 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 : 4th of July Lottery from TemplateMonster.com
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: 6274
38470 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 : 4th of July Lottery from TemplateMonster.com
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: 6274
38470 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 : 4th of July Lottery from TemplateMonster.com
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: 7946
40629 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 Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6274
38470 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 : 4th of July Lottery from TemplateMonster.com
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: 7946
40629 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 Visit through proxy

Last blog : MIA - Where Nick and Tim
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....

Topic sponsors:
Get a permanent link here for $1.99!


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?
Jul 09, 2008, 04:08:38 PM





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: 35.594
Total Topics: 7.356
Total Members: 3.663
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: Stepho

23 Guests, 5 Users online :

19 users online today:



Readers

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