Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Combining Two Functions for use in head content

    Hello,
    I know a little bit about Flash ActionScript and therefore some of the things in JS seem familiar, but not enough to figure out my problem. I have two separate pieces of JS code that are being used on a Lotus Notes form in the HEAD content.

    They both work on thier own, but when trying to put both in there is an error and neither piece of code works. The code is being used to pull up a pop-up windown when needed and also to refer to a css page. I think that a new function needs to be added to the current SCRIPT reference but I am not certain that is the way to combine the two and if it is, my attempts at doing so have been unsuccessful. I appreciate any guidance that can be given.

    Here is the code:

    "[<SCRIPT LANGUAGE=\"JavaScript\"> function popUp(url) { sealWin=window.open(url,\"win\",\'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1 ,resizable=1,width=500,height=450\'); self.name = \"mainWin\"; } </SCRIPT>]";

    "<link href=\"/"+DB+"/site.css?openpage\" rel=\"stylesheet\" type=\"text/css\" title=\"online\">"


    ps Just so you know I didn't just post this without trying to find the answer on my own first...I did search the forum and referred to this site as well, it just didn't help me figure it out: http://www.javascriptkit.com/javatu...tiplejava.shtml
    Last edited by Jilly; 01-11-2005 at 09:08 PM.

  • #2
    Senior Coder
    Join Date
    Jul 2004
    Location
    New Zealand
    Posts
    1,315
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Code:
    "[<script type=\"text/javascript\">function popUp(url){var sealWin=window.open(url,\"win\",\"toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=500,height=450\"); self.name=\"mainWin\";}</script>]";
    
    "<link href=\"/"+DB+"/site.css?openpage\" rel=\"stylesheet\" type=\"text/css\" title=\"online\">"
    Just a couple of things changed but I honestly have no idea what this is suppose to do. There's only one function there and it doesn't seem to be valid (with those square brackets around it).

  • #3
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well thank you, but that is not the answer. I need both groups of code combined within the square brackets. (both within the script definition) The reason for the square brackets is this is being used for a Lotus Notes (Designer) based form. They are necessary for the application.

  • #4
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I found a different solution anyway..thanks to anyway who took the time to read this post.


  •  

    Posting Permissions

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