Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Re: Javascript Digest, Vol 28, Issue 18


  • From: pnjaisan at yahoo.com (Jai Sankar N)
  • Subject: [Javascript] Re: Javascript Digest, Vol 28, Issue 18
  • Date: Tue Jun 28 04:14:35 2005

Thanking for your help...I had implemented and also your  ideas had very useful..
 
best & regards,
 
N.Jai Sankar
India.

javascript-request@xxxxxxxxxx wrote:
Send Javascript mailing list submissions to
javascript@xxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.LaTech.edu/mailman/listinfo/javascript
or, via email, send a message with subject or body 'help' to
javascript-request@xxxxxxxxxx

You can reach the person managing the list at
javascript-owner@xxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Javascript digest..."


Today's Topics:

1. How to add a record to a Json data object? (Roland Dong)
2. How implement drop-down list box values in asp with
javascript-reg (Jai Sankar N)
3. Re: How implement drop-down list box values in asp with
javascript-reg (Shawn Milo)


----------------------------------------------------------------------

Message: 1
Date: Sun, 26 Jun 2005 19:49:24 -0400
From: "Roland Dong" 
Subject: [Javascript] How to add a record to a Json data object?
To: "'[JavaScript List]'" 
Message-ID: <200506262349.TAA29283@xxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"

I have been trying to add a record the the following json data object using
javascript.

var jsonObj = {

"name":"horizontal navigation",
"menu": [
{"Label_1": "a", "url":"http://abc";, "test":false },
{"Label_1": "b", "url":"http://cde";, "test":false},
{"label_2": "e", "url":"http://fgh";, "test":true},
{"label_2": "f", "url":"http://ijk";, "test":false},
{"label_3": "g", "url":"http://lmn";, "test":false},
{"label_4": "h", "url":"http:/opq", "test":false}
]
};


I want to add a record: {"label_4":"I", "url":"http://rst";, "test":true} to
menu. How can I do it? 

Thanks you.




------------------------------

Message: 2
Date: Sun, 26 Jun 2005 22:04:03 -0700 (PDT)
From: Jai Sankar N 

Subject: [Javascript] How implement drop-down list box values in asp
with javascript-reg
To: dlovering@xxxxxxxxx, javascript@xxxxxxxxxx
Message-ID: <20050627050403.63325.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"

Hello sir,

I'm a member of javascript mailing list. sir i'm developing website for university in tamil nadu, india.

Sir, i want to fill three dropdown box (combo box) with dependent one another...
i.e First Combo box have college list, Second Combo box for department for the specifid collge and Third Combo box fill with research, events,news etc for the specified department.

The above is a my problem..

How to implement using asp and javascrit / vbscript.

Pls. help me..

Jai Sankar N
Salem,Tamil Nadu
India.


---------------------------------
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.LaTech.edu/pipermail/javascript/attachments/20050626/504bc0fd/attachment-0001.html

------------------------------

Message: 3
Date: Mon, 27 Jun 2005 06:39:41 -0400
From: Shawn Milo 
Subject: Re: [Javascript] How implement drop-down list box values in
asp with javascript-reg
To: "[JavaScript List]" 
Message-ID: <2dc0c81b0506270339343335ac@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1

The way I do this is to create Javascript arrays with ASP during the
page load. Then, in the 'onclick' event of the first two drop-down
boxes, I have code to fill or clear the boxes.

I will e-mail a more complete example once I get to work, where most
of my code is, but here's something to get you started. I did this off
of the top of my head, so it may not my 100% accurate as far as
syntax.

Shawn

Example:


   //note -- this Javascript is written by the ASP

   var aColleges = new Array();
   var aDepts = new Array();
   var aEvents = new Array();

   aColleges[aColleges.length] = new Array('1', 'School One');
   aColleges[aColleges.length] = new Array('2', 'University X');
   aColleges[aColleges.length] = new Array('3', 'State College');
   aColleges[aColleges.length] = new Array('4', 'Bigtown College');

   //Note that here, the '1' refers to 'School One, and the
   // 14 refers to the department code
   aDepts[aDepts.length] = new Array('1', '14','Science');
   aDepts[aDepts.length] = new Array('1', '15','Art');
   aDepts[aDepts.length] = new Array('1', '16','History');
   aDepts[aDepts.length] = new Array('2', '17','Computer Science');
   aDepts[aDepts.length] = new Array('2', '19','Biology');
   aDepts[aDepts.length] = new Array('2', '25','Philosophy');
   aDepts[aDepts.length] = new Array('2', '33','Engineering');

   aEvents[aEvents.length] = new Array('17', 'Linux Install-Fest');
   aEvents[aEvents.length] = new Array('15', 'Student Art Exhibit');
   aEvents[aEvents.length] = new Array('25', 'Taoism Lecture);





Shawn




On 6/27/05, Jai Sankar N 
wrote:
> Hello sir, 
> 
> I'm a member of javascript mailing list. sir i'm developing website for
> university in tamil nadu, india. 
> 
> Sir, i want to fill three dropdown box (combo box) with dependent one
> another... 
> i.e First Combo box have college list, Second Combo box for department for
> the specifid collge and Third Combo box fill with research, events,news etc
> for the specified department. 
> 
> The above is a my problem.. 
> 
> How to implement using asp and javascrit / vbscript. 
> 
> Pls. help me.. 
> 
> Jai Sankar N 
> Salem,Tamil Nadu 
> India.
> 
> ________________________________
> Yahoo! Sports
> Rekindle the Rivalries. Sign up for Fantasy Football 
> 
> 
> _______________________________________________
> Javascript mailing list
> Javascript@xxxxxxxxxx
> https://lists.LaTech.edu/mailman/listinfo/javascript
> 
> 
> 


-- 
Shawn Milochik

The Freelance Pen
FreelancePen.com
610-621-2648


------------------------------

_______________________________________________
Javascript mailing list
Javascript@xxxxxxxxxx
https://lists.LaTech.edu/mailman/listinfo/javascript


End of Javascript Digest, Vol 28, Issue 18
******************************************

		
---------------------------------
Yahoo! Sports
 Rekindle the Rivalries. Sign up for Fantasy Football
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.LaTech.edu/pipermail/javascript/attachments/20050628/6adaae89/attachment.html