Results 1 to 7 of 7
  1. #1
    Newbie
    Join Date
    January 18th, 2005
    Posts
    27
    Alright, Here is the basic problem. I need to launch a .js from my site on another url. But i am pretty sure that this is going against what ie 6.0 allows and just shows nothing. Let me know what more details are needed. Best Regards

    Search the web with FunPortal

  2. #2
    ABW Ambassador DesignerWiz's Avatar
    Join Date
    January 18th, 2005
    Location
    U.S.A
    Posts
    2,777
    What type of JS function and action requirement is needed for me to try to help you.

    Ray Thomas
    DesignerWiz.com CEO
    Development Resource & Javascript Public Archive Center
    http://DesignerWiz.com

  3. #3
    Newbie
    Join Date
    January 18th, 2005
    Posts
    27
    Thank you, it's calling an open window function and basically i need to open that window with a different url while in a .js file.

  4. #4
    ABW Ambassador DesignerWiz's Avatar
    Join Date
    January 18th, 2005
    Location
    U.S.A
    Posts
    2,777
    Okay . let's see if I understand your need. You would like to call a window popup code from another server .js file ... then ... in this pop.js file you want the document write to have another href=http://URL to another URL outside the second domain?

    Ray Thomas
    DesignerWiz.com CEO
    Development Resource & Javascript Public Archive Center
    http://DesignerWiz.com

  5. #5
    Newbie
    Join Date
    January 18th, 2005
    Posts
    27
    Yes, except "pop.js" calls back to a page on the first server


    In a nutshell
    server 2 calls pop.js from server 1 then pop.js calls a file on server 1.

    Search the web with FunPortal

  6. #6
    ABW Ambassador DesignerWiz's Avatar
    Join Date
    January 18th, 2005
    Location
    U.S.A
    Posts
    2,777
    Hello FunPortal,

    See if this works for you and let me know.

    On server 1:

    Create a pop.js file. (normal)

    On server 2:

    You would call this with full URL to server 1.

    Example:
    <SCRIPT LANGUAGE="JavaScript1.2" SRC="http://www.server1.com/pop.js"></SCRIPT>

    The normal calling for the pop.js file is added to server 2 page needing to call server 1 to finalize the action call request.

    ####

    For security reasons, many servers are configured not to allow you to copy in files located outside your webspace, or DocumentRoot.

    Sometimes using SSI will work.

    Example Head:
    <!-- <script src="http://www.server1.com/pop.js" language="javascript" type="text/javascript"></script> -->

    Then an include call positioned on page:

    <!--#include file=""http://www.server1.com/pop.html"-->

    The pop.html page would contain just the action call to initiate the pop.js function whether it is onLoad, onUnload, form button or a text link.

    In the line that contains the words script src, uncomment the text by removing the <!-- code from the beginning and the --> from the end.

    Ray Thomas
    DesignerWiz.com CEO
    Development Resource & Javascript Public Archive Center
    http://DesignerWiz.com

  7. #7
    Newbie
    Join Date
    January 18th, 2005
    Posts
    27
    Thank you down the road i may want to put together a pure javascript solution because as the page gets more and more traffic i may want to switch from ssi

    Search the web with FunPortal

  8. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Help with Javascript?
    By SSanf in forum Programming / Datafeeds / Tools
    Replies: 1
    Last Post: January 24th, 2005, 05:16 PM
  2. Can javascript be seen?
    By tbrown in forum Blocking Tips/Advice/scripts
    Replies: 0
    Last Post: August 5th, 2004, 11:33 AM
  3. javascript help
    By SpaceBandit in forum Programming / Datafeeds / Tools
    Replies: 1
    Last Post: December 30th, 2001, 08:56 PM
  4. Javascript or otherwise...
    By TH Media in forum Programming / Datafeeds / Tools
    Replies: 2
    Last Post: December 1st, 2001, 11:21 PM

Posting Permissions

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