This function accepts a url which then is opened by the window.open(). How can I get this window to be full size or maximized? Thanks a lot.
<script language="javascript">
function openPop(url);
{
window.open(url);
}
</script>
I am trying to update the parent window by closing the child window. It gives me a permission denied error when the button is clicked.
<script>
window.opener.location.reload();
window.opener.focus();
</script>
I am trying to close the current window and reload the opener window. When the function performs I receive an error: permission denied. What would be causing this? Any help is appreciated.
This is what I have but it still opens in a maximized view. It is almost as if the statement is terminated after the file name is opened. This is an external js that I am calling from an asp page.
Sub openDocument(file)
Set oShell = CreateObject("Wscript.Shell")
oShell.Run Chr(34) & file...
I was still getting the error message. I just figured out my problem. When inserting the script within the page I needed to add the <% %> tags around the script and this seemed to make the script functional. When using the external.js there was no need for them. Would this make sense?
Nope, that didn't work. Maybe I misstated my question. I need to use this exact code(if possible). The only problem is when I place the Response.Write(""); and include the script inside these the error occurs.
Here is the code I need to replace but using Response.Write commands. It works fine as an external file but when entered into the ASP then it gives me errors. What do I need to do? Thanks.
Sub openDocument(file)
Set oShell = CreateObject("Wscript.Shell")
oShell.Run chr(34) & file &...
Thanks PH, it works beautifully. Just wondering what the Chr(34) & actually does. Also I am running other calls that run this sub that pass file names with 0 spaces in them. Will this effect those filenames opening at all? thanks again!
Below is my code. It works fine when I pass a file in without any spaces in the name; however, when a filename has a space in it, it quits reading the filename at the space and never executes. I could I pass the filename in so it reads the space as part of the filename. It is passed using a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.