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

Javascript server side

Hi

I have a function that calls a webservice which then populates a dataset.
Dependent on the row count of the dataset my app either populates the page
with the dataset content or pops up a java message box. This all works fine.

What I now want to do is catch the value from the confirmation message and
trigger either a new popup or pass back to the app.

I've tested the javascript in an html page and it works fine, i'm just not
sure if you can evaluate the javascript using the registerscript block
function. The code looks like...

Dim alertscript = "<script language=JavaScript>"
alertscript = alertscript + " var fRet; "
alertscript = alertscript + " fRet = confirm('first message in here')
;"
alertscript = alertscript + " If (fRet) { "
alertscript = alertscript + " alert('second message');}"
alertscript = alertscript + " </script" + ">"

If Not IsClientScriptBlockRegistered("confirm") Then
RegisterClientScriptBlock("confirm", alertscript)
End If

any ideas/ advice

Thanks

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...p-net/200603/1
Mar 2 '06 #1
0 836

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

Similar topics

4
by: =?Utf-8?B?R1ROMTcwNzc3?= | last post by:
Hi Guys, thanks for your help yesterday, I've got one more question, then I think I'm done for now,... Is it possible to insert recordset data in a javascript, for instance I have a javascript...
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
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
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,...
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.