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 6 of 6
  1. #1
    New Coder
    Join Date
    Jan 2010
    Posts
    79
    Thanks
    1
    Thanked 0 Times in 0 Posts

    question over perl/cgi

    I'm using perl and cgi module for creating web pages, but now I'd like to modify web page and not create new pages.

    For example when I press submit button in my page, then I want show the output string "Operation completed" in my same page without create an other.

    How can I solve this problem?

  • #2
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    You need either to show some code or explain in more detail what you mean. It sounds like you want to submit a form to a processing script and when that has finished its process, you want it to output 'Operation completed'.

    If that is so; we need to see the code you have made to see why it isn't doing what you want it to.

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #3
    New to the CF scene
    Join Date
    Mar 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If I understand you correctly, you don't even want to refresh the page, you just want it to print out the response. In which case, what you are trying to is not possible using server side scripts. What happens is, when your cgi is compiled, it generates html. After that, the server is done and the client takes over.

  • #4
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,495
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts

  • #5
    New Coder
    Join Date
    Jan 2010
    Posts
    79
    Thanks
    1
    Thanked 0 Times in 0 Posts
    In this moment, rather than Ajax I prefer "Old School" with iframe usage.
    I my page with this iframe declaration:

    Quote:
    <iframe src="registerform" width="100%" height="600" frameborder="no" scrolling="no">
    </iframe>
    iframe source is registerform.html page.

    I have also registration.cgi perl script that process form data.
    I want to know how can replace old iframe with registration data with new iframe with confirm for registration.

    Regards,
    savio

  • #6
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    An iframe changes little about what has already been suggested. If you click a button in the page that is within the iframe, it will load a new page into the iframe by default.

    If you tell it to load into the parent page, it will do that but, unless you use AJAX or JS, there will always be the requirement to load a new page.

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link


  •  

    Posting Permissions

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