Timeline for How to use JavaScript and CSS in a web part?
Current License: CC BY-SA 2.5
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 12, 2010 at 12:01 | comment | added | George2 | "add it to ScriptManager in web part and you are done" -- confused. If I add js file into layout folder, then in ScriptManager, in order to add the js file to use, how to specify the js file's location? | |
Jan 12, 2010 at 8:32 | comment | added | Anders Rask | see thats what you dont need to worry about if you use the scriptmanager :-p Just add "it" (yes js file) to _LAYOUTS folder (in a subdir) or in Style Library (in a subdir) in root site collection, add it to ScriptManager in web part and you are done... | |
Jan 11, 2010 at 15:12 | comment | added | George2 | "add it to the layouts directory" -- "it" you mean javascript and css files? If yes, when I reference css/javascript files in layout directory, how do I refer them in WebPart? By using what relative path in my WebPart code? | |
Jan 10, 2010 at 17:03 | history | answered | Mike Oryszak | CC BY-SA 2.5 |