jquery - Submitting variables from an external Javascript file using JSP -



jquery - Submitting variables from an external Javascript file using JSP -

i have written timer function , want output results on separate page. function works having jsp file phone call functions separate js file , i've been trying output results screen shown below:

instruction in jsp file:

<button type="button" onclick="display()">try it</button>

instruction in js file:

function display(){ document.writeln(timer); }

whilst works when set function in jsp file, jsp apparently cannot execute document.write(ln) functions when it's in separate file. suspect may due document.write()'s general unreliability function in general. have suggestions regarding how can output external js files onto screen using jsp?

never mind. turns out needed refresh simulation in order read code properly.

javascript jquery jsp

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -