Results 1 to 5 of 5

Thread: Tornado and MagicCell

  1. #1
    Dan Guest

    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=&#34;JavaScript&#34;>
    <!--
    function popup() {
    window.open(&#39;go.asp&#39;,&#39;NewWin&#39;,&#39 ;toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=yes,resizable=yes,copyhistory =no,width=500,height=600&#39;
    }
    // -->
    </script>
    </HEAD>
    <BODY>

    <%
    Set X=Server.CreateObject(&#34;ASP.DB&#34
    ....
    X.dbFormMagicCell = &#34;(;~[]#|!) MAC~~<A HREF=javascriptopup()>#MAC#&#34;
    ....
    X.ASPdb
    %>

  2. #2
    Mark Guest

    Tornado and MagicCell (reply)

    Dan,
    Pretty much the same idea. Remember to use the keywords (&#39;field&#39; and &#39;macro&#39
    This code works:
    <HEAD>
    <script LANGUAGE=&#34;JavaScript&#34;>
    <!--
    function popup() {
    window.open(&#39;http://www.cnn.com&#39;,&#39;NewWin&#39;,&#39;toolbar=no, location=no,resizable=yes,width=200,height=200&#39;
    }
    // -->
    </script>
    </HEAD>

    <BODY>
    <%
    Dim MC
    Dim X As New Tornado.Z()
    With X
    .dbUnit = 701
    .dbMode = &#34;type=GRID | sysindex=true&#34;
    .dbSkin = &#34;none&#34;
    .dbDSN = &#34;nwind&#34;
    .dbSQL = &#34;Select EmployeeID,LastName,FirstName,HireDate From employees&#34;

    MC = &#34;(;![]#|~/+{}) field=1 | macro=LastName: #1#! &#34; & _
    &#34; field=2 | macro=<A HREF=javascriptopup()>CLICK! &#34;
    .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=&#34;JavaScript&#34;>
    <!--
    function popup() {
    window.open(&#39;go.asp&#39;,&#39;NewWin&#39;,&#39 ;toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=yes,resizable=yes,copyhistory =no,width=500,height=600&#39;
    }
    // -->
    </script>
    </HEAD>
    <BODY>

    <%
    Set X=Server.CreateObject(&#34;ASP.DB&#34
    ....
    X.dbFormMagicCell = &#34;(;~[]#|!) MAC~~<A HREF=javascriptopup()>#MAC#&#34;
    ....
    X.ASPdb
    %>

  3. #3
    Guest

    Tornado and MagicCell (reply)

    That works, But... I would like to have the field contents there and not the word &#34;Click!&#34;. 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 (&#39;field&#39; and &#39;macro&#39
    This code works:
    <HEAD>
    <script LANGUAGE=&#34;JavaScript&#34;>
    <!--
    function popup() {
    window.open(&#39;http://www.cnn.com&#39;,&#39;NewWin&#39;,&#39;toolbar=no, location=no,resizable=yes,width=200,height=200&#39;
    }
    // -->
    </script>
    </HEAD>

    <BODY>
    <%
    Dim MC
    Dim X As New Tornado.Z()
    With X
    .dbUnit = 701
    .dbMode = &#34;type=GRID | sysindex=true&#34;
    .dbSkin = &#34;none&#34;
    .dbDSN = &#34;nwind&#34;
    .dbSQL = &#34;Select EmployeeID,LastName,FirstName,HireDate From employees&#34;

    MC = &#34;(;![]#|~/+{}) field=1 | macro=LastName: #1#! &#34; & _
    &#34; field=2 | macro=<A HREF=javascriptopup()>CLICK! &#34;
    .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=&#34;JavaScript&#34;>
    <!--
    function popup() {
    window.open(&#39;go.asp&#39;,&#39;NewWin&#39;,&#39 ;toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=yes,resizable=yes,copyhistory =no,width=500,height=600&#39;
    }
    // -->
    </script>
    </HEAD>
    <BODY>

    <%
    Set X=Server.CreateObject(&#34;ASP.DB&#34
    ....
    X.dbFormMagicCell = &#34;(;~[]#|!) MAC~~<A HREF=javascriptopup()>#MAC#&#34;
    ....
    X.ASPdb
    %>

  4. #4
    Mark Guest

    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 &#34;Click!&#34;. 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 (&#39;field&#39; and &#39;macro&#39
    This code works:
    <HEAD>
    <script LANGUAGE=&#34;JavaScript&#34;>
    <!--
    function popup() {
    window.open(&#39;http://www.cnn.com&#39;,&#39;NewWin&#39;,&#39;toolbar=no, location=no,resizable=yes,width=200,height=200&#39;
    }
    // -->
    </script>
    </HEAD>

    <BODY>
    <%
    Dim MC
    Dim X As New Tornado.Z()
    With X
    .dbUnit = 701
    .dbMode = &#34;type=GRID | sysindex=true&#34;
    .dbSkin = &#34;none&#34;
    .dbDSN = &#34;nwind&#34;
    .dbSQL = &#34;Select EmployeeID,LastName,FirstName,HireDate From employees&#34;

    MC = &#34;(;![]#|~/+{}) field=1 | macro=LastName: #1#! &#34; & _
    &#34; field=2 | macro=<A HREF=javascriptopup()>CLICK! &#34;
    .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=&#34;JavaScript&#34;>
    <!--
    function popup() {
    window.open(&#39;go.asp&#39;,&#39;NewWin&#39;,&#39 ;toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=yes,resizable=yes,copyhistory =no,width=500,height=600&#39;
    }
    // -->
    </script>
    </HEAD>
    <BODY>

    <%
    Set X=Server.CreateObject(&#34;ASP.DB&#34
    ....
    X.dbFormMagicCell = &#34;(;~[]#|!) MAC~~<A HREF=javascriptopup()>#MAC#&#34;
    ....
    X.ASPdb
    %>

  5. #5
    Dan Guest

    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 &#34;Click!&#34;. 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 (&#39;field&#39; and &#39;macro&#39
    This code works:
    <HEAD>
    <script LANGUAGE=&#34;JavaScript&#34;>
    <!--
    function popup() {
    window.open(&#39;http://www.cnn.com&#39;,&#39;NewWin&#39;,&#39;toolbar=no, location=no,resizable=yes,width=200,height=200&#39;
    }
    // -->
    </script>
    </HEAD>

    <BODY>
    <%
    Dim MC
    Dim X As New Tornado.Z()
    With X
    .dbUnit = 701
    .dbMode = &#34;type=GRID | sysindex=true&#34;
    .dbSkin = &#34;none&#34;
    .dbDSN = &#34;nwind&#34;
    .dbSQL = &#34;Select EmployeeID,LastName,FirstName,HireDate From employees&#34;

    MC = &#34;(;![]#|~/+{}) field=1 | macro=LastName: #1#! &#34; & _
    &#34; field=2 | macro=<A HREF=javascriptopup()>CLICK! &#34;
    .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=&#34;JavaScript&#34;>
    <!--
    function popup() {
    window.open(&#39;go.asp&#39;,&#39;NewWin&#39;,&#39 ;toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=yes,resizable=yes,copyhistory =no,width=500,height=600&#39;
    }
    // -->
    </script>
    </HEAD>
    <BODY>

    <%
    Set X=Server.CreateObject(&#34;ASP.DB&#34
    ....
    X.dbFormMagicCell = &#34;(;~[]#|!) MAC~~<A HREF=javascriptopup()>#MAC#&#34;
    ....
    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
  •