Click here to Skip to main content
15,891,633 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello

I just knew about some good UI frameworks like jquery UI, Bootstrap, Flat UI, etc. My question is can these be applied to basic server controls like buttons, menus, text boxes, dropdown list, etc. ? I tried once before with the jquery UI and it seems it does not work on the server.
Posted

1 solution

Simple answer is, client-side code cannot interact with Server-side code. However, once the server-side controls such as Buttons have been downloaded and converted to HTML, you can then interact with them using their HTML attributes.

You can learn how can JavaScript stylize the HTML content here, https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.style[^]

But remember, you cannot manipulate the server-side code or controls. Only the HTML rendered output of their can be manipulated inside the browser using JavaScript (and/or its libraries such as jQuery).
 
Share this answer
 
v2
Comments
Abdallah Al-Dalleh 9-Oct-14 3:32am    
So are you saying that pure server-side controls (Such as ASP.NET) cannot be customized with such frameworks ?
Afzaal Ahmad Zeeshan 9-Oct-14 6:02am    
Exactly, you cannot interact with server-side code using client-side script. However, once downloaded and rendered as HTML, you can always use client-side script to manipulate it. :) That was my point :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900