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

JavaScript Array Values

Hi

i have the following class

Public Class ShipmentClass
Public RatedShipment As RatedShipmentClass()
Public Class RatedShipmentClass
Public GuaranteedDaysToDelivery As String
Public ScheduledDeliveryTime As String
Public Code As String
Public MonetaryValue As Double
End Class
End Class

in javascript i want to know the values contained

i am using ajax and want to know what the array contains at specific indexes

ex response.value[0] ??? i want to know the monetaryvalue for each row,
assuming there are about 7 rows

TIA
Barry
Oct 23 '06 #1
4 1369
Hi,

Barry wrote:
Hi

i have the following class

Public Class ShipmentClass
Public RatedShipment As RatedShipmentClass()
Public Class RatedShipmentClass
Public GuaranteedDaysToDelivery As String
Public ScheduledDeliveryTime As String
Public Code As String
Public MonetaryValue As Double
End Class
End Class

in javascript i want to know the values contained

i am using ajax and want to know what the array contains at specific indexes

ex response.value[0] ??? i want to know the monetaryvalue for each row,
assuming there are about 7 rows

TIA
Barry
AJAX doesn't say much about the response format. The server-side service
provider specifies the format.

If you're talking about ASP.NET AJAX (ex ATLAS), then t's not just AJAX,
it's web services, which implies a SOAP formatting of the response.
You'll have a proxy on the server, representing ("translating") the C#
object in a JavaScript object.

If that's the case, check the ASP.NET AJAX documentation. If that's not
the case, then you must give more details about the server-side code.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Oct 23 '06 #2
Hi

Thanks for your quick reply, but i think you complketely misundestood my
requirement.

The class i mentioned i returned to the client-side, using AJAX.
All i want to know is, how do i get the various data items using maybe
something like

response.value[0].Code

or whatever , i was getting some errors on the client-side when testing
using the above

Barry

"Laurent Bugnion" <ga*********@bluewin.chwrote in message
news:O3**************@TK2MSFTNGP05.phx.gbl...
Hi,

Barry wrote:
>Hi

i have the following class

Public Class ShipmentClass
Public RatedShipment As RatedShipmentClass()
Public Class RatedShipmentClass
Public GuaranteedDaysToDelivery As String
Public ScheduledDeliveryTime As String
Public Code As String
Public MonetaryValue As Double
End Class
End Class

in javascript i want to know the values contained

i am using ajax and want to know what the array contains at specific
indexes

ex response.value[0] ??? i want to know the monetaryvalue for each row,
assuming there are about 7 rows

TIA
Barry

AJAX doesn't say much about the response format. The server-side service
provider specifies the format.

If you're talking about ASP.NET AJAX (ex ATLAS), then t's not just AJAX,
it's web services, which implies a SOAP formatting of the response. You'll
have a proxy on the server, representing ("translating") the C# object in
a JavaScript object.

If that's the case, check the ASP.NET AJAX documentation. If that's not
the case, then you must give more details about the server-side code.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch

Oct 23 '06 #3
this will depend on the ajax library you are using and how (if) it marshals
classes.

-- bruce (sqlwork.com)

"Barry" <no****@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Hi

i have the following class

Public Class ShipmentClass
Public RatedShipment As RatedShipmentClass()
Public Class RatedShipmentClass
Public GuaranteedDaysToDelivery As String
Public ScheduledDeliveryTime As String
Public Code As String
Public MonetaryValue As Double
End Class
End Class

in javascript i want to know the values contained

i am using ajax and want to know what the array contains at specific
indexes

ex response.value[0] ??? i want to know the monetaryvalue for each row,
assuming there are about 7 rows

TIA
Barry


Oct 23 '06 #4
Hi,

Barry wrote:
Hi

Thanks for your quick reply, but i think you complketely misundestood my
requirement.

The class i mentioned i returned to the client-side, using AJAX.
All i want to know is, how do i get the various data items using maybe
something like

response.value[0].Code

or whatever , i was getting some errors on the client-side when testing
using the above

Barry
No. I understood what you said very well. But you misunderstood how AJAX
works.

AJAX is not a library, it's a concept. There are many implementations of
AJAX. Including your own, using XmlHttpRequest directly.

a) What do you write to the Response object on the server? XML? SOAP?
b) How do you send the request and get the response?

These two questions are crucial. You didn't give us enough information
to help you with the client-side script.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Oct 23 '06 #5

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

Similar topics

53
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is...
13
by: Craig | last post by:
Hey all, Here's the situation: - two websites, one on domain1 and the other on domain2 - domain1 opens a new window which is a javascript app from domain2 - domain1 needs to communicate with...
2
by: bunnyman | last post by:
I have a for each loop in javascript, of which I need to output to an ASP array. unfortunantly not too familiar with javascript.. the loop is for items ordered in a shopping cart. they are...
4
by: D Newsham | last post by:
Hi, This javascript creates a table that has a header and side column that do not move while scrolling through the table. I need to convert this to vb script. Can anybody help, or do you have...
5
by: meltedown | last post by:
I'm trying to keep track of how many items of each price are sold so if 4 items of the same price are ordered one is free. for example, 5 items at $17 , and 8 items at $4 In php, I would...
22
by: VK | last post by:
A while ago I proposed to update info in the group FAQ section, but I dropped the discussion using the approach "No matter what color the cat is as long as it still hounts the mice". Over the last...
104
by: Leszek | last post by:
Hi. Is it possible in javascript to operate on an array without knowing how mamy elements it has? What i want to do is sending an array to a script, and this script should add all values from...
41
by: Rene Nyffenegger | last post by:
Hello everyone. I am not fluent in JavaScript, so I might overlook the obvious. But in all other programming languages that I know and that have associative arrays, or hashes, the elements in...
2
by: sorobor | last post by:
dear sir .. i am using cakephp freamwork ..By the way i m begener in php and javascript .. My probs r bellow I made a javascript calender ..there is a close button ..when i press close button...
4
by: IRC | last post by:
hey, i am pretty new on javascript as well as PHP, Hey, anyone can you help me, how to pass the javascript array value to php page......... i want to retrieve the values which are arrayed on...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: 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
BarryA
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...
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
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...

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.