Does anyone know how to open a window and have it close by itself? You
may ask why, but here it is. I want to have it open (a php script), run
that script, and then close itself.
I have an application that is a huge AJAX framework app. There appears
to be some interaction between that and the mail sending software I
have. I want to send email with a file attached. The software I am
using for that is htmlMimeMail5 (php5). Since I know the parameters, I
simply want to run that php script outside of AJAX, but I don't want to
leave open windows. A quick blast open, send, close is OK.
I know that window.open opens the window and window.close closes it. 4 1799
sheldonlg wrote on 11 jun 2008 in comp.lang.javas cript:
Does anyone know how to open a window and have it close by itself? You
may ask why, but here it is. I want to have it open (a php script), run
that script, and then close itself.
I have an application that is a huge AJAX framework app. There appears
to be some interaction between that and the mail sending software I
have. I want to send email with a file attached. The software I am
using for that is htmlMimeMail5 (php5). Since I know the parameters, I
simply want to run that php script outside of AJAX, but I don't want to
leave open windows. A quick blast open, send, close is OK.
I know that window.open opens the window and window.close closes it.
Why would you want a window?
You do not need any window to run a server script.
<http://www.jibbering.c om/faq/#FAQ4_34>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
sheldonlg wrote:
Does anyone know how to open a window and have it close by itself? You
may ask why, but here it is. I want to have it open (a php script), run
that script, and then close itself.
Let's say you have a window A.
It could execute a script to open window B which is pointing at your PHP
script.
Once that PHP script is complete, it can serve a simple HTML page, which
includes a Javascript script to close itself.
But, that means that you have 2 windows, running 2 separate scripts. Not
a very elegant solution.
This task seems perfectly suited to AJAX. I'm surprised that you're
having 'interaction' issues between your AJAX framework and a back-end
PHP script.
It seems more likely that your AJAX framework is simply not sending all
the relevant detail to the PHP script...
Evertjan. wrote:
sheldonlg wrote on 11 jun 2008 in comp.lang.javas cript:
>Does anyone know how to open a window and have it close by itself? You may ask why, but here it is. I want to have it open (a php script), run that script, and then close itself.
I have an application that is a huge AJAX framework app. There appears to be some interaction between that and the mail sending software I have. I want to send email with a file attached. The software I am using for that is htmlMimeMail5 (php5). Since I know the parameters, I simply want to run that php script outside of AJAX, but I don't want to leave open windows. A quick blast open, send, close is OK.
I know that window.open opens the window and window.close closes it.
Why would you want a window?
You do not need any window to run a server script.
<http://www.jibbering.c om/faq/#FAQ4_34>
Thanks. That is what I was looking for. I didn't know this about
javascript (still learning js).
"You trigger a server-side script by setting any object's URL. For
example a frame, window, or an Image. An image will also "swallow" the
data sent back by the server, so that they will not be visible anywhere."
Thanks.
Dan Rumney wrote:
sheldonlg wrote:
>Does anyone know how to open a window and have it close by itself? You may ask why, but here it is. I want to have it open (a php script), run that script, and then close itself.
Let's say you have a window A.
It could execute a script to open window B which is pointing at your PHP
script.
Once that PHP script is complete, it can serve a simple HTML page, which
includes a Javascript script to close itself.
But, that means that you have 2 windows, running 2 separate scripts. Not
a very elegant solution.
This task seems perfectly suited to AJAX. I'm surprised that you're
having 'interaction' issues between your AJAX framework and a back-end
PHP script.
It seems more likely that your AJAX framework is simply not sending all
the relevant detail to the PHP script...
The code for the email works fine when used in a straight php script. I
am guessing that it is the interaction. I know I had problems with the
interaction when I wanted to use code to write an Excel file. I got
around that by simply having the generator bypass the black box we use
for handling all the AJAX calls. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Albretch |
last post by:
Hi,
client wants for a window with no toolbars to open (technical and
'esthetical' reasons) after the window, user clicks on, is being
closed.
I told them about security settings in browsers and no cross-browsers
solutions and all of that we know, but they have told me they have
seen that before and how then the annoying pop-up windows work? . . .
|
by: Christopher Benson-Manica |
last post by:
I have the following situation: Page A opens a window named 'foo'.
Page A then reloads itself. Is there a way for the reloaded Page A to
determine whether there is an open window named 'foo', *without*
calling window.open?
--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
|
by: Roger Withnell |
last post by:
I open a new window from the current window to display maps.
Several maps of different sizes can be displayed. The function is given the
size of the map and adjusts the window size accordingly.
If a new window is already open, the new map sizes are ignored and the new
map is is either too small for the existing "new" window or too big, which
is a more serious problem!
I've tried to fix this by closing the new window if it is already...
|
by: ldan |
last post by:
Hi everybody,
I would not consider myself an expert in javascript - but so far
whatever I know, helped me reaching my goals. Recently I started to
experience a lot of javascript errors related to opening up a popup
window in an application I wrote.
The error messages are quite diverse: "Object doesn't support this
property or method" or "Unspecified error." or "The callee (server ) is not available and disappeared; all connections
are...
|
by: Csaba Gabor |
last post by:
Up until a few weeks ago, javascript code like
window.open("http://mydomain.com", "windowName");
would always bring my new or reused window to the top, with focus.
Lately, Firefox (Deer park alpha 2) only brings it to the top if the
window is new. If it's being reused, the window does not come to
the foreground (with IE 6 it does).
Is there a new way in Mozilla/Firefox that I can ensure that this
| |
by: Buddha Pest |
last post by:
The 1st window opens the 2nd window. The 2nd window opens the 3rd window.
From the 3rd window, how do I close the 3rd and 2nd windows then change the
URL of the 1st window? Thanks.
|
by: Dave |
last post by:
For some reason, the below lines only work on select machines. All
machines are running IE6. IE SP's and OS's vary. When it doesn't
work, default.aspx (the page that this code is in) opens and closes.
That's all you see. TSReminder.aspx doesn't even open. I'm not sure
what's going on here.
Response.Write("<script...
|
by: Socrates |
last post by:
Hi - Have tried for half and hour to get this script to work:
I am trying to close the parent window while opening a centred new
child window
I would be grateful if someone could correct the script below which
does open a new window, but not in a centred position.
Here is the link to the url:
|
by: Toccoa |
last post by:
After considerable googling - I mean searching with Google(r) - I
could not find javascript on a button or <a href=... to close a
window in the latest versions of IE and FireFox.
There seemed to be two techniques for earlier versions. But the
window.opener='' ;window.close();
and the
window.open('','_parent','') ;window.close();
techniques do not work for me. I.e., I still get confirmation message
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |