473,587 Members | 2,579 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

asp.net & web services

Hi all!

Currently I have a web application that consists of a classic frameset. I
would like to rebuild the application and just use tables or layers. The
problem is, that some parts of the application need to be refreshed at a
given interval. Currently, these parts run in a separate frame and a
JavaScript function reloads the page every x seconds. In the new scenario I
could use iframes, but I would prefer another solution to avoid page
reloading. Was it possible to call a web service from a JavaScript function?
The web service would return a HTML string that the JavaScript function will
then write into a <div>-Element. This way I could avoid page reloads and the
JavaScript function could poll the web service every x seconds in order to
obtain and display the latest data.

Can this be done and if so, where can I find some sample code?

Thanks

Thomas
Nov 17 '05 #1
7 1138
What is wrong with an IFrame with src = source.aspx and in the HTML code for
the source.aspx page in the <Head> section put the code <META
http-equiv="Refresh" content="10"> to refresh the source page every 10
seconds. I don't think this reloads the entire page, does it--just what is
in the IFrame? It happens so fast I can't really tell.
"Thomas" <pi************ ******@web.de> wrote in message
news:OH******** ******@TK2MSFTN GP10.phx.gbl...
Hi all!

Currently I have a web application that consists of a classic frameset. I
would like to rebuild the application and just use tables or layers. The
problem is, that some parts of the application need to be refreshed at a
given interval. Currently, these parts run in a separate frame and a
JavaScript function reloads the page every x seconds. In the new scenario I could use iframes, but I would prefer another solution to avoid page
reloading. Was it possible to call a web service from a JavaScript function? The web service would return a HTML string that the JavaScript function will then write into a <div>-Element. This way I could avoid page reloads and the JavaScript function could poll the web service every x seconds in order to
obtain and display the latest data.

Can this be done and if so, where can I find some sample code?

Thanks

Thomas

Nov 17 '05 #2
iframe only reloads whats in the frame from my understanding
"William LaMartin" <la******@tampa bay.rr.com> wrote in message
news:eM******** ******@TK2MSFTN GP11.phx.gbl...
What is wrong with an IFrame with src = source.aspx and in the HTML code for the source.aspx page in the <Head> section put the code <META
http-equiv="Refresh" content="10"> to refresh the source page every 10
seconds. I don't think this reloads the entire page, does it--just what is in the IFrame? It happens so fast I can't really tell.
"Thomas" <pi************ ******@web.de> wrote in message
news:OH******** ******@TK2MSFTN GP10.phx.gbl...
Hi all!

Currently I have a web application that consists of a classic frameset. I would like to rebuild the application and just use tables or layers. The
problem is, that some parts of the application need to be refreshed at a
given interval. Currently, these parts run in a separate frame and a
JavaScript function reloads the page every x seconds. In the new scenario
I
could use iframes, but I would prefer another solution to avoid page
reloading. Was it possible to call a web service from a JavaScript

function?
The web service would return a HTML string that the JavaScript function

will
then write into a <div>-Element. This way I could avoid page reloads and

the
JavaScript function could poll the web service every x seconds in order

to obtain and display the latest data.

Can this be done and if so, where can I find some sample code?

Thanks

Thomas


Nov 17 '05 #3

"William LaMartin" <la******@tampa bay.rr.com> wrote in message
news:eM******** ******@TK2MSFTN GP11.phx.gbl...
What is wrong with an IFrame with src = source.aspx and in the HTML code for the source.aspx page in the <Head> section put the code <META
http-equiv="Refresh" content="10"> to refresh the source page every 10
seconds. I don't think this reloads the entire page, does it--just what is in the IFrame? It happens so fast I can't really tell.

Well, in principle there's nothing wrong with iframes. Indeed only the
iframe is refreshed, not the whole page. For my scenario it was possible to
use iframes, but not using them had one more two additional benefits (not in
general, just in my application) - that's why I'm looking for an alternative
solution.


"Thomas" <pi************ ******@web.de> wrote in message
news:OH******** ******@TK2MSFTN GP10.phx.gbl...
Hi all!

Currently I have a web application that consists of a classic frameset. I would like to rebuild the application and just use tables or layers. The
problem is, that some parts of the application need to be refreshed at a
given interval. Currently, these parts run in a separate frame and a
JavaScript function reloads the page every x seconds. In the new scenario
I
could use iframes, but I would prefer another solution to avoid page
reloading. Was it possible to call a web service from a JavaScript

function?
The web service would return a HTML string that the JavaScript function

will
then write into a <div>-Element. This way I could avoid page reloads and

the
JavaScript function could poll the web service every x seconds in order

to obtain and display the latest data.

Can this be done and if so, where can I find some sample code?

Thanks

Thomas


Nov 17 '05 #4
Another way that needs a lot of javascript code is to use the MS XML
PARSER's HTTPRequest object. I've been using this method to avoid the
refresh of a page, and filling it with real time data (that changes every 1
second).

The results are impressive, since the data changes without a reload.

"Thomas" <pi************ ******@web.de> escribió en el mensaje
news:OH******** ******@TK2MSFTN GP10.phx.gbl...
Hi all!

Currently I have a web application that consists of a classic frameset. I
would like to rebuild the application and just use tables or layers. The
problem is, that some parts of the application need to be refreshed at a
given interval. Currently, these parts run in a separate frame and a
JavaScript function reloads the page every x seconds. In the new scenario I could use iframes, but I would prefer another solution to avoid page
reloading. Was it possible to call a web service from a JavaScript function? The web service would return a HTML string that the JavaScript function will then write into a <div>-Element. This way I could avoid page reloads and the JavaScript function could poll the web service every x seconds in order to
obtain and display the latest data.

Can this be done and if so, where can I find some sample code?

Thanks

Thomas

Nov 17 '05 #5


If you're targeting IE then use webservices and the behaviors file (".htc")

Here's one example...You can lookup details at MSDN, search for
webservice.htc
<!--
// This div will host the 'webservice' behavior for this page. Put this on
your page.

<div id="divWebServi ce" style="display: none;
behavior:url(../WebServices/webservice.htc) "></div>
function DoWebService()
{

var objWebService;
var intListID;

// Get the ID of the list that is to be returned
//
intListID = 1;

// Get a pointer to our webservice object
//
objWebService = document.all.di vWebService;

// Assign the callback function for this webservice call.
//
objWebService.o nresult = divWebService_R esult_DoWebServ ice;

// Set up the call to the webservice
//
objWebService.u seService("../WebServices/DataServices.as mx?wsdl","serve r");

// Execute the specified method
//
objWebService.s erver.callServi ce("GetListInfo rmation", intListID);
}

Iguana


"Thomas" <pi************ ******@web.de> wrote in message
news:OH******** ******@TK2MSFTN GP10.phx.gbl...
Hi all!

Currently I have a web application that consists of a classic frameset. I
would like to rebuild the application and just use tables or layers. The
problem is, that some parts of the application need to be refreshed at a
given interval. Currently, these parts run in a separate frame and a
JavaScript function reloads the page every x seconds. In the new scenario I could use iframes, but I would prefer another solution to avoid page
reloading. Was it possible to call a web service from a JavaScript function? The web service would return a HTML string that the JavaScript function will then write into a <div>-Element. This way I could avoid page reloads and the JavaScript function could poll the web service every x seconds in order to
obtain and display the latest data.

Can this be done and if so, where can I find some sample code?

Thanks

Thomas

Nov 17 '05 #6
Thanks, this sounds suitable for me as the application runs in the intranet
and all client browsers are IE.
"Iguana" <dm************ *****@bellsouth .net> wrote in message
news:%2******** *******@TK2MSFT NGP11.phx.gbl.. .


If you're targeting IE then use webservices and the behaviors file (".htc")
Here's one example...You can lookup details at MSDN, search for
webservice.htc
<!--
// This div will host the 'webservice' behavior for this page. Put this on your page.

<div id="divWebServi ce" style="display: none;
behavior:url(../WebServices/webservice.htc) "></div>
function DoWebService()
{

var objWebService;
var intListID;

// Get the ID of the list that is to be returned
//
intListID = 1;

// Get a pointer to our webservice object
//
objWebService = document.all.di vWebService;

// Assign the callback function for this webservice call.
//
objWebService.o nresult = divWebService_R esult_DoWebServ ice;

// Set up the call to the webservice
//
objWebService.u seService("../WebServices/DataServices.as mx?wsdl","serve r");
// Execute the specified method
//
objWebService.s erver.callServi ce("GetListInfo rmation", intListID);
}

Iguana


"Thomas" <pi************ ******@web.de> wrote in message
news:OH******** ******@TK2MSFTN GP10.phx.gbl...
Hi all!

Currently I have a web application that consists of a classic frameset. I would like to rebuild the application and just use tables or layers. The
problem is, that some parts of the application need to be refreshed at a
given interval. Currently, these parts run in a separate frame and a
JavaScript function reloads the page every x seconds. In the new scenario
I
could use iframes, but I would prefer another solution to avoid page
reloading. Was it possible to call a web service from a JavaScript

function?
The web service would return a HTML string that the JavaScript function

will
then write into a <div>-Element. This way I could avoid page reloads and

the
JavaScript function could poll the web service every x seconds in order

to obtain and display the latest data.

Can this be done and if so, where can I find some sample code?

Thanks

Thomas


Nov 17 '05 #7
Thanks, this sounds suitable for me as the application runs in the intranet
and all client browsers are IE.
"Iguana" <dm************ *****@bellsouth .net> wrote in message
news:%2******** *******@TK2MSFT NGP11.phx.gbl.. .


If you're targeting IE then use webservices and the behaviors file (".htc")
Here's one example...You can lookup details at MSDN, search for
webservice.htc
<!--
// This div will host the 'webservice' behavior for this page. Put this on your page.

<div id="divWebServi ce" style="display: none;
behavior:url(../WebServices/webservice.htc) "></div>
function DoWebService()
{

var objWebService;
var intListID;

// Get the ID of the list that is to be returned
//
intListID = 1;

// Get a pointer to our webservice object
//
objWebService = document.all.di vWebService;

// Assign the callback function for this webservice call.
//
objWebService.o nresult = divWebService_R esult_DoWebServ ice;

// Set up the call to the webservice
//
objWebService.u seService("../WebServices/DataServices.as mx?wsdl","serve r");
// Execute the specified method
//
objWebService.s erver.callServi ce("GetListInfo rmation", intListID);
}

Iguana


"Thomas" <pi************ ******@web.de> wrote in message
news:OH******** ******@TK2MSFTN GP10.phx.gbl...
Hi all!

Currently I have a web application that consists of a classic frameset. I would like to rebuild the application and just use tables or layers. The
problem is, that some parts of the application need to be refreshed at a
given interval. Currently, these parts run in a separate frame and a
JavaScript function reloads the page every x seconds. In the new scenario
I
could use iframes, but I would prefer another solution to avoid page
reloading. Was it possible to call a web service from a JavaScript

function?
The web service would return a HTML string that the JavaScript function

will
then write into a <div>-Element. This way I could avoid page reloads and

the
JavaScript function could poll the web service every x seconds in order

to obtain and display the latest data.

Can this be done and if so, where can I find some sample code?

Thanks

Thomas


Nov 17 '05 #8

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

Similar topics

2
8149
by: db2inst2 | last post by:
Hi all, I am using win2K db2 8.1 fixpak 2. lately db2syscs.exe started using 100% CPU. This will be the load on the DB. An application will connect to the machine every 10minutes and do few selects & inserts, updates. There is no major activity. db2dart didn't report any error on the DB. I tried increasing the Bufferpool but no luck. I...
0
435
by: rmk | last post by:
How can I get the 2000 and 2005 versions of SQL Server Reporting Services both working on my development laptop ????? I have ASP.NET 1.1 and 2.0 installed on my laptop. I have Visual Studio 2003 and 2005 installed on my laptop. I have my default website configured for ASP.NET 2.0. I have the developer edition of SQL Server 2000...
1
6467
by: rmk | last post by:
How can I get the 2000 and 2005 versions of SQL Server Reporting Services both working on my development laptop ????? I have ASP.NET 1.1 and 2.0 installed on my laptop. I have Visual Studio 2003 and 2005 installed on my laptop. I have my default website configured for ASP.NET 2.0. I have the developer edition of SQL Server 2000...
0
6727
by: Vijay | last post by:
Prep Courses for International Certifications, CSTE & CSQA & ISEB & ISTQB &Business Analyst & SOA Certifications in HYDERABAD. After receiving overwhelming response to our last 50+ batches, SPECTRAMIND SOLUTIONS now announces a new batch of Prep Courses for CSQA & CSTE& ISEB & ISTQB & Business Analyst & SOA so as to prepare you...
5
2927
by: Nike1984 | last post by:
I'm fairly new to Javascript and it's more of a guessing game for me... I'm trying to build an app for Google Maps and just had some issues recently. First off I just wanted to say that everything works fine in FF and IE. It's Chrome I'm having issues with. I understand that Chrome is still somewhat in beta stages, so some bugs might occur....
0
8206
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8340
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6621
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5713
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5392
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3840
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3875
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2353
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.