Search Result

Collapse
10 results in 0.0044 seconds.
Keywords
Members
Tags
cgi
  •  

  • python cgi webpage won't redirect before background children processes finish

    Hi all,

    I have a python cgi script which looks like this:

    Code:
    logfile = open('xxxxxxxxx')
    print "Content-Type: text/html\n\n"
    .....
    print '    <meta http-equiv="refresh" content="15;url=%s" />' % myURL
    ......
    ### after printing the page
    os.system('python myfile.py &')
    logfile.write('END OF SCRIPT')
    logfile.close()
    ...
    See more | Go to post

  • spyka
    started a topic How can I do the pagination in my Perl CGI script?
    in Perl

    How can I do the pagination in my Perl CGI script?

    I have a CGI page with a table which is populated by fetching the data from database, in a word its like a DATAGRID.

    And just at the bottom right end of tha Grid I need a link like "First << 1 2 >> Last"
    or like" |< < > >| "on clicking which I can navigate to and fro the records. And I am intend to have "10" records per page.

    While surfing I got a piece of code...
    See more | Go to post
    Last edited by Niheel; Sep 20 '10, 08:32 PM. Reason: added code tags, removed the ALL CAPS text

  • How can I repeat the menu bar on every page from a Perl CGI program?

    I have a page named _Main.cgi_ where in I have a
    horizontal menu bar with UserList logs and so on
    like the Menu above Questions Tags Users etc.
    Whenever I click the Userlist I get navigated to
    another page where I have a grid. In this page also
    I want that Menu bar which was in _Main.cgi_, and so
    on. It should get repeated to every page.
    See more | Go to post

  • spyka
    started a topic How to create a Combobox in html form
    in Perl

    How to create a Combobox in html form

    Actually I have a CGI form which consists of
    textfields and I need a combobox in which I can
    enter my own data dynamically. May be it seems very
    silly question but I am new to cgi-perl as well as
    HTML so no idea what to do. Here is my form:

    Code:
    #!C:\perl\bin\perl.exe
    
    use CGI;
    use CGI qw/:standard/;
    use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
    my $q = new CGI;
    use DBI;
    ...
    See more | Go to post
    Last edited by numberwhun; Sep 14 '10, 12:41 AM. Reason: Please use code tags!!!

  • spyka
    started a topic Create a Combobox in html form

    Create a Combobox in html form

    Actually I have a CGI form which consists of
    textfields and I need a combobox in which I can
    enter my own data dynamically. May be it seems very
    silly question but I am new to cgi-perl as well as
    HTML so no idea what to do. Here is my form:

    Code:
        #!C:\perl\bin\perl.exe
    
        use CGI;
        use CGI qw/:standard/;
        use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
    ...
    See more | Go to post
    Last edited by gits; Sep 14 '10, 08:44 AM. Reason: added code tags

  • spyka
    started a topic How to create a Horizontal Menu in cgi-perl
    in Perl

    How to create a Horizontal Menu in cgi-perl

    i have a login page called as Login.cgi...aft er entering a valid Password i get redirected to page called as Main.cgi..here i need to have a HORIZONTAL MENU and submenu like as it is in this page like "ASk ur questions" "write an article"..and so on...

    AM new to perl so help me with some codes or links or any websites which might help me in this regard..
    THANK YOU..
    See more | Go to post

  • spyka
    started a topic problem Redirecting from one cgi page to another...
    in Perl

    problem Redirecting from one cgi page to another...

    wenevr after the password validation, if its
    correct then instead of redirecting to another
    page its showing ths msg...
    Status: 302 Found Location: http://localhost/cgi-
    bin/Main.cgi

    please gv me the solution for this...

    Code:
        #!C:\perl\bin\perl.exe
        use strict;
        use CGI qw(:standard);
        use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
    ...
    See more | Go to post
    Last edited by Frinavale; Sep 7 '10, 05:45 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.

  • want to validate a form (user and password) have default values and want to proceed

    Code:
     start_form("get");   #will start the form
            print "What's the User name? ",textfield(-name=>'Username',-value=>'user'),
         #will get the user name
    
        p,  #this gives a new paragraph
    
        "Please enter your password: ",textfield(-name=>'password',-value=>'pass'),
         #will get the password
        
    
    #to validate is the problem
    ...
    See more | Go to post

  • limit Python CGI's frequency of calls to an external database?

    I've got a Python CGI script that pulls data from a GPS service; I'd like this information to be updated on the webpage about once every 10s (the max allowed by the GPS service's TOS). But there could be, say, 100 users viewing the webpage at once, all calling the script.

    I think the users' scripts need to grab data from a buffer page that itself only upates once every ten seconds. How can I make this buffer page auto-update if there's...
    See more | Go to post

  • limit Python CGI's frequency of calls to a database?

    I've got a Python CGI script that pulls data from a GPS service; I'd like this information to be updated on the webpage about once every 10s (the max allowed by the GPS service's TOS). But there could be, say, 100 users viewing the webpage at once, all calling the script.

    I think the users' scripts need to grab data from a buffer page that itself only upates once every ten seconds. How can I make this buffer page auto-update if there's...
    See more | Go to post
Working...