POPUP Function
Apr 7, 2004
Now I'm not much of a javascript guru but I am trying to create a custom function that will allow me to specify the width and height and all other options for opening a popup window via a link. I need ot be able to obviously specify the location, width, and height, and be able to specify if I want things like the address bar, toolbar, status bar, and all that with either a 1 for yes, and 0 for no. Is that possible? How should I start.
Also, say the pop up will hold an image 500px in width. Now I know that if I set the size to 500, it will not hold the whole image because 500 accounts for the window border and other things. How much do I really have to put for a window that has to hold an image 500x400.
View 3 Replies
ADVERTISEMENT
Aug 5, 2009
I'm using open source '4images' image gallery that uses a popup PHP window to show upload the image, and then goes away once complete. It works fine only if popup windows are enabled in the internet browser. If its disabled then it doesn't work. I've tried a few fixes no success as I'm not that good with javascript yet. Have tried the ;return false; but can't seem to get it right.
This is what I've got that works when popups are enabled in the browser
Code:
View 1 Replies
View Related
Dec 4, 2007
function test1(){
window.open('about:blank','TEST','width=300,height=300,resizable=1');
}
function test2(){
window.open('about:blank','TEST','width=300,height=400,resizable=1');
}
I create 2 buttons and set onclick to test1() , test2() respectively but I tried to click on button1 (call test1()) and click on button2 (call test2()) the windows popup which call from test2() has height=300. I want to popup with height =400 and I don't want to close window popup which call from test1().
1. Call test1 function (the windows's popup width = 300 ,height=300)
2. Call test2 function (the windows's popup width = 300 , height =300 <= I want height =400)
View 4 Replies
View Related
Feb 26, 2007
im using the following javascript function to popup a new window that will display the full size of thumbnail images.
However, whenever I click on an image, the full image will not appear. Only a very small window will appear. How can I alter the function below so that the full image will appear?
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=100%,height=100%');");
}
View 6 Replies
View Related
Oct 9, 2011
I have used a Javascript function for temperature conversion(attached with an external js file). When the temp is converted we are supposed to get a message box if the temps fall under a certain amount.
Example: <90 degrees celcius : a message is supposed pop up.
I haven't been able to code the message box correctly for it to work.
View 2 Replies
View Related
Feb 5, 2007
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.
Is this possible? Is this correct/valid?
View 1 Replies
View Related
Feb 16, 2009
i am using popupwindow.document.write(html_text); all the html of the pop-up goes into html_text.how can i build a function inside the html_text that can be called within the popup window?
View 6 Replies
View Related
May 31, 2011
I am trying to get contents of a page into a popup div when user clicks on the View sample plan link in the table with the id='plans' below.
I will change the contents of junk.php once I can get it working.
View 5 Replies
View Related
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
Jun 4, 2009
1. VBScript opens a dropmenu: oPopUp = window.createPopup
2. Then Javascript code in the popup body should hide the popup when certain item has mouseover.
Can javascript hide vbscript popup (within the popup)?
View 3 Replies
View Related
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
Jul 11, 2011
I want to configure the script below to popup only once per browser session. I know nothing about javascript.
Code:
View 3 Replies
View Related
Dec 25, 2011
From a parent window, I open two child windows.In the second child, you complete some data, and then it closes the window. I'm trying to figure out how to find and close the first popup window at the same time (as that is used for reference but no action necessary on it).As near as I can tell window.open should let me set a handle that I can then reference later on to close that window (or am I misunderstanding that), but i cannot figure out how to reference that window.
View 1 Replies
View Related
Jul 20, 2005
As per the rather long subject, I would like to (well, my boss would like me to...) on a popup have one button to close and another to close but then redirect to another page.
View 4 Replies
View Related
Dec 30, 2002
OK, can't figure out what I did wrong here....
View 2 Replies
View Related
Jul 23, 2005
I just am curious as to whether online advertising software is not
doing as well because of popup advertisement blockers, such as on
Mozilla and on the Google popup blocker. Would it not be advisable to
work for SpecificPOP or SpecificMEDIA, leaders in direct-response,
online marketing specializing in innovative technology that maximizes
ROI revenue for marketers?
SpecificPOP helps sites like wunderground.com, a site about weather, produce windows that offer gift coupons of one hundred dollars or more, based on whether you check if
President Bush is good for America.
View 2 Replies
View Related
Jul 23, 2007
how to create dialog box or pop box by using javascript
but one thing when it appear the back ground is automatically disable
can't run any actions
View 1 Replies
View Related
Dec 8, 2009
I have some javascript the works in conjunction with a flash video player. When a user selects a video in the Flash video list and new video is called and begins to play. Also, when that video is selected a function called "doOnMediaLoad()" is called and inside of that function I have put a call to another function that I wrote in the same script.function that is called when user selects flash player video list.
function doOnMediaLoad(e) {
vcomments_changed(e.id); //call to my function
}
[code]....
View 2 Replies
View Related
Dec 9, 2009
I have some javascript the works in conjunction with a flash video player. When a user selects a video in the Flash video list and new video is called and begins to play. Also, when that video is selected a function called "doOnMediaLoad()" is called and inside of that function I have put a call to another function that I wrote in the same script.
[Code]...
View 4 Replies
View Related
Jul 23, 2005
The question has to do with the use of popup
windows in a web page. I have heard that popup
windows should be avoided; due to use of popup
blockers and browser that do not process javascript.
Is the use of popup windows bad design?
Will it severly reduce the usage of our web page?
Note, The popup windows are created using only
onClick events, not onLoad or onClose events.
Do popup blockers make any distinction between
the two?
View 3 Replies
View Related
Jul 23, 2005
I have a button that pops up a calender popup window. One of the arguments
to the openCalendar() is the name of the element to insert the selected date
into i.e a readonly text box - this works fine!
What I want to do is to detect when a value is inserted in to this box from
the popup so I can make visible a "save" button - trouble is though the
onfocus() & onchanged events are not fired when it's value changes.
Is there anyway to get some sort of event fired when a popup closes so I can
test if the text box has changed? - or more likely am I overlooking
something really obvious?
View 2 Replies
View Related
Jul 23, 2005
can still have a popup even when I have a popup blocker - google toolbar. I
want to know the technology, but I can not read the source code. Anyone
knows the trick to get around the blocker?
View 2 Replies
View Related
Jul 23, 2005
This cookie script has a confirm popup that asks if you want your data
saved, it pops when you exit the form, now my question is how can I
eliminate the popup? Code:
View 2 Replies
View Related
Aug 16, 2005
I want to do a search from my opened popup and print the result to
my parent window.
I know how can I with a link open a new page in the parent window
but I need to retrieve my form values before to send it to the parent window
I call a function from my search button :
function Lvl_P2P(url,closeIt,delay){
document.select_wish.submit();
opener.location.href = url;
}
my button :
<input type="button"
onClick="Lvl_P2P('/cgi-bin/recordz.cgi?lang=fr&page=dosearchimmo',true,0500)"
value="Search">
but If I use it this way the document.select_wish.submit() method send
and open page in the current pop up window
how can I tell to open it to opener.location.href = url...
View 1 Replies
View Related
Dec 15, 2005
I have a map with regional hotspots and want to pop up a small window (maybe 300 x 200 with the reps in the regional area when the hotspot is clicked. It should pop up over the map with a close button returning the user to the p.
I now have a full page but with the small number of reps right now it looks overdone, I would like something a little less flashy.
View 1 Replies
View Related
Sep 6, 2006
In my program the user clicks on a link and using the window.open
function, opens a new window.
I pass a url to the new window like this:
<a href="#"
onClick="window.open('../quotescreenwindow.php?enroll_id=enrollwindowprime. php',
'WindowC', 'width=750,height=800,scrollbars=yes');">
In the new window that just opened called quotescreenwindow.php, I
have a button that when clicked, should open yet another window called
enrollwindowprime.php (this is the variable I am passing after the
question mark).
What I cannot do, is to grab this variable that I am passing to the
first window I open and use its content to open the next window.
I am not very experienced and have been piecing this together from
various web sites.
To simplify all of this:
Screen A Opens Popup Window B and passes it a variable with a url
inside of it.
Popup Window B wants to use the variable with the url to open Pop Up
Window C.
View 6 Replies
View Related