473,387 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Synchronous Call ?

Hi,
"robot script pages" are html+javascript pages, can be played in aspx
player. So in this tech, robot call aspx player's function (an interface is
sheared) and wait a result synchronously with a javascript method. I try it
with GetCallbackEventReference but this tech works async. Could I use a
javascript function with a sync call ?
Thaks for responses,
Jul 26 '06 #1
3 3566
I'm just dying to find out what an "aspx player" is. Can you record with it
too? Is it portable? Where can I buy one?

Other than that, I can't make a lick of sense out of your question. Could
you try again?

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

Sequence, Selection, Iteration.
"KaNos" <no@address.comwrote in message
news:44*********************@news.orange.fr...
Hi,
"robot script pages" are html+javascript pages, can be played in aspx
player. So in this tech, robot call aspx player's function (an interface
is sheared) and wait a result synchronously with a javascript method. I
try it with GetCallbackEventReference but this tech works async. Could I
use a javascript function with a sync call ?
Thaks for responses,

Jul 26 '06 #2
Sorry Kevin,
So I try again, I have to describe all componant.

First, a robot script page is a html page with javascript. In the onload of
this page, a javascript function search a javascript object TRRobot. So this
"robot script page" is in a frame (with iframe tag) of an aspx page (the
aspx player). When the "robot script page" (RSP) found the TRRobot, it can
use two "public" functions "Getter" and "Setter" like an interface.

When the function "string Getter(parameters)" is used, it call a javacripts
function "PlayerGetter" which fires a callback event with
ICallbackEventHandler and must send a value (property of a .net objet save
in the session). But with this method, I can see the function PlayerGetter
executed all but with no return because the result is used by an another
function (GetCallbackResult call another javascript method).

I think i've a solution, a sleep in PlayerGetter, the return of
GetCallbackResult to an hiddenfield, and PlayGetter return the value in this
hiddenField. But i think is bad...really bad.

A new solution please...
Thanks,


"Kevin Spencer" <uc*@ftc.gova écrit dans le message de news:
%2****************@TK2MSFTNGP06.phx.gbl...
I'm just dying to find out what an "aspx player" is. Can you record with
it too? Is it portable? Where can I buy one?

Other than that, I can't make a lick of sense out of your question. Could
you try again?

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

Sequence, Selection, Iteration.
"KaNos" <no@address.comwrote in message
news:44*********************@news.orange.fr...
>Hi,
"robot script pages" are html+javascript pages, can be played in aspx
player. So in this tech, robot call aspx player's function (an interface
is sheared) and wait a result synchronously with a javascript method. I
try it with GetCallbackEventReference but this tech works async. Could I
use a javascript function with a sync call ?
Thaks for responses,


Jul 26 '06 #3
Thanks KaNos,

After reading it over a couple of times, I think I understand the problem!

I don't see why you need a hidden field, as JavaScript objects do not
encapsulate, and are, in fact, not really object-oriented at all, but more
of a convenience. You should be able to access the data directly from a
variable which the CallBack function can create. As for the sleep, I don't
see a problem with it on the client side. You can use setInterval to check
every second or so.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

Sequence, Selection, Iteration.
"KaNos" <no@address.comwrote in message
news:44*********************@news.orange.fr...
Sorry Kevin,
So I try again, I have to describe all componant.

First, a robot script page is a html page with javascript. In the onload
of this page, a javascript function search a javascript object TRRobot. So
this "robot script page" is in a frame (with iframe tag) of an aspx page
(the aspx player). When the "robot script page" (RSP) found the TRRobot,
it can use two "public" functions "Getter" and "Setter" like an interface.

When the function "string Getter(parameters)" is used, it call a
javacripts function "PlayerGetter" which fires a callback event with
ICallbackEventHandler and must send a value (property of a .net objet save
in the session). But with this method, I can see the function PlayerGetter
executed all but with no return because the result is used by an another
function (GetCallbackResult call another javascript method).

I think i've a solution, a sleep in PlayerGetter, the return of
GetCallbackResult to an hiddenfield, and PlayGetter return the value in
this hiddenField. But i think is bad...really bad.

A new solution please...
Thanks,


"Kevin Spencer" <uc*@ftc.gova écrit dans le message de news:
%2****************@TK2MSFTNGP06.phx.gbl...
>I'm just dying to find out what an "aspx player" is. Can you record with
it too? Is it portable? Where can I buy one?

Other than that, I can't make a lick of sense out of your question. Could
you try again?

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

Sequence, Selection, Iteration.
"KaNos" <no@address.comwrote in message
news:44*********************@news.orange.fr...
>>Hi,
"robot script pages" are html+javascript pages, can be played in aspx
player. So in this tech, robot call aspx player's function (an
interface is sheared) and wait a result synchronously with a javascript
method. I try it with GetCallbackEventReference but this tech works
async. Could I use a javascript function with a sync call ?
Thaks for responses,



Jul 26 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Chris | last post by:
Hi. I have a ibrary I'm trying to use via javascript within IE. This library uses an asynchronous model where I call into a function and pass it a callback function as one of its arguments. My...
1
by: Alexander Kaplunov | last post by:
I have two different scenarios: 1. I have an application that calls a web service and passes an object. Web Service takes that object and does some stuff with it, which could take...
2
by: duncansinclair | last post by:
The following code works in IE, but in Forefox (1.0.7 & 1.5) the Asyncronous function (testA) works fine but the Synchronous one (testS) does not. It just doesn't work & I get no errors. ...
3
by: Pro1712 | last post by:
Hi, this may be a stupid question: How can I can call the DoWork-function of a BackgroundWorker synchronous? Or in other words: How can I extend the BackgroundWorker class with a function...
1
by: Walther W | last post by:
Hello, Is it possible to make a synchronous Web Service? I have a situation where quite big piece of data should be send from client to Web Service server but client and server should not...
4
by: keyofdminor | last post by:
Folks, Short version: Has anyone tried a synchronous call ("SJAX") to a server with the Prototype library? I'm curious if there is a bug in the library (possible) or if I am making mistake...
1
by: intrepid_dw | last post by:
All: I have prepared a .NET 1.1 client application that consumes a remote, public web service. All the functions work as expected, and, in general, the application has been successful for my...
5
by: HugeBob | last post by:
Hi All, I've got a question about Asynchronous vs Synchronous mode with the XMLHttpRequest object. What are the ramifications of using one mode vs the other? If the script uses Asynchronous...
6
by: Simon | last post by:
Hi All, An experiment i'm doing requires requires a synchronous cross-domain request, without using a proxy. I wondered if anyone had any ideas to help me achieve this. Below is what I have...
2
by: ng01 | last post by:
In AjaxPro, if you leave out the Callback parameter, it becomes a synchronous call. Is it possible to perform a synchronous call with ASP.NET AJAX? Please limit responses to the question...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.