COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: aydakut on 30 Apr 2014 05:56:10 AM

Title: screen.width and screen.height as parameters
Post by: aydakut on 30 Apr 2014 05:56:10 AM
Hi,
I want to obtain the screen resolution of the clients and pass it as a parameter and use it in a style variable.
How can I use screen.width and screen.height properties in javascript to create value prompt that uses these properties as value that is to say as parameter ?
Any help will be appreciated.
Title: Re: screen.width and screen.height as parameters
Post by: qvixote on 30 Apr 2014 11:15:19 AM
I think you could -in theory- use JavaScript in a prompt page to populate the textboxes of the prompts and bind the click event of the submit button. With jQuery it could be easier.