1 gsonline Sep 17, 2009 11:57
3 gsonline Sep 17, 2009 14:31
Thanks, I did that but I still get the error page along with the pop up window.
The code now reads:
Click <a href="javascript:pop_up_window( 'http://XXXXX/XXXX/?p=subscribe', '', '400', '600', 'scrollbars=no, status=no, resizable=no, menubar=no')">here</a> to recieve regular updates.
4 yabba Sep 17, 2009 14:49
Click <a href='http://gurcharansingh.co.uk/gsolist/?p=subscribe' onclick="return javascript:pop_up_window( this.href, '', '400', '600', 'scrollbars=no, status=no, resizable=no, menubar=no')">here</a> to recieve regular updates.
¥
5 gsonline Sep 17, 2009 14:58
Thanks but that just gives me the subscribe page in the main window without any popup...
6 gsonline Sep 17, 2009 15:38
I basically have 2 requirements here:
When the link is clicked:
1) The source page remains completely unchanged (this includes not needing to be refreshed)
2) The pop up window appears (with predefined settings e.g. width, height, etc.)
I hope this helps to clarify.
7 yabba Sep 17, 2009 16:35
Sorry, remove the "javascript:" from onclick=" return javascript;"
¥
8 gsonline Sep 17, 2009 17:20
That's done it!!!
Thank you so much - reps coming your way!
R
9 yabba Sep 17, 2009 19:05
No worries ;)
¥
function pop_up_window( href, target, width, height, params )
add '' before , '400'
¥