PopUp from hyperlink

B

Brian Shafer

Hi,
I have a table using the Database result wizard. On one field I want to put
a hyperlink that will open a smaller window and open another database result
wizard base upon the value from the hyperlink. Is this possible with FP2003?
Thanks,
Brian Shafer

--
Please remove the 123 from the EMAIL Address. This has been added to prevent
spamming.


pssssst! Here spammer, spammer, spammer.
(e-mail address removed), (e-mail address removed), (e-mail address removed), (e-mail address removed)
 
J

Jim Buyens

-----Original Message-----
Hi,
Howdy.

I have a table using the Database result wizard. On one
field I want to put a hyperlink that will open a smaller
window and open another database result wizard base upon
the value from the hyperlink. Is this possible with
FP2003?
Thanks,
Brian Shafer

Yes. The trick is to use a custom query that generates the
HTML you want in the column you want.

The hyperlink would need to look something like this (all
on one line):

<a href="javascript:window.open
('detailpage.asp?
prodid=1234',null,'height=200,width=400,status=
no,toolbar=no,menubar=no,location=no');void(0);">

To make this come out of the DRW, you'd need to code a
custom query like:

SELECT '<a href="javascript:window.open
(''detailpage.asp?prodid=' & [prodid]
& ''',null,''height=200,width=400,status=
no,toolbar=no,menubar=no,location=no');void(0);">' as
prodlink, ...

Then, after the DRW ends, right-click the prodlink column,
choose Database Column Value Properties, and select the
Column Value Contains HTML check box.

The DRW in the detailpage.asp page would specify a query
value of prodic, with Use This Search Form Field selected,
and with Add Search Form (on page 5) cleared.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
B

Brian Shafer

Thanks Jim...
Another question...
prodid is a value in a table from the DRW. I can't hard code the value..
how would I retrive it
Thanks,
Brian Shafer

Jim Buyens said:
-----Original Message-----
Hi,
Howdy.

I have a table using the Database result wizard. On one
field I want to put a hyperlink that will open a smaller
window and open another database result wizard base upon
the value from the hyperlink. Is this possible with
FP2003?
Thanks,
Brian Shafer

Yes. The trick is to use a custom query that generates the
HTML you want in the column you want.

The hyperlink would need to look something like this (all
on one line):

<a href="javascript:window.open
('detailpage.asp?
prodid=1234',null,'height=200,width=400,status=
no,toolbar=no,menubar=no,location=no');void(0);">

To make this come out of the DRW, you'd need to code a
custom query like:

SELECT '<a href="javascript:window.open
(''detailpage.asp?prodid=' & [prodid]
& ''',null,''height=200,width=400,status=
no,toolbar=no,menubar=no,location=no');void(0);">' as
prodlink, ...

Then, after the DRW ends, right-click the prodlink column,
choose Database Column Value Properties, and select the
Column Value Contains HTML check box.

The DRW in the detailpage.asp page would specify a query
value of prodic, with Use This Search Form Field selected,
and with Add Search Form (on page 5) cleared.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
B

Brian Shafer

I even tried putting a varible into the global.asp and setting it one page
from the drw column and using that to pass to the new querry for the
popup???
Any other Ideas.. I am very green to Frontpage and web page coding and
design...
Thanks,
Brian Shafer
Jim Buyens said:
-----Original Message-----
Hi,
Howdy.

I have a table using the Database result wizard. On one
field I want to put a hyperlink that will open a smaller
window and open another database result wizard base upon
the value from the hyperlink. Is this possible with
FP2003?
Thanks,
Brian Shafer

Yes. The trick is to use a custom query that generates the
HTML you want in the column you want.

The hyperlink would need to look something like this (all
on one line):

<a href="javascript:window.open
('detailpage.asp?
prodid=1234',null,'height=200,width=400,status=
no,toolbar=no,menubar=no,location=no');void(0);">

To make this come out of the DRW, you'd need to code a
custom query like:

SELECT '<a href="javascript:window.open
(''detailpage.asp?prodid=' & [prodid]
& ''',null,''height=200,width=400,status=
no,toolbar=no,menubar=no,location=no');void(0);">' as
prodlink, ...

Then, after the DRW ends, right-click the prodlink column,
choose Database Column Value Properties, and select the
Column Value Contains HTML check box.

The DRW in the detailpage.asp page would specify a query
value of prodic, with Use This Search Form Field selected,
and with Add Search Form (on page 5) cleared.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
J

Jim Buyens

Brian Shafer said:
Thanks Jim...
Another question...
prodid is a value in a table from the DRW. I can't hard code the value..
how would I retrive it
Thanks,
Brian Shafer

I'm not sure I understand your question, but look at the SQL statement
again:

SELECT '<a href="javascript:window.open(''detailpage.asp?prodid=' &
[prodid]& ''',null,''height=200,width=400,status=no,toolbar=no,menubar=no,location=no');void(0);">'
as prodlink, ...

This is going to generate a result set like:

prodlink
--------
<a href="javascript:window.open('detailpage.asp?prodid=1',
null,'height=200,width=400,status=no,toolbar=no,menubar=no,location=no');void(0);">

<a href="javascript:window.open('detailpage.asp?prodid=2',
null,'height=200,width=400,status=no,toolbar=no,menubar=no,location=no');void(0);">

<a href="javascript:window.open('detailpage.asp?prodid=3',
null,'height=200,width=400,status=no,toolbar=no,menubar=no,location=no');void(0);">

The ? in the detailpage.asp URL begins a query string, and prodid=1
and so forth are name=value pairs.

For the DRW in your second page to pick up the prodid value that the
first page sends as a query string variable:

1. Open the second page (i.e. detailpage.asp).
2. Advance to page 2 of the DRW.
3. Click More Options, Criteria, Add.
4. Specify: Field Name: (your table id field name)
Comparison: Equals
Value: prodid (the name of the query string variable)
Use This Search Form Field: Selected.
And/Or: And
5. Click OK, OK, OK, Next, Next.
6. On page 5 of the wizard, clear the Add Search Form check box.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
B

Brian Shafer

Jim,
this is the SQL Statement I have on my custom query for the first page. It
returns an error????
Am I correct that TeamID is the query search field for the next page?

SELECT '<a
href="javascript:window.open(''volleyball_Team_Members.asp?TeamID=' &
[numTeam] &
''',null,''height=200,width=400,status=no,toolbar=no,menubar=no,location=no'
);void(0);">'
as Team, txtFirstName as [First Name], txtLastName as [Last Name],
txtHomePhone as [Contact Number] FROM tblVolleyBallTeams where
chkTeamCaptain = 1 ORDER BY numTeam ASC,chkTeamCaptain ASC,txtFirstName
ASC,txtLastName ASC

What am I missing here?
Thanks, Brian

Jim Buyens said:
"Brian Shafer" <[email protected]> wrote in message
Thanks Jim...
Another question...
prodid is a value in a table from the DRW. I can't hard code the value..
how would I retrive it
Thanks,
Brian Shafer

I'm not sure I understand your question, but look at the SQL statement
again:

SELECT '<a href="javascript:window.open(''detailpage.asp?prodid=' &
[prodid]& ''',null,''height=200,width=400,status=no,toolbar=no,menubar=no,location=no'
);void(0);">'
as prodlink, ...

