Quantcast
Channel: Serif Software Forums (Closed) - WebPlus
Viewing all articles
Browse latest Browse all 4745

WebPlus X6: Pass Javascipt results to form

$
0
0
I'm trying to copy the output from a javascript routine into a form. The js looks like this:

HTML Code:

document.getElementById('results').innerHTML = '<strong>Address 1: </strong>' + location1.address + '<br /><strong>Address 2: </strong>' + location2.address + '<br /><strong>Distance: </strong>' + miledistance + ' miles (or ' + kmdistance + ' kilometers)' + '<br/><strong>Price &pound:</strong>' + price;
            intermeadiate = document.getElementById(location1.address);

Is there a method that can be used to add this to a read only part of a form, so that journey details don't have to be input twice. I'm using innerHTML as the values are changed after the time of input. EG: a postcode is being expanded into a full street address.

Regards,

BobSM:HELP

Viewing all articles
Browse latest Browse all 4745

Trending Articles