Click to See Complete Forum and Search --> : Help..........?its emergency


gan54
03-25-2003, 06:04 AM
hi friends i m very happy to join webdeveloper's forum
i m trying following


<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function abc(regid)
{

myWindow=window.open("","mynewwindow","resizable=no,toolbar=0,left=20,top=20,screenX=20,screenY=20,height=500,width=600,scrollbars=Yes,hotk eys=No,titlebar=No,alwaysraised=Yes");
document.forms["form1"].target = "mynewwindow";
document.forms["form1"].action = "window.asp"
document.forms["form1"].method="post";
document.forms["form1"].submit();
myWindow.focus();
}

//-->
</SCRIPT>

i want to pass

<a href="javascript:onclick=abc('<%=rs("id")%>')" ><%= rs("name")%></a>
how can i retrive value of regid in window.asp
(eighter using hidden fields or different)

cheers
gan

gan54
03-25-2003, 12:15 PM
hi dave
the explanation as follows

"this is an asp page in which i have retrived all the name and there corrosponding id from the dabase of user"
eg.
----database conn goes here-------
.<a href="javascript:onclick=abc('<%=rs("id")%>')" ><%= rs("name")%>

"i want to show profile of clicked name in seprate window,obiviously it has uiniq id.i dont want to use window.asp?id=+regid coz it will remain in users browsers addbar and user can go anytime for window.asp which open full and i dont want this.is there any way to retrive the value of regid in window.asp.using hidden field or something."

function abc(regid)
{

myWindow=window.open("","mynewwindow","resizable=no,toolbar=0,left=20,top=20,screenX=20,screenY=20,height=500,width=600,scrollbars=Yes,hotk eys=No,titlebar=No,alwaysraised=Yes");
document.forms["form1"].target = "mynewwindow";
document.forms["form1"].action = "window.asp"
document.forms["form1"].method="post";
document.forms["form1"].submit();
myWindow.focus();
}

" by using request method in window.asp user can not able to go window.asp"

[ignore output eg.2,2,2,2]

gan

gan54
03-26-2003, 03:30 AM
the can get id coz.it will remain in the addressbar of browser
due to using quiry string.therefor i want to use request method

gan54
03-26-2003, 03:40 AM
do u know how to close window using ..oncontextmenu();

<SCRIPT LANGUAGE=javascript FOR=document EVENT=oncontextmenu>
<!--
document_oncontextmenu();
//-->
</SCRIPT>
function document_oncontextmenu()
{
window.close()
}

IT DOSENT WORK