-
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.
-
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=""JavaScript"">
function OpenHintWindow()
{
TheWindow = window.open( ""SearchHints.htm"", """", ""width=320, height=240, scrollbars=yes, resizable=yes"" )
return true
}
</Script>
Can I call the above function with the onClick event in the following code:
My code:
X.dbMagicCell = "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>);"
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.
-
Javascript Inside db.MagicCell (reply)
Thanks!! That'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=""JavaScript"">
function OpenHintWindow()
{
TheWindow = window.open( ""SearchHints.htm"", """", ""width=320, height=240, scrollbars=yes, resizable=yes"" )
return true
}
</Script>
Can I call the above function with the onClick event in the following code:
My code:
X.dbMagicCell = "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>);"
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
-
Forum Rules
|
|