Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-18-2009, 11:44 PM   PM User | #1
cfgovinda
New Coder

 
Join Date: Apr 2009
Posts: 29
Thanks: 1
Thanked 0 Times in 0 Posts
cfgovinda is an unknown quantity at this point
Question is this a quick tweak of the library function? .. or the call to it?

Hi all :-)

I think this is easy for you experts, but for me it is using a library I do not have the skills yet to understand. I imagine just one small parameter needs to be tweaked somewhere in the library function, or else in the call to the function. Can you spot where/what I need here. Please allow me guide you to my question:

go here:

http://vlt.specsimple.com/virtulibra...=1&d=1ymeeting

..ignore the window that popups (WelcometoNewVL.html) when you first land here. You can close that.

On the page we are interested in (virtulibrary.html), under the main graphic, and to the right edge, click the link "post a new meeting". It opens a javascript popup window. In this popup, input "govinda" for the rep name, "12:00 am" for the start time, and "Afternoon Meeting" for the meeting focus. Then click the 'submit your meeting' button. This form action lands us on the "RepMeetings.html" page (the same file as the popup we just submitted from), but what I need is for that form submission to land us on that page *but within* the same popup window we were in before we submitted, *rather than* closing the js popup window and replacing the original "virtulibrary.html" page that let us open that js popup in the first place. Did I make sense? How can I do that?

thanks for looking!
-Govinda

p.s. To save you having to dig for the relevant pieces, see these notes:

--------------------------------

Notes:

the "post a new meeting" link is like this:

Code:
<a href="#" style="text-decoration:none" onclick="displayMessage('Intranet_IE/RepMeetings.html?xxx=[yyy]&aaa=[bbb]&etc.. ');return false">
post a new meeting</a>

--------------------------------

that 'displayMessage' function comes from here, higher up the page:

Code:
<script type="text/javascript">
messageObj = new DHTML_modalMessage();	// We only create one object of this class
messageObj.setShadowOffset(5);	// Large shadow

function displayMessage(url)
{
	
	messageObj.setSource(url);
	messageObj.setCssClassMessageBox(false);
	messageObj.setSize(400,400);
	messageObj.setShadowDivVisible(true);	// Enable shadow for these boxes
	messageObj.display();
}
--------------------------------

'DHTML_modalMessage' seems to come from this code:

Code:
DHTML_modalMessage = function()
{
	var url;								// url of modal message
	var htmlOfModalMessage;					// html of modal message
	
	var divs_transparentDiv;				// Transparent div covering page content
	var divs_content;						// Modal message div.
	var iframe;								// Iframe used in ie
	var layoutCss;							// Name of css file;
	var width;								// Width of message box
	var height;								// Height of message box
	
	var existingBodyOverFlowStyle;			// Existing body overflow css
	var dynContentObj;						// Reference to dynamic content object
	var cssClassOfMessageBox;				// Alternative css class of message box - in case you want a different appearance on one of them
	var shadowDivVisible;					// Shadow div visible ? 
	var shadowOffset; 						// X and Y offset of shadow(pixels from content box)
	var MSIE;
		
	this.url = '';							// Default url is blank
	this.htmlOfModalMessage = '';			// Default message is blank
	this.layoutCss = 'modal-message.css';	// Default CSS file
	this.height = 200;						// Default height of modal message
	this.width = 400;						// Default width of modal message
	this.cssClassOfMessageBox = false;		// Default alternative css class for the message box
	this.shadowDivVisible = true;			// Shadow div is visible by default
	this.shadowOffset = 5;					// Default shadow offset.
	this.MSIE = false;
	if(navigator.userAgent.indexOf('MSIE')>=0) this.MSIE = true;
	
}
which is in this library (if I said this right):
/test/MODAL/js/modal-message.js
cfgovinda is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:00 PM.


Advertisement
Log in to turn off these ads.