Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ToggleDisplay function
Message
From
18/03/2008 12:09:36
 
General information
Forum:
ASP.NET
Category:
Client-side development
Environment versions
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01302997
Message ID:
01302998
Views:
13
This message has been marked as a message which has helped to the initial question of the thread.
>I'd like to write a ToggleDisplay JavaScript function. Currently I'm calling it as
>
>this.btnSaveProfile.Attributes["onclick"] = "ToggleDisplay('GridInfo','ProfileInfo');";
>
>There is no problem to write it as accepting 2 parameters. But how can I make it more generic to process any number of parameters and toggle the display?

Could you pass all the items separated by a comma into one string and then process each item at the function level?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform