swiftlysue
06-02-2009, 05:53 PM
Hi,
I'm new to Javascript and trying to solve what I hope is an easy problem. In my html source, I have <a> link which opens a pop up window with Javascript. In that window, I have an html form that submits to a child html window, *BUT* what I need that link to do is submit to myself (the pop up window). Then, the new rendering of this popup window should allow to either close this popup (via <a> link) and end up on the original parent html page with that original <a> link, or submit another form again within the popup (stay in the popup).
Here's my link on the parent page:
<a href="#" style="text-decoration:none" onclick="displayMessage('Intranet_IE/RepMeetings.html?
TheUName=[Uname]&FirmID=[FirmID]&UserID=[UserID]&_ClientID=[_ClientID]&popTitle=Post%20A%20New%20Meeting');return false">
<font size="2" face="Arial, Helvetica, sans-serif" color="#339933">post a new meeting</font></a>
Here's my display message function:
function displayMessage(url)
{
messageObj.setSource(url);
messageObj.setCssClassMessageBox(false);
messageObj.setSize(400,400);
messageObj.setShadowDivVisible(true); // Enable shadow for these boxes
messageObj.display();
}
Here's the form tag:
<form method="post" action="repmeetings.html">
But I want this ^^^ to not goto a new html window, but STAY in the popup window.
Thanks,
Suzanne
I'm new to Javascript and trying to solve what I hope is an easy problem. In my html source, I have <a> link which opens a pop up window with Javascript. In that window, I have an html form that submits to a child html window, *BUT* what I need that link to do is submit to myself (the pop up window). Then, the new rendering of this popup window should allow to either close this popup (via <a> link) and end up on the original parent html page with that original <a> link, or submit another form again within the popup (stay in the popup).
Here's my link on the parent page:
<a href="#" style="text-decoration:none" onclick="displayMessage('Intranet_IE/RepMeetings.html?
TheUName=[Uname]&FirmID=[FirmID]&UserID=[UserID]&_ClientID=[_ClientID]&popTitle=Post%20A%20New%20Meeting');return false">
<font size="2" face="Arial, Helvetica, sans-serif" color="#339933">post a new meeting</font></a>
Here's my display message function:
function displayMessage(url)
{
messageObj.setSource(url);
messageObj.setCssClassMessageBox(false);
messageObj.setSize(400,400);
messageObj.setShadowDivVisible(true); // Enable shadow for these boxes
messageObj.display();
}
Here's the form tag:
<form method="post" action="repmeetings.html">
But I want this ^^^ to not goto a new html window, but STAY in the popup window.
Thanks,
Suzanne