Invoking perl and .cgi scripts

Ask a Question related to Macromedia Dreamweaver, Design and Development.

  1. #1

    Default Re: Invoking perl and .cgi scripts

    "kferrans" <webforumsuser@macromedia.com> wrote in message
    news:bfc18g$bdt$1@forums.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 document or site root) one?

    Gary


    Gary White Guest

  2. Similar Questions and Discussions

    1. Query on invoking remote java webservices from a Perl Client
      Hi all, We are working on a Perl client, which should be able to invoke a method exposed by remote Java webservice (Eg. JMXConnector) deployed...
    2. Effeciency question - perl scripts v's perl exe's
      Max Adams wrote: The only existing Perl compiler is part of perl. Anything else is just a packager that puts a perl, required modules, and the...
    3. ENV variables in perl scripts called from perl.
      The subject says it all. I am doing a: I have a perl script in which I am using a ReadParse routine that parses the $ENV{'QUERY_STRING'} or...
    4. Invoking Win32 dll from Perl.
      Hi all, I am trying to invoke a function in kernel32.dll from my perl program which looks like this - use Win32::API; $GetPID = new...
    5. include ASP scripts in PERL
      In article <dcd2e192.0307010249.4747ccf7@posting.google.com>, "wimf" <wimf@gmx.de> wrote: Hi, Perl is not capable of parsing and executing...
  3. #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

  4. #3

    Default Re: Invoking perl and .cgi scripts

    On Sun, 20 Jul 2003 01:23:31 +0000 (UTC), "kferrans"
    [email]webforumsuser@macromedia.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

  5. #4

    Default Re: Invoking perl and .cgi scripts

    "kferrans" <webforumsuser@macromedia.com> wrote in message
    news:bfcquj$c6d$1@forums.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
    document relative addressing:

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

    Gary


    Gary White Guest

  6. #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

Posting Permissions

  • You may not post new threads
  • You may 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