28, May 2012

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
Instabuck - The easy way to sell digital products online

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



« on: Oct 07, 2007, 10: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: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Oct 07, 2007, 11:57:19 pm »

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

Where are my glasses?
*
Gender: Male
Posts: 22
148 credits
Members referred : 0



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

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


It's time to use PHP5!


« Reply #3 on: Oct 08, 2007, 08: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

Where are my glasses?
*
Gender: Male
Posts: 22
148 credits
Members referred : 0



« Reply #4 on: Oct 08, 2007, 08: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: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Oct 08, 2007, 09: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

Where are my glasses?
*
Gender: Male
Posts: 22
148 credits
Members referred : 0



« Reply #6 on: Oct 08, 2007, 09: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: 5799
46391 credits
Members referred : 3



« Reply #7 on: Oct 08, 2007, 12: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: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #8 on: Oct 08, 2007, 12: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

Where are my glasses?
*
Gender: Male
Posts: 22
148 credits
Members referred : 0



« Reply #9 on: Oct 08, 2007, 04: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: 5799
46391 credits
Members referred : 3



« Reply #10 on: Oct 08, 2007, 04: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, 06: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?
May 28, 2012, 09:30:24 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!






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