This is going to generate a result set like:

prodlink
--------
<a href="javascript:window.open('detailpage.asp?prodid=1',
null,'height=200,width=400,status=no,toolbar=no,menubar=no,location=no');voi
d(0);">

<a href="javascript:window.open('detailpage.asp?prodid=2',
null,'height=200,width=400,status=no,toolbar=no,menubar=no,location=no');voi
d(0);">

<a href="javascript:window.open('detailpage.asp?prodid=3',
null,'height=200,width=400,status=no,toolbar=no,menubar=no,location=no');voi
d(0);">

The ? in the detailpage.asp URL begins a query string, and prodid=1
and so forth are name=value pairs.

For the DRW in your second page to pick up the prodid value that the
first page sends as a query string variable:

1. Open the second page (i.e. detailpage.asp).
2. Advance to page 2 of the DRW.
3. Click More Options, Criteria, Add.
4. Specify: Field Name: (your table id field name)
Comparison: Equals
Value: prodid (the name of the query string variable)
Use This Search Form Field: Selected.
And/Or: And
5. Click OK, OK, OK, Next, Next.
6. On page 5 of the wizard, clear the Add Search Form check box.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
J

Jim Buyens

Brian Shafer said:
Jim,
this is the SQL Statement I have on my custom query for the first page. It
returns an error????
Am I correct that TeamID is the query search field for the next page?

SELECT '<a
href="javascript:window.open(''volleyball_Team_Members.asp?TeamID=' &
[numTeam] &
''',null,''height=200,width=400,status=no,toolbar=no,menubar=no,location=no'
);void(0);">'
as Team, txtFirstName as [First Name], txtLastName as [Last Name],
txtHomePhone as [Contact Number] FROM tblVolleyBallTeams where
chkTeamCaptain = 1 ORDER BY numTeam ASC,chkTeamCaptain ASC,txtFirstName
ASC,txtLastName ASC

What am I missing here?
Thanks, Brian

Yes, there are a lot of tricky nested apostrophes here. Just remember that in SQL:

o You must enclose text literals in apostrophes (').
o To put an apostrophe *inside* a text literal, code two apostrophes.
(i.e. to get O'Hara, code 'O''Hara'.)
o Within apostrophes, quotation marks (") are just ordinary characters.
o If you code JavaScript inside an HTML attribute value, use apostrophes
rather than quotation marks. For example:
<a href="javascript:window.open('mypage.htm')">

Given all that, try this:



Alternatively, add this script to the <head> section of your page:
SELECT '<a href="javascript:window.open(''volleyball_Team_Members.asp?TeamID='
& [numTeam] & ''', null,'
& '''height=200,width=400,status=no,toolbar=no,menubar=no,location=no'''
& ' ;void(0);">'
& [numTeam] & '</a>' AS Team,
txtFirstName as [First Name],
txtLastName as [Last Name],
txtHomePhone as [Contact Number]
FROM tblVolleyBallTeams where chkTeamCaptain = 1
ORDER BY numTeam ASC,
chkTeamCaptain ASC,
txtFirstName ASC,
txtLastName ASC
<script>
function openTeam(aTeam){
window.open("volleyball_Team_Members.asp?TeamID=" + aTeam , null,
"height=200,width=400,status=no,toolbar=no,menubar=no,location=no");
}
</script>

and then code your SQL statement:

SELECT '<a href="javascript:eek:penTeam(' &
[numTeam] &
');">' & [numteam] & '</a>' AS Team,
txtFirstName as [First Name],
txtLastName as [Last Name],
txtHomePhone as [Contact Number]
FROM tblVolleyBallTeams where chkTeamCaptain = 1
ORDER BY numTeam ASC,
chkTeamCaptain ASC,
txtFirstName ASC,
txtLastName ASC


'<a href="javascript:eek:penTeam(' & [numTeam] & ');">' & [numteam] & '</a>'
Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
B

Brian Shafer

Wow.. I am just about ready to give on this... ... this is what i've go so
far...
in volleyball_team.asp header I have
<script>
function openTeam(aTeam){
window.open("volleyball_Team_Members.asp?Team=" + aTeam , null,
"height=600,width=800,status=no,toolbar=no,menubar=no,location=no");
}
</script>
vollyball_team.asp DRW Table for the link i have...
<a href="javascript:eek:penTeam(' & [numTeam] & ');">
Cool.. everything looks good so far....
but when i publish the pages I get the window the way I want it.. but...
I get an Database Results Wizard Error...

I have a copy of the same table on the volleyball_team and on that link
I have <a
href="volleyball_Team_Members.asp?Team=<%=FP_FieldURL(fp_rs,"Team")%>">
This one opens the page and the correct data is there... however.. it opens
another page...
Can I get your Help once again Jim.. or someone else???
Dying here....

I am a newbi to java, FP2003, vb script and webpage design.... So the
patenice is appricated...







Jim Buyens said:
"Brian Shafer" <[email protected]> wrote in message
Jim,
this is the SQL Statement I have on my custom query for the first page. It
returns an error????
Am I correct that TeamID is the query search field for the next page?

SELECT '<a
href="javascript:window.open(''volleyball_Team_Members.asp?TeamID=' &
[numTeam] &
''',null,''height=200,width=400,status=no,toolbar=no,menubar=no,location=no'
);void(0);">'
as Team, txtFirstName as [First Name], txtLastName as [Last Name],
txtHomePhone as [Contact Number] FROM tblVolleyBallTeams where
chkTeamCaptain = 1 ORDER BY numTeam ASC,chkTeamCaptain ASC,txtFirstName
ASC,txtLastName ASC

What am I missing here?
Thanks, Brian

Yes, there are a lot of tricky nested apostrophes here. Just remember that in SQL:

o You must enclose text literals in apostrophes (').
o To put an apostrophe *inside* a text literal, code two apostrophes.
(i.e. to get O'Hara, code 'O''Hara'.)
o Within apostrophes, quotation marks (") are just ordinary characters.
o If you code JavaScript inside an HTML attribute value, use apostrophes
rather than quotation marks. For example:
<a href="javascript:window.open('mypage.htm')">

Given all that, try this:



Alternatively, add this script to the <head> section of your page:
SELECT '<a href="javascript:window.open(''volleyball_Team_Members.asp?TeamID='
& [numTeam] & ''', null,'
& '''height=200,width=400,status=no,toolbar=no,menubar=no,location=no'''
& ' ;void(0);">'
& [numTeam] & '</a>' AS Team,
txtFirstName as [First Name],
txtLastName as [Last Name],
txtHomePhone as [Contact Number]
FROM tblVolleyBallTeams where chkTeamCaptain = 1
ORDER BY numTeam ASC,
chkTeamCaptain ASC,
txtFirstName ASC,
txtLastName ASC
<script>
function openTeam(aTeam){
window.open("volleyball_Team_Members.asp?TeamID=" + aTeam , null,
"height=200,width=400,status=no,toolbar=no,menubar=no,location=no");
}
</script>

and then code your SQL statement:

SELECT '<a href="javascript:eek:penTeam(' &
[numTeam] &
');">' & [numteam] & '</a>' AS Team,
txtFirstName as [First Name],
txtLastName as [Last Name],
txtHomePhone as [Contact Number]
FROM tblVolleyBallTeams where chkTeamCaptain = 1
ORDER BY numTeam ASC,
chkTeamCaptain ASC,
txtFirstName ASC,
txtLastName ASC


'<a href="javascript:eek:penTeam(' & [numTeam] & ');">' & [numteam] & '</a>'
Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
J

Jim Buyens

Brian Shafer said:
Wow.. I am just about ready to give on this... ... this is what i've go so
far...
in volleyball_team.asp header I have
<script>
function openTeam(aTeam){
window.open("volleyball_Team_Members.asp?Team=" + aTeam , null,
"height=600,width=800,status=no,toolbar=no,menubar=no,location=no");
}
</script>
vollyball_team.asp DRW Table for the link i have...
<a href="javascript:eek:penTeam(' & [numTeam] & ');">
Cool.. everything looks good so far....
but when i publish the pages I get the window the way I want it.. but...
I get an Database Results Wizard Error...


What's the Database Results Wizard error?

I have a copy of the same table on the volleyball_team and on that link
I have <a
href="volleyball_Team_Members.asp?Team=<%=FP_FieldURL(fp_rs,"Team")%>">
This one opens the page and the correct data is there... however.. it opens
another page...
Can I get your Help once again Jim.. or someone else???
Dying here....

That seems to be a diferent type of application, or perhaps you hacked
the DRW output. If the latter, that approach has the disadvantage that
if you rerun the DRW, you have to reapply the hack.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
B

Brian Shafer

The DRW returns
Database Results Wizard Error
The operation failed. If this continues, please contact your server
administrator.
is there somewhere else I could find an error number?
Brian

Jim Buyens said:
"Brian Shafer" <[email protected]> wrote in message
Wow.. I am just about ready to give on this... ... this is what i've go so
far...
in volleyball_team.asp header I have
<script>
function openTeam(aTeam){
window.open("volleyball_Team_Members.asp?Team=" + aTeam , null,
"height=600,width=800,status=no,toolbar=no,menubar=no,location=no");
}
</script>
vollyball_team.asp DRW Table for the link i have...
<a href="javascript:eek:penTeam(' & [numTeam] & ');">
Cool.. everything looks good so far....
but when i publish the pages I get the window the way I want it.. but...
I get an Database Results Wizard Error...


What's the Database Results Wizard error?

I have a copy of the same table on the volleyball_team and on that link
I have <a
href="volleyball_Team_Members.asp?Team=<%=FP_FieldURL(fp_rs,"Team")%>">
This one opens the page and the correct data is there... however.. it opens
another page...
Can I get your Help once again Jim.. or someone else???
Dying here....

That seems to be a diferent type of application, or perhaps you hacked
the DRW output. If the latter, that approach has the disadvantage that
if you rerun the DRW, you have to reapply the hack.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
K

Kathleen Anderson [MVP - FP]

Edit the file fpdbrgn1.inc (in the _fpclass folder) and set fp_DEBUG = True
and then try again and tell us what the error message is.


--
~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
http://www.spiderwebwoman.com/resources/


Brian Shafer said:
The DRW returns
Database Results Wizard Error
The operation failed. If this continues, please contact your server
administrator.
is there somewhere else I could find an error number?
Brian

Jim Buyens said:
"Brian Shafer" <[email protected]> wrote in message
Wow.. I am just about ready to give on this... ... this is what
i've go so far...
in volleyball_team.asp header I have
<script>
function openTeam(aTeam){
window.open("volleyball_Team_Members.asp?Team=" + aTeam , null,
"height=600,width=800,status=no,toolbar=no,menubar=no,location=no");
}
</script>
vollyball_team.asp DRW Table for the link i have...
<a href="javascript:eek:penTeam(' & [numTeam] & ');">
Cool.. everything looks good so far....
but when i publish the pages I get the window the way I want it..
but... I get an Database Results Wizard Error...


What's the Database Results Wizard error?

I have a copy of the same table on the volleyball_team and on that
link I have <a
href="volleyball_Team_Members.asp?Team=<%=FP_FieldURL(fp_rs,"Team")%>">
This one opens the page and the correct data is there... however..
it opens another page...
Can I get your Help once again Jim.. or someone else???
Dying here....

That seems to be a diferent type of application, or perhaps you
hacked the DRW output. If the latter, that approach has the
disadvantage that if you rerun the DRW, you have to reapply the hack.
 
B

Brian Shafer

cool tip..
Database Results Wizard Error
Description: Parameter ?_1 has no default value.
Number: -2147217904 (0x80040E10)
Source: Microsoft JET Database Engine

Kathleen Anderson said:
Edit the file fpdbrgn1.inc (in the _fpclass folder) and set fp_DEBUG = True
and then try again and tell us what the error message is.


--
~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
http://www.spiderwebwoman.com/resources/


Brian Shafer said:
The DRW returns
Database Results Wizard Error
The operation failed. If this continues, please contact your server
administrator.
is there somewhere else I could find an error number?
Brian

Jim Buyens said:
"Brian Shafer" <[email protected]> wrote in message
Wow.. I am just about ready to give on this... ... this is what
i've go so far...
in volleyball_team.asp header I have
<script>
function openTeam(aTeam){
window.open("volleyball_Team_Members.asp?Team=" + aTeam , null,
"height=600,width=800,status=no,toolbar=no,menubar=no,location=no");
}
</script>
vollyball_team.asp DRW Table for the link i have...
<a href="javascript:eek:penTeam(' & [numTeam] & ');">
Cool.. everything looks good so far....
but when i publish the pages I get the window the way I want it..
but... I get an Database Results Wizard Error...


What's the Database Results Wizard error?


I have a copy of the same table on the volleyball_team and on that
link I have <a
href="volleyball_Team_Members.asp?Team= said:
This one opens the page and the correct data is there... however..
it opens another page...
Can I get your Help once again Jim.. or someone else???
Dying here....

That seems to be a diferent type of application, or perhaps you
hacked the DRW output. If the latter, that approach has the
disadvantage that if you rerun the DRW, you have to reapply the hack.
 
J

Jim Buyens

This message usually means you've specified a field name that doesn't
exist in your database.

If your URL is volleyball_Team_Members.asp?Team=whatever

1. Open the volleyball_Team_Members.asp page.
2. Double-click the yellow area in the Databsae Results Region.
3. Advance to page 2 of the wizard.
4. Make sure Custom Query is selected, then click Edit.
5. Eyeball the SQL statement carefully, looking for misspelled
field names. In particular, inspect the WHERE clause, which
will probably look like this:
WHERE teamfield = '::team::'
In this example, teamfield is the name of the database field,
and team is the name you specified after the ? in
volleyball_Team_Members.asp?Team=whatever. If teamfield is
defined in the database as numeric, the apostrophes would be
omitted, as in
WHERE teamfield = ::team::

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------






Brian Shafer said:
cool tip..
Database Results Wizard Error
Description: Parameter ?_1 has no default value.
Number: -2147217904 (0x80040E10)
Source: Microsoft JET Database Engine

Kathleen Anderson said:
Edit the file fpdbrgn1.inc (in the _fpclass folder) and set fp_DEBUG = True
and then try again and tell us what the error message is.


--
~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
http://www.spiderwebwoman.com/resources/


Brian Shafer said:
The DRW returns
Database Results Wizard Error
The operation failed. If this continues, please contact your server
administrator.
is there somewhere else I could find an error number?
Brian

"Brian Shafer" <[email protected]> wrote in message
Wow.. I am just about ready to give on this... ... this is what
i've go so far...
in volleyball_team.asp header I have
<script>
function openTeam(aTeam){
window.open("volleyball_Team_Members.asp?Team=" + aTeam , null,
"height=600,width=800,status=no,toolbar=no,menubar=no,location=no");
}
</script>
vollyball_team.asp DRW Table for the link i have...
<a href="javascript:eek:penTeam(' & [numTeam] & ');">
Cool.. everything looks good so far....
but when i publish the pages I get the window the way I want it..
but... I get an Database Results Wizard Error...


What's the Database Results Wizard error?


I have a copy of the same table on the volleyball_team and on that
link I have <a
href="volleyball_Team_Members.asp?Team= said:
This one opens the page and the correct data is there... however..
it opens another page...
Can I get your Help once again Jim.. or someone else???
Dying here....

That seems to be a diferent type of application, or perhaps you
hacked the DRW output. If the latter, that approach has the
disadvantage that if you rerun the DRW, you have to reapply the hack.
 
B

Brian Shafer

ok.. almost there.. but I can figure out where the extra ' is coming from???
drw=
SELECT '<a
href="javascript:window.open(''volleyball_Team_Members.asp?Team='& [numTeam]
& ''', null,' &
'''height=200,width=400,status=no,toolbar=no,menubar=no,location=no''' & '
;void(0);">' & [numTeam] &'</a>' AS Team,
txtFirstName as [First Name],
txtLastName as [Last Name],
txtHomePhone as [Contact Number]
FROM tblVolleyBallTeams where chkTeamCaptain = 1
ORDER BY numTeam ASC,
chkTeamCaptain ASC,
txtFirstName ASC,
txtLastName ASC

when I hover of the hyberlink it looks like
javascript:window.open(volleyball_Team_Members.asp?Team=14', ....
any clue:???
Brian

Jim Buyens said:
This message usually means you've specified a field name that doesn't
exist in your database.

If your URL is volleyball_Team_Members.asp?Team=whatever

1. Open the volleyball_Team_Members.asp page.
2. Double-click the yellow area in the Databsae Results Region.
3. Advance to page 2 of the wizard.
4. Make sure Custom Query is selected, then click Edit.
5. Eyeball the SQL statement carefully, looking for misspelled
field names. In particular, inspect the WHERE clause, which
will probably look like this:
WHERE teamfield = '::team::'
In this example, teamfield is the name of the database field,
and team is the name you specified after the ? in
volleyball_Team_Members.asp?Team=whatever. If teamfield is
defined in the database as numeric, the apostrophes would be
omitted, as in
WHERE teamfield = ::team::

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------






"Brian Shafer" <[email protected]> wrote in message
cool tip..
Database Results Wizard Error
Description: Parameter ?_1 has no default value.
Number: -2147217904 (0x80040E10)
Source: Microsoft JET Database Engine

Edit the file fpdbrgn1.inc (in the _fpclass folder) and set fp_DEBUG = True
and then try again and tell us what the error message is.


--
~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
http://www.spiderwebwoman.com/resources/


The DRW returns
Database Results Wizard Error
The operation failed. If this continues, please contact your server
administrator.
is there somewhere else I could find an error number?
Brian

"Brian Shafer" <[email protected]> wrote in message
Wow.. I am just about ready to give on this... ... this is what
i've go so far...
in volleyball_team.asp header I have
<script>
function openTeam(aTeam){
window.open("volleyball_Team_Members.asp?Team=" + aTeam , null,
"height=600,width=800,status=no,toolbar=no,menubar=no,location=no");
}
</script>
vollyball_team.asp DRW Table for the link i have...
<a href="javascript:eek:penTeam(' & [numTeam] & ');">
Cool.. everything looks good so far....
but when i publish the pages I get the window the way I want it..
but... I get an Database Results Wizard Error...


What's the Database Results Wizard error?


I have a copy of the same table on the volleyball_team and on that
link I have <a
href="volleyball_Team_Members.asp?Team= said:
This one opens the page and the correct data is there... however..
it opens another page...
Can I get your Help once again Jim.. or someone else???
Dying here....

That seems to be a diferent type of application, or perhaps you
hacked the DRW output. If the latter, that approach has the
disadvantage that if you rerun the DRW, you have to reapply the hack.
 
J

Jim Buyens

Brian Shafer said:
ok.. almost there.. but I can figure out where the extra ' is coming from???
drw=
SELECT '<a
href="javascript:window.open(''volleyball_Team_Members.asp?Team='& [numTeam]
& ''', null,' &
'''height=200,width=400,status=no,toolbar=no,menubar=no,location=no''' & '
;void(0);">' & [numTeam] &'</a>' AS Team,
txtFirstName as [First Name],
txtLastName as [Last Name],
txtHomePhone as [Contact Number]
FROM tblVolleyBallTeams where chkTeamCaptain = 1
ORDER BY numTeam ASC,
chkTeamCaptain ASC,
txtFirstName ASC,
txtLastName ASC

