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

JavaScript

 
Questionbus ticket reservation system using javascript. Pin
Raymond Gyaang22-Aug-15 5:44
Raymond Gyaang22-Aug-15 5:44 
QuestionDetecting if a browser is in full screen mode by javascript ? Pin
Mogli_0018-Aug-15 18:56
Mogli_0018-Aug-15 18:56 
AnswerRe: Detecting if a browser is in full screen mode by javascript ? Pin
Graham Breach19-Aug-15 2:24
Graham Breach19-Aug-15 2:24 
GeneralRe: Detecting if a browser is in full screen mode by javascript ? Pin
Afzaal Ahmad Zeeshan19-Aug-15 2:32
professionalAfzaal Ahmad Zeeshan19-Aug-15 2:32 
GeneralRe: Detecting if a browser is in full screen mode by javascript ? Pin
Graham Breach19-Aug-15 4:35
Graham Breach19-Aug-15 4:35 
GeneralRe: Detecting if a browser is in full screen mode by javascript ? Pin
Afzaal Ahmad Zeeshan19-Aug-15 4:53
professionalAfzaal Ahmad Zeeshan19-Aug-15 4:53 
AnswerRe: Detecting if a browser is in full screen mode by javascript ? Pin
Afzaal Ahmad Zeeshan19-Aug-15 2:31
professionalAfzaal Ahmad Zeeshan19-Aug-15 2:31 
QuestionPrint current page Pin
cgreathouse17-Aug-15 6:39
cgreathouse17-Aug-15 6:39 
Hello

I have a page that displays search results. I'm looking for a way to have those search results printed. However, there are some items (ads, menus, etc) that should not be printed.

What I have so far is the results are sent to a new tab (using javascript) with the search results. All of the items that shouldn't be visible have been removed. However, only the text shows up. All the CSS styles and images aren't showing up.

Since the results are already being displayed, I'm trying to avoid having the server execute the search again.

Another thing to keep in mind, this is an SPA app (i.e. the URL never changes throughout the site).

My guess is since the html is getting sent to a new tab, the root URL is not set. So when it comes to a relative path for the images, css and script files, it doesn't know how to build the full path.

Does anyone know of a way to get this method to work? I know I can get this to work by having the server execute the search again, but I'm trying to see if there's a client side solution.

Thanks!
AnswerRe: Print current page Pin
Peter_in_278018-Aug-15 20:44
professionalPeter_in_278018-Aug-15 20:44 
QuestionJavascript Pin
April957-Aug-15 2:03
April957-Aug-15 2:03 
AnswerRe: Javascript Pin
Richard MacCutchan7-Aug-15 6:25
mveRichard MacCutchan7-Aug-15 6:25 
AnswerRe: Javascript Pin
Blikkies11-Aug-15 5:24
professionalBlikkies11-Aug-15 5:24 
AnswerRe: Javascript Pin
PrTk Gupta71212-Aug-15 23:34
PrTk Gupta71212-Aug-15 23:34 
GeneralRe: Javascript Pin
jsc4221-Aug-15 4:18
professionaljsc4221-Aug-15 4:18 
QuestionWhat is the difference between compile and link function in angularjs ? Pin
protekconsulting4-Aug-15 19:04
protekconsulting4-Aug-15 19:04 
AnswerRe: What is the difference between compile and link function in angularjs ? Pin
Richard MacCutchan4-Aug-15 22:23
mveRichard MacCutchan4-Aug-15 22:23 
AnswerRe: What is the difference between compile and link function in angularjs ? Pin
Mukesh Pr@sad5-Aug-15 23:42
professionalMukesh Pr@sad5-Aug-15 23:42 
QuestionJson Restriction while posting large data through ajax Pin
Member 116922503-Aug-15 0:24
Member 116922503-Aug-15 0:24 
AnswerRe: Json Restriction while posting large data through ajax Pin
Kornfeld Eliyahu Peter4-Aug-15 20:52
professionalKornfeld Eliyahu Peter4-Aug-15 20:52 
GeneralRe: Json Restriction while posting large data through ajax Pin
Member 116922504-Aug-15 21:11
Member 116922504-Aug-15 21:11 
AnswerRe: Json Restriction while posting large data through ajax Pin
Kornfeld Eliyahu Peter4-Aug-15 21:14
professionalKornfeld Eliyahu Peter4-Aug-15 21:14 
General'undefined' is a flaw in JavaScript Pin
le_top1-Aug-15 0:17
le_top1-Aug-15 0:17 
GeneralRe: 'undefined' is a flaw in JavaScript Pin
Kornfeld Eliyahu Peter3-Aug-15 3:58
professionalKornfeld Eliyahu Peter3-Aug-15 3:58 
GeneralRe: 'undefined' is a flaw in JavaScript Pin
le_top3-Aug-15 4:54
le_top3-Aug-15 4:54 
AnswerRe: 'undefined' is a flaw in JavaScript Pin
Kornfeld Eliyahu Peter3-Aug-15 7:37
professionalKornfeld Eliyahu Peter3-Aug-15 7:37 

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.