File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes pass href paramter from javascript for media print in html Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "pass href paramter from javascript for media print in html" Watch "pass href paramter from javascript for media print in html" New topic
Author

pass href paramter from javascript for media print in html

ruquia tabassum
Ranch Hand

Joined: Jun 23, 2007
Posts: 288

Hi, i have an media print link in html file i want to pass the href paramter from javascript .. how do i do it? can anybody suggest..



the above code is not passing the accountid value...
vijin das
Ranch Hand

Joined: Jun 07, 2010
Posts: 129

What Is your exact requirement ??? Why you are using <LINK> tag ???

Tell what you want to do with the above code ???

VIJINDAS
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 14857
That is not the way to go there, that actually is not JavaScript since it is not in a script tag.

Why are you not outputting that directly with the serverside code to start out with. Using JavaScript here is probably the wrong solution unless the value changes as the user interacts with the page.

Eric
ruquia tabassum
Ranch Hand

Joined: Jun 23, 2007
Posts: 288

the accountid what i am passing in the href keeps changing.. also how do i print it from the server itself?GenerateBill is a servlet class...

This message was edited 1 time. Last update was at by ruquia tabassum

 
 
subject: pass href paramter from javascript for media print in html
 
developer file tools