[thelist] Sharing data between ASP and JavaScripts

jerryscannell at cox.net jerryscannell at cox.net
Wed Feb 26 12:05:01 CST 2003


Hassan,

My comments are found below IN CAPS.

Jerry

>
> From: Hassan Schroeder <hassan at webtuitive.com>
> Date: 2003/02/26 Wed PM 12:37:39 EST
> To: thelist at lists.evolt.org
> Subject: Re: [thelist] Sharing data between ASP and JavaScripts
>
> Well, maybe :-)
>
> I know nothing about ASP, but if I were trying to do this in a servlet/JSP environment, I'd consider:
>

1) frames -- launch this long-running process from a framed page where there's a separate "control panel" to hold the giant red STOP button :-)

I AM ALREADY USING FRAMES.  ONE SKINNY ONE ON THE LEFT (I WILL CALL IT "LEFT" HERE) THAT CONTAINS MY MENU SELECTIONS AND THE REST OF THE SCREEN (I WILL CALL IT "MAIN" HERE) TO CONTAIN THE CURRENT PROCESS.  I HAVE TO RUN THE REPORTING PROCESS FROM THE "MAIN" FRAME AS THAT'S WHERE THE USER ENTERS HIS/HER STUFF AND CLICKS "SUBMIT".  I TRIED A "CANCEL" BUTTON IN THERE BEFORE.  I WAS ABLE TO ACTIVATE THE BUTTON'S EVENT CODE IF IT WAS A JAVASCRIPT FUNCTION BUT COULD NOT LINK TO ANOTHER .ASP FILE TO EXECUTE ANOTHER PROCESS WHILE THE DATABASE ACTIVITY WAS GOING ON. ARE YOU SUGGESTING THAT IF I PUT THE BUTTON ON THE "LEFT" FRAME THAT I COULD RUN A PROCESS THAT WOULD SET MY GLOBAL VARIABLE?  IF SO - PLEASE SHOW ME AN EXAMPLE OF HOW TO.



2) server push -- haven't seen this used in a long time, but that would allow you to deliver a preliminary ("please wait...") page that could also contain a STOP button. Unless terminated by the  button push, the process would then overwrite the wait page with the query results.

WHAT IS "SERVER PUSH"?  I NEVER HEARD OF THAT TERM BEFORE. DO YOU HAVE AN EXAMPLE OF IT FOR ME TO LOOK AT?


In either case, pressing the STOP button requests a process to set the variable your `do..` loop is testing for and return the "what now?" page.

THIS ABOVE PARAGRAPH SUMS UP JUST WHAT I NEED TO DO.  THE REASON FOR THE NECESSITY IS IN CASE THE USER ACCIDENTLY CHOOSES A REPORT CRITERIA THAT WILL TAKE HOURS AND THEY NEED A WAY OUT OF THE MESS.

Also, neither of these approaches depends on JavaScript.

> Hassan Schroeder ----------------------------- hassan at webtuitive.com
> Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
>
>                            dream.  code.
>
>
>
> --
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>




More information about the thelist mailing list