Click here to Skip to main content
15,177,781 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: I am creating a program with Visual Basic Script files with C++. Pin
Bohdan Stupak29-Jun-20 5:18
professionalBohdan Stupak29-Jun-20 5:18 
AnswerRe: I am creating a program with Visual Basic Script files with C++. Pin
ZurdoDev29-Jun-20 5:35
professionalZurdoDev29-Jun-20 5:35 
Questionhow to get audio play auto work in mobile browsers andriod & ios Pin
Member 1486961821-Jun-20 21:38
MemberMember 1486961821-Jun-20 21:38 
QuestionNeed javascript code support for below request Pin
mikt201618-Jun-20 1:57
Membermikt201618-Jun-20 1:57 
AnswerRe: Need javascript code support for below request Pin
ZurdoDev18-Jun-20 3:00
professionalZurdoDev18-Jun-20 3:00 
AnswerRe: Need javascript code support for below request Pin
Richard MacCutchan18-Jun-20 5:43
mveRichard MacCutchan18-Jun-20 5:43 
QuestionAccordion not working properly with dynamic content Pin
mhutch2617-Jun-20 5:09
Membermhutch2617-Jun-20 5:09 
QuestionData from one page to another with a twist. Pin
and180y14-Jun-20 11:33
Memberand180y14-Jun-20 11:33 
I have a page where values (monetary) are entered into boxes and the aim is to have them appear in a drop down list on the next page. I have searched and found this Transferring page values to another page[^] But wondered if there was a more upto date way of doing it?
I have the code below and whilst I can send the data to the URL the script doesn't put it in the drop down. I've read about doing it with cookies, is that a more reliable method?

<script>
//get the value of each field 
from the url as a query string
var query = location.search; 
var splitQuery = []; var value 
= [];

function parseQuery(query){

/*check if there are 
mutiple value (querystring in 
url are seperated with &), and 
store them to an associative 
array*/

if(query.search(/[&]/)){
splitQuery = query.split('&');

/*split again and target drop 
down*/ 

for (var x = 0; x < 
splitQuery.length; x++){
var splitEach = 
splitQuery[x].split('=');

document.getElementsByClassName
('dropdown')[x].textContent = 
splitEach[1];       
}   
} 
} 
parseQuery(query); 
</script>

AnswerRe: Data from one page to another with a twist. Pin
Richard Deeming15-Jun-20 1:41
mveRichard Deeming15-Jun-20 1:41 
GeneralRe: Data from one page to another with a twist. Pin
and180y15-Jun-20 2:00
Memberand180y15-Jun-20 2:00 
GeneralRe: Data from one page to another with a twist. Pin
Richard Deeming15-Jun-20 2:15
mveRichard Deeming15-Jun-20 2:15 
GeneralRe: Data from one page to another with a twist. Pin
and180y15-Jun-20 2:24
Memberand180y15-Jun-20 2:24 
GeneralRe: Data from one page to another with a twist. Pin
Richard Deeming15-Jun-20 2:27
mveRichard Deeming15-Jun-20 2:27 
GeneralRe: Data from one page to another with a twist. Pin
and180y15-Jun-20 2:46
Memberand180y15-Jun-20 2:46 
GeneralRe: Data from one page to another with a twist. Pin
Richard Deeming15-Jun-20 5:59
mveRichard Deeming15-Jun-20 5:59 
GeneralRe: Data from one page to another with a twist. Pin
and180y15-Jun-20 9:56
Memberand180y15-Jun-20 9:56 
GeneralRe: Data from one page to another with a twist. Pin
Richard Deeming15-Jun-20 9:58
mveRichard Deeming15-Jun-20 9:58 
GeneralRe: Data from one page to another with a twist. Pin
and180y15-Jun-20 10:07
Memberand180y15-Jun-20 10:07 
GeneralRe: Data from one page to another with a twist. Pin
Richard Deeming15-Jun-20 10:16
mveRichard Deeming15-Jun-20 10:16 
QuestionJavascript function error. Pin
and180y9-Jun-20 14:55
Memberand180y9-Jun-20 14:55 
AnswerRe: Javascript function error. Pin
Richard MacCutchan9-Jun-20 22:03
mveRichard MacCutchan9-Jun-20 22:03 
GeneralRe: Javascript function error. Pin
and180y10-Jun-20 0:27
Memberand180y10-Jun-20 0:27 
GeneralRe: Javascript function error. Pin
Richard MacCutchan10-Jun-20 0:36
mveRichard MacCutchan10-Jun-20 0:36 
GeneralRe: Javascript function error. Pin
and180y10-Jun-20 1:21
Memberand180y10-Jun-20 1:21 
GeneralRe: Javascript function error. Pin
Estys10-Jun-20 1:31
MemberEstys10-Jun-20 1: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.