PDA

View Full Version : Opening a link in a same window.



akash_fil
19 Nov 2012, 4:37 AM
Hi,

I am trying to open a link in the same window. The problem i am facing is that I have an href containing the blank spaces & when I click on link it is broken since plank spaces are there. There is no transforming of such special cases in ExtJS I guess. If I type same URL in a browser it works well as browser takes care of transforming these special characters like blanks. My code is as below. The URL is dummy.

{
xtype : 'label',
itemId : 'kiidLink',
cls : 'performanceH4',
html : '<a href="https://www.test.com/A Accumulation Shares.pdf">Download document (PDF)</a>',
margin : '12 0 13 15',
width : 300
}

Is there any other configuration/component which I should use other than replacing spaces?

mitchellsimoens
22 Nov 2012, 5:59 AM
The space in the link should not matter at all, the browser should be able to handle it. Just tested with Chrome and all is good.