Replacement For Window.showmodelessdialog In Mozilla

Jan 17, 2006

what is the replacement for window.navigate in mozilla & i was used window.showmodelessdialog in IE5 - in mozilla it is not working

View 5 Replies


ADVERTISEMENT

What Is The Replacement For OnBlur In Mozilla

Jan 21, 2006

What is the replacement for onBlur in Mozilla

<body STYLE='background-color:buttonface;' leftmargin=0 rightmargin=0
topmargin=0 bottommargin=0 onBlur="window.focus()">

View 1 Replies View Related

Window.showModelessDialog()

Jul 23, 2005

When I use window.showModelessDialog() to open a window. And then on the
opened window to open an another window with the same function,
window.showModelessDialog(). The last opened one is always on the top of the
first opened one. Is there any "work around" to have the first opened one go
to the front?

View 3 Replies View Related

Text Replacement In Conjunction With Image Replacement?

Mar 15, 2010

I've been working with HTML, CSS, and PHP for the past few years. I've decided to add some interactivity to my websites and one of the new courses requires JS in our implementations, so I figure why not.

Anyhow, more to the point...the topic is a bit vague, but I didn't want to put a 50 word topic either so bear with me as I try to explain :D :

Okay, so I'm designing an art portfolio page and I have a 250x250 pixels preview shot of an art piece on my side bar at the top. There is a horizontal column at the bottom of the page (before the footer) that contains about 6 to 8 mini thumbnails around 100x100 pixels. Right now, I am able to make it so that if I mouse over the bottom thumbnails, the 250x250 at the sidebar is replaced to reflect what was hovered at the bottom, only in a bigger size.

This is my current coding:

<script type="text/javascript">
<!--
function change_img(path) { document.large_img.src=path}
function preload(){

[Code]....

I'm not even sure if that's the correct or most efficient way to do it...it took me a while to figure out, and it finally worked so I went along with it.

What I want to do, and what I need help with is...I'd like to give the current artwork, or the piece that's currently @ 250x250 pixels at the sidebar a title. Preferably, perhaps from the context of the alt tag from an img src but not required. However, I would like for it to change to the corresponding pieces' title when I mouseover, so for example:

250x250 piece1's name is ...art1 and that name is located right under the image.

I mouse over the bottom thumbnails to the 5th thumbnail, the 250x250 piece1 is replaced and becomes 250x250 piece5. I'm trying to make it so that art1 becomes art5.

View 5 Replies View Related

Replacement For ShowModalDialog - Disallow Anyone To Browse From A Pop-up Window Without Closing It

Jul 17, 2008

I was trying to find a browser independent way to raise a modal dialog. I know that MS IE has showModalDialog and Firefox has an attribute modal for window.open but I was wondering if anyone knew of a solution out there that would disallow anyone to browse from a pop-up window without closing it. Disabling the text highlighting and right click are not required, just disabling the user from browsing with the dialog open.

View 4 Replies View Related

ShowModelessDialog

Jul 23, 2005

I`m dynamicly creating a doc for a modeless window in IE 6..

win= showModelessDialog(oArgs, window, sFeatures);
win.document.title = 'some title'

doesnt work. Any ideas ?

View 12 Replies View Related

ShowModelessDialog Placement Problem

Sep 27, 2006

i have a link through which i am opening a showModelessDialog . in that page there is a link for Cancel and Next. when the user clicks on Cancel the window closes and when the user clicks on Next another showModelessDialog opens [Closing the existing one].The problem is it does the same thing but that second showModelessDialog takes top and left as 0 and goes to the top-left corner of the screen. i have set the center parameter to Yes then also the problem perist. below is my code:

View 1 Replies View Related

Window.showModalDialog For Mozilla

Dec 7, 2003

Somewhat tested on Moz1.5


<html>
<head>
<script language="JavaScript1.2" type="text/javascript">

/*
Notes:
1. edge & help attributes do not work.
2. "height" & "width" must be entered before "center"
3. if you should choose to set "center=yes" do not put in "left" and "top"
4. Minimize button not hidden, but when clicked the window will not disappear
5. Aside from the aforementioned, all features should react the same *fingers crossed*
6. Still in the works, so don't expect miracles. Any problems/queries/complaints please don't hesitate.
Email:
x_goose_x@hotmail.com
*/

dFeatures = 'dialogHeight: 450px; dialogWidth: 1049px; dialogTop: 646px; dialogLeft: 4px; edge: Raised; center: Yes; help: Yes; resizable: Yes; status: Yes;'//default features

modalWin = "";
function xShowModalDialog( sURL, vArguments, sFeatures )
{
if (sURL==null||sURL=='')
{
alert ("Invalid URL input.");
return false;
}
if (vArguments==null||vArguments=='')
{
vArguments=''
}
if (sFeatures==null||sFeatures=='')
{
sFeatures=dFeatures;
}
if (window.navigator.appVersion.indexOf("MSIE")!=-1)
{
window.showModalDialog ( sURL, vArguments, sFeatures );
return false;
}
sFeatures = sFeatures.replace(/ /gi,'');
aFeatures = sFeatures.split(";");
sWinFeat = "directories=0,menubar=0,titlebar=0,toolbar=0,";
for ( x in aFeatures )
{
aTmp = aFeatures[x].split(":");
sKey = aTmp[0].toLowerCase();
sVal = aTmp[1];
switch (sKey)
{
case "dialogheight":
sWinFeat += "height="+sVal+",";
pHeight = sVal;
break;
case "dialogwidth":
sWinFeat += "width="+sVal+",";
pWidth = sVal;
break;
case "dialogtop":
sWinFeat += "screenY="+sVal+",";
break;
case "dialogleft":
sWinFeat += "screenX="+sVal+",";
break;
case "resizable":
sWinFeat += "resizable="+sVal+",";
break;
case "status":
sWinFeat += "status="+sVal+",";
break;
case "center":
if ( sVal.toLowerCase() == "yes" )
{
sWinFeat += "screenY="+((screen.availHeight-pHeight)/2)+",";
sWinFeat += "screenX="+((screen.availWidth-pWidth)/2)+",";
}
break;
}
}
modalWin=window.open(String(sURL),"",sWinFeat);
if (vArguments!=null&&vArguments!='')
{
modalWin.dialogArguments=vArguments;
}
}

function checkFocus()
{
if (window.navigator.appVersion.indexOf("MSIE")==-1)
{
if (modalWin!=null && !modalWin.closed)
{
self.blur();
modalWin.focus();
}
}
}

</script>

</head>
<body onFocus="checkFocus();">
<br>
<br>
<input type="button" onclick="javascript:xShowModalDialog('test.htm',this,'');" value="click">
</body>
</html>

View 3 Replies View Related

Window.open Does Not Work In Mozilla

Jul 23, 2005

The following code used to popup a window when I used netscape 4.79.
Now I switched to mozilla 1.4 and the window doesn't popup.

function newWindow(newContent)
{
winContent =window.open(newContent,'nextWin','screenX=0,scree nY=20,width=600....);
winContent.focus();
}

....
<a href="javascript:newWindow('foo.html')"

View 3 Replies View Related

Window.close() And Mozilla/Netscape

Nov 24, 2005

I'm trying to make a link that closes the browser:

<a href="javascript:window.close()">CLOSE</a>

It works with IE6 but not with Mozilla and Netscape.
Does anybody knows the reason why?

View 7 Replies View Related

Window.opener Not Working In Mozilla?

Nov 15, 2010

My parent window is dash.html. From this i call a pat.jsp file which is a child window to dash.html. I wrote a function in dash.html

function feed_refresh(){
getGlaceCompleteDashBoardResult(1);
}

this function getGlaceCompleteDashBoardResult(1); is included in a .js file in dash.html file. Now from the pat.jsp i call the feed_refresh() function on onunload=db_refreshfeed(); like this.

var db_refreshfeed = function(){
if(REQUEST_TYPE)
window.opener.feed_refresh();
}

This code working nice in IE but in mozilla it throws uncaught exception.

View 3 Replies View Related

Window.open Not Work In Mozilla?

Oct 4, 2003

I am trying to use the following javascript function to open a new window. It works fine for IE browsers, but not Mozilla.

settings = 'height='+screen.height+',width='+screen.width+',top=0,left=0,scrollbars=yes,directories=no,location=yes,menubar=yes,resizable=yes,status=yes,toolbar=yes'
win = window.open(address, "newwindow", settings);
Am I doing something wrong or does Mozilla not support the window.open function? Or is it something in the settings thats breaking it?

View 9 Replies View Related

IE Versus Mozilla [window.open]

Feb 6, 2006

I've got this popup-Javascript, which works perfectly fine in Firefox, but does nothing in IE for Windows. Code:

View 3 Replies View Related

Window.status Not Work With Mozilla Firefox?

Apr 15, 2008

I have a link

<a href="#" onclick="popup()" onMouseOver="window.status='http://www.google.com'; return true">Click here</a>

I want to open popup on clicking link and onmouseover the link i want to show url in status bar .if i give it in href then onclicking it open the new window and submit the parent window

i use mouseover function to give status bar url it work in IE7 but not in mozilla

View 11 Replies View Related

Close Child Window In Mozilla Browser?

Jan 14, 2009

I am facing problem while closing the child window in Mozilla Browser. Actually i am using window.close() in order to close the child winow . Its working fine with IE but its not working for Mozilla browser.

View 4 Replies View Related

When The Images Rotate In Mozilla In Between The Rotations, Mozilla Browser Adds A Little Colored Square That Represents A Blank Image?

Jul 16, 2009

had this in browsers areas but people told me I should put it here in Javascript because more people here would probably have seen it before and know why it happens. I have basic Javascript that rotates images. I've noticed any kind of Javascript code that rotates images has this same problem only in Mozilla. When the images rotate in Mozilla in between the rotations, Mozilla browser adds a little colored square that represents a blank image that are able to be seen does anyone know why Mozilla Browser adds that? For example when looking at this page in Mozilla can see it. if you know if this is some Mozilla problem with Javascript and images. Doesn't happen with IE and other browsers shows the images only and nothing else.

View 2 Replies View Related

Porting App To Mozilla - Work On Both IE/Mozilla ?

Nov 30, 2010

I've a BIG Problem With a HUGE JS application , i'm modifying its javaScript code to work on both IE/Mozilla , currently it works fine on IE but not on Mozilla.

My main Point now is events.

Lets try with a little module, consider this function :

And it is attached in this place like :

This works fine in IE , i want to modify it to work on Mozilla.

View 2 Replies View Related

Textarea Replacement

Oct 21, 2005

Is anyone in here familiar with the javascript textarea that is used by any of the textarea replacement WYSIWYG editors.. like SPAW, MoscCE and TinyMCE.

I found that they ALL wrap paragraphs in div tags rather then p tags and I was hoping someone could tell me how to fix this.

I did a batch replacement to replace all "div" with "p" but even that didnt keep the editor (SPAW) from using div tags instead of p tags.

View 6 Replies View Related

Prompt Replacement - Capturing Value

Jun 9, 2010

I have a very simple jquery RTE I've built. When adding a link I currently do this ( $.iframeread is just a function to pick the right way to "find" the iframe content for the browser being used)

[Code]....

I can obviously create this and show() it when I need to - what I don't know how to do is pass $('select[name="type"]').val() + $('input[name="link"]').val() back to the orginal function - ie how do I capture $link

[Code]...

View 2 Replies View Related

Basic Image Replacement

Apr 2, 2005

I've been looking at all the various image replacement techniques..and they all seem unnecessarily complicated. I came up with:

function replaceLogo() {
document.getElementById('header').innerHTML = '<img src="/images/logo-tci.gif" />'
}
It's just replacing the layer contents at a very basic level.

This works just fine, I'm just wondering how well supported it would be across different browsers. Anyone know of a table of browsers that support innerHTML or see potential cross-browser issues with this technique?

View 2 Replies View Related

Safari And Class Method Replacement

Jul 13, 2006

I use the following to translate button names in Google Maps:

G_NORMAL_MAP.getName = function(short) {
if(short) {return "Karta"}
return "Karta";
}

It works (tested) with Firefox 1.5 (Linux and Mac) and Opera 9 (Mac).
But Safari 1.3. says "Parse error".
What is wrong - code or Safari?

View 4 Replies View Related

JQuery :: DOM Button Replacement Via .replaceWith()?

Oct 30, 2011

Testing page: [URL]...Testing info: username: claudion ; psw: bolibokhan Background: You enter some text in message editor textbox; press send; page (& not popup) appears stating 'Message successfully recorded...return to message'Send button HTML <input type="submit" value="Send" class="button2" name="post">

Limitations: Cannot edit template/html ...had to be done via javascript/jquery Objective: to replace Send button with a custom one such as one you press it (after message is entered) you be redirected back to your current page(URL) & 'Message successfully recorded...return to message' page is thus skipped.

[Code]...

View 2 Replies View Related

Jquery :: Max / Min Functionality For Image Replacement

Mar 24, 2009

I am using jquery in my current application to add min/max functionality, i.e, when the user close at maximize, table gets maximized, when clicked on minimize, table gets minimized. It works fine functionality wise, but, ideally, when maximized, max image should replace with min image and vice-versa, but images gets replaced only when clicked 2nd time around, for very first time, images don't get replaced, though the system works fine,

Here's how I am calling the function:
<a href="javascript:void(0);" onclick="showinghide('contacting')"><img src="images/arrows/opened.gif" id="contactingarrow" class="myarrows"></a>

Here's the function:
function showinghide(oobj){
if(oobj=="contacting"){
jQuery("#contacting").toggle('slow');
mycookies("contacting");
}
And the jquery code is:
function mycookies(myobbj) {
var mycookiesvar=myobbj+"cook";
if(jQuery.cookie(mycookiesvar)){
if(jQuery.cookie(mycookiesvar)==myobbj+"hide"){
jQuery.cookie(mycookiesvar,null);
jQuery.cookie(mycookiesvar,myobbj+"show",{expires:365});
jQuery("#"+myobbj+"arrow").attr({'src':'images/arrows/open_bk.gif'})
} else if(jQuery.cookie(mycookiesvar)==myobbj+"show"){
jQuery.cookie(mycookiesvar,null);
jQuery.cookie(mycookiesvar,myobbj+"hide",{expires:365});
jQuery("#"+myobbj+"arrow").attr({'src':'images/arrows/close_bk.gif'})
}} else {
jQuery.cookie(mycookiesvar,myobbj+"hide",{expires:365});
}}

View 5 Replies View Related

Grouped RegEx Replacement With Variable?

Oct 1, 2010

I have searched and searched and tried many different options but can not get this to work although I am sure it is possible.I need to be able to replace a string using a variable as the search and replacing using the matched reference group such as $1 I can search for a variable and I can get the reference to work - but not both at the same time.The following works great - except it does not preserve the case of "Test" in the string

Code JavaScript:

var q = "test".toLowerCase();
var mystring = "My Test string";
var reg = new RegExp(q, "i");
mystring.replace(reg, "<mark>"+q+"</mark>");

This is the reason I can not simple replace with "q" and need to replace with what was actually found. But this does not work like this:

Code JavaScript:

var q = "test".toLowerCase();
var mystring = "My Test string";
var reg = new RegExp((q), "i");
mystring.replace(reg, "<mark>$1</mark>");

As "q" is a variable - how do I put parentheses around it so that I can reference it in the replace statement?

View 1 Replies View Related

Good Replacement For Select Element?

Jul 9, 2010

I was wondering if anybody knows of a good replacement for the select element. Maybe something using jquery?

View 7 Replies View Related

JQuery :: Image Replacement Not Working?

Oct 4, 2011

I have a big image and several small thumbnails. Every time the user clicks on one of the thumbs, I want the big image to update. This is my code:

Code:
$("#thumbs a").click(function() {
var largePath = $(this).attr("href");
$("#largeImg").attr(src: largePath);

[code]....

Although, the thumb image gets always displayed in an empty window, as if there is no "return false". If I click Back in the browser, I see that the big image has been indeed changed just before the link executed. Why is my "return false" not firing and preventing the browser from following the link?

View 3 Replies View Related







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