Plans - Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist     RegisterRegister  ProfileProfile   Log inLog in
'Close Windows' Dialog Box

 
Post new topic   Reply to topic    Plans - Forum Forum Index » Questions
View previous topic :: View next topic  
Author Message
paulp575



Joined: 30 Jun 2005
Posts: 41
Location: Spokane WA

PostPosted: Mon Oct 16, 2006    Post subject: 'Close Windows' Dialog Box Reply with quote

Acting upon a recommendation of the things that will not be added to Plans, I added a javascript dialog box to close the Event Preview window.

Unfortunately when I click on the 'Close This Window' link, I get the following error in lieu of just closing the window:

Code:
The page you requested, /4x4Calendar/%E2%80%9Djavascript:windows.close();%E2%80%9D does not exist!


Not sure if this is a bug or a 'feature'!!!!

Here's the code I added to plans.template:

Code:
<p align=center><a href=”javascript:windows.close();”>Close This Window</a></p>


Thanks,

Paul
Back to top
View user's profile Send private message Visit poster's website
ctolin



Joined: 08 Feb 2005
Posts: 89
Location: Frozen North of Alaska

PostPosted: Tue Oct 24, 2006    Post subject: Where are you adding the javascript? Reply with quote

Just curious.

Code:
###event calendar details###
</p>
</div>
<p align=center> <A href=”javascript:windows.close();”>Close This Window</A></p>
</event_details>

OR for a close window button add this bit of code after ###event calendar details###
<form>
<div align=”center”><center><p><input type=”button” value=”Close Window”
onClick=”window.close()”></p>
</center></div>
</form>
Back to top
View user's profile Send private message
paulp575



Joined: 30 Jun 2005
Posts: 41
Location: Spokane WA

PostPosted: Tue Oct 24, 2006    Post subject: Re: Where are you adding the javascript? Reply with quote

ctolin wrote:
Just curious.

Code:
###event calendar details###
</p>
</div>
<p align=center> <A href=”javascript:windows.close();”>Close This Window</A></p>
</event_details>

OR for a close window button add this bit of code after ###event calendar details###
<form>
<div align=”center”><center><p><input type=”button” value=”Close Window”
onClick=”window.close()”></p>
</center></div>
</form>


I added it immediately after the line that reads
Code:
###event calendar details###

so that the end of the event details section reads as follows:

Code:
###event calendar details###
    </p>
  </div>
  <p align=center><a href=”javascript:windows.close();”>Close This Window</a></p>
</event_details>
Back to top
View user's profile Send private message Visit poster's website
ctolin



Joined: 08 Feb 2005
Posts: 89
Location: Frozen North of Alaska

PostPosted: Tue Oct 24, 2006    Post subject: Re: Where are you adding the javascript? Reply with quote

paulp575 wrote:
ctolin wrote:
Just curious.

Code:
###event calendar details###
</p>
</div>
<p align=center> <A href=”javascript:windows.close();”>Close This Window</A></p>
</event_details>

OR for a close window button add this bit of code after ###event calendar details###
<form>
<div align=”center”><center><p><input type=”button” value=”Close Window”
onClick=”window.close()”></p>
</center></div>
</form>


I added it immediately after the line that reads
Code:
###event calendar details###

so that the end of the event details section reads as follows:

Code:
###event calendar details###
    </p>
  </div>
  <p align=center><a href=”javascript:windows.close();”>Close This Window</a></p>
</event_details>


This may not be the problem, but from what I see there is no space between the ><a href try putting a space between the two. I could be totally wrong on that. The close window link and close window button work for me.

Edited to add the href.


Last edited by ctolin on Tue Oct 24, 2006; edited 1 time in total
Back to top
View user's profile Send private message
paulp575



Joined: 30 Jun 2005
Posts: 41
Location: Spokane WA

PostPosted: Tue Oct 24, 2006    Post subject: Re: Where are you adding the javascript? Reply with quote

ctolin wrote:
This may not be the problem, but from what I see there is no space between the ><a try putting a space between the two. I could be totally wrong on that. The close window link and close window button work for me.


OK, tired that and it did not work for me using FIrefox v1.5.0.7.

It looks like it can not find page
Code:
%E2%80%9D
. Unfortunately I do not have a cheat sheet to tell me what that page is!

THanks,
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Plans - Forum Forum Index -> Questions All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group / Oranja by Lessthaneric.net