Solved

Simple XMLHttpRequest Search & Display

Posted on 2006-10-30
12
334 Views
Last Modified: 2008-01-09
__________________________________________________

I'd like to create a "simple" web application that allows users to search for available domain names.

As they type a domain name into the search field, the results are populated below (without the need for a submit button).

However, it would search using GET requests, like:

http://www.site,com/search.php?domain=DOMAIN

It would then tell the user which extension is available for their chosen domain name:

Such as:

somedomain.com = Available
somedomain.net = Unavailable
somedomain.org = Available

and then return each result as a link like:

http://www.site,com/info.php?domain=DOMAIN


Hope this isn't too complicated...

Thanks...
0
Comment
Question by:Web_Zap
12 Comments
 
LVL 15

Expert Comment

by:SnowFlake
ID: 17840207
what is your Q ?
0
 

Author Comment

by:Web_Zap
ID: 17845575
I need help creating this.
0
 

Author Comment

by:Web_Zap
ID: 17853640
Can anyone help?
0
 
LVL 15

Expert Comment

by:SnowFlake
ID: 17853953
you are not getting many responses as people here don't feel its their task to do other people's work
without being paid for it.
people are here to HELP, and ANSWER Q's, and TEACH.

if you need help your Q should go something like:
I am trying to ....
So far I did ....
However ....
Does anybody know howto/why/..... ?

So,
what have you done so far ?
what technology are you using ?
who are the clients for this and what is the domain that you plan to make the searches against ?

what do you mean when you say:
"As they type a domain name into the search field, the results are populated below (without the need for a submit button)."
does that mean that if I type bigredcars

I will get
b.com
b.net
b.org
bi.com
bi.net
bi.org
big.com
and so on
?????

SnowFlake



0
 

Author Comment

by:Web_Zap
ID: 17854723
I never said I wanted anyone to create this project for me.

Please re-read my original post. I said "I'd like to create a "simple" web application that allows users to search for available domain names."

Notice I used the phrase "I'd like to create"? I never said "I'd like YOU to create".

Anyways, yes, basically just a live search that populates the results as they type.

An example would be nice.

Thanks!
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 15

Expert Comment

by:SnowFlake
ID: 17856233
what would you have running on the server-side ?
IMHO - if your page comes from one domain you will not be able to get the results from another one - on the client side - unless you are running something with elevated permissions - like an .HTA (html application).
if you would like to do this from the backend however - your solution would depend on your server side technology.

would you like an example for .NET ?
0
 

Author Comment

by:Web_Zap
ID: 17856831
I would have PHP on the server side.

Also, let's say, that the searches would be made using: http://www.networksolutions.com

Thanks again.
0
 
LVL 15

Accepted Solution

by:
SnowFlake earned 134 total points
ID: 17861209
well, on that case (since I don't know Any PHP) I would suggest that you ask you Q again in the php TA (http://www.experts-exchange.com/Web/Web_Languages/PHP/)
for the backend support support,
and I guess that would also be a good place to ask about an AJAX framework that works with PHP.

If you want to get better understanding of related topic before you ask again you can search up on "xmlhttp" and on "ajax".

good luck,

SnowFlake
0
 
LVL 1

Assisted Solution

by:kurnia
kurnia earned 133 total points
ID: 17872456
Hi,
here is an Ajax example http://www.clearnova.com/ajax/
perhaps you can learn from there.

0
 
LVL 11

Assisted Solution

by:kelvinwkw
kelvinwkw earned 133 total points
ID: 17935975
<html>
      <body>
<script>
      <!--
      function domainLookup(domainName){
            try {
          xmlhttp = window.XMLHttpRequest ? new XMLHttpRequest():      new ActiveXObject("Microsoft.XMLHTTP");
        }catch (e) { document.write("Non Ajax support browser");}
    var m_url = "http://examples.softwaremodules.com/IntraDns.asp?domainname=" + domainName + "&Submit=Submit&t_a=1&t_mx=1&t_ns=1";
    xmlhttp.open("GET", m_url, false);
    xmlhttp.send();
    if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200)){
          var responseText = xmlhttp.responseText;
          var preText = "DNS Lookup (A) for <strong>" + domainName + "</strong>. Items Returned: <strong>";
          var preTextLoc = responseText.indexOf(preText) + preText.length;
          var lookupInfo = responseText.substring(preTextLoc, preTextLoc + 1);
             if (lookupInfo != "0" ){
                   document.getElementById("domainDetail").innerHTML = "Occupied";      
             }else{
                         document.getElementById("domainDetail").innerHTML = "Available";      
            }
        }        
      }
-->
</script>
<div id="domainDetail"></div>
<form name="form">
      <input name="domain" size="30"/>
      <input type="button" value="Domain Lookup" onclick="domainLookup(document.form.domain.value);"/>
</form>
</body>
</html>


try one of this

in HTML
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now