When submitting a popup window link, using WYSIWYG, it does not store it. After hitting submit it take me back to my home page. Is the html for a popup window not allowed? Or did i screw something up again?
Joined: Aug 29, 2004 Posts: 9133 Location: Arizona
Posted:
Fri Dec 22, 2006 6:58 am
Quote:
After hitting submit it take me back to my home page
I think this is the root of the issue. By change does your text have the work "Union" in it somewhere? That is a well known issue. Take that word out or substitute a "0" for the "o".
Doesnt have any words "Union". Strange thing is, when creating it in WYSIWYG, I can click on the link and it works. It just doesnt save. I can create other links. Not sure if its an sql error. It does write other links and text, just not the popup window.
Joined: Aug 29, 2004 Posts: 9133 Location: Arizona
Posted:
Fri Dec 22, 2006 7:27 am
Bummer... I was hoping it was an easy answer. Might very well be a bug in the version of FCK Editor. Have you tried to use the "View/Edit Source" button and manually add the target parameter?
It is possible that, as Guardian mentioned, that the "target" parameter is not in the Allowable HTML array. Check your config.php script for this array definition.
Yep I have all the same. I think I found the problem. When trying to manually add it into my database, I get a syntax error. Maybe its my mysql version or my code is wrong.
What makes you think it's not Nuke Sentinel - just curious.
I get a syntax error when trying to add it to mysql. I didnt think that sentinel would change the code incorrectly. Also I tried with sentinel disabled. Not sure if that would really do anything, but it didnt work.
kguske wrote:
You can use the target tag without using js.
Ill have to look for some.
edit: welli cant figure out one that will allow me to resize the window.
Sorry - I must've missed that resize requirement before. The target tag allows a new window to open, but it won't resize, as you know.
You could add a JS function to your includes/javascript.php or includes/my_header.php, add onclick to your a tag options in $allowable_html in config.php, then add the onclick option calling the javascript popup function to your link.
I dont know I cant figure it out. I dont know how to set onclick in $allowable_html for this code or if it will even work.
Code:
function popUp(strURL,strType,strHeight,strWidth) {
var strOptions="";
if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth;
if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth;
window.open(strURL, 'newWin', strOptions);
}
Code:
<a href="my-pop-up-window.htm" onclick="popUp(this.href,'console',400,200);return false;" target="newWin">This is my link</a>
Id like to use this code so I can set Height and Width, user side.
Last edited by jjh221 on Sun Dec 24, 2006 6:40 am; edited 2 times in total
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum