Click here to Skip to main content
15,890,512 members
Home / Discussions / JavaScript
   

JavaScript

 
SuggestionRe: How to validate postdate? Pin
Kornfeld Eliyahu Peter13-Aug-14 23:17
professionalKornfeld Eliyahu Peter13-Aug-14 23:17 
AnswerRe: How to validate postdate? Pin
Tushar Guru8-Sep-14 21:57
Tushar Guru8-Sep-14 21:57 
AnswerRe: How to validate postdate? Pin
Sibeesh KV24-Sep-14 0:56
professionalSibeesh KV24-Sep-14 0:56 
QuestionCollapsible gridview using javascript Pin
Member 1097302613-Aug-14 9:35
Member 1097302613-Aug-14 9:35 
AnswerRe: Collapsible gridview using javascript Pin
Anurag Gandhi22-Aug-14 8:56
professionalAnurag Gandhi22-Aug-14 8:56 
QuestionForum software.. Pin
Fever42012-Aug-14 5:50
Fever42012-Aug-14 5:50 
SuggestionRe: Forum software.. Pin
Richard Deeming12-Aug-14 8:55
mveRichard Deeming12-Aug-14 8:55 
QuestionRequireJS in ASP.Net Webforms Pin
Member 102920078-Aug-14 5:00
Member 102920078-Aug-14 5:00 
Hi
I am working on an existing project inherited from one of these fly by night digital media companies. They probably had some amazing deadline as usual that results in bad website construction.

The developer at the time thought it great to use RequireJS and load every script file used by the solution into the main aspx page. So when you open/launch the website you are presented with a login screen. If you investigate the login page there is a list of script files loaded even if you never get to the subsequent page that use one of these script files. The second problem is that RequireJS also (sometimes) times out and some scripts are not loaded properly.

The problem I have is the following:
I need to strip out the scripts that is not needed at login stage and only include these scripts when needed. This means: still using RequireJS load the common script files in the main aspx and then when navigating to content pages include/append the additional script files without losing the common ones.

How do I accomplish this? Is there a way to sub load scripts?

What I have tried:
- Use require("script1", "script2", "script3"); in main
- Then use require("script4a", "script4b"); to add additional scripts. But this approach removes the common scripts ("script1", "script2", "script3") and only loads ("script4a", "script4b"), and I have 2 references to require.js as well.
Questionany body convert this code( vb script) to java script Pin
boopathiraj4-Aug-14 22:22
boopathiraj4-Aug-14 22:22 
QuestionCondition Always true when checking for "undefined" in Javascript Pin
Vimalsoft(Pty) Ltd3-Aug-14 9:28
professionalVimalsoft(Pty) Ltd3-Aug-14 9:28 
AnswerRe: Condition Always true when checking for "undefined" in Javascript Pin
Blikkies3-Aug-14 22:48
professionalBlikkies3-Aug-14 22:48 
AnswerRe: Condition Always true when checking for "undefined" in Javascript Pin
Kornfeld Eliyahu Peter4-Aug-14 0:19
professionalKornfeld Eliyahu Peter4-Aug-14 0:19 
AnswerRe: Condition Always true when checking for "undefined" in Javascript Pin
Kornfeld Eliyahu Peter3-Aug-14 22:55
professionalKornfeld Eliyahu Peter3-Aug-14 22:55 
AnswerRe: Condition Always true when checking for "undefined" in Javascript Pin
Graham Breach3-Aug-14 22:56
Graham Breach3-Aug-14 22:56 
AnswerRe: Condition Always true when checking for "undefined" in Javascript Pin
Kornfeld Eliyahu Peter4-Aug-14 0:15
professionalKornfeld Eliyahu Peter4-Aug-14 0:15 
GeneralRe: Condition Always true when checking for "undefined" in Javascript Pin
Vimalsoft(Pty) Ltd4-Aug-14 5:39
professionalVimalsoft(Pty) Ltd4-Aug-14 5:39 
GeneralRe: Condition Always true when checking for "undefined" in Javascript Pin
Graham Breach4-Aug-14 9:18
Graham Breach4-Aug-14 9:18 
AnswerRe: Condition Always true when checking for "undefined" in Javascript Pin
Kornfeld Eliyahu Peter4-Aug-14 18:38
professionalKornfeld Eliyahu Peter4-Aug-14 18:38 
GeneralRe: Condition Always true when checking for "undefined" in Javascript Pin
Graham Breach4-Aug-14 22:13
Graham Breach4-Aug-14 22:13 
AnswerRe: Condition Always true when checking for "undefined" in Javascript Pin
Tushar Guru8-Sep-14 21:59
Tushar Guru8-Sep-14 21:59 
QuestionNewbie Question On jQuery Selectors Pin
Richard Andrew x641-Aug-14 17:03
professionalRichard Andrew x641-Aug-14 17:03 
AnswerRe: Newbie Question On jQuery Selectors Pin
thatraja1-Aug-14 18:09
professionalthatraja1-Aug-14 18:09 
GeneralRe: Newbie Question On jQuery Selectors Pin
Richard Andrew x641-Aug-14 18:28
professionalRichard Andrew x641-Aug-14 18:28 
QuestionGenerate geofence for route (pointA to pointB) Pin
JANANDOJAN28-Jul-14 21:19
JANANDOJAN28-Jul-14 21:19 
AnswerRe: Generate geofence for route (pointA to pointB) Pin
JANANDOJAN29-Jul-14 23:02
JANANDOJAN29-Jul-14 23:02 

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.