Javascript Popup Error - Opera Only

Sep 8, 2001

I have a site which uses a javascript fullscreen popup window which launches from the splash page (as well as a standard browser version for those with non-compliant browsers). All works well on both Netscape and IE, but if you're using Opera and you click on the "All other browsers" version, you get both the browser version and the popup version. This will probably be very irritating to Opera users. Unfortunately, I can't just program the popup for Opera compliance as well because it won't do fullscreen - it nests under the ad/control bars. Could someone look at it in Opera and maybe suggest a solution? Opera users don't make up a lot of my user base but I really prefer to be Opera-compliant.

View 7 Replies


ADVERTISEMENT

Opera And Javascript Errors

Jul 23, 2005

How do you view javascript errors in Opera?

IE pops them in a modal box and NS has the excellent javascript console.
What does Opera have?

View 2 Replies View Related

Problem With Opera And JavaScript

Jul 20, 2005

I've been trying to make this simple script compatible across various
browsers. It works for IE 6.0 and NS 7 but doesnt work with Opera (I
have version 7.11). This is what is supposed to happen: when the user
clicks a button in the main window, a dialog window pops up. In the
dialog the user enters a university to search for. When the string is
submitted, the dialog then shows all the matches found in the
database. The user picks one and clicks the Submit button. The Submit
button's code is as follows:

View 6 Replies View Related

When Try To Close Browser In IE On The Main Page - Get An Popup With An Error - An Error Has Occured On The Script On This Page

Apr 14, 2009

I'm having a problem on a particular site I am working on.

The URL is [url]

The problem is that when I try to close the browser in IE on the main page I get an popup with an error which says: "An error has occured on the script on this page"

Do you want to continue running scripts on this page?

"Yes" or "No" (Buttons to Click)

I have to click the 'Yes' button about thirty times before the browser will finally close. Does anyone have any idea what this is?

Here is the source code.

Code:

View 2 Replies View Related

Opera - Problem Determening The SelectedIndex Via JavaScript/DOM

Jun 7, 2006

I have a problem determening the preselection of a dropdown list via
JavaScript DOM:

The followin code works fine with IE and Mozilla but does not preselect
the correct element in Opera:

//snip
myCurrentElement =
window.document.getElementById(''role'');
myNewElement =
window.document.getElementsByTagName(''font'')[0];
myNewChildElement =
window.document.getElementsByTagName(''select'')[0];

for (var i = 0; i < optionArray.length; i++)
{
myNewGrandChildElement =
window.document.createElement(''option'');
myNewGrandChildElement.setAttribute(''value'',
optionArray[i]["value"]);
if (optionArray[i]["selected"]!=null)
{

//myNewGrandChildElement.setAttribute(''selected'', ''selected'');
}
myNewGrandChildElementText =
window.document.createTextNode(optionArray[i]["label"]);

myNewGrandChildElement.appendChild(myNewGrandChild ElementText);
myNewChildElement.appendChild(myNewGrandChildEleme nt);
}
myNewElement.appendChild(myNewChildElement);
myCurrentElement.appendChild(myNewElement);
//snip

View 2 Replies View Related

JavaScript Image Refresh In Mozilla And Opera

Sep 15, 2004

We've got a server-side page (status.php) that dynamically generates a GIF image. The displayed image depends on the value of a boolean field in a database. Just calling the page displays the current value of the boolean, calling it with a parameter switch (status.php?switch) flips the database value and generates a new image. We've included headers to prevent caching of the image by the browser.

Whenever our HTML page is displayed in the browser, we just include an image that shows the current status: img src='status.php'/

We want to allow the user to click the image, which then inverts the boolean status in the database: img src='status.php' onclick='this.src=status.php?switch;'/

This works great in Internet Explorer, but both Mozilla and Opera only allow to switch once. My idea of the problem is that those browsers think like this; after one click, the src is already 'status.php?switch', so changing the src again would be redundent in their eyes, so they won't do it.

We found a temporary solution by generating the current time as a parameter in the image URL: img src='status.php' onclick='this.src=status.php?switch+(new Date());'/
However, this is not a very elegant solution.

Does anyone know a proper solution to this? This means, forcing Mozilla and Opera to load an image using JavaScript, even though the URL of the image didn't change?

View 2 Replies View Related

Error In Popup - While Using In A Php File

Oct 26, 2009

I got an error while using the following java script in a php file...

php code:

javascript code:

Now, i just wanted to call a popup using javascript, it is working fine in firefox, but giving error in internet explorer on my end...(but, i uploaded it on the server and asked my friend to check it.. on his side.. it not working even on firefox...)