when I hover of the hyberlink it looks like
javascript:window.open(volleyball_Team_Members.asp?Team=14', ....
any clue:???
Brian

Change:
& [numTeam] & ''', null,' &
to
& [numTeam] & ', null,' &

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
B

Brian Shafer

dang..... thought that was it.. the number came out looking good.. how do I
know what the java error is though? When I click on it.. it does nothing and
then I see a jave error in the status bar
Brian

Jim Buyens said:
"Brian Shafer" <[email protected]> wrote in message
ok.. almost there.. but I can figure out where the extra ' is coming from???
drw=
SELECT '<a
href="javascript:window.open(''volleyball_Team_Members.asp?Team='& [numTeam]
& ''', null,' &
'''height=200,width=400,status=no,toolbar=no,menubar=no,location=no''' & '
;void(0);">' & [numTeam] &'</a>' AS Team,
txtFirstName as [First Name],
txtLastName as [Last Name],
txtHomePhone as [Contact Number]
FROM tblVolleyBallTeams where chkTeamCaptain = 1
ORDER BY numTeam ASC,
chkTeamCaptain ASC,
txtFirstName ASC,
txtLastName ASC

when I hover of the hyberlink it looks like
javascript:window.open(volleyball_Team_Members.asp?Team=14', ....
any clue:???
Brian

Change:
& [numTeam] & ''', null,' &
to
& [numTeam] & ', null,' &

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
J

Jim Buyens

Brian Shafer said:
dang..... thought that was it.. the number came out looking good.. how do I
know what the java error is though? When I click on it.. it does nothing and
then I see a jave error in the status bar
Brian

What JavaScript error?

If you double-click the little "error" icon in the status bar, what
does the resulting dialog box say?

Right-click one of the problem hyperlinks (in the Database Results
Region), choose Copy Shortcut, and paste the results into your reply.

And you know, somewhere along here, things should start to click and
the remaining problems should become obvious. If that's not starting
to happen, you might want to question whether you can keep this
working over a period of time.

The JavasScript statement you;re trying to run is:

window.open('volleyball_Team_Members.asp?Team=14',
null,'height=200,width=400,status=no,toolbar=no,menubar=no,location=no');

This opens a page named volleyball_Team_Members.asp ina new window,
passing it the query string Team=14. This is so a DRW in the
volleyball_Team_Members.asp page can set criteria on the form field
named Team. (A auery string value can server as a form field.)

In a hyperlink, that JavaScript statements looks like:

<a href="javascript:window.open('volleyball_Team_Members.asp?Team=14',
null,'height=200,width=400,status=no,toolbar=no,menubar=no,location=no');void(0);">14</a>

But to make SQL create that, you have to surround the whole expression
in apostrophes, and change each apostrophe within it to double
apostrophes.

'<a href="javascript:window.open(''volleyball_Team_Members.asp?Team=14'',
null,''height=200,width=400,status=no,toolbar=no,menubar=no,location=no'');void(0);">14</a>'

Then, to insert the team nubmer, you have to interrupt the SQL literal
like this:

'<a href="javascript:window.open(''volleyball_Team_Members.asp?Team='
& [numTeam] & ''', null,''height=200,width=400,status=no,toolbar=no,menubar=no,location=no'');void(0);">'
& [numTeam] &'</a>'

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
B

Brian Shafer

I didn't know about the double-click, the little "error" icon or about
coping the shortcut...
now I have it working..
but now I have another problem with it....
when it opens the page I want it to, the main page changes and displays
[object] and nothing else.
is there a way to keep the main page the same and just popup the new window?
thanks


Jim Buyens said:
"Brian Shafer" <[email protected]> wrote in message

What JavaScript error?

If you double-click the little "error" icon in the status bar, what
does the resulting dialog box say?

Right-click one of the problem hyperlinks (in the Database Results
Region), choose Copy Shortcut, and paste the results into your reply.

And you know, somewhere along here, things should start to click and
the remaining problems should become obvious. If that's not starting
to happen, you might want to question whether you can keep this
working over a period of time.

The JavasScript statement you;re trying to run is:

window.open('volleyball_Team_Members.asp?Team=14',
null,'height=200,width=400,status=no,toolbar=no,menubar=no,location=no');

This opens a page named volleyball_Team_Members.asp ina new window,
passing it the query string Team=14. This is so a DRW in the
volleyball_Team_Members.asp page can set criteria on the form field
named Team. (A auery string value can server as a form field.)

In a hyperlink, that JavaScript statements looks like:

<a href="javascript:window.open('volleyball_Team_Members.asp?Team=14',
null,'height=200,width=400,status=no,toolbar=no,menubar=no,location=no');voi
d(0);">14 said:
But to make SQL create that, you have to surround the whole expression
in apostrophes, and change each apostrophe within it to double
apostrophes.

'<a href="javascript:window.open(''volleyball_Team_Members.asp?Team=14'',
null,''height=200,width=400,status=no,toolbar=no,menubar=no,location=no'');v
oid(0);">14 said:
Then, to insert the team nubmer, you have to interrupt the SQL literal
like this:

'<a href="javascript:window.open(''volleyball_Team_Members.asp?Team='
& [numTeam] & ''', null,''height=200,width=400,status=no,toolbar=no,menubar=no,location=no'');v
oid(0);">'
& [numTeam] &'</a>'

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
B

Brian Shafer

never mind figured it out

Brian Shafer said:
I didn't know about the double-click, the little "error" icon or about
coping the shortcut...
now I have it working..
but now I have another problem with it....
when it opens the page I want it to, the main page changes and displays
[object] and nothing else.
is there a way to keep the main page the same and just popup the new window?
thanks


Jim Buyens said:
"Brian Shafer" <[email protected]> wrote in message
nothing
and

What JavaScript error?

If you double-click the little "error" icon in the status bar, what
does the resulting dialog box say?

Right-click one of the problem hyperlinks (in the Database Results
Region), choose Copy Shortcut, and paste the results into your reply.

And you know, somewhere along here, things should start to click and
the remaining problems should become obvious. If that's not starting
to happen, you might want to question whether you can keep this
working over a period of time.

The JavasScript statement you;re trying to run is:

window.open('volleyball_Team_Members.asp?Team=14',
null,'height=200,width=400,status=no,toolbar=no,menubar=no,location=no');

This opens a page named volleyball_Team_Members.asp ina new window,
passing it the query string Team=14. This is so a DRW in the
volleyball_Team_Members.asp page can set criteria on the form field
named Team. (A auery string value can server as a form field.)

In a hyperlink, that JavaScript statements looks like:

<a href="javascript:window.open('volleyball_Team_Members.asp?Team=14',
null,'height=200,width=400,status=no,toolbar=no,menubar=no,location=no');voi
d(0);">14 said:
But to make SQL create that, you have to surround the whole expression
in apostrophes, and change each apostrophe within it to double
apostrophes.

'<a href="javascript:window.open(''volleyball_Team_Members.asp?Team=14'',
null,''height=200,width=400,status=no,toolbar=no,menubar=no,location=no'');v
oid(0);">14 said:
Then, to insert the team nubmer, you have to interrupt the SQL literal
like this:

'<a href="javascript:window.open(''volleyball_Team_Members.asp?Team='
& [numTeam] & ''',
null,''height=200,width=400,status=no,toolbar=no,menubar=no,location=no'');v
oid(0);">'
& [numTeam] &'</a>'

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

GuestBook Failure??? 1
ActiveX Control 2
Web Page Search? 1
Calling Addin function? 2
HTM, HTML, ASP 1
Drop Down Listbox Results 0
GuestBook 0
Access 2000 via web 2

Top