473,609 Members | 1,851 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How could I use the $.prettyPhoto.c lose(); in a php page?

1 New Member
I use the prettyPhoto.
I open an External page B(iframe) in the page A. Then I want to click an button and submit a form to a .php page C.
How can I close the page B and return to the page A just like I click on the black background around the iframe, after I submit the form in the page B?
May 10 '13 #1
1 2422
acoder
16,027 Recognized Expert Moderator MVP
You'll need to use top or parent (or window. in front of either) to access the parent page. Call this onload from the PHP page C, e.g.
Expand|Select|Wrap|Line Numbers
  1. top.$.prettyPhoto.close();
May 12 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1331
by: KLomax | last post by:
???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????..?????????????????????????????????????????????????...
7
5169
by: Jenny | last post by:
I open page 1 and page 2 from main page. I want to close page 2 from page 1 after I finish processing some work in page 1. Does anyone know how to do that? Thanks, Jenny
0
1583
by: Dmitry Klymenko | last post by:
Please see the Socket.Close page in MSDN. There are such line in Remarks: "The Close method closes the the remote host connection and releases all managed and unmanaged resources associated with the Socket. Upon closing, the Connected property is set to false." Please note the last (bold) sentence. And see the example (on same page): The following example closes a Socket.
5
10452
by: Steve | last post by:
Is it possible to close a page using Javascript that will close *after* the page is loaded (it's an ASP page that performs an action).
9
2276
by: Daniel Walzenbach | last post by:
Hi I am faced with the following problem: I have a page (let’s call this page page1.aspx) containing some TextBoxes and a hyperlink which opens another page (let’s call this page page2.aspx) as a popup using either window.open or window.showModalDialog. Since I want to warn the users of my application when they try to close page1.aspx and have changed the values in the meantime I thought about using the “onbeforeunload” event of the...
5
4008
by: - Steve - | last post by:
It doesn't seem like it should be that hard but how do I close a page?
1
1764
by: ilario santamaria | last post by:
hello loading a page in webbroser, try a link and click, you open the pagita everything ok Private Sub caricapagina(ByVal nomesito As String) Try WebBrowser1.Navigate(New Uri(nomesito))
1
1956
by: chuuburg | last post by:
Hi, can anyone help me with this. I have 2 pages, Page 1 is the main page while Page 2 is a flash page. When i close Page 2, I would like page 1 to be refreshed/re-retrieve from database because i need the data in the main page to be updated as data in the database will be changed when i am going through the flash pages. Page2 is opened when a link in Page1 is clicked i am using visual studio 2008 VB language Thanks
0
2006
by: Pietro Malerba | last post by:
Hello! I'm testing quicksand script (http://razorjack.net/quicksand/) to filter some image. I had implemented the script with some image (http://www.hostingcubo.com/quicktest.php) 
As you can see there are circle, pentagon and triagle with different color. 
The filter are working fine tnx to this inline script: <script type="text/javascript" charset="utf-8"> (function($) { $.fn.sorted = function(customOptions) { var...
0
8074
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,...
0
8571
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8220
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,...
0
6997
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6056
isladogs
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...
0
5509
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();...
0
4017
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4080
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.