Click here to Skip to main content
15,878,945 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: Regular Expression for min of 4 characters in TypeScript Pin
simpledeveloper12-Mar-19 8:49
simpledeveloper12-Mar-19 8:49 
GeneralRe: Regular Expression for min of 4 characters in TypeScript Pin
Richard MacCutchan12-Mar-19 9:51
mveRichard MacCutchan12-Mar-19 9:51 
GeneralRe: Regular Expression for min of 4 characters in TypeScript Pin
simpledeveloper13-Mar-19 6:29
simpledeveloper13-Mar-19 6:29 
GeneralRe: Regular Expression for min of 4 characters in TypeScript Pin
Richard MacCutchan13-Mar-19 6:38
mveRichard MacCutchan13-Mar-19 6:38 
GeneralRe: Regular Expression for min of 4 characters in TypeScript Pin
simpledeveloper13-Mar-19 12:25
simpledeveloper13-Mar-19 12:25 
GeneralRe: Regular Expression for min of 4 characters in TypeScript Pin
Richard MacCutchan13-Mar-19 22:16
mveRichard MacCutchan13-Mar-19 22:16 
Questionhow can use php code in java? Pin
Member 1417801711-Mar-19 0:45
Member 1417801711-Mar-19 0:45 
AnswerRe: how can use php code in java? Pin
Nathan Minier11-Mar-19 2:51
professionalNathan Minier11-Mar-19 2:51 
PHP runs on the server. It has no idea what you do on the client unless you explicitly wire up a system that communicates without using postbacks, called AJAX. Your code, however, renders the page on the server and sends the whole thing down to the client when the page is refreshed.

JavaScript runs on the client. This means that it cannot use resources that only exist on the server to render on the client. For instance, trying to inject PHP tags via JavaScript can never, ever work.

Here's a whole thing about how it all works. I'm not a PHP guy, though, so I didn't vet it terribly much:
https://code.tutsplus.com/tutorials/how-to-use-ajax-in-php-and-jquery--cms-32494
"Never attribute to malice that which can be explained by stupidity."
- Hanlon's Razor

QuestionRedirecting to the URL after Submit Pin
simpledeveloper6-Mar-19 12:37
simpledeveloper6-Mar-19 12:37 
AnswerRe: Redirecting to the URL after Submit Pin
Nathan Minier7-Mar-19 1:39
professionalNathan Minier7-Mar-19 1:39 
GeneralRe: Redirecting to the URL after Submit Pin
simpledeveloper7-Mar-19 8:29
simpledeveloper7-Mar-19 8:29 
GeneralRe: Redirecting to the URL after Submit Pin
simpledeveloper7-Mar-19 10:52
simpledeveloper7-Mar-19 10:52 
GeneralRe: Redirecting to the URL after Submit Pin
Nathan Minier11-Mar-19 1:15
professionalNathan Minier11-Mar-19 1:15 
GeneralRe: Redirecting to the URL after Submit Pin
simpledeveloper12-Mar-19 6:32
simpledeveloper12-Mar-19 6:32 
GeneralRe: Redirecting to the URL after Submit Pin
simpledeveloper13-Mar-19 6:24
simpledeveloper13-Mar-19 6:24 
QuestionToggling two Radio buttons depending upon enum values in Angular 2.0 Pin
simpledeveloper27-Feb-19 13:38
simpledeveloper27-Feb-19 13:38 
QuestionAJAX,how to get more values from $.ajax({}) function in a Zend Controller Pin
serenimus25-Feb-19 8:49
serenimus25-Feb-19 8:49 
QuestionHow to identify if string is a phone number, Email address or a web address in Javascript? Pin
Member 1397526717-Feb-19 14:51
Member 1397526717-Feb-19 14:51 
SuggestionRe: How to identify if string is a phone number, Email address or a web address in Javascript? Pin
Richard MacCutchan17-Feb-19 22:05
mveRichard MacCutchan17-Feb-19 22:05 
AnswerRe: How to identify if string is a phone number, Email address or a web address in Javascript? Pin
Blikkies27-Feb-19 2:28
professionalBlikkies27-Feb-19 2:28 
QuestionAssignment help? Pin
Member 141452369-Feb-19 12:49
Member 141452369-Feb-19 12:49 
AnswerRe: Assignment help? Pin
Richard MacCutchan9-Feb-19 22:51
mveRichard MacCutchan9-Feb-19 22:51 
AnswerRe: Assignment help? Pin
ZurdoDev27-Feb-19 3:50
professionalZurdoDev27-Feb-19 3:50 
QuestionJavaScript Environment Pin
Member 141438347-Feb-19 21:44
Member 141438347-Feb-19 21:44 
AnswerRe: JavaScript Environment Pin
Richard MacCutchan7-Feb-19 22:31
mveRichard MacCutchan7-Feb-19 22:31 

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.