I dont understand what is the problem... if it is related to popup blocker.. then why it is working on my computer.. my popup blocker is working fine i checked all the settings...

View 1 Replies View Related

JavaScript Popup

Sep 19, 2003

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:

View 1 Replies View Related

Modal Popup Javascript In Asp.net

Jul 23, 2005

I'm trying to creat a modal dialog box in asp.net using the following

Dim str_JavaPopup As String = "<script language" &
"='javascript'>window.showModalDialog('frm_MoreInfo.aspx?ProductI mage="
& str_ImageName & "&ProductDesc=" & str_Description & "','dialogWidth:
100px;dialogHeight: 100px;center: yes;resize: no;status: no;help:
no');</Script>"

Me.Page.RegisterStartupScript("Startup", str_JavaPopup)

the window opens fine but the window does not resize

is my code ok?

View 1 Replies View Related

Javascript Confirm Popup.

Jul 21, 2005

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.

View 6 Replies View Related

JavaScript Popup Effect

Feb 8, 2007

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?

View 11 Replies View Related

Opening Javascript PopUp From Within PHP Code

Jul 23, 2005

I've been trying to do this for days without success. Is there a way to open a popup window from within the php code? Example:

if (some_condition) {
open a popup page and load a file in it
break;
}

View 2 Replies View Related

Javascript Popup View By Details

Jul 23, 2005

I have a very simple javascript popup that opens to a drive folder, e.g.

c: est

which is called as such:

<A HREF="javascript:popUp('C:/test')">Test Folder</A>

This displays the contents of the c: emp folder
but defaults to a view of "large icons." Is there
a way to make it default to a view of "details?"

View 4 Replies View Related

Javascript Info Popup On Highlight

Dec 17, 2006

I've seen this effect on other sites, but I don't know how to do
it. What I'm trying to do is enable the user to highlight a portion of
text on a webpage, then click an "edit" button and a little window will
popup with that highlighted text in an editable mode (or it could be
the entire paragraph tag that the highlighted text sits in). Then I
want them to be able to edit the text however they want, click a "save"
button, and the text updates within the webpage. I know how to do the
last part of this, but I don't know how to make the popup window work
and include the highlighted text.

Just a little background on this project: What I ultimately want to be
able to do is let the website's owner be able to update the contents of
her site whenever she wishes. This is what she wants because she
doesn't know html and doesn't want to learn it. She also doesn't want
to learn dreamweaver or any other wysiwyg editor. I would almost guess
that a similar project exists out there already, maybe not using
javascript, but I haven't been able to find it. Code:

View 2 Replies View Related

Javascript Popup W/php Form Processing.

Apr 5, 2001

i have a form like this on a page called emailform.htm:

<form method="post" onSubmit=NewWindow()>
<H3>From: <input type="text" name="from"></H3>
<H3>Message: <input type="text" name="body"></H3>
<input type="submit" value="Send the Message">
</form>

when submitted, it calls this function:

