Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^6: send windowmessage from cgi back to form that called the cgi

by tultalk (Monk)
on Mar 14, 2017 at 18:43 UTC ( [id://1184591]=note: print w/replies, xml ) Need Help??


in reply to Re^5: send windowmessage from cgi back to form that called the cgi
in thread send windowmessage from cgi back to form that called the cgi

But no message (results message) exists until one of the routines updating the database files is executed. After that the results are available for loading into the iframe.

User clicks on button to do some processing. When a routine finishes, a window message is sent to calling form to get the results loaded into the iframe. There is nothing to load when the iframe is instantiated when the jala_AdminCore.htm is displayed. The buttons are there only for testing to make sure the functions perform as intended.

  • Comment on Re^6: send windowmessage from cgi back to form that called the cgi

Replies are listed 'Best First'.
Re^7: send windowmessage from cgi back to form that called the cgi
by huck (Prior) on Mar 14, 2017 at 18:58 UTC

    The onload is placed into the html that is returned by the cgi code code run when you pres s the button

    User clicks on button to do some processing.

    doesnt that call a cgi script? that does the processing? It would be rather strange for the javascript to call a process that runs on the users machine rather then on the server where the database lives

    When a routine finishes

    Doesnt routine that send back html to the iframe? it is in that html that the onload runs

      Doesnt routine that send back html to the iframe? it is in that html that the onload runs

      What you are sayimg or asking is not clear to me

      When the routine in the script finishes, it has the response information in variables. When the cgi is interrogated for the response, it creates an html form which includes the response and sends it back to be displayed in the iframe.

      Gad it takes me time to work out the bugs in this stuff.

        What response does the cgi program give to a request to update the database. After the update routine has finished does it send a re-direct back to jala_AdminCore.htm ?

        poj

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1184591]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-24 02:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found