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?
I need some help with closing a popup window. I'm making an online portfolio, that has one base page with text and thumbnails. When a user clicks on a thumb, a new window opens containing a larger image and a caption (each contained on a separate htm document). I do this with a function in the header script as follows:
var picpage=" "; var params=" ";
function fullpicwin(picpage,params) { window.status="Opening picture... please wait"; window.open(picpage,'fullpic',params) }
picpage (the name of the htm file), and params (window size, etc.) are passed from the click code by each thumb. Each popup is sized differently, of course, based on the side of the larger photo. All controls, etc., in the popup are turned off. The user can click the "x" box or a form button at the bottom of the popup to close the window.
All this works very nicely... EXCEPT...
The user can move the mouse back to the main page and open ANOTHER popup by clicking on another thumb BEFORE closing the existing popup. The problem is the 2nd popup retains the size of the first, so of course the photo may be blocked by the borders, etc.
What I want to do is force the closing of the first popup if the user tries to open a 2nd and so on. There is no reason to have more than one large photo showing at the same time.
I thought I could put some code in the function that checks for the existence of a window named "fullpic", and if it's there, closes it first, then opens another. But I can't seem to get the syntax right.
I am somewhat new to JavaScript and am having a small problem. I am building an experimental website that contains music. It's called url removed. To navigate around the website there is a graphic of a piano keyboard and if you click on an individual key you can go to "Home", "Recordings", "Contact", or "Jukebox". My problem is with the key labeled "Jukebox". I have the graphic set up using an Area Map. When you click on the area that says "Jukebox", it is supposed to open a small pop up window with the jukebox of tunes. It works great but it navigates away from the website and the larger window behind the jukebox is just a plain white window and says [object] on it. Here is the area map code I am using containing the javascript:
I am trying to make a popup window with Javascript that will let a user choose either a Yes or No button and then be sent to a page after that.I really do not want this popup to be resizable. I have read that is not really possible in current browsers, but that you can prevent it form happening with resizeTo().I am not sure I'm doing this right though:
<input type='button' value="DELETE GROUP" onclick="javascript:Popup('deleteGroupWarning.html')" /> var stile = "top=10, left=10, width=300, height=300 status=no, menubar=no, toolbar=no
I am calling a Java Script function on the button click of a pop up window (ASP.net). The function does the following: 1. Close the Popup window 2. Call JS function on the Parent window 3. Try to open another popup I am able to close the popup window and call the js function on the parent window but I am not able to open the new window.
CODE: window.close(); window.opener.clearfields(); window.open('MyExcel.xls'); I need to perform all these in one JS function.
I'd like my javascript popup menu link to target the inline frame in the middle of my page, but I'm unsure how to do this. The inline frame is named "mainframe". Here is the code, with the line to the link denoted with **:
if (window.mm_menu_0127203047_0) return; window.mm_menu_0127203047_0 = new Menu("root",140,18,"Tahoma, Arial, Helvetica, sans-serif",10,"#ffffff","#ffffff","#ffffff","#243f6f","left","middle",3,0,5 00,-5,7,true,true,true,0,false,true);
I have two questions. I have a html page has two "data-role=page" objects. When I open that page by clicking on a link, the second page is displayed rather than the first. If I add "rel=external" in the link, the first page shows up but the back button is missing. Is there any way to ensure the first page shows up and the back button is visible.
The second, how can I call $("#pageObject").dialog(). I tried this on a link, nothing happens. Can't I use I<a href="#pageObject" data-rel="dialog">Open dialog</a>. This does not seem to work for internal pages. Is there a method to open internal pages as popups?
I have a very simple PHP script that is reading a plain-text CSV file and parses it out into into a HTML table to display the data. No biggie.
What I want to do is while keeping the browser window for that page open and minimized, i want to be able to maximize the window when the text file has been update. This is a small script that is being used for some dispatchers at a taxi company and the popup window is supposed to be their list of customers to pickup. The company has several dispatchers who are constantly updating a proprietary system, and this system has a special program that spits out the data for customers who need to be picked up. Every dispatcher has a link to this PHP webpage to display the next available pickups. The only problem is that they want to be able to minimize the browser window and have it open automatically when a name has either been added or removed from the pickup list.
Is is possible to integrate a javascript function to do this with PHP?
So I wrote some javascript to open a popup window when the thumbnail pictures are clicked. Everything works fine except for two minor details I would like to fix. 1. The images are distorted in the popup window. 2. I want to be able to resize the window and have the picture inside resize along with it.
<script type="text/javascript"> function enlargeImage(Url,width,height){ var enlarged = new Image(); enlarged.src = ''+Url+'' var prevW = window.open("","newWin","width="+width+",height="+height+", top=140,left=200,scrollbars=yes,resizable=yes"); prevW.document.write('<html><head><title>Preview Image</title><style type="text/css">body{margin: 0px; padding:0px;} img{margin: 0px; padding: 0px;}</style></head><body> <img alt="Click to Close" title="Click to Close" style="border: 0px; padding: 0px;" src="'+Url+'" width="'+width+ '" height="'+height+'" onclick="java script:window.close();" /></body></html>'); } </script>
And here's a copy of one of the pictures I have in my table (the code I mean) <TD rowspan=1 style="width: 104px"><center><a href="java script:"> <img alt="Click to Enlarge" title="Click to Enlarge" src="landscape/landscape/images/archery.jpg" width="120px" height="100px" style="border: 0px" onclick="enlargeImage(this.src,'800','600');" > </a></center></TD>
I am searching for a cross-browser way (the most recent browsers are fine) to use javascript to open a new window even though I do not know the file I want to call. I do, however, know the HTML code I want output in the new window. It would look like:
I'm wondering if someone has already succeed to open a word2000 document located on server side with javascript code executed by a web browser on client side.
In fact, i make it without any problem when the client use Word XP & 2003 but no result with Word 2000.
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.
My popup code doesn't appear to work with Internet Explorer 7 and before I spend time bug hunting I would appreciate it if a few IE7 users could visit my site and confirm if the code doesn't work for them too.
Visit www.microbuild.com and in the top right hand corner you will see three buttons for Online Support, Email Us and Call Us. Just click any one of those three buttons then let me know if the popup was successfully opened using Internet Explorer 7.
I am trying to apply it to my page. But when I click on a thumbnail, although it's opening a pop-up window, it also enlarges the image in the current browser.I also need to do the same thing with a .swf file. How can I have a flash movie enlarge when clicked?
I have code to make a popup via javascript and it works fine, but what actually pops up is an external file that i select (in my case test.html). i want all of the code of test.html to be in my index.html and when i call the popup it doesn't call an external file but instead calls the html code in the internal file (index.html)? possible?
Code:
What's in test.html? it's a form
Why? i need the code of test.html to access some global javascript variables in index.html.
I'm somewhat experienced in coding but I'm not the best. I've been trying to figure this out forever and I'm beat. I am trying to insert a thickbox popup. I am trying to use a Iframed popup code. This one as follows:
I have a Popup on my website which appears the first time someone leaves my home page. The problem is that it's intended for people who decided not to order, but it still appears when visitors go to my order page. Please can you tell me how to stop this happening, so that it only appears when people click away to a page other than my order page? Code:
I would like to know how to write javascript such that, a part of it isnt considered as script, & rather as HTML. Code:
Ok, the layer div can be written using document.write. But, Google ad itself is a javascript isnt it. How can it be written into this? How does this work?
I have never done any javascript at all but I think it can do what I want with ease.
Basically at the moment I have a link that calls a delete script written in php. The delete script just deletes and item from my mysql database. What I would like is a popup to appear when the link is clicked that asks for the user to confirm they wish to delete.
Could anyone either show and example or point me to a site that may have a tutorial or something.
I'm after creating a JavaScript effect on my site. I've just created a basic popup effect on the Loughbourgh Image which when clicked brings up a popup (which for some reason only works in IE at the moment). However this is static. What i want is whenever i hover over that image the popup appears but in relation to the cursor. So if the cursor moves the pop moves along with it.
I assume there is an effect such as this but i have had no luck finding it so can someone point me in the right direction please? Is there any similer posts regarding this subject or a tutorial i could learn from?