Email conversation
From | Jessica Chappell |
To | Me |
Subject | 'Thanks for HowToCreate script reference' |
Date | 29 June 2004 14:47 |
I am struggling with some javascript and would like to ask it you might be
able to help me out?
At the moment the links set in MySQl database are:
javascript:window.open('http://localhost/resources/nlcjsredirect.html', '', 'height=375 width=300');void(0);
This is working well in cases where I am specific about the size of window
I want, however I would like to be able to apply the same open window
function to word documents – but I cant figure out how to get round the
size issue – in html I would use blank, and this would enable anyone to
just open the document but that doesn’t seem to work in this scenario?
Do you know a way round this problem?
Thanks
Jess
Jessica Chappell
From | Me |
To | Jessica Chappell |
Subject | Re: 'Thanks for HowToCreate script reference' |
Date | 29 June 2004 15:23 |
Jess,
using _blank is possible, just like with target="_blank"
javascript:void(window.open('blah.doc','_blank'));
also, along with 'height=375 width=300' you can also use 'resizable' to
allow them to resize the window
'height=375,width=300,resizable=1'
either of these would solve the problem, as far as I can tell. Please let
me know if it does not.
Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/
From | Jessica Chappell |
To | Me |
Subject | Re: 'Thanks for HowToCreate script reference' |
Date | 29 June 2004 15:29 |
Hi Mark
Thanks I will try it out now and let you know how I get on
Your quick response is much appreciated
Jess
From | Jessica Chappell |
To | Me |
Subject | Re: 'Thanks for HowToCreate script reference' |
Date | 29 June 2004 15:34 |
Hi Mark
Perfect! It works just as I need it to
You are an absolute life saver :-)
Thanks so much
Jess
From | Me |
To | Jessica Chappell |
Subject | Re: 'Thanks for HowToCreate script reference' |
Date | 29 June 2004 16:09 |
Jess,
no problem at all. happy to help
Tarquin