Using A Popup Window To Add A Link To Iframe?

Sep 23, 2009

I am trying to use javascript to add a popup window so a user can add a link to there website (in iframe/design mode) after they have selected the text that they want to turn into a link. I am currently using the popup code:

Code:

function createURL() {
var szURL=prompt("Enter a URL:", "http://");
if ((szURL != null) && (szURL != "")) {
Editor.execCommand("CreateLink",false,szURL);
}
}

IE7 and IE8 show a message saying something about allowing it and i think this will scare the users. I am looking for a method that will popup a window and allow them to fill in the link details and if possible allow them to pick a (link) target.

basicly like [URL] does. I have read something about the inserthtml function thats with javascript but im not sure if this is what is being used with tinymce. I am sure this is possible as they have done it using javascript.

View 1 Replies


ADVERTISEMENT

How To Reload An Iframe From A Popup Window

Jun 4, 2004

I am a total javascript newbie and have been pulling out my hair trying to figure out how I could reload an iframe inside the main browser window from a popup window.

What I am trying to do is have a system where people can upload pictures from the popup and then veiw the pictures they have uploaded as they upload them in the main window.

View 1 Replies View Related

Link That Using To Open The Popup Window?

Feb 17, 2006

Here is the link that I am using to open the popup window. It works great except when the $id variable contains a single quote. I have the single quote escaped with a . What am I doing wrong?

<A
HREF='JavaScriptpenPopWin("friend.php?id=<?php echo $id ?>", 550, 400, , 5, 5)'>Tell a Friend</a>

So if the $id variable is productname, it works fine. But if it's product'sname, it stops the link at the slash.

View 1 Replies View Related

Force A Link To Open A Popup Window?

Apr 6, 2011

I'm having issues with links on my intranet pages that navigate outside of my intranet to other intranets hosted in the same server farm. When I click the links they just do nothing. Links within my intranet site work fine. Is there any kind person here that is capable of pointing me in the direction of resources to force a popup using javascript and making it navigate to the desired link?

View 6 Replies View Related

Link Not Working Inside Popup Window?

Sep 15, 2010

I am using JavaScript for popups in my OpenLayers map. All the html tags like <br> work in the popup window except for the link href tag. Everytime I put in a link in my popup window it doesnt work:

var mystring = "here is link:<br> <a href="www.sun.com">link</a>";

popup = New OpenLayers.Popup.FramedCloud("chck", feature.coord, null, mystring, null, true, onPopupClose);

Also tried link without quotes and with ticks and nothing seems to work with the link not taking me anywhere.

View 1 Replies View Related

Image Popup In Centered Window On Clicking Link?

Aug 30, 2009

What I want to do is, when someone clicks a link the image pops up on screen in its own nice window smack down in the middle of the screen over top of the website. I want it to look neat tho, best example I can find is @ curse.com. [URL]. If you click that link and scroll down to the screen shot section and click on one of the images you can see how nice and professional it looks. How can I accomplish this?

View 1 Replies View Related

Open Link From Iframe In New Window ?

Sep 14, 2009

I am trying to open my header links in a new window when they are in an iframe.

This function opens a new window when not in an iframe.

I have done tons of searching for a solution but nothing seems to work

I am using mootools as a frame work BTW.

Code:

View 2 Replies View Related

Dynamically Open A Popup Window But Ie8 Blocks It With The Popup Blocker

Jan 22, 2010

I am trying to dynamically open a popup window but ie8 blocks it with the popup blocker. basically within a ajax fuction I have a confirm button and if the user clicks yes it opens a popup window. now I tried it with a javascript function but it got blocked, so I have tried it by creating a form with a button in it and instead of calling the popup function direct I call document.form.button.click and in the form my button has onclick"popup('<? echo url; ?>')" but this also is detected as a unwarranted popup and is blocked.

now I understand that the popup blocker works when a popup is called without user interaction, but allows popups on say button clicks. how can I get the popup to work

View 3 Replies View Related

Opening Popup Window By Avoiding Popup Blocker?

Sep 22, 2010

In my application i use window.showmodaldialog() to pop up a window. When i run it in IE pop up blocker wont blocks the window... But when run it in FireFox pop up blocker will blocks the pop up window.. is there any way to open a window with out blocking(avoiding ) by the pop up blocker?

View 1 Replies View Related

Child Window Close Event - Opening Another Link In A Separate Window Using Window.open()

Jan 29, 2010

I have a HTML and I am opening another link in a separate window using window.open() . The child window is something like 'http://yahoo.com' which is out side html. I need to refresh the parent window when the child window is closed.

View 4 Replies View Related

Form Opening In The Main Window/ Simeltaneiously Closes Popup Window

Jan 8, 2004

I have a popup window which has the search form in. What I want to do is for the popup window to close once the form is submitted, and to post the form data to a page on the main window.

Is anyone able to advise. As the main page is dynamic, it is not possible to give the page a name.

View 4 Replies View Related

JQuery :: Create A Hidden Form Field In A Parent Window From Within A Child Window - Popup

Jun 13, 2011

Im trying to create a hidden form field in a parent window from within a child window (popup). I am trying to use jQuery, but unfortunately the hidden field does not get created.

Code JavaScript:

View 2 Replies View Related

Javascript Popup Window That Stays In Front Of Parent Window?

Jul 20, 2005

I have a couple of utility windows - a calculator and a calendar that popup
from my main window. I would like them to always stay in front of the parent
window until they are shut down with there own close buttons. As it is, when
you click back to the parent window, of course it comes in front of the
child windows. Can I do this?

View 4 Replies View Related

Getting Data Back To Parent Window Field From Popup Window

Apr 7, 2007

My problem is that ..... I have to select Data from Popup Window and get that Data back to my Parent window's textarea field..

View 2 Replies View Related

Open A Popup Window From A PHP Site And Pass In Some Parameters To Use In The Pop Up Window

Sep 23, 2010

I need to open a popup window from a PHP site and pass in some parameters to use in the pop up window. I have the params in an input box and need to get the val of the box into a param and pass it to the new popup window. All pages are local and in the same folder. The id of the input box is 'ddutykey'. The name of the new window would be showduty.php if possible.

View 3 Replies View Related

Popup Window Where Main Window Is Maintained In Background?

Apr 8, 2011

I have the code below in my popup window which currently brings up a blank page in the background as the main window. Instead I want the popup to come up but the original page I left is in the background as the main window. Does anyone know how I can do that with the code I currently have.

<html>
<head>
<title>JavaScript Popup Example 3</title>

[code]....

View 21 Replies View Related

Submit A Form In Popup Window To Opener Window

Oct 11, 2006

I have a form that is in a popup window. I need the form to submit to the opener window. Is is possible to do that? The opener window is the main window so it is does not have a name and there are no framesets.

<form action="something.php" method="post" target="????">
I'd like to use window.opener in the target but that's JavaScript...

I know somebody has done this before and has the code.

View 2 Replies View Related

Inserting Value From Popup Window To Parent Window Select

Sep 21, 2004

I am trying to insert the value of a variable gathered from a popup window as an option in a <select> menu on the main window. This is the code I have so far:

Code:
var newOption = document.createElement("option");
newOption.value = '<?=$userfile_name?>'
newOption.appendChild(document.createTextNode('<?=$userfile_name?>'));
select.insert(newOption);

How do I do the rest? I just want to add this new value to the end of the list.

View 1 Replies View Related

Way Of Passing Variable From Parent Window To Popup Window

Jun 27, 2002

I need the most efficient way of passing a variable from a parent window to a popup window.The reason i say "most efficient" is because i currently do it like this from the parent:[code]But this is inefficient because at times it randomly alerts "undefinded".Anyways, can someone tell me a more fail safe way to pass a var to a popup so that i will be able to access it 100% correctly.

View 1 Replies View Related

Pass Values For A Popup Window To Parent Window

Jan 19, 2003

how I can populate the value of an input field on a parent window from a selected item (of a form - listmenu) on a pop-up window? Basically, I need to pass the value of one form to another form located on a different page...

View 1 Replies View Related

Get The Iframe Index From Inside The Iframe Window?

Sep 14, 2011

I have a page that displays in an iframe. How to get the index of the iframe in the parent window in which my page is getting displayed using javascript.

HTML Code:
<html>
<iframe src="A.html"></iframe>
<iframe src="B.html"></iframe>
<iframe src="C.html"></iframe>
</html>

if I run the javascript from B.html then I should get the iframe position as 2. same way, if I run the javascript from C.html then I should get the iframe position as 3.

View 3 Replies View Related

Keep Main Window In Background While Popup Window Comes Up?

Apr 11, 2011

I have a popup window that comes up when a user doesn't have access to a certain page within my site. The problem is when a user clicks on something the popup window comes up but the bigger sized window of that popup comes up in the background as well. I am trying to have my popup window come up while the original page I clicked from is still focused/seen in the background. This is the code I currently am using, can anyone help me with what I am missing. I have a back button but I won't need that if I want to maintain the original page in the background. Instead I will use a close button.

Code:
<html>
<head>

[code]....

View 1 Replies View Related

Send Value From Popup Window To Main Window

Oct 15, 2003

I am building a CMS and will have an Image browser built with it. When articles are added the will be able to open up the image browser when they find the image they want to insert I would like to send it(and ID from my database) into that textarea where the article is in(in the main window). So basically sending a value from popup to the main window(textarea). Is there a way i can do it.

View 3 Replies View Related

Pass Value From Main Window To Popup Window

Feb 15, 2005

how to pass a value from radio button in a window to a popup window using asp javascript?n in the popup window,there is a textfield to enter data to search from database.. the value from the textfield then is used to generate report.

View 1 Replies View Related

IE + Iframe Popup Problem

Apr 18, 2007

I was stuck with this really frustrating problem for sometime. Let me
explain what I am trying to achieve: There is a form and an inner
iframe. The form's target is set to the iframe so that when the form
is submitted, the page does not get reloaded/changed ( as the iframe
would be the one getting refreshed. The Iframe is set to have 0 width
and height to make it look invisible ).....

View 1 Replies View Related

Popup A Message Out Of A Hidden Iframe?

Apr 29, 2010

i am creating a Greasemonkey script that adds an ajax chat to a website. Greasemonkey is an addon for firefox that lets you modify the html code of websites before they are showed to the user.

I am in the process of creating a wizz feature that will allow you to send a message to a member and where ever he is on the web his gona receive it. The way it works right now is there's a hidden iframe in every page load and when the player has a message it popups a small window

It's working great but the popup is always instantly blocked because firefox has a popup bloker integrated and because it can popup on random websites they don't allow it and there for never gets the message ...

Everything else i tryed was blocked by the fact that it opens in the iframe that is invisible.

I even tryed doing it the old fashon way with an alert() but same thing you don't see it because it's in the hidden frame.

And i tryed adding top.alert() but i get a javascript the "Access Denied" message. The "Access Denied" error in any browser usually means that a script in one window or frame is trying to access another window or frame whose document's domain is different from the document containing the script.

I know DHTML AJAX popup would be the only way to give the user the message with out being blocked ... but how can i make it popup out of the iframe into the main frame with out being blocked in anyway ..

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved