Opening url link in new window
Opening url link in new window
I may be missing something but I simply cannot get a URL link to open a new window?
I am using syntax
aI("image=example.gif;text=Example;url=https://www.example.co.uk;target=new");
Can anyone advise what I am doing wrong.
Andy
I am using syntax
aI("image=example.gif;text=Example;url=https://www.example.co.uk;target=new");
Can anyone advise what I am doing wrong.
Andy
I apologize in advance if this is something you know and just didn't want to do, but I didnt know the background 
You could always just do the open in a new window yourself if you don't want to wait for a fix.
Just add a javascript method to your html
again, if my post is pointless for you.. please disregard... just didnt have anything better to do on a tuesday night 
along with

You could always just do the open in a new window yourself if you don't want to wait for a fix.
Just add a javascript method to your html
Code: Select all
<script>
function openWindow(url){
window.open(url);
}
</script>

along with
Code: Select all
aI("image=example.gif;text=Example;url=javascript:openWindow('https://www.example.co.uk');");
Great. Can you explain how it goes?
Like we have
Can you tell me how to put the _blank in? I've tried it and it didn't work.
Like we have
Code: Select all
aI("text=Domains and hosting;url=http://www.ozhub.com;");
Here is an example:
aI("text=Birth Certificate Search;url=http://www.vitalchek.com/;target=_blank;status=Order a Birth Certificate;separatorsize=1;");
Make sure that you do not put a space after the "target=", just all one word. "target=_blank"
Hope this helps...
aI("text=Birth Certificate Search;url=http://www.vitalchek.com/;target=_blank;status=Order a Birth Certificate;separatorsize=1;");
Make sure that you do not put a space after the "target=", just all one word. "target=_blank"
Hope this helps...
Hi,
The newest version [pre-release at this point, 5.737] has fixed the open a new window problem I believe.
As to using a function to open a new window:
If you put the function into the menu_data.js file and call it from particular links, it will only open that page in a new window. I'm using the one above because it's one I've used before. You would put that at the top of you menu_data.js file, note there are no script tags. Then in the aI strng you'd code it as
Note that I"ve put the window features into the function so you wouldn't use targetfeatures= in the aI, also note that not all browsers will accept all the features, for example, some will not read top= and left= and allow you to position the window.
For information on target features check this site
http://www.devguru.com/Technologies/ecm ... _open.html
Ruth
The newest version [pre-release at this point, 5.737] has fixed the open a new window problem I believe.
As to using a function to open a new window:
Code: Select all
var newwindow;
function poptastic(url)
{
newwindow=window.open(url,'name','height=500,width=400,left=100,
top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
}
Code: Select all
aI("text=item;url=javascript:poptastic('http://whatever/');");
For information on target features check this site
http://www.devguru.com/Technologies/ecm ... _open.html
Ruth
No, if you put it in the menu_data.js file the only links that would open in a new window are the ones that have the call for the function in the aI string
However, I don't think you need a function, the newest version of the menu has fixed the open new window problem as far as I know so you can just use the internal new window
Ruth
Code: Select all
aI("text=item;url=javascript:poptastic('http://whatever/');");
Code: Select all
aI("text=item;url=whatever.htm;target=_new;targetfeatures=whatever features you want, or you can leave out target features;");
When opening new windows, it's extra helpful to give them focus, just in case the "newwindow" reference is minimized or in the background.Ruth wrote:Code: Select all
var newwindow; function poptastic(url) { newwindow=window.open(url,'name','height=500,width=400,left=100, top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes'); }
Code: Select all
aI("text=item;url=javascript:poptastic('http://whatever/');");
Code: Select all
var newwindow;
function poptastic(url)
{
newwindow=window.open(url,'name','height=500,width=400,left=100,
top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
newwindow.focus();
}
Target Windows - Now I get them where they weren't before!
On using Ver 5_734 and 5_738 I am geting a new browser window open up - when previously the pages just opened in the same window. Is this a bug?