473,395 Members | 1,696 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,395 software developers and data experts.

Problems with WebServer Behavior !

Hi. I have the following HTML (snip):

_____________________________________________
<body MS_POSITIONING="GridLayout" onload="Init()">
<form id="frmWebServerAdvanced_1Test" method="post" runat="server">
<div id="service" style="behavior:url(webservice.htc)"
onresult="Service_Result()"></div>
°Fahrenheit: <input id="txtFahrenheit">
<input type="Button" value="Convert !" onclick="Button_Click()">
<hr>
<span id="lblCelsius"></span>
</form>
</body>
_____________________________________________

and the following script:
_____________________________________________
<script language="javascript">

var intCallID=0;

function Init()
{
service.useService("http://localhost/aspnetprojects/vsnet/WebServerAdvanced_1/TemperatureWithBehaviour.asmx?WSDL","TemperatureWi thBehaviour");}function Service_Result(){ //If there is an error, and the call came from the call() in init() if((event.result.error) && (intCallID == event.result.id)) { //Pull the error information from the event.result.errorDetailproperties var xfaultcode = event.result.errorDetail.code; var xfaultstring = event.result.errorDetail.string; var xfaultsoap = event.result.errorDetail.raw; alert(xfaultstring); //Add code to handle specific error codes here } //If there was no error, and the call came from the call() in init() else if((!event.result.error) && (intCallID == event.result.id)) { //Show the result ! lblCelsius.innertext="The result of the conversion is " +event.result.value + " °Fahrenheit" //alert("The result of the conversion is " + event.result.value +"°Fahrenheit"); } else { alert("Something else fired the event!"); }}function Button_Click(){ intCallID = service.TemperatureWithBehaviour.callService("ToCe lsius",txtFahrenheit.value); //intCallID = service.TemperatureWithBehaviour.callService("ToCe lsius",87);}</script>___________________________________________ __I have the following problems -1. Microsoft JScript runtime error: 'txtFahrenheit' is undefinedIf I comment out the line, as above, and enter a fixed value, it works okay.2. lblCelsius.innertext does not work - it does not complain, but it simplydoes not work. However, ALERT works just fine. I obtain"The result of the conversions is 30.55..." etcWhat am I missing here ? I look at the HTML and everything seems to be inorder.Thank you, Alex.

Nov 19 '05 #1
4 1098
Sorry, outlook completely messed up my tabs in the previous post. Here it is
again:

Hi. I have the following HTML (snip):

_____________________________________________
<body MS_POSITIONING="GridLayout" onload="Init()">
<form id="frmWebServerAdvanced_1Test" method="post" runat="server">
<div id="service" style="behavior:url(webservice.htc)"
onresult="Service_Result()"></div>
°Fahrenheit: <input id="txtFahrenheit">
<input type="Button" value="Convert !" onclick="Button_Click()">
--------------------------------------------------------------------------------
<span id="lblCelsius"></span>
</form>
</body>
_____________________________________________

and the following script:
_____________________________________________
<script language="javascript">

var intCallID=0;

function Init()

{

service.useService("http://localhost/aspnetprojects/vsnet/WebServerAdvanced_1/TemperatureWithBehaviour.asmx?WSDL","TemperatureWi thBehaviour");}function Service_Result(){ //If there is an error, and the call came from the call() in init() if((event.result.error) && (intCallID == event.result.id)) { //Pull the error information from the event.result.errorDetailproperties var xfaultcode = event.result.errorDetail.code; var xfaultstring = event.result.errorDetail.string; var xfaultsoap = event.result.errorDetail.raw; alert(xfaultstring); //Add code to handle specific error codes here } //If there was no error, and the call came from the call() in init() else if((!event.result.error) && (intCallID == event.result.id)) { //Show the result ! lblCelsius.innertext="The result of the conversion is " +event.result.value + " °Fahrenheit" //alert("The result of the conversion is " + event.result.value +"°Fahrenheit"); } else { alert("Something else fired the event!"); }}function Button_Click(){ intCallID = service.TemperatureWithBehaviour.callService("ToCe lsius",txtFahrenheit.value); //intCallID = service.TemperatureWithBehaviour.callService("ToCe lsius",87);}</script>___________________________________________ _ I have the following twoproblems - 1. Microsoft JScript runtime error: 'txtFahrenheit' is undefinedIf I comment out the line, as above, and enter a fixed value, it works okay.2. lblCelsius.innertext does not work - it does not complain, but it simplydoes not work. However, ALERT works just fine. I obtain "The result of theconversions is 30.55..." etc What am I missing here ? I look at the HTML andeverything seems to be in order. Thank you, Alex.

Nov 19 '05 #2
Sorry, outlook completely messed up my tabs in the previous post. Here it is
again:

Hi. I have the following HTML (snip):

_____________________________________________
<body MS_POSITIONING="GridLayout" onload="Init()">
<form id="frmWebServerAdvanced_1Test" method="post" runat="server">
<div id="service" style="behavior:url(webservice.htc)"
onresult="Service_Result()"></div>
°Fahrenheit: <input id="txtFahrenheit">
<input type="Button" value="Convert !" onclick="Button_Click()">
--------------------------------------------------------------------------------
<span id="lblCelsius"></span>
</form>
</body>
_____________________________________________

and the following script:
_____________________________________________
<script language="javascript">

var intCallID=0;

function Init()

{

service.useService("http://localhost/aspnetprojects/vsnet/WebServerAdvanced_1/TemperatureWithBehaviour.asmx?WSDL","TemperatureWi thBehaviour");}function Service_Result(){ //If there is an error, and the call came from the call() in init() if((event.result.error) && (intCallID == event.result.id)) { //Pull the error information from the event.result.errorDetailproperties var xfaultcode = event.result.errorDetail.code; var xfaultstring = event.result.errorDetail.string; var xfaultsoap = event.result.errorDetail.raw; alert(xfaultstring); //Add code to handle specific error codes here } //If there was no error, and the call came from the call() in init() else if((!event.result.error) && (intCallID == event.result.id)) { //Show the result ! lblCelsius.innertext="The result of the conversion is " +event.result.value + " °Fahrenheit" //alert("The result of the conversion is " + event.result.value +"°Fahrenheit"); } else { alert("Something else fired the event!"); }}function Button_Click(){ intCallID = service.TemperatureWithBehaviour.callService("ToCe lsius",txtFahrenheit.value); //intCallID = service.TemperatureWithBehaviour.callService("ToCe lsius",87);}</script>___________________________________________ _ I have the following twoproblems - 1. Microsoft JScript runtime error: 'txtFahrenheit' is undefinedIf I comment out the line, as above, and enter a fixed value, it works okay.2. lblCelsius.innertext does not work - it does not complain, but it simplydoes not work. However, ALERT works just fine. I obtain "The result of theconversions is 30.55..." etc What am I missing here ? I look at the HTML andeverything seems to be in order. Thank you, Alex.

Nov 19 '05 #3
Problems with WebServer Behaviour !
Hi. I have the following HTML (snip):
_____________________________________________
<body MS_POSITIONING="GridLayout" onload="Init()">
<form id="frmWebServerAdvanced_1Test" method="post" runat="server">
<div id="service" style="behavior:url(webservice.htc)"
onresult="Service_Result()"></div>
°Fahrenheit: <input id="txtFahrenheit">
<input type="Button" value="Convert !" onclick="Button_Click()">
<span id="lblCelsius"></span>
</form>
</body>
_____________________________________________
and the following script:
_____________________________________________
<script language="javascript">

var intCallID=0;

function Init()
{
service.useService("http://localhost/aspnetprojects/vsnet/WebServerAdvanced_1/TemperatureWithBehaviour.asmx?WSDL","TemperatureWi thBehaviour");}function Service_Result(){ //If there is an error, and the call came from the call() in init() if((event.result.error) && (intCallID == event.result.id)) { //Pull the error information from the event.result.errorDetailproperties var xfaultcode = event.result.errorDetail.code; var xfaultstring = event.result.errorDetail.string; var xfaultsoap = event.result.errorDetail.raw; alert(xfaultstring); //Add code to handle specific error codes here } //If there was no error, and the call came from the call() in init() else if((!event.result.error) && (intCallID == event.result.id)) { //Show the result ! lblCelsius.innertext="The result of the conversion is " +event.result.value + " °Fahrenheit" //alert("The result of the conversion is " + event.result.value +"°Fahrenheit"); } else { alert("Something else fired the event!"); }}function Button_Click(){ intCallID = service.TemperatureWithBehaviour.callService("ToCe lsius",txtFahrenheit.value); //intCallID = service.TemperatureWithBehaviour.callService("ToCe lsius",87);}</script>___________________________________________ __I have the following two problems -1. Microsoft JScript runtime error: 'txtFahrenheit' is undefinedIf I comment out the line, as above, and enter a fixed value, it works okay.2. lblCelsius.innertext does not work - it does not complain, but it simplydoes not work. However, ALERT works just fine. I obtain"The result of the conversions is 30.55..." etcWhat am I missing here ? I look at the HTML and everything seems to be inorder.Thank you, Alex.

Nov 19 '05 #4
Problems with WebServer Behaviour !
Hi. I have the following HTML (snip):
_____________________________________________
<body MS_POSITIONING="GridLayout" onload="Init()">
<form id="frmWebServerAdvanced_1Test" method="post" runat="server">
<div id="service" style="behavior:url(webservice.htc)"
onresult="Service_Result()"></div>
°Fahrenheit: <input id="txtFahrenheit">
<input type="Button" value="Convert !" onclick="Button_Click()">
<span id="lblCelsius"></span>
</form>
</body>
_____________________________________________
and the following script:
_____________________________________________
<script language="javascript">

var intCallID=0;

function Init()
{
service.useService("http://localhost/aspnetprojects/vsnet/WebServerAdvanced_1/TemperatureWithBehaviour.asmx?WSDL","TemperatureWi thBehaviour");}function Service_Result(){ //If there is an error, and the call came from the call() in init() if((event.result.error) && (intCallID == event.result.id)) { //Pull the error information from the event.result.errorDetailproperties var xfaultcode = event.result.errorDetail.code; var xfaultstring = event.result.errorDetail.string; var xfaultsoap = event.result.errorDetail.raw; alert(xfaultstring); //Add code to handle specific error codes here } //If there was no error, and the call came from the call() in init() else if((!event.result.error) && (intCallID == event.result.id)) { //Show the result ! lblCelsius.innertext="The result of the conversion is " +event.result.value + " °Fahrenheit" //alert("The result of the conversion is " + event.result.value +"°Fahrenheit"); } else { alert("Something else fired the event!"); }}function Button_Click(){ intCallID = service.TemperatureWithBehaviour.callService("ToCe lsius",txtFahrenheit.value); //intCallID = service.TemperatureWithBehaviour.callService("ToCe lsius",87);}</script>___________________________________________ __I have the following two problems -1. Microsoft JScript runtime error: 'txtFahrenheit' is undefinedIf I comment out the line, as above, and enter a fixed value, it works okay.2. lblCelsius.innertext does not work - it does not complain, but it simplydoes not work. However, ALERT works just fine. I obtain"The result of the conversions is 30.55..." etcWhat am I missing here ? I look at the HTML and everything seems to be inorder.Thank you, Alex.

Nov 19 '05 #5

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

Similar topics

3
by: Mark | last post by:
Hi I have been successfully running db driven websites on my ISPs webserver using PHP Version 4.2.3.for a while now. I am now experimenting with running mysql/php on my lap-top so I can access...
38
by: Tim Tyler | last post by:
Here's what this morning's security advisory read here: ``In the last 3 months we have noticed an marked increase in the number of web-server attacks and successful compromise on our network....
5
by: Tyler Style | last post by:
Hullo - looking for a little advice here. I have a form on a page in one domain submitting to a cgi in another domain. Weirdly, on some Windows XP systems, a form on the page fails to submit/post...
0
by: Alex Nitulescu | last post by:
Hi. I have the following HTML (snip): _____________________________________________ <body MS_POSITIONING="GridLayout" onload="Init()"> <form id="frmWebServerAdvanced_1Test" method="post"...
2
by: CrazyAtlantaGuy | last post by:
I'm having a strange problem and I was hoping someone could give me some guidance. I am accessing a Microsoft SQL 2000 server through ASP scripts on our webserver. The sql server and web server...
1
by: aceven24 | last post by:
I'm getting some strange behavior when making multiple async calls coming from threads from the thread pool on a WinApp Client. The Event Log has the following events: Event Type: Warning...
16
by: pamelafluente | last post by:
I am still working with no success on that client/server problem. I need your help. I will submit simplified versions of my problem so we can see clearly what is going on. My model: A client...
2
by: Mike | last post by:
Hi, I am new to C and having problems with the following program. Basically I am trying to read some files, loading data structures into memory for latter searching. I am trying to use structres...
4
by: yannis.corre | last post by:
Hello, I don't understand the difference of behavior of these two webservers : I'm uploading a file and I launch a thread that makes some treatments with the Request.Files. I saw that a new...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.