Reply to topic
Open form results in new window
Groll


Joined: 23 Dec 2004
Posts: 27
Reply with quote
I want take this simple whois script and make the results open in a new window. All it does is check the availability of a domain name. Since there is no real 'results' page, is this possible and where might it go?

Code:
<%
If request.form("domain")<>"" then
 ' Intruduce the url you want to visit
 GotothisURL = "http://www." & request.form("domain")

 ' Create the xml object
 Set GetConnection = CreateObject("Microsoft.XMLHTTP")
 ' Conect to specified URL
 GetConnection.Open "get", GotothisURL, False
on error resume next
 GetConnection.Send 

 ' ResponsePage is the response, then print it out to the page
 ResponsePage = GetConnection.getResponseHeader("Date")

' Write response
if ResponsePage="" then 
Response.write("This domain name may be available")
else
Response.write("This domain name is taken")
end if

Set GetConnection = Nothing

else
%>
<form method=post action=<% =request.servervariables("URL") %>>
<input type=text name=domain size=15>
<input type=submit value="Check Availability">
</form>
<% end if %>
bobum
Elvis Fanatic
Elvis Fanatic

Joined: 16 Nov 2004
Posts: 746
Location: Montgomery, AL
Reply with quote
new full browser window or a lil popup?
Groll


Joined: 23 Dec 2004
Posts: 27
Reply with quote
little popup is fine, abour 300x300 will do it.
bobum
Elvis Fanatic
Elvis Fanatic

Joined: 16 Nov 2004
Posts: 746
Location: Montgomery, AL
Reply with quote
What you want then is the Javascript window.open() command
Google for that and you'll find what you need
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote

says coldfusion rocks! thank ya, thank ya very much!![/img]
Josh
Forum Regular

Joined: 01 Apr 2004
Posts: 1031
Location: Felton, Delaware
Reply with quote
aaahhhh we could have done w/o that in here Sad
bobum
Elvis Fanatic
Elvis Fanatic

Joined: 16 Nov 2004
Posts: 746
Location: Montgomery, AL
Reply with quote
Mad

will he ever learn? It was old a while ago...now it's getting friggin annoying...EVERY frickin thread he ends with something like that...

lofty - you're ok but - KNOCK IT OFF
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
lol givin u a elvis sorry stud, my god
Open form results in new window
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic