Click here to Skip to main content
16,004,778 members
Home / Discussions / C#
   

C#

 
QuestionRe: What is the best solution for store html/javascripts Pin
Scripter4727-Feb-07 5:51
Scripter4727-Feb-07 5:51 
AnswerRe: What is the best solution for store html/javascripts Pin
Not Active27-Feb-07 6:13
mentorNot Active27-Feb-07 6:13 
QuestionRe: What is the best solution for store html/javascripts Pin
Scripter4727-Feb-07 7:14
Scripter4727-Feb-07 7:14 
AnswerRe: What is the best solution for store html/javascripts Pin
Not Active27-Feb-07 7:46
mentorNot Active27-Feb-07 7:46 
GeneralRe: What is the best solution for store html/javascripts Pin
Scripter4727-Feb-07 8:05
Scripter4727-Feb-07 8:05 
AnswerRe: What is the best solution for store html/javascripts Pin
mike montagne27-Feb-07 10:49
mike montagne27-Feb-07 10:49 
GeneralRe: What is the best solution for store html/javascripts Pin
Scripter4728-Feb-07 2:59
Scripter4728-Feb-07 2:59 
GeneralRe: What is the best solution for store html/javascripts Pin
mike montagne28-Feb-07 5:59
mike montagne28-Feb-07 5:59 
That's fine, but the reason that I stipulated "for research" is this...

If you have a page which is downloaded by a user agent, or if you have many pages which are downloaded by user agents... it would be a very inefficient thing to do to try to logically predetermine what JavaScript functions are required in the particular page, and serve those out with the page.

Why?

If you have 4 scripts, W, X, Y, and Z, and if page 1 uses W and Z, page 2 uses Y and Z... and so many further pages call any possible further combination of the other scripts, the proper way to develop your site is to write the scripts in a separate JavaScript file linked to your pages. This way your scripts only cross bandwidth once. Each additional page request merely checks if the JavaScript resouce file is still valid.

Doing this so also eliminates your logical and assembly processes.

Furthermore, with today's security concerns, it is an ever worse idea to use JavaScript or ActiveX any more... and I should warn you that if you use either, the chances are very great that anyone running proper security *can never view your material*.

Personally, I've run the gamut of JavaScript implementations over many years, and have reverted to using JavaScript for one thing only -- copying code snippets from text fields in online documentation. If you use FireFox intelligently, you'll notice that most users will have JavaScript disabled, and will make a decision whether the functionality or material of your site justifies allowing your site to act on their system. If *I* am that visitor, I will ask myself why you built the functionality with JavaScript... find you don't have a good enough reason for me to disable my security... and move on.

QuestionReading an open file. Pin
eggsovereasy27-Feb-07 4:56
eggsovereasy27-Feb-07 4:56 
AnswerRe: Reading an open file. Pin
Not Active27-Feb-07 5:18
mentorNot Active27-Feb-07 5:18 
GeneralRe: Reading an open file. Pin
eggsovereasy27-Feb-07 5:31
eggsovereasy27-Feb-07 5:31 
AnswerRe: Reading an open file. Pin
lost in transition 27-Feb-07 5:44
lost in transition 27-Feb-07 5:44 
GeneralRe: Reading an open file. Pin
eggsovereasy27-Feb-07 5:55
eggsovereasy27-Feb-07 5:55 
AnswerRe: Reading an open file. Pin
Russell Morris27-Feb-07 8:02
Russell Morris27-Feb-07 8:02 
GeneralRe: Reading an open file. Pin
eggsovereasy27-Feb-07 11:12
eggsovereasy27-Feb-07 11:12 
GeneralRe: Reading an open file. Pin
Russell Morris27-Feb-07 13:30
Russell Morris27-Feb-07 13:30 
QuestionCollapsiblePanelExtender problem Pin
jaganil27-Feb-07 4:43
jaganil27-Feb-07 4:43 
QuestionDirectX under C# Pin
Mark T.27-Feb-07 4:28
Mark T.27-Feb-07 4:28 
QuestionApplication config Pin
mail57235227-Feb-07 4:02
mail57235227-Feb-07 4:02 
AnswerRe: Application config Pin
Not Active27-Feb-07 5:16
mentorNot Active27-Feb-07 5:16 
GeneralClass Names Pin
Brady Kelly27-Feb-07 3:38
Brady Kelly27-Feb-07 3:38 
GeneralRe: Class Names Pin
Stefan Troschuetz27-Feb-07 3:49
Stefan Troschuetz27-Feb-07 3:49 
AnswerRe: Class Names Pin
Guffa27-Feb-07 4:01
Guffa27-Feb-07 4:01 
GeneralRe: Class Names Pin
Brady Kelly27-Feb-07 4:12
Brady Kelly27-Feb-07 4:12 
QuestionRS232 Com Port Control Pin
Billy Whizz27-Feb-07 3:33
Billy Whizz27-Feb-07 3:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.