Click here to Skip to main content
15,887,875 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionGoogle map Context Menu Pin
maher khalil7-Nov-16 4:47
maher khalil7-Nov-16 4:47 
QuestionShow list of data in table with set time out Pin
mrkeivan5-Nov-16 0:48
mrkeivan5-Nov-16 0:48 
AnswerRe: Show list of data in table with set time out Pin
Peter_in_27805-Nov-16 12:45
professionalPeter_in_27805-Nov-16 12:45 
QuestionHow to pass data from one html page to multiple html pages using javascript Pin
Sai Krishna27-Oct-16 2:08
Sai Krishna27-Oct-16 2:08 
AnswerRe: How to pass data from one html page to multiple html pages using javascript Pin
Richard Deeming27-Oct-16 2:17
mveRichard Deeming27-Oct-16 2:17 
GeneralRe: How to pass data from one html page to multiple html pages using javascript Pin
Sai Krishna27-Oct-16 18:38
Sai Krishna27-Oct-16 18:38 
GeneralRe: How to pass data from one html page to multiple html pages using javascript Pin
Richard Deeming28-Oct-16 2:18
mveRichard Deeming28-Oct-16 2:18 
GeneralRe: How to pass data from one html page to multiple html pages using javascript Pin
Sai Krishna30-Oct-16 18:28
Sai Krishna30-Oct-16 18:28 
I had tried like this, passing the values from one page to another page
Below is my first page pass1.html
<html>
<head>
<script type="text/javascript">
function getParams()
{
var idx = document.URL.indexOf('?');
var params = new Array();
if (idx !=-1)
{
var pairs = document.URL.substring(idx+1, document.URL.length).split('&');
for (var i=0; i<pairs.length; i++)
="" {
="" console.log(pairs.length);
="" nameval="pairs[i].split('=');
" params[nameval[0]]="nameVal[1];
" }
="" return="" params;
="" }
params="getParams();
firstname" =="" unescape(params["firstname"]);
lastname="unescape(params["lastname"]);
age" unescape(params["age"]);
document.write("firstname=" + firstname + " <br="">");
document.write("lastname = " + lastname + "
");
document.write("age = " + age + "
");
</script>
</head>
</html>

Below is my second page pass.html
<html>
<form type=get action="pass1.html">

First Name: <input type=text name=firstname size=10>
Last Name: <input type=text name=lastname size=10>
Age: <input type=number name=age>
<input type=submit value="Submit">

</form>
</html>
GeneralRe: How to pass data from one html page to multiple html pages using javascript Pin
Richard Deeming31-Oct-16 3:27
mveRichard Deeming31-Oct-16 3:27 
AnswerRe: How to pass data from one html page to multiple html pages using javascript Pin
ZurdoDev31-Oct-16 4:40
professionalZurdoDev31-Oct-16 4:40 
QuestionHow to change the theme in javascript? Pin
Vayam Technologies Ltd. “Vayamtech” - New Delhi26-Oct-16 0:25
Vayam Technologies Ltd. “Vayamtech” - New Delhi26-Oct-16 0:25 
AnswerRe: How to change the theme in javascript? Pin
Rahul VB27-Oct-16 0:40
professionalRahul VB27-Oct-16 0:40 
GeneralRe: How to change the theme in javascript? Pin
Karthik_Mahalingam9-Nov-16 17:52
professionalKarthik_Mahalingam9-Nov-16 17:52 
GeneralRe: How to change the theme in javascript? Pin
Rahul VB9-Nov-16 23:24
professionalRahul VB9-Nov-16 23:24 
AnswerRe: How to change the theme in javascript? Pin
jkirkerx28-Oct-16 11:44
professionaljkirkerx28-Oct-16 11:44 
QuestionChange Image Background Using Javascript Pin
MadDashCoder24-Oct-16 14:48
MadDashCoder24-Oct-16 14:48 
SuggestionRe: Change Image Background Using Javascript Pin
ZurdoDev25-Oct-16 2:03
professionalZurdoDev25-Oct-16 2:03 
AnswerRe: Change Image Background Using Javascript Pin
Kornfeld Eliyahu Peter25-Oct-16 4:02
professionalKornfeld Eliyahu Peter25-Oct-16 4:02 
GeneralRe: Change Image Background Using Javascript Pin
MadDashCoder30-Oct-16 7:27
MadDashCoder30-Oct-16 7:27 
QuestionConvert a number or numbers into spoken words using JavaScript? Pin
samflex24-Oct-16 9:31
samflex24-Oct-16 9:31 
AnswerRe: Convert a number or numbers into spoken words using JavaScript? Pin
ZurdoDev24-Oct-16 10:21
professionalZurdoDev24-Oct-16 10:21 
AnswerRe: Convert a number or numbers into spoken words using JavaScript? Pin
Nathan Minier25-Oct-16 1:50
professionalNathan Minier25-Oct-16 1:50 
AnswerRe: Convert a number or numbers into spoken words using JavaScript? Pin
F-ES Sitecore26-Oct-16 4:18
professionalF-ES Sitecore26-Oct-16 4:18 
GeneralRe: Convert a number or numbers into spoken words using JavaScript? Pin
samflex26-Oct-16 9:38
samflex26-Oct-16 9:38 
Questionvariable undefined Pin
wfzen21-Oct-16 8:08
wfzen21-Oct-16 8:08 

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.