Professional Web Applications Themes

Invoking perl and .cgi scripts - Macromedia Dreamweaver

"kferrans" <webforumsusermacromedia.com> wrote in message news:bfc18g$bdt$1forums.macromedia.com... > >Is there a way to invoke a perl script from my >html using relative path addressing? Currently >a visitor clicks on a link, a new widow opens >and the script begins. In Dreamweaver, I've >accomplished by adding an action >(OpenBrowserWindow) on Event (OnClick). The >current OpenBrowserWindow asks for the URL, >thus I've entered >'http://www.mystuff.com/cgi-bin/script.pl' and >everything works fine. I don't understand why you're using the full address. Why not just use a relative (either doent or site root) one? Gary...

  1. #1

    Default Re: Invoking perl and .cgi scripts

    "kferrans" <webforumsusermacromedia.com> wrote in message
    news:bfc18g$bdt$1forums.macromedia.com...
    >
    >Is there a way to invoke a perl script from my
    >html using relative path addressing? Currently
    >a visitor clicks on a link, a new widow opens
    >and the script begins. In Dreamweaver, I've
    >accomplished by adding an action
    >(OpenBrowserWindow) on Event (OnClick). The
    >current OpenBrowserWindow asks for the URL,
    >thus I've entered
    >'http://www.mystuff.com/cgi-bin/script.pl' and
    >everything works fine.

    I don't understand why you're using the full address. Why not just use a
    relative (either doent or site root) one?

    Gary


    Gary White Guest

  2. #2

    Default Re: Invoking perl and .cgi scripts

    Gary,

    I have tried using a relative address. Maybe I've done something wrong, but the OpenBrowserWindow action requires (or seems to) a URL address. One can not enter [url]http://../../myscripts.pl[/url]

    When I enter just '../../myscripts.pl' upon invoking the script with a browser the browser shows the actual script text. When invoked via [url]http://www.mydomain.com/cgi-bin/myscripts.pl[/url] it runs the script. I'm looking for a way to both 'Open a New Window' and invoke the script with a relative address.

    -kjf



    Ken Ferrans, Jr.
    &quot;At the start of every day
    a child begins to play,
    and all we need to know
    is that the future is a friend of yours and mine&quot; -Anderson

    kferrans webforumsuser@macromedia.com Guest

  3. #3

    Default Re: Invoking perl and .cgi scripts

    On Sun, 20 Jul 2003 01:23:31 +0000 (UTC), "kferrans"
    [email]webforumsusermacromedia.com[/email] wrote:
    >I have tried using a relative address. Maybe I've done something
    >wrong, but the OpenBrowserWindow action requires (or seems to) a URL
    >address. One can not enter [url]http://../../myscripts.pl[/url]
    >
    >When I enter just '../../myscripts.pl' upon invoking the script with
    >a browser the browser shows the actual script text. When invoked via
    >[url]http://www.mydomain.com/cgi-bin/myscripts.pl[/url] it runs the script. I'm
    >looking for a way to both 'Open a New Window' and invoke the script
    >with a relative address.
    Hmmm... I've converted all my server side code to PHP and it's been a
    while since I've used Perl, but I'll have to try that. I don't
    remember it being a problem. It will be tomorrow before I can test it
    though.


    Gary
    Gary White Guest

  4. #4

    Default Re: Invoking perl and .cgi scripts

    "kferrans" <webforumsusermacromedia.com> wrote in message
    news:bfcquj$c6d$1forums.macromedia.com...
    >
    > I have tried using a relative address. Maybe I've done something wrong,
    but the OpenBrowserWindow action requires (or seems to) a URL address. One
    can not enter [url]http://../../myscripts.pl[/url]


    No. If you enter the "http://" then you MUST enter the domain name.


    > When I enter just '../../myscripts.pl' upon invoking the script with a
    browser the browser shows the actual script text. When invoked via
    [url]http://www.mydomain.com/cgi-bin/myscripts.pl[/url] it runs the script. I'm
    looking for a way to both 'Open a New Window' and invoke the script with a
    relative address.


    Here's where I don't see the problem. I don't have DW here, so I cannot use
    the actual MM Open Browser Window, but all it does is call a JavaScript
    window.open method. This simple example opens a simple Hello World Perl
    script and appears to work for me using either site root relative, or
    doent relative addressing:

    [url]http://apptools.com/newsgroup/perl.html[/url]

    Gary


    Gary White Guest

  5. #5

    Default Re: Invoking perl and .cgi scripts

    Gary,

    Thanks. The open.window code works great. This board continues to be a great source of help.

    Ken Ferrans, Jr.
    &quot;At the start of every day
    a child begins to play,
    and all we need to know
    is that the future is a friend of yours and mine&quot; -Anderson

    kferrans webforumsuser@macromedia.com Guest

Similar Threads

  1. Replies: 4
    Last Post: June 22nd, 05:25 PM
  2. Effeciency question - perl scripts v's perl exe's
    By Steffen Müller in forum PERL Miscellaneous
    Replies: 2
    Last Post: September 2nd, 10:57 AM
  3. Perl / Cgi scripts in colour
    By Jared in forum Macromedia Dreamweaver
    Replies: 2
    Last Post: August 4th, 05:00 AM
  4. ENV variables in perl scripts called from perl.
    By Sandman in forum PHP Development
    Replies: 2
    Last Post: July 29th, 10:58 AM
  5. Invoking Win32 dll from Perl.
    By Sharad K in forum PERL Miscellaneous
    Replies: 3
    Last Post: July 9th, 01:12 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139