function NewWindow(){
window.open('sendmail.php', 'newWin', 'scrollbars=no,
toolbar=no, width=200, height=200');
}

two problems:

1. the form values are not getting passed over to sendmail.php.
2. after the popup window pops up and loads sendmail.php, the original page, emailform.htm, changes to an error page.

so, what do i need to do to get the form values to be passed, and how do i keep the original page either from changing at all, or, if thats not possible, get it to simply reload itself.

View 3 Replies View Related

Javascript Popup Menu Problem

Mar 30, 2006

I have this irritation problem that i cnt sort out. I jave a menu on my website that uses javascript popup menus on mouse over.

But now the problem is that wen the menu appears, it is behind the dropdownlist on the site that is under the menu. This only hapens in IE and works fine in firefox. It does the same things with flash banners.

View 2 Replies View Related

Javascript Anthology Popup Query

Apr 20, 2007

I have used the code from Sitepoint Javascript anthology (page 130) to create a popup on my pages, however I have a list of pdfs each of which needs to open in a popup and the code only works with the very first in the list. the rest of the pdfs open up in the window as normal. How can I adapt this and would I have to separatly number each id: ?

View 1 Replies View Related

Javascript/html Popup Crash Firefox?

Jul 28, 2005

I'm having some trouble implementing a popup in firefox. I attached some
simplified code at the bottom. This is part of a firefox extension. What
happens is that a popup window is created, the popup window updates it's
data depending on what is shown on the main window. The problem comes when i
click the 'X' to close the popup window. it crashes firefox, and closes all
firefox windows. can somebody help me with this? why does this happen? I'm
99% sure the error comes from the form in the html code.

window.getNode = function (t)
{//stuff}

window.printNode = function (node)
{//stuff}

window.updateWindow = function (num, tag, inner) {
outputWindow.document.outputForm.nodeNum.value = num;
outputWindow.document.outputForm.nodeTag.value = tag;
outputWindow.document.outputForm.innerHTML.value = inner;
}

//popup
window.outputWindow = window.open('', 'outwindow', 'width=500,height=500');

//add contents to window
outputWindow.document.write("<html><body><form name='outputForm'>Node
number:<input type=text size=20 name='nodeNum' value=''><br>Node tag:<input
type=text size=10 name='nodeTag' value=''><br>Inner HTML:<input type=text
size=50 name='innerHTML' value=''></form></body></html>");

document.onmouseover = getNode;

View 3 Replies View Related

Auto-sizing Of Popup Window In JavaScript

Jan 28, 2001

I have a page where users click on a small thumbnail image to view a larger version of the image in a new window. But instead of just viewing the image file, I want them to view an HTML page that contains the image and a "Close Window" button. I know how to do that, and I know how to specify the size of the popup window. But...

What I'm trying to do is make the popup window just big enough for the image and the button, with perhaps a 10 pixel border around it. Since the images will vary in size, I can't hard code the width and height properties of the popup window. I need to have JavaScript measure the height and width of the image to calculate the dimensions for the popup window (and presumable this would have to be done before it opens the new window).

View 12 Replies View Related

Refreshing Main Page From Popup With Javascript

Sep 16, 2001

I have a normal web page that contains a link.

When the link is pressed a javascript popup window occurs asking the user for a choice.

The popup window then closes and I want also for the original page to be refreshed.

So how do I do the refreshing is my question.

I realise the reload command is relevant, but am unsure on how to tell the pop up window to refresh the original page.

View 1 Replies View Related

Javascript Error - But Only In IE6

Nov 11, 2009

This page works fine when viewed in Firefox 3: http://jimpix.co.uk/ecards/no-words.html

But in IE6, I get a javascript error:

Line 5
Error: Syntax Error

But line 5 refers to this: <link rel="Shortcut Icon" href="../favicon.ico" type="image/x-icon" />

Which isn't even javascript.In firefox, the drop down menus work in the black nav bar, but not in IE6, probably because of this JS error.The page's HTML validates, in case that helps.And to make things stranger, the page in IE6 works without an error when viewing the page on my local IIS web server. It only breaks when viewing the page remotely.

View 1 Replies View Related

What Does This Javascript Error Mean?

May 10, 2004

I have text box on a form that when I click on a image link button next to it, it loads a JS pop-up window with a list menu and I select an item from that menu and it closes the window and sets the value to what I chose form the menu in the text box from the parent window. I am using javascript to accomplish these tasks, but when I then try to go into the text box and edit the text after I set the value, once I do so and exit the text box with my cursor this error appears:

ERROR: 'window.NewWindow.document.test1' is null or not an object

anyone know what this might mean?

I made sure that I had the form, text box, menu and variable for the script named correctly so I know it's not my naming conventions.

form name = test1
list menu name = Times1
text box name = plannedTime

View 4 Replies View Related

How To Create A Frameless Modal Popup Window Using Javascript?

Jun 1, 2007

I am just wondering how to create a modal popup using javascript. The
popup window shouldnt contain minimize,close and maximize buttons and
it should be resizable? I am trying using window.open but not getting
the desirable results.

View 1 Replies View Related

Refreshing The Parent Window When A Popup Closes Using Javascript??

Oct 13, 2003

i have a popup from the parent window which allwos the user to add in new location. when the lcoation has been added succesfully. then thewindow closes and the parent gets refreshed. In particular, just the location listbox gets updated with the new value. the location listbox i generated from the database using asp.

View 2 Replies View Related

Javascript Alert / Popup Query On Deleting Records...

Dec 27, 2007

On some sites I have worked on, users can delete content from their site. When they go to delete an item, I take them to a page where I pull the item details of the item they are about to delete from the dbase, and say "Are you sure you want to delete so and so". They can choose Yes / No. Yes takes them to action that runs the SQL to delete the item from the dbase. No takes them to the previous page.

I have seen some sites that have managed this process differently, where, instead of being taken to another page, a little pop up box opens saying "Are you sure", with a Yes / No option on it. Yes takes you to delete the item, No leaves them on the page they are on.

Am I right that this method uses Javascript? I know that it won't work if javascript is turned off, but - most people don't turn it off...

View 7 Replies View Related

HTTP 500 Error - ASP + Javascript

Jul 23, 2005

I cannot get any SQL query to run at work, even though
the same script runs at college????

I always get a HTTP 500 internal server error.

Can anyone point out what I am doing wrong?

View 2 Replies View Related







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