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
ADVERTISEMENT
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
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
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
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
View Related
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
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
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
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
Jan 2, 2009
I have this code in a page that appears in my iframe if requested from parent:
<script type="text/javascript">
parent.rrr();
</script>
The parent code is:
function rrr() {
javascript:location.reload(true);
}
So, the person clicks a link from the parent, it does a php process in a hidden iframe, which then tells the parent page to refresh. The only problem is that it puts Firefox in a constant loop of refreshing. IE and Chrome work fine. They refresh once and stop.
Though the src code opens the iframe like so: <iframe src="" style="display:none; height:1px;" name="hdplus" id="hdplus"></iframe> Firefox seems to refresh the page with the memory of the child page being in the iframe, constantly looping the child request to refresh the parent.
Why won't Firefox just accept that no page should load in the iframe, as stated in the code? I need to stop this loop, which means I need to get firefox to reset the iframe as it reloads the page.
View 2 Replies
View Related
Aug 11, 2009
How to refresh DIV , without refresh entire page,Am having four DIV ,
DIV1,DIV2,DIV3,DIV4
I want to refresh only DIV! without affecting the DIV3,DIV4 ,
View 8 Replies
View Related
Apr 13, 2011
I have the below code:
<script type="text/javascript">
function loadQuickMessageCheck(File,ID){
var xmlhttp;
[code]....
View 2 Replies
View Related
Apr 15, 2010
So my problem is that i can't send form data in FF without page refresh (though in IE7-8 everything works smoothly).
My code fragments:
View 1 Replies
View Related
Aug 31, 2005
I have a situation where I need to be able to refresh a windows parent
parent. I can not seem to use anything like
window.opener.parent.location.reload()
as by the time I execute the statement the parent has closed and all
connections closed and I am not even sure that would work!
Is there a way to reference a window to refresh it other than by using
window.parent or window.opener.
View 1 Replies
View Related
Jan 31, 2006
i would like to refresh an image source, which is alreadz stored in user's cache. one waz would be append some ?time at the end of img's url, bur next time user come accross the picture, the old pic from the old cache would've been loaded..so, i need to force somehow the browser to send a request (it does not send requests for images stored in cache by default)... like f5 (or refresh button)
View 7 Replies
View Related
Mar 19, 2006
page1 opens page2 in a new window. if the user returns to page1 and makes changes they suppose to be shown in page2 (that is still opened) . is there any way to refresh page2 if page1 was it's opener?
View 4 Replies
View Related
Jan 27, 2002
I have 1 page and this page has button when cliek this button, it pop up new window, I use image instead of button.
The problem is when new window pop up, old windows refresh itself 1 time, why it refresh? how to prevent?
PHP Code:
<input type=image src='emotion.gif' onclick='exmp=window.open("smile.php","isag","toolbar=0, menubar=0, scrollbars=yes, resizable=yes");'>
View 2 Replies
View Related
Jul 23, 2005
I'm writing a script that proactively validates data input.
Under IE, throwing up an alert seems to interfere with the behavior of
radio buttons. In other words, if changing the value of the radio button
field fires the validation, the radio button either isn't set or isn't
displayed correctly after the popup is dismissed.
If I stick the error messages in a non-editable textarea field, the
textarea field doesn't get refreshed.
I tried "focus" - didn't help.
Mozilla works perfectly of course.
View 1 Replies
View Related
Jul 23, 2005
I'm building a suite of free php applications to create virtual worlds.
My problem is i can't get my file to refresh. Can this be done with
javascript? I would like to have the display and the form be on a single
page..unless this can be done with frames.
The sample application contains 2 files:
a)The php file (with input controls and the embedded world)
b)The embedded world (text file)
1. The php file accepts input from the user
2. The user hits Submit which creates the text file for the world
this works - the text file is created with changes. next the page
should refresh itself and show the world based on the user's input.
Right now steps 1 and 2 work perfectly in the sense that the text file
for the world does get created. however the page will still show the
older version of the text file.
To get the page to refresh properly, i have to hit the reload button on
the browser...this gives me the "this page can't be refreshed without
sending..." alert...but it then refreshes and shows the changes.
the code:
View 1 Replies
View Related
Nov 23, 2005
How can I refresh a page in a separate frame. For example, when someone logs in in the main frmae, I want to refresh another frame to display info differently.
View 4 Replies
View Related
Mar 2, 2006
I have a page that has mulitple iframes each of which grabs a web page.
he problem is I have no control over these web pages and some of them
have a refresh if they are not the top browser, probably some code like
this:
if (top.location != self.location) {
top.location = self.location.href;
}
Is there anyway I can prevent these occasional pges from taking control
oer my main page?
View 3 Replies
View Related
Oct 4, 2006
I have a web page with four frames in it. If,
within one of the frames, i use a javascript
function to do something like:
window.location = "app.cgi"
Only the frame that contains the JS will refresh.
I need to refresh all four frames from within one.
How do I do that??
View 1 Replies
View Related
May 23, 2007
<img src=...Onlick = "if (!(this.temp>=640)) { this.temp=640; } if
(this.width>=640) { xyz=this.width; this.width=this.temp;
this.temp=xyz; }">
Inline script....
I got the above code from internet and it is used to change the width
of the IMG element. This not only "changes" the width but also
"refreshes" the page so that I can see the change in width.
Function script...
I moved above inline script to a JS file and it is as follows. Now,
'width' of the IMG element seem to change but display does not get
refreshed; and if I add a window.alert( ); then I see screen
refreshing Code:
View 2 Replies
View Related
Jun 2, 2007
I have a page where I set document.location.href
but the previous copy of that page is in the cache,
so Firefox is not refreshing its contents, which is
what I want it to do. Is there a way to get this
result?
View 2 Replies
View Related
Sep 18, 2009
Well first off all I would appricate any help that you could give me because I've been looking all over the internet for the solution without any result. So off to my problem, I made this text-based online game and let's say the user does a crime, he did this crime 17:04:30 and has to wait till 17:06:30 before he can do a crime again (this is printed in the MySQL database). Getting the value from the database and changing it into the right format mm:ss is no problem. The problem comes to when its about refreshing. I've tried meta refresh and javascript location.refresh with good results, i sat the timer to 1 sec and it refreshed The problem comes to when it refresh the mouse cursor and the tab (in firefox and chrome) gets that look, like when u refresh a page normally u can see an hourglass and all that. Is there anyway to disable that? And i think it really slows the browser down after a while (because after like 30 min or more firefox used 600 mb of my RAM).
[Code]...
View 3 Replies
View Related
Mar 5, 2010
I'm finishing up an e-commerce website, and I can't quite figure out why the shopping cart feature is acting all screwy in Internet Explorer. It works fine in Firefox, but in IE, when you add a product to the cart it doesn't display the little pop-up notification, and when you click on the "my cart" at the top right the product quantities are incorrect about 70% of the time. For some reason IE keeps doubling the quantities; I think one of the scripts may be double refreshing the page I just can't figure out where.
View 3 Replies
View Related