473,775 Members | 2,489 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP to AJAX - a little off topic

Hello,
I have a good PHP script that I would like to use and want to convert
it to Ajax. It's basically a text only search program so Ajax would
work perfect. My questions is what is the easiest way to convert it
over. I'm kind of a NOOB to all of this and have messed with PHP, AJAX
etc. a little bit here and there.

If someone can please give me some advise that would be great.

Thanks!
Nov 26 '07 #1
3 1348
On Nov 26, 10:43 pm, John <John_nos...@nn nnnnnnn.nowhere wrote:
Hello,

I have a good PHP script that I would like to use and want to convert
it to Ajax. It's basically a text only search program so Ajax would
work perfect. My questions is what is the easiest way to convert it
over. I'm kind of a NOOB to all of this and have messed with PHP, AJAX
etc. a little bit here and there.

If someone can please give me some advise that would be great.

Thanks!
You are confused. AJAX is a scripting 'technique', not a language,
hence you can't 'convert' your php script to ajax.
What might work for you is scripting your front end (html form?) to
send/receive requests to your PHP script dynamically.

This is a good place to start.
http://www.w3schools.com/ajax/default.asp

Kailash Nadh | http://kailashnadh.name
Nov 26 '07 #2
I forgot to add a few things.
I have a MYSQL database with all of the text inside it that I want to
search for. I to create an ajax search box that will search for the
text and display it on the screen.

Nov 26 '07 #3

Thanks for the information.
I just have one more question. If I keep it a PHP script, how can I
add another php script like a yellow search highlighter? I have the
yellow php highlighter script, but do not know how to include it?
Nov 27 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
2344
by: Yarco | last post by:
I want to use "Ajax" to create my web for hobby. But i don't know whether "Ajax" is mature... And what about with php? Someone have experience on it? ....
3
1399
by: blueapricot416 | last post by:
I have some javascript in a standard HTML page that uses the ubiquitous "XMLHttpRequest" to send data to a remote ASP page. If that page "answers back" by sending a string using a simple Response.Write, which I then use in the original HTML page to dynamically update stuff, is this "AJAX"? Specifically, is there anything "wrong" with sending back info from classic ASP pages using simple Response.Writes? (Is there usually something...
3
1782
by: caston | last post by:
Well, everybody can now agree with the fact that the Ajax hype is over. Still multiple Ajax Frameworks are flourishing, aren't they? So, last night I questioned myself with the following: "When Ajax Frameworks will be gone? What is required to get rid of them and start using browsers?" (To be more precise, I should probably also mention what kind of frameworks do i mean. These are: Dojo, BackBase, Qooxdoo etc.) I've got an answer that I...
2
1413
hirak1984
by: hirak1984 | last post by:
Well my job requires me to learn a little bit of AJAX.I dont have much time to learn though.Can anyone sugest any link where i can learn ajax fast.I dont need profound knowledge in the topic, i need very basic programming skills. Please suggest fast.
1
1032
Frinavale
by: Frinavale | last post by:
Hullo there! I was wondering if there was anyone else out there using ASP.NET Ajax. I have no idea were to get help with the issues I'm running into while teach myself the tools in this package. I've found a lot of little quirks using these tools and would love to share my thoughts on them as well as get some feedback on the problems I'm currently running into. I'm just not quite sure where to post in concerns with this package as it...
10
3076
by: =?Utf-8?B?WWFua2VlIEltcGVyaWFsaXN0IERvZw==?= | last post by:
controlsPlease could some of you here post some of your live examples of AJAX (esp drag panels, collapsable panels, and popup menu.) (It's one thing to talk about how great something is, but it's another to really see how great something is.) Thanks -- Share The Knowledge. I need all the help I can get and so do you!
4
1496
by: DanWeaver | last post by:
I am dumbfounded at the apparent lack of an obvious mechanism that prevents finding a shared host being the absolute nightmare it is: due to the nature of the business (ie techies who know about advertising running web hosts) I have spend a grueling 5 hours searching through lies and sales tosh and "independent" reviews of hosts- I feel little more informed but much more liable to have a coronary than when I started. The few reviews Ive...
5
235
by: KDawg44 | last post by:
Hello, I am beginning to work on a project for my degree. The concept is "The Utilization of AJAX calls to separate the Presentation Layer and Application Layer in Web Applications." Now, I am developing in PHP as my server side scripting but am try to decide how to approach this problem. To adequately support this concept, should I have no server side scripting at all on the accessed pages? (no php except in the calls by AJAX).
11
3051
by: =?Utf-8?B?R2VyaGFyZA==?= | last post by:
I have run into a situation that if a page/tab that uses the Ajax toolkit (using .net version 3.5) is closed before the Ajax enable controls complete loading, then IE locks up. Does it in both IE7 and IE8. There is no issue when the controls are allowed to complete loading. Can you please tell me the best practice that handles this? Thanks.
0
9622
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10270
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10109
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10051
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8939
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6718
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3611
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2853
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.