473,385 Members | 1,640 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

window.createPopup() not working in Firefox

Hi All,

I am working on ASP.NET 2.0. In my code i have written window.createPopup() in Java Script but it is not working with firefox. Please provide me the alternative one to work with Firefox.
Aug 3 '07 #1
8 17445
pbmods
5,821 Expert 4TB
Changed thread title to better describe the problem.

Heya, sivavenu. Welcome to TSDN!

Try using window.open().
Aug 3 '07 #2
gits
5,390 Expert Mod 4TB
Hi ...

welcome to TSDN ...

standard compliant javascript doesn't know a function createPopup() ... but you may have created on for your own? ... in case you haven't you may use the standard window.open() method ... have a look here

kind regards
Aug 3 '07 #3
gits
5,390 Expert Mod 4TB
hi pbmods ... nearly identical posts at the same time ;) ...
Aug 3 '07 #4
Hi All,

I need to create a popup window with in the same browser. So it is not possible to usewindow.open(). My new popup window should be as like as produced by the Window.createPopup(). Please help me in this regard.
Aug 9 '07 #5
acoder
16,027 Expert Mod 8TB
Hi All,

I need to create a popup window with in the same browser. So it is not possible to usewindow.open(). My new popup window should be as like as produced by the Window.createPopup(). Please help me in this regard.
In that case, you need to create your own DHTML popup. You can either try it yourself or see this link.
Aug 9 '07 #6
kfsone
1
This function is so unfortunately named. "createPopup" does NOT create a pop-up window. It automates the process of creating and managing a DHTML floating div, ideal for things like your own auto-completions/tooltips/etc.

Unfortunately, the P word catches peoples' eyes; once people see that, they get hung up on it.

This function *should* be called createConvenientFloatingDivThatHasDocumentLikeProp ertiesForExtraConvenience()

because it's not quite a <div> that it creates, its more like an <iframe>. I've tried talking to the Firefox team about this function, but the Popup misnomer is every bit as big a red flag to them as mentioning IE.

My suggestion is to use this code - it solves the problem quickly:

Expand|Select|Wrap|Line Numbers
  1. if ( window.createPopup() ) // Creates anything but a popup
  2. {
  3.    ...
  4. }
  5. else
  6. {
  7.    alert("Your browser likes to do things the hard way and I like perl - another win for IE. This page will not work for you");
  8. }
  9.  
'course, I have the luxury of a captive audience I can yell at when they try to make my life harder ;)
Aug 10 '07 #7
acoder
16,027 Expert Mod 8TB
This function is so unfortunately named. "createPopup" does NOT create a pop-up window. It automates the process of creating and managing a DHTML floating div, ideal for things like your own auto-completions/tooltips/etc.

Unfortunately, the P word catches peoples' eyes; once people see that, they get hung up on it.

This function *should* be called createConvenientFloatingDivThatHasDocumentLikeProp ertiesForExtraConvenience()

because it's not quite a <div> that it creates, its more like an <iframe>. I've tried talking to the Firefox team about this function, but the Popup misnomer is every bit as big a red flag to them as mentioning IE.
Fine, but it's not a standard method and when it is so badly named, why should it be supported? You can create your own DHTML floating divs, though not as easy as one function call.
My suggestion is to use this code - it solves the problem quickly:

Expand|Select|Wrap|Line Numbers
  1. if ( window.createPopup() ) // Creates anything but a popup
  2. {
  3.    ...
  4. }
  5. else
  6. {
  7.    alert("Your browser likes to do things the hard way and I like perl - another win for IE. This page will not work for you");
  8. }
  9.  
My suggestion is not to use that code. Where's that for cross-browser functionality? Just because a non-standard method doesn't work in every browser except one, the page only works in that one browser!

PS. welcome to TSDN!
Aug 10 '07 #8
Hi,

Yes, no browser other than IE have window.createPopup().
This is why I have created a cross browser window.createPopup() on this post: http://extremedev.blogspot.com/2011/...s-browser.html

Leave a comment, if it helps great, if not I will try to find a another solution for your problem.
Mar 13 '11 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Sergey Poberezovskiy | last post by:
Hi, I need to show a popup on my Web Page, so I write: var oPop = window.createPopup() oPop.show(x,y,W,H); I have a problem with W =width and H = height of the popup window: When a user...
5
by: Simon Knox | last post by:
Hi I have a web app that has a legitimate use for pop up windows. My web app is an insurance quoting app. I use the window.open method to display another aspx page so that the user can check...
0
by: Angel | last post by:
I created as popup window using the createPopup() method. The innerHTML that will be displayed in the popup contains a textbox. For some reason I cannot key into the textbox. Is there a limitation...
3
by: John Walker | last post by:
Hi, I am using a popup window in my application and the problem I'm having is that even though I tell it to display before a while loop, it only displays after the while loop completes. Please...
2
by: Vivek | last post by:
I have two html files Parent.htm and Child .htm Following is the code inside the Parent.htm: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title></title>...
1
by: Doug | last post by:
Hello, I create a popup window using document.createPopup() Is there anyway to add a script node into this popup? For example I'd like to add <script type="text/javascript"...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.