I need to make a image open a popup window, I know how to do it like this:
function load2() {
var load = window.open('pictures','','scrollbars=no,menubar=no,height=800,width=840,resizable=yes,toolbar=no,lo cation=no,status=no');
}
then on the link just have it go to javascript:load2()
But I have a ton of different links and don't want a bunch of code in the beginning of my pages. Is there a way to make the first part just the dimensions of the new window but then when I actually make the link, I could put where I want it to link to? Like javascript:load2(pictures).
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
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.
We are trying to ensure that information is seen even if javascript is disabled. So we would like to create something that opens a popup as normal however if javascript is disabled it opens a new tab or window with the information. But if javascript is enabled it just opens the popup not the new window.
Is something like this possible and if so how would we do it?
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?
im looking for a javascript code that will open a window in 100% width, no toolbars, no menubars, no statusbar, nothing but the page conent basically but for it to all be centered on the screen vertically
I kinda stuck at this point on my php script, it has this javascript code and I stuck there:
Line 16: echo("<script language="JavaScript"> function openptc(tpge,pnme,w,h){ settings="width=" + w + ",height=" + h + ",scrollbars=yes,location=no,directories=no,status=1,menubar=no,toolbar=no,resizable=no"; window.open(tpge,pnme,settings); } //--> </script>");
Line 72: print "<td><a href="#" onClick="openptc('./paidtoclick.php?adid=$row[linkid]&action=start&".session_name()."=".session_id()."','PaidtoClickPage','640','480');"><b>Click Here To View</b></a><tr>";
I think those 2 lines actually are my problem. This code makes the site open in a new pop up window. how to make it open in a new tab.
I need to delay a page from opening a new window for a minimum of 5 seconds to allow some php processing (inserting a new record into a table) to occur first. the open window code works fine without the time delay, but as soon as i attempt to put a delay in, nothing happens eg, the page no longer opens a new window called newrecord.php.
Is it possible to create a link to have a window pop up and not have the bar that has the title and minimize/maximize/close icons? If so, how could I do this?
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?
We want to load the popup window when the page is loaded but this popup window must not be visible to the end user. We need this to do some processing in the popup window which is hidden.
I have a popup that submits a link. After the link is submitted, I want the user to be able to close the popup and go to the submitted link in one click. How can I do this.
I have my reasons for using popups, it's hard to explain. Please don't tell me how bad popups are, I know they're bad.
I need to create an application that will open a popup when the user closes a window. I can do that easily via onUnload event of javascript but the catch is that the popup must open only when we close the window and not when we submit a form or click a link on the page.Actually it is a survey which opens only when one closes the window.
I need a script to open a popup window which contains a php form. after the form has been submitted or cancelled i need to go back to the originated page (php also) and reload original page.
to make a column clickable and then when clicked I need to open a pop-up window. I use the click event to get the data I need to pass to the new widow. This is working.
Then I use window.open(URL...) to open the window.
Now, I need to stop the information from the click event of the href from being passed to the browser. Is the href the proper way to do this or can I make it clickable via jQuery?
It does open a new page in firefox but generates an error in IE 8.
Is there a jQuery way to open a pop-up window that will work in IE and FF?
I want the lightbox window open only once a day for every unique visitor on my website. I understand I should use some sort of cookie implented, but I dont really understand how to.
I've added a popup window to my discussion board's index page. The popup window contains an image. When i click on the image link to the popup, all I get is my discussion board's index page. I can't figure out where to place the image code so that the image appears....
I have a sitelock.com image on my website that when clicked on, shows info that my site is verfifed through them. However, when clicking on the image it opens up in a whole new window.Pathetic sitelock.com will offer no support in getting this in a popup window.I need some help please in getting this to open in a popup window that I can resize to any size I want and to only have the address bar showing up top, no toolbars or anything else.My website is in joomla and I have a plugin called 'sourcerer' that will allow me to insert code anywhere i want.Here is the code that sitelock.com gave me:
I am having an issue with some javascript code, when I click on the images in the slideshow it doesn't do anything. However, window.location works fine.
Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
I want every time i click on a link a new window to appear.. The new window i want to have the dimensions of the included picture. Finally I want a close button on the window ..
I am trying to use the following script to link a thumbnail image to the full-size image in a new window:
Code: <script type='text/javascript'> function OpenNewWindow(bigurl, width, height) { var
[Code].....
However, nothing is happening. The original image appears. It is active but when clicked does not open a new window. I am very new to working with both JavaScript and PHP (let alone the two together) so I am hoping I am missing something obvious. Here is the site I'm trying to build. The images I need linked are on the pages under 2010 and 2009.