Sleep() Function - ShowModalDialog In Firefox?

Jan 4, 2006

From some examples, I created a sleep() function which can put a javascript into sleep while it is executing. It is using the IE-only function showModalDialog. Does anybody know a function which does the same in Firefox and other browsers, or a function which also stops the execution of a script temporary?

This is what I got so far:

View 2 Replies


ADVERTISEMENT

Sleep Function In Javascript

Aug 8, 2006

Please tell me about sleep function in javascript

View 11 Replies View Related

Finding A Sleep Functions In JS?

Mar 31, 2009

I'm looking for a sleep function in JS. An event is triggered on mouse-out. But I want the action to kick off x seconds AFTER the event. So, perhaps I'm looking for a "sleep" function in the event function?

View 2 Replies View Related

Sleep Or Delay Not Working In IE?

Mar 19, 2010

I like to have a sleep or delay function in javascript.The Prototype library has a delay function.It is working well in Firefox or Chrome but not IE.

Code:

function sleep()
{
}
sleep.delay(0.1);

View 1 Replies View Related

Is There A Sleep Functionality Or Similar Solution In Js

Jul 20, 2005

We have to develop a small engine which the client uses. It supposed
to work like this. Our engine resides in a frame (frameA) which will
be loaded only once and it provides set of functions. The client can
call these functions. We inturn should get the values from the server
or set the values in the server and return with the values. The way we
are planning to implement is that we will have have another frame
(frameB hidden) and submit it whenever the client (frameClient) calls
our function and wait till the page reloads and return with the value
( set in the reloaded page by the server). The problem we face now is
that we don't have any sleep functionality in javascript ( being event
driven) and if we have a loop waiting for the reply, it will consume
the cpu cycles and the the frameB wont load.

View 3 Replies View Related

Sleep Or Delay Not Working In IE 7 On Windows XP

Mar 19, 2010

I like to have a sleep or delay function in javascript. The Prototype library 1.6.1 has a delay function. It is working well in Firefox or Chrome but not IE 7 on windows XP. (I cannot use newer version of windows).

Code:
function sleep()
{
}
sleep.delay(0.1);

View 1 Replies View Related

Refresh ShowModalDialog

Jul 23, 2005

i am trying to refresh a ShowModalDialog that contains information. I have
search about it but it never seems to be possible. As anybody got some
info., way, idea, documentation about a ShowModalDialog refresh.

View 2 Replies View Related

ShowModalDialog(...) Problem

Sep 2, 2005

window.showModalDialog('myPage.xml','','help:No;status:No;resizable:Yes');

This code for some reason does not work.
If instead of myPage.xml I give it a URL or HTML page it works fine but not with xml page. Why?

View 6 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

ShowModalDialog - Window Size

Sep 13, 2006

Its the first time Ive used the showModalDialog function and was wondering how best to size the dialog to compensate for the window borders.

My command looks a bit like this:

500px; dialogWidth: 700px; dialogTop: 150px; dialogLeft: 150px; edge: Raised; center: No; help: No; scroll: No; status: Yes;")'

While I set the width and height to 700 and 500 respectively, the internal size of the window.document object comes out to be 694 and 448.

View 9 Replies View Related

Fixed: Window.showModalDialog And Popup Blockers

Aug 15, 2007

I created a little script on a section of a website that password protects the page. It gives a user 3 tries to enter the correct password and then if they get it wrong, it moves them to another page that says they don't have access.

Recently, I upgraded it to do a window.showModalDialog instead of just using a plain javascript prompt as they don't look as nice and clear as a customized JSP could.

However, now that we've sent that upgrade out, we're finding that some of our users are not seeing the window.showModalDialog and it just loads the page (not the no access page).

The script is below. When I look through it, it looks to me that a user with an active popup blocker should just be sent straight to the no_access.jsp file, but that isn't what's happening. Code:

View 2 Replies View Related

Call A Method In Parent Object From A ShowModalDialog?

Oct 13, 2011

I have defined a method in an iframe named as refresh1().In the iframe we are showing records in a table.on clicking a record of table or you can say row a showmodal Dialog object will open which shows the info of clicked record.I want to call refresh1() method onclick of save button whic is defined in modal dialog.I have triedparent.window.dialogArguments.refresh1() but it is not workin.

View 2 Replies View Related

ShowModalDialog And Loading DOMDocument Synchronously Causing Error.

Jul 23, 2005

I am using the following code in the button_click event in xxxxx.htm
page which is URL for the showModalDialog window.

function btnAddComment_Onclick()
{
var user_info = new ActiveXObject("Msxml2.DOMDocument");
user_info.async = false; *****causing the error.
user_info.load("../xml/userinfo.aspx");
}

user_info.asyc = false is throwing the error (Object doesnt support the
method or property. Do you want to debug?) This is happening only on
the production region and after I choose not to debug and click on the
button once again it is working fine.

View 2 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

Target Firefox Css In Function?

Apr 12, 2011

we are incorporating a js calender into a page, as usually, there is a issue with calender clip location, the css of calender is in javascript, i have tried targeting firefox enough with tags like

(firefox, -moz-binding:, load-mozilla-css, ff4)

in the following code snippet

if (browser.dom || browser.firefox){
document.writeln('<style>');
document.writeln('@-moz-document url-prefix()');

[Code].....

View 1 Replies View Related

JQuery :: Function Works In IE 6 But Not In Firefox Or IE 7&8

May 10, 2010

I am not really sure where to start with this as my function works perfect in IE 6. However when I select one of my categories and hit submit in Firefox or IE7 or 8 nothing happens. No error message. Just nothing. How can I get this working for firefox and IE7/8?

[CODE]
<script language="JavaScript">
var categories=[];
var categorieslist=[];

[Code].....

View 2 Replies View Related

JQuery :: Function Not Working In Firefox

May 5, 2011

I'm having a hard time getting this function to work in firefox. Works fine in Chrome.

View 2 Replies View Related

Function Is Undefined In Firefox But Works In IE?

Mar 24, 2010

I have searched and tried to fix this no idea. it keeps saying my funtion is undefined in firefox here is the function:

Code:
<script type="text/javascript">
function getFlashMovieObject(movieName)

[code]....

View 3 Replies View Related

JS Function Defined For Safari But Not For Firefox?

Jul 9, 2009

when you click the link from the iframe it doesn't work at all in firefox...says the function is not defined.This is working like a charm in Safari ---I have tried defining the function in a dozen different places -- INCLUDING the index.php header and the content item there on the page.Also in the google.blogger header --- NONE work in safari as consistently as what I have got here.I basically hacked a google.blogger widget and wanted to use a submit-form instead of the get-url variables to load the page of the website wth the blogger iframed into the site.

View 2 Replies View Related

Firefox Not Recognizing OnClick Function

Dec 26, 2010

I've a mapped image and jquery in the following code, works fine with Chrome and Safari, but Firefox doesn't recognize the onclick function.
<img id="menu" src="/imgs/home/menuOK.png" border="0" align="left" usemap="Map_Menu"/>
<map name="Map_Menu" id="Map">
<area shape="poly" coords="16,189,103,155,99,149,5,169" href="#" onclick="$('#contenuto').html('<iframe src=bio.php frameborder=no width=100% height=100% scrolling=no id=icontent><p>Your browser does not support iframes.</p></iframe>');" alt="Bio"/>
<area shape="poly" coords="112,111,61,29,44,43,107,115" href="#" onClick="$('#contenuto').html('<iframe src=video.php frameborder=no width=100% height=100% scrolling=no id=icontent><p>Your browser does not support iframes.</p></iframe>');" alt="Video"/>
<area shape="poly" coords="105,120,16,77,7,99,102,126" href="#" onClick="$('#contenuto').html('<iframe src=saundtrack.php frameborder=no width=100% height=100% scrolling=no id=icontent><p>Your browser does not support iframes.</p></iframe>');" alt="Saundtrack"/>
<area shape="poly" coords="101,134,4,125,5,150,99,142" href="#" onClick="$('#contenuto').html('<iframe src=disco.php frameborder=no width=100% height=100% scrolling=no id=icontent><p>Your browser does not support iframes.</p></iframe>');" alt="Disco"/>
</map>

View 2 Replies View Related

Firefox: Calling A Javascript Function

Nov 9, 2004

I have this:
Code:
<a href="javascript:employeeSearch();" class="textbutton">Lookup</a>
and it doesn't seem to be working with firefox? does this look right? in IE it works fine.

View 4 Replies View Related

Function Call In Firefox In OnLoad Not Executing

Jul 23, 2005

I made a function call on the form onLoad event and it is ignored
in firefox. I place an alert box just b4 the fucntion and it is called
correctly by the browser but it stops when it enters the fucntion.
This work as it is intended in IE. How do I make a fucntion call in
Firefox?

View 2 Replies View Related

JQuery :: Click Function Not Working On Firefox?

Dec 5, 2010

I'm working on a website and using jquery quite a lot.For a first level of coding, I'm using Chrome and everything works just fine.But I'm having a first bug when using Firefox.Indeed, I create a button with a click function and when I display my page on Firefox, the click doesn't fire any action like it does on Chrome.Here is the peace of code:HTML declaration of the button:

<
div
id

[code]....

View 1 Replies View Related

JQuery :: Function With Onclick Event In Firefox?

Apr 26, 2009

I can't fire my function with onclick event in Firefox.My little piece of code works perfect inIE. but in firefox it just doesn't work and no error in firebug by theway.I'm using Firefox 3.0.9This is the code:

<script type="text/javascript">
function del(mesId) {
$(document).ready(function() {

[code]...

View 1 Replies View Related

Firefox Extension Trigger Twice With Load Function

Nov 18, 2010

I have started to work on an extension that triggers when the page has been loaded. The problem I have is that the event is triggered twice. Its almost as if two threads are created when the users navigates or browses web sites. Why does this happen and how could this be changed to only trigger once. I have attached the files. Here is the browser.xul file

[Code]...

View 1 Replies View Related

Show/hide Function Not Working In Firefox

Feb 2, 2011

Getting my show/hide function to work in all browsers.

The function below works everywhere but Firefox.

Can someone see why it's not working?

My javascript function:

View 6 Replies View Related







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