Hi, hope someone can help me. It seems imposible to read data from a server, however, I can read the validation data from the server and hold it in dataviews . datasets or data tables in my asp "load" page. I would like to use these data (which I presume is in some form of html or xml) in my HTML portion of the asp page. The data must be read using java script and after lots of calculations perform on it - be written to xml controls.
I can also write the data in the aspx page to the hard drive in xml format, but dont know yet to read it into java script arrays.
I use vb.net on the aspx page. I read the validation data from a sequal server and can keep it in views / datasets or tables or write it as a xml file.
The validations wil be done on the client side using java script. (no submit buttons involved - so no postback and page building. validation data will be read in the pageload section. Please help me
I hope I made myself clearly in my question.
Thanking you
4 11032
So, is it that you want to construct dynamic js arrays using the values in your dataset???
Or better yet,,,,,,, a custom javascript object!!!
So, is it that you want to construct dynamic js arrays using the values in your dataset???
Or better yet,,,,,,, a custom javascript object!!!
Any means of having the data from the dataset available in my javascript. Logically, arrays would be the answer in most cases, but some of the "validation records" is up to 400 records, then arrays would slow down performance ( I think) I just need a way of having about 8 tables / datasets available for my javscript. The tables exist in vb.net (aspx page)
Thanking you
What you are going to do is mix vbscript with javascript.
It is important to understand that the server does not see the javascript.
It merely process the vbscript and will convert your code to values before sending the page to the client machine. It is the client system which sees the javascript, but not the vbscript! Instead it will only see the values created by the server which interpreted the vbscript....
So. -
<script language="JavaScript1.2" type="text/javascript">
-
var allRecords = [
-
<%While (NOT rs_yours.EOF)%>
-
{field_name1:"<%=(rs_yours.Fields.Item("foo1").Value)%>",field_name2:"<%=(rs_yours.Fields.Item("foo2").Value)%>"}
-
<%
-
rs_yours.MoveNext()
-
Wend
-
%>
-
]
-
</script>
Is basically what you want to accomplish.
If you wanna get more tricky with it, check this out:
http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=161
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Georg Andersson |
last post by:
Hi
i'm having a little problem of understanding some differences between
Java and PHP.
Well, PHP runs on the server. so, if my script saves some data from a
database to 'c:\temp', it saves the...
|
by: Stefan Mueller |
last post by:
Because the characters ', ", ... make troubles in my input boxes I use the
following PHP command while generating the page
htmlentities($my_var, ENT_QUOTES);
However, if I use in my java scripts...
|
by: Stefan Mueller |
last post by:
I read data (e.g. äöüÄÖÜçéàè"') from my MySQL database which I'd like to
show in an input box.
<?php
$mysql_data = "äöüÄÖÜçéàè\"'";
$html_data = addslashes(htmlentities($mysql_data,...
|
by: technocrat |
last post by:
db2 -t -v -f/home.../filename >output_file-name
I have a java stored procedure..which has to run the above
command...not sure how i can run this command through java..
any suggestions are...
|
by: Jobs |
last post by:
Download the JAVA , .NET and SQL Server interview with answers
Download the JAVA , .NET and SQL Server interview sheet and rate
yourself. This will help you judge yourself are you really worth of...
|
by: Quill_Patricia |
last post by:
I have a Python script which is used to load data into a database. Up to
now this script has been run by customers from the Windows command
prompt using "python edg_loader.pyc". Any error messages...
|
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...
|
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...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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...
|
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...
| |