Results 1 to 3 of 3

Thread: Javascript Inside db.MagicCell

  1. #1
    Lee Fore Guest

    Javascript Inside db.MagicCell

    Using Enterprise edition.......

    Is it possible to call a javascript function as part of the DisplayMacro in an Extended MagicCell? The function is declared elsewhere in the script.

    Based on a compare operation, I am successfully creating a href link. But I would like to use the onClick event to open a new window and control the size, scrollbars, etc.

    I have looked at your example 63a. Are there any other examples?

    Thank you.



  2. #2
    Mark Guest

    Javascript Inside db.MagicCell (reply)

    Hi Lee,
    There is a good example of javascript opening up a window to show more info. Check out example 78 at our examples page at:
    http://208.196.181.86/apps
    I hope that helps.
    Mark.



    ------------
    Lee Fore at 3/12/01 5:29:38 PM

    The function:

    <Script Language=&#34;&#34;JavaScript&#34;&#34;>
    function OpenHintWindow()
    {
    TheWindow = window.open( &#34;&#34;SearchHints.htm&#34;&#34;, &#34;&#34;&#34;&#34;, &#34;&#34;width=320, height=240, scrollbars=yes, resizable=yes&#34;&#34; )
    return true
    }
    </Script>

    Can I call the above function with the onClick event in the following code:

    My code:

    X.dbMagicCell = &#34;CT_Sites,,(^CT_SiteFilename^|EQS||BGcolor=Yel low|^CT_Sites^ ~ ^CT_SiteFilename^|NES||BGcolor=Yellow|<A HREF=/CTDB/CV_Stor/#CT_SiteFilename# onClick= >View</A>);&#34;

    Thanks.

    ------------
    FRANK KWONG at 3/7/01 1:42:50 AM

    Give an example.

    FK


    ------------
    Lee Fore at 3/6/01 1:48:00 PM

    Using Enterprise edition.......

    Is it possible to call a javascript function as part of the DisplayMacro in an Extended MagicCell? The function is declared elsewhere in the script.

    Based on a compare operation, I am successfully creating a href link. But I would like to use the onClick event to open a new window and control the size, scrollbars, etc.

    I have looked at your example 63a. Are there any other examples?

    Thank you.



  3. #3
    Lee Fore Guest

    Javascript Inside db.MagicCell (reply)

    Thanks!! That&#39;s just what the doctor ordered. Literally.

    ------------
    Mark at 3/12/01 7:21:45 PM

    Hi Lee,
    There is a good example of javascript opening up a window to show more info. Check out example 78 at our examples page at:
    http://208.196.181.86/apps
    I hope that helps.
    Mark.



    ------------
    Lee Fore at 3/12/01 5:29:38 PM

    The function:

    <Script Language=&#34;&#34;JavaScript&#34;&#34;>
    function OpenHintWindow()
    {
    TheWindow = window.open( &#34;&#34;SearchHints.htm&#34;&#34;, &#34;&#34;&#34;&#34;, &#34;&#34;width=320, height=240, scrollbars=yes, resizable=yes&#34;&#34; )
    return true
    }
    </Script>

    Can I call the above function with the onClick event in the following code:

    My code:

    X.dbMagicCell = &#34;CT_Sites,,(^CT_SiteFilename^|EQS||BGcolor=Yel low|^CT_Sites^ ~ ^CT_SiteFilename^|NES||BGcolor=Yellow|<A HREF=/CTDB/CV_Stor/#CT_SiteFilename# onClick= >View</A>);&#34;

    Thanks.

    ------------
    FRANK KWONG at 3/7/01 1:42:50 AM

    Give an example.

    FK


    ------------
    Lee Fore at 3/6/01 1:48:00 PM

    Using Enterprise edition.......

    Is it possible to call a javascript function as part of the DisplayMacro in an Extended MagicCell? The function is declared elsewhere in the script.

    Based on a compare operation, I am successfully creating a href link. But I would like to use the onClick event to open a new window and control the size, scrollbars, etc.

    I have looked at your example 63a. Are there any other examples?

    Thank you.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •