[Pro] WY read more link

hi freewaytalkers,

what do i have to do that the link of the web yep “read more” action opens it’s window in a specific dimension and with/without toolbar, scrollbar etc. like with “spawn new window”?
is that possible anyway
?
thx in advance
ray

www.pure-vegi.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You can inject this behavior using JavaScript, since the more links have the classname “WebYepReadMoreLink” added to them, which makes them very find-able. As long as you are using a Prototype-compatble version of WebYep, you could do this in Protaculous 2:

Apply Protaculous 2 to the page, then click on the DOM Loaded Observer button and enter the following script (modify to suit your desired dimensions):

document.on('click', 'a.WebYepReadMoreLink', function(evt, elm){
	evt.stop();
	var popup = window.open(
		elm.href,
		'popup',
		'width=400,height=300,location=no,toolbar=no,' +
		'scrollbars=no,resizable=no'
	);
	popup.focus();
});

What that will do is intercept any click on a read more link and redirect it into a named popup window. If the window has slid behind the stack of windows, it will be brought to the top by the focus call. If you don’t want to hide all the controls, you may delete any or all of those options from the options string. Note that I split it across two lines by “plussing” the two lines together. If you think of this as one long string and make sure that it is a comma-separated list of options, you won’t have any trouble.

If you are using jQuery in your page, then let me know, there’s another way to do this that won’t clash. Prototype makes it clearer as an example, though.

Walter

On May 6, 2013, at 3:05 AM, purity wrote:

hi freewaytalkers,

what do i have to do that the link of the web yep “read more” action opens it’s window in a specific dimension and with/without toolbar, scrollbar etc. like with “spawn new window”?
is that possible anyway
?
thx in advance
ray

www.pure-vegi.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

hi walter,

thanks a lot for your solution. built the script in it works very well.

best regards

ray


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options