Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 4th, 2007, 11:03 AM
Registered User
 
Join Date: Dec 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Popup window from powerpoint

Hi all-
I am a beginner programmer- and have been working on this one project for a few months- I am starting to think it cant be done..

Scenrio..
I have an org chart in powerpoint. I was asked to collect everyone pics and make little pop up boxes w/ thier phone book info. The phone book table is in oracle. I create a little popup that gets the images and phone info- they work fine.
To GET those links to powerpoint.. I created 'a redirect' page. That is what i 'hyperlink' too off the powerpoint.
The powerpoint was saved as HTML.

The Problem....
I click on the powerpoint hyperlink.... the redirect pulls up my little pop.aspx page.. and you hit close window- and i loose the power point doc (that has been saved as HTML)because the redirect must close it out.
I dont know how to get it back

The Code...

Here is my Redirect javascript..
<script language="javascript" type="text/javascript">
<!--
newwindow=null;
function popitup(url) {

       newwindow=window.open(url,'name','toolbar=no','scr ollbar=no');
    if (window.focus) {newwindow.focus()}
    newwindow.moveTo(600,0)
        //self.close();
        return false;
}
// -->
</script>
<script language="JavaScript" type="text/javascript">
<!--close the window without that popup ask user window to confirm
  window.opener = self;
  window.close();
// -->
</script>

and it runs off <body on load...>


Any help or suggestions... and if I need to provide more info- please let me know

Thanks
 
Old June 8th, 2007, 12:29 PM
Registered User
 
Join Date: Dec 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I wanted to reply to myself... because I solved it and I have spent months on this. In case anyone wants to know...

When you save a powerpoint document as an HTM file, there are other files that are created w/ it. In my case there were files created that were called Slide007.htm. Within these files was the javascript I was looking for. It was set to Target="_parent" . I changed it to _blank and my problem was resolved!
:-)
This web site helped me find the answer
http://pptfaq.com/index.html#name_WE...our_PowerPoint

Also, if you have MORE then one slide in your PPT document, if you make a change and save it as a webpage again.. all that javascript that you changed.. gets OVERWRITTEN!!! Thank god for find a replace. But if you just make a change on ONE slide, you can save it as a single web page (.mht or mhtml) and your code does not get overwritten.



ASP Beginner....





Similar Threads
Thread Thread Starter Forum Replies Last Post
XmlHttp in popup window Guy g. Ajax 1 December 12th, 2007 03:56 AM
Centering Popup window & Blur Parent window jkusmanto Javascript How-To 0 May 25th, 2007 03:19 AM
get popup window value without refresh qadeerahmad General .NET 6 August 4th, 2006 10:49 AM
Popup window from Javascript arnabghosh Javascript 3 March 1st, 2006 01:09 AM
popup window sankar Pro VB 6 0 July 29th, 2003 01:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.