Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

PHP Vs AJAX

AJAX ajax

  • Please log in to reply
35 replies to this topic

#25 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

Posted 17 May 2009 - 05:03 AM

AJAX is not a language, it's a technique. It uses a client-side scripting language (JavaScript or VBScript) to request information from the server (processed using a client-side scripting language such as ASP/ASP.NET/ColdFusion/PHP/CGI/Other) and update the document based on the response (by manipulating the DOM).
  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#26 jwxie518

jwxie518

    Speaks fluent binary

  • Senior Member
  • PipPipPipPipPipPip
  • 517 posts

Posted 17 May 2009 - 09:35 AM

AJAX is "Asynchronous JavaScript And XML" which makes it a technique used with JavaScript to load XML data into a HTML-page dynamically.

How you create the XML is another thing, there is where the server side languages come in place, like php, asp/asp.net and others.


That's why I said in one sentence, LOL, it's an add-on. You don't need AJAX unless if you insist to make it use it.
You can't develop a website or client application without the basic design approach. So, AJAX isn't a requirement at all. It's like an add-on technique. heheheee

I can see facebook is a very good example using AJAX?
  • 0

#27 Xav

Xav

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 8356 posts

Posted 17 May 2009 - 11:49 AM

In the same way, CSS and even HTML is an add-on.
  • 0
If you enjoy reading this discussion and are thinking about commenting, why not click here to register and start participating in under a minute?

#28 ValueForMoney

ValueForMoney

    CC Newcomer

  • Just Joined
  • PipPip
  • 19 posts

Posted 25 May 2009 - 02:23 AM

In the same way, CSS and even HTML is an add-on.


Yes, true. Master HTML, CSS, PHP, AJAX and you can build any type of website :0
  • 0

#29 barkermn01

barkermn01

    CC Newcomer

  • Just Joined
  • PipPip
  • 15 posts

Posted 27 May 2009 - 09:24 AM

The best think you can do is make a multi lang makeup lang,

E.G this is a verry basic makeup lang for a table
first name, second name:
Martin, barker:
Jhon, conna:
Then make it so asp/.net php cfm(cold fusion) can all make you makeup lang, then just get ajax to read it and a javascript function to use it E.G

<script type="text/javascript">
function getArray(){
rows = ajaxReturn.split(':');
for(i = 0; i == rows.count; i++){
rows[i] = rows[i].split(',');
}
}
</script>


This will give you a nested array E.G
rows[0] = [0] = martin, [1] = barker
rows[2] = [0] = jhon, [1] = conna

Its realy easy to make up a makeup lang with regEx (regual exspresions)
  • 0

#30 harryboss

harryboss

    CC Lurker

  • Just Joined
  • Pip
  • 3 posts

Posted 02 September 2009 - 05:55 AM

There seem to be a rather strange confusion about this topic, even in the replies within this very thread.

Ajax, is simply, to the core, a technique used in JavaScript alone. It all boils down to a function to retrieve data asynchronously from the server. This data, which in AJAX stands for XML, though it can be html, JSON or any other format of choice. Some javascripts featuring ajax does not even use a severside programming language such as PHP, since it fetches RAW data from the server, such as .json, .html, .xml, .txt or whatever. But, of course, it is very usefull to use have a server side program to generate the data, such as with PHP.

This whole process to integrate AJAX with your all day code in javascript can be really simplified with a library. There is a nice collection of such javascript libraries over at libzter.
  • 0

#31 reddem0n

reddem0n

    CC Newcomer

  • Just Joined
  • PipPip
  • 10 posts

Posted 29 September 2009 - 11:42 AM

great posts guys, learned a lot from this
  • 0

#32 debtboy

debtboy

    CC Devotee

  • Just Joined
  • PipPipPipPipPipPip
  • 499 posts

Posted 03 October 2009 - 08:24 AM

Sorry,
Everyone is wrong...

Ajax is a detergent!! :D

Posted Image
  • 0

#33 amrosama

amrosama

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 2765 posts

Posted 03 October 2009 - 09:39 AM

lmao
  • 0
yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
www.amrosama.com | the unholy methods of javascript

#34 Orjan

Orjan

    CC Mentor

  • Moderator
  • 2918 posts
  • Location:Karlstad, Sweden
  • Programming Language:C, Java, C++, C#, PHP, JavaScript, Pascal
  • Learning:Java, C#

Posted 03 October 2009 - 09:41 AM

well, sure, we have it as cleaning liquids in many varieties here in Sweden...
  • 0

I'm a System developer at XLENT Consultant Group mainly working with SugarCRM.
Please DO NOT send mail or PM to me with programming questions, post them in the appropriate forum instead, where I and others can answer you.


#35 Guest_Jordan_*

Guest_Jordan_*
  • Guest

Posted 03 October 2009 - 07:43 PM

lmao. Does it work without reloading though?
  • 0

#36 Orjan

Orjan

    CC Mentor

  • Moderator
  • 2918 posts
  • Location:Karlstad, Sweden
  • Programming Language:C, Java, C++, C#, PHP, JavaScript, Pascal
  • Learning:Java, C#

Posted 04 October 2009 - 01:02 AM

No, when it's empty, you need to reload it from the store, unfortunately...
  • 0

I'm a System developer at XLENT Consultant Group mainly working with SugarCRM.
Please DO NOT send mail or PM to me with programming questions, post them in the appropriate forum instead, where I and others can answer you.






Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download