Last post Mar 15, 2013 04:35 AM by ruipedromachado
Mar 04, 2013 07:24 AM|ruipedromachado|LINK
I have created a simple report and added a field with
the intention is to force google to open on a new tab or browser window.
after i export the report to PDF , the behavior of the links is inconsistent , well actually is unpredictable , some times it opens on a new tab/window, some times it opens on the same , some times it just pops the download window prompting to save/cancel
as if it was a file.
Please note if i just add to the field http://www.google.com it works well ( except that it does not open on new window/tab witch is what i want )
thanks in advanced
Mar 04, 2013 07:50 AM|Rion Williams|LINK
Have you tried included the "target" parameter within your
window.open() function, which should help add some consistancy with how your window is opened :
The '_blank' target will open your URL within a new window (or new tab based on your browsers preferences).
Mar 04, 2013 08:31 AM|ruipedromachado|LINK
it´s the same behavior.
i should propably add this, when it tries to download, the name of the file is "www_google_com'))" just like that without the double quotes
Mar 04, 2013 08:46 AM|Rion Williams|LINK
If you want to guarantee that it opens in a new window (as opposed to a tab) you can usually explicitly define the height and width of your new window :
<!-- Opens in New Tab -->
<input type='button' value='New Tab' onclick='window.open("http://www.google.com","_blank");' />
<!-- Opens in New Window -->
<input type='button' value='New Window' onclick='window.open("http://www.google.com","_blank","height=600,width=400");' />
So try giving this a shot :
<!-- Use single or double quotes as appropriate (depending on your surrounding context to avoid conflict) -->
Mar 07, 2013 08:25 AM|ruipedromachado|LINK
the same :(
Mar 07, 2013 08:28 AM|Rion Williams|LINK
Could you post some additional code related to this issue? Are these links occuring within the actual PDF itself (or Report) or on your web page?
Mar 15, 2013 04:35 AM|ruipedromachado|LINK
Hi , sorry for the late response
there is no actual code, i create a report, do a query and populate some field on the report with a link (http://www.google.com).
it starts to behave ver strange.
Probably is should add, that the report is very complex, not sure if influences it, but it as 5 parameters, 10 querys, lots of subreports.....
works fine ....when i intruduce that to my complex report and try it .....both the reports start to have a strange behavior.
same times it opens, some times it doesnt , some times it asks for download the page, most times crashes IE.