-
Tornado and MagicCell
With the clasic version I could do something similiar to what is below. What is the equivalent in Tornado?
<HEAD>
<script LANGUAGE="JavaScript">
<!--
function popup() {
window.open('go.asp','NewWin',' ;toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=yes,resizable=yes,copyhistory =no,width=500,height=600'
}
// -->
</script>
</HEAD>
<BODY>
<%
Set X=Server.CreateObject("ASP.DB"
....
X.dbFormMagicCell = "(;~[]#|!) MAC~~<A HREF=javascriptopup()>#MAC#"
....
X.ASPdb
%>
-
Tornado and MagicCell (reply)
Dan,
Pretty much the same idea. Remember to use the keywords ('field' and 'macro'
This code works:
<HEAD>
<script LANGUAGE="JavaScript">
<!--
function popup() {
window.open('http://www.cnn.com','NewWin','toolbar=no, location=no,resizable=yes,width=200,height=200'
}
// -->
</script>
</HEAD>
<BODY>
<%
Dim MC
Dim X As New Tornado.Z()
With X
.dbUnit = 701
.dbMode = "type=GRID | sysindex=true"
.dbSkin = "none"
.dbDSN = "nwind"
.dbSQL = "Select EmployeeID,LastName,FirstName,HireDate From employees"
MC = "(;![]#|~/+{}) field=1 | macro=LastName: #1#! " & _
" field=2 | macro=<A HREF=javascriptopup()>CLICK! "
.dbGridMagicCell = MC
.ASPdbNET()
End With
%>
</BODY>
------------
Dan at 9/24/2002 12:11:08 PM
With the clasic version I could do something similiar to what is below. What is the equivalent in Tornado?
<HEAD>
<script LANGUAGE="JavaScript">
<!--
function popup() {
window.open('go.asp','NewWin',' ;toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=yes,resizable=yes,copyhistory =no,width=500,height=600'
}
// -->
</script>
</HEAD>
<BODY>
<%
Set X=Server.CreateObject("ASP.DB"
....
X.dbFormMagicCell = "(;~[]#|!) MAC~~<A HREF=javascriptopup()>#MAC#"
....
X.ASPdb
%>
-
Tornado and MagicCell (reply)
That works, But... I would like to have the field contents there and not the word "Click!". When I replace Click! with #FieldName#, it does not work.
------------
Mark at 9/24/2002 2:32:19 PM
Dan,
Pretty much the same idea. Remember to use the keywords ('field' and 'macro'
This code works:
<HEAD>
<script LANGUAGE="JavaScript">
<!--
function popup() {
window.open('http://www.cnn.com','NewWin','toolbar=no, location=no,resizable=yes,width=200,height=200'
}
// -->
</script>
</HEAD>
<BODY>
<%
Dim MC
Dim X As New Tornado.Z()
With X
.dbUnit = 701
.dbMode = "type=GRID | sysindex=true"
.dbSkin = "none"
.dbDSN = "nwind"
.dbSQL = "Select EmployeeID,LastName,FirstName,HireDate From employees"
MC = "(;![]#|~/+{}) field=1 | macro=LastName: #1#! " & _
" field=2 | macro=<A HREF=javascriptopup()>CLICK! "
.dbGridMagicCell = MC
.ASPdbNET()
End With
%>
</BODY>
------------
Dan at 9/24/2002 12:11:08 PM
With the clasic version I could do something similiar to what is below. What is the equivalent in Tornado?
<HEAD>
<script LANGUAGE="JavaScript">
<!--
function popup() {
window.open('go.asp','NewWin',' ;toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=yes,resizable=yes,copyhistory =no,width=500,height=600'
}
// -->
</script>
</HEAD>
<BODY>
<%
Set X=Server.CreateObject("ASP.DB"
....
X.dbFormMagicCell = "(;~[]#|!) MAC~~<A HREF=javascriptopup()>#MAC#"
....
X.ASPdb
%>
-
Tornado and MagicCell (reply)
Dan,
It works fine for me. Show me your code for MagicCell.
Are you substituting your actual field name for #FieldName# ??
Mark.
------------
at 9/24/2002 2:55:23 PM
That works, But... I would like to have the field contents there and not the word "Click!". When I replace Click! with #FieldName#, it does not work.
------------
Mark at 9/24/2002 2:32:19 PM
Dan,
Pretty much the same idea. Remember to use the keywords ('field' and 'macro'
This code works:
<HEAD>
<script LANGUAGE="JavaScript">
<!--
function popup() {
window.open('http://www.cnn.com','NewWin','toolbar=no, location=no,resizable=yes,width=200,height=200'
}
// -->
</script>
</HEAD>
<BODY>
<%
Dim MC
Dim X As New Tornado.Z()
With X
.dbUnit = 701
.dbMode = "type=GRID | sysindex=true"
.dbSkin = "none"
.dbDSN = "nwind"
.dbSQL = "Select EmployeeID,LastName,FirstName,HireDate From employees"
MC = "(;![]#|~/+{}) field=1 | macro=LastName: #1#! " & _
" field=2 | macro=<A HREF=javascriptopup()>CLICK! "
.dbGridMagicCell = MC
.ASPdbNET()
End With
%>
</BODY>
------------
Dan at 9/24/2002 12:11:08 PM
With the clasic version I could do something similiar to what is below. What is the equivalent in Tornado?
<HEAD>
<script LANGUAGE="JavaScript">
<!--
function popup() {
window.open('go.asp','NewWin',' ;toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=yes,resizable=yes,copyhistory =no,width=500,height=600'
}
// -->
</script>
</HEAD>
<BODY>
<%
Set X=Server.CreateObject("ASP.DB"
....
X.dbFormMagicCell = "(;~[]#|!) MAC~~<A HREF=javascriptopup()>#MAC#"
....
X.ASPdb
%>
-
Tornado and MagicCell (reply)
Mark, sorry to waste your time. I removed the FormMagicCell that wa formatting the BGColor of that field and it works fine.
Again, Thank you for all your help.
------------
Mark at 9/24/2002 4:21:24 PM
Dan,
It works fine for me. Show me your code for MagicCell.
Are you substituting your actual field name for #FieldName# ??
Mark.
------------
at 9/24/2002 2:55:23 PM
That works, But... I would like to have the field contents there and not the word "Click!". When I replace Click! with #FieldName#, it does not work.
------------
Mark at 9/24/2002 2:32:19 PM
Dan,
Pretty much the same idea. Remember to use the keywords ('field' and 'macro'
This code works:
<HEAD>
<script LANGUAGE="JavaScript">
<!--
function popup() {
window.open('http://www.cnn.com','NewWin','toolbar=no, location=no,resizable=yes,width=200,height=200'
}
// -->
</script>
</HEAD>
<BODY>
<%
Dim MC
Dim X As New Tornado.Z()
With X
.dbUnit = 701
.dbMode = "type=GRID | sysindex=true"
.dbSkin = "none"
.dbDSN = "nwind"
.dbSQL = "Select EmployeeID,LastName,FirstName,HireDate From employees"
MC = "(;![]#|~/+{}) field=1 | macro=LastName: #1#! " & _
" field=2 | macro=<A HREF=javascriptopup()>CLICK! "
.dbGridMagicCell = MC
.ASPdbNET()
End With
%>
</BODY>
------------
Dan at 9/24/2002 12:11:08 PM
With the clasic version I could do something similiar to what is below. What is the equivalent in Tornado?
<HEAD>
<script LANGUAGE="JavaScript">
<!--
function popup() {
window.open('go.asp','NewWin',' ;toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=yes,resizable=yes,copyhistory =no,width=500,height=600'
}
// -->
</script>
</HEAD>
<BODY>
<%
Set X=Server.CreateObject("ASP.DB"
....
X.dbFormMagicCell = "(;~[]#|!) MAC~~<A HREF=javascriptopup()>#MAC#"
....
X.ASPdb
%>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|