Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sql driven by JavaScript URL

0 views
Skip to first unread message

vnc...@hotmail.com

unread,
Apr 9, 2007, 4:21:36 PM4/9/07
to
I'm trying to access a url value from

function poponload()
{

if (document.forms['lname'] != null)
{
urlStr = "http://blah/employee_directory/edirectory.cfm?
lname="+document.forms[0].elements['lname'].value,
"mywindow","location=1,status=1,scrollbars=1,width=100,height=100";
}

testwindow= window.open (urlStr);
testwindow.moveTo(0,0);
}

document.write ("<form method=post>")
document.write ("<input type=text name=lname>")
document.write ("<input type=button value=Search onClick='javascript:
poponload()'>")
document.write ("</form>")

to drive this query


<cfquery datasource="EmployeeDirectory"
name="EmpLN">
Select * from vEmployeeList Order By LN
Where Last_Name LIKE '#URL.lname#'
</cfquery>

But I get an error message that says, "The website cannot display the
page"

I can't use simple HTML. It must be done the hard way. It's a long
story
:)

0 new messages