GAUTAM
asked on
Problem with invocation of a single instance of a jsp page
Hi experts...
Lets say that i have a link and when i click that link i go into that jsp page.
But when i click that link again another instance of that page is got when the previous page is already present.Now there a two instances of the same jsp page.
How can i restrict that link to invoke only a single instance of that jsp page???
Please help...
Lets say that i have a link and when i click that link i go into that jsp page.
But when i click that link again another instance of that page is got when the previous page is already present.Now there a two instances of the same jsp page.
How can i restrict that link to invoke only a single instance of that jsp page???
Please help...
if you actually want it to open a new window then give it a name instead
eg. target="mywindow"
eg. target="mywindow"
Check ur windows option . you will set as open in new window !
ASKER
@objects & @dravidnsr:Currently the jsp page is opeaned by the code
<a href="javascript:openInter nalReports ('defaultI nternal.js p');"></a>
I want the jsp page to be open in a anew jsp page but only a single instance of it.
Please help...
<a href="javascript:openInter
I want the jsp page to be open in a anew jsp page but only a single instance of it.
Please help...
problem looks like its in your javascript
ASKER
@objects:
function openInternalReports( pLoc )
{
window.open(pLoc, '_blank', 'height=800,width=900,resi zable=1,me nubar=0,to olbar=0');
}
This is my javascript function opeaning that jsp page.
Please help...
function openInternalReports( pLoc )
{
window.open(pLoc, '_blank', 'height=800,width=900,resi
}
This is my javascript function opeaning that jsp page.
Please help...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
@objects:It worked like a charm.Can you explain the solution.
ASKER
@objects:If any user clicks on it ifor the second time onwards without closing the previously opeaned page I need to display already opeaned.How do i do it???
Please help...
Please help...
> If any user clicks on it ifor the second time onwards without closing the previously opeaned page I need to display already opeaned.How do i do it???
sorry, I don't understand what you mean
sorry, I don't understand what you mean
ASKER
If any user tries to open the jsp page even when an instance of the jsp page is already present
i.e If a user tries to open that jsp page without closing the previously opeaned page.
I need to display a message in an alert like already opeaned.
How do i do it...
Please help...
i.e If a user tries to open that jsp page without closing the previously opeaned page.
I need to display a message in an alert like already opeaned.
How do i do it...
Please help...
not sure you can easily.
What it will currently do is reload the opened page
What it will currently do is reload the opened page
ASKER
@objects:How to prevent it to reload and save the page contents as it is if any changes in the further locations take place.
It would be better if that page would not reload.
Please help...
It would be better if that page would not reload.
Please help...
not sure how you would achieve that
if it does then remove it