-
Open new window with no toolbar and menubar
On list_all.asp page,
<a href="list_note.asp?v_GetNoteFileID=<%=objRS("FileID")%>"><%=objRS("FileName")%></a>
When click on the above link, the v_GetNoteFileID is passed to the list_note.asp
page.
On list_note.asp page, I want:
Open a new window with:
"toolbar=0,status=no,resizable=0,menubar=0,scrollbars=1,width=500,height=500,TOP=50,LEFT=2 00"
That is: no toolbar, no menubar, yes scrollbars.
to show the Note.
Can anyone help?
-
Re: Open new window with no toolbar and menubar
Make the link call a client-side JavaScript function that opens the new
window with the options you want, setting the URL parameter to the
list_note.asp page, e.g. <untested code>
<a
href="JavaScript:myOpenWindowFunction('<%=objRS("FileID")%>')"><%=objRS("Fil
eName")%></a>
<script type="text/javascript" language="javascript">
function myOpenWindowFunction(someParam) {
//call the window.open method here.
}
</script>
"WooGor" <zhang5gor@yahoo.com> wrote in message
news:3c0bd5dc$1@147.208.176.211...
>
> On list_all.asp page,
>
> <a
href="list_note.asp?v_GetNoteFileID=<%=objRS("FileID")%>"><%=objRS("FileName
")%></a>
>
> When click on the above link, the v_GetNoteFileID is passed to the
list_note.asp
> page.
>
> On list_note.asp page, I want:
>
> Open a new window with:
>
"toolbar=0,status=no,resizable=0,menubar=0,scrollbars=1,width=500,height=500
,TOP=50,LEFT=200"
>
> That is: no toolbar, no menubar, yes scrollbars.
>
> to show the Note.
>
>
> Can anyone help?
>
>
-
Re: Open new window with no toolbar and menubar
Hello Russell Jones,
Thanks for your response.
Here is what I have tried.
On list_all.asp, the calling page:
<Script Language=”Javascript”>
function LoadNote(v_GetNoteFileID){ Win=window.open("list_note.asp","Win","scrollbars=yes,toolbar=no,status=no,location=no,dir ectories=no,width=600,height=550,top=50,left=200");
Win.focus();}
</Script>
//some other codes here.
‘link to the list_note.asp page and pass the v_GetNoteFileID which equal
to objRS(“FileID”)
<a href="Javascript:LoadNote('<%=objRS("FileID")%>')"><%=objRS(“FileName”)%></a>
On the list_note.asp, the called page:
Dim a_GetNoteFileID
'a_GetNoteFileID = 10 ‘I used this line to test, it worked find
a_GetNoteFileID= Request("v_GetNoteFileID")
Session("a_GetNoteFileID") = a_GetNoteFileID
//some conn and rs codes are here
strSQL = "Select * From dbo.v_ActiveDir_DOC Where FileID='" & Session("a_GetNoteFileID")
& "'"
objRS.Open strSQL
Based on the above codes, the results were:
=================
Error Type:
ADODB.Field (0x80020009)
Either BOF or EOF is True, or the current record has been deleted. Requested
operation requires a current record.
=================
Question:
How to pass the v_GetNoteFileID from one asp to the other via the above Javascripts?
I have no problem with the normal asp to asp DIRECTLY passing the v_GetNoteFileIDs,
however, this caused me spending sometime and still could not get it.
Best regards,
WooGor
"Russell Jones" <arj1@northstate.net> wrote:
>Make the link call a client-side JavaScript function that opens the new
>window with the options you want, setting the URL parameter to the
>list_note.asp page, e.g. <untested code>
>
><a
>href="JavaScript:myOpenWindowFunction('<%=objRS("FileID")%>')"><%=objRS("Fil
>eName")%></a>
>
><script type="text/javascript" language="javascript">
> function myOpenWindowFunction(someParam) {
> //call the window.open method here.
> }
></script>
>
>"WooGor" <zhang5gor@yahoo.com> wrote in message
>news:3c0bd5dc$1@147.208.176.211...
>>
>> On list_all.asp page,
>>
>> <a
>href="list_note.asp?v_GetNoteFileID=<%=objRS("FileID")%>"><%=objRS("FileName
>")%></a>
>>
>> When click on the above link, the v_GetNoteFileID is passed to the
>list_note.asp
>> page.
>>
>> On list_note.asp page, I want:
>>
>> Open a new window with:
>>
>"toolbar=0,status=no,resizable=0,menubar=0,scrollbars=1,width=500,height=500
>,TOP=50,LEFT=200"
>>
>> That is: no toolbar, no menubar, yes scrollbars.
>>
>> to show the Note.
>>
>>
>> Can anyone help?
>>
>>
>
>
-
Re: Open new window with no toolbar and menubar
You're missing the query string parameter you said you wanted to send in
your original note.
Add the parameter you pass to the function to the end of the URL parameter
in the window.open call.
"WooGor" <zhang5gor@yahoo.com> wrote in message
news:3c0cd365$1@147.208.176.211...
>
> Hello Russell Jones,
>
> Thanks for your response.
>
> Here is what I have tried.
>
> On list_all.asp, the calling page:
>
> <Script Language="Javascript">
> function LoadNote(v_GetNoteFileID){
Win=window.open("list_note.asp","Win","scrollbars=yes,toolbar=no,status=no,l
ocation=no,directories=no,width=600,height=550,top=50,left=200");
> Win.focus();}
>
> </Script>
>
> //some other codes here.
>
> 'link to the list_note.asp page and pass the v_GetNoteFileID which equal
> to objRS("FileID")
> <a
href="Javascript:LoadNote('<%=objRS("FileID")%>')"><%=objRS("FileName")%></a
>
>
>
> On the list_note.asp, the called page:
>
> Dim a_GetNoteFileID
> 'a_GetNoteFileID = 10 'I used this line to test, it worked find
> a_GetNoteFileID= Request("v_GetNoteFileID")
> Session("a_GetNoteFileID") = a_GetNoteFileID
>
>
> //some conn and rs codes are here
>
> strSQL = "Select * From dbo.v_ActiveDir_DOC Where FileID='" &
Session("a_GetNoteFileID")
> & "'"
> objRS.Open strSQL
>
>
> Based on the above codes, the results were:
> =================
> Error Type:
> ADODB.Field (0x80020009)
> Either BOF or EOF is True, or the current record has been deleted.
Requested
> operation requires a current record.
> =================
>
> Question:
> How to pass the v_GetNoteFileID from one asp to the other via the above
Javascripts?
> I have no problem with the normal asp to asp DIRECTLY passing the
v_GetNoteFileIDs,
> however, this caused me spending sometime and still could not get it.
>
> Best regards,
>
> WooGor
>
>
>
>
> "Russell Jones" <arj1@northstate.net> wrote:
> >Make the link call a client-side JavaScript function that opens the new
> >window with the options you want, setting the URL parameter to the
> >list_note.asp page, e.g. <untested code>
> >
> ><a
>
>href="JavaScript:myOpenWindowFunction('<%=objRS("FileID")%>')"><%=objRS("Fi
l
> >eName")%></a>
> >
> ><script type="text/javascript" language="javascript">
> > function myOpenWindowFunction(someParam) {
> > //call the window.open method here.
> > }
> ></script>
> >
> >"WooGor" <zhang5gor@yahoo.com> wrote in message
> >news:3c0bd5dc$1@147.208.176.211...
> >>
> >> On list_all.asp page,
> >>
> >> <a
>
>href="list_note.asp?v_GetNoteFileID=<%=objRS("FileID")%>"><%=objRS("FileNam
e
> >")%></a>
> >>
> >> When click on the above link, the v_GetNoteFileID is passed to the
> >list_note.asp
> >> page.
> >>
> >> On list_note.asp page, I want:
> >>
> >> Open a new window with:
> >>
>
>"toolbar=0,status=no,resizable=0,menubar=0,scrollbars=1,width=500,height=50
0
> >,TOP=50,LEFT=200"
> >>
> >> That is: no toolbar, no menubar, yes scrollbars.
> >>
> >> to show the Note.
> >>
> >>
> >> Can anyone help?
> >>
> >>
> >
> >
>
-
Re: Open new window with no toolbar and menubar
Thanks Russell!
But, how to pass the parameter (i.e. objRS("FileID"), e.g. = 12) to the Javascript
function?
If I set
Win=window.open("list_note.asp?v_GetNoteFileID=12","Win","scrollbars=yes,toolbar=no,status =no,location=no,directories=no,width=600,height=550,top=50,left=200");
Then, it works ok.
Please show me how to do it.
WooGor
"Russell Jones" <arj1@northstate.net> wrote:
>You're missing the query string parameter you said you wanted to send in
>your original note.
>
>Add the parameter you pass to the function to the end of the URL parameter
>in the window.open call.
>
>
>"WooGor" <zhang5gor@yahoo.com> wrote in message
>news:3c0cd365$1@147.208.176.211...
>>
>> Hello Russell Jones,
>>
>> Thanks for your response.
>>
>> Here is what I have tried.
>>
>> On list_all.asp, the calling page:
>>
>> <Script Language="Javascript">
>> function LoadNote(v_GetNoteFileID){
>Win=window.open("list_note.asp","Win","scrollbars=yes,toolbar=no,status=no,l
>ocation=no,directories=no,width=600,height=550,top=50,left=200");
>> Win.focus();}
>>
>> </Script>
>>
>> //some other codes here.
>>
>> 'link to the list_note.asp page and pass the v_GetNoteFileID which equal
>> to objRS("FileID")
>> <a
>href="Javascript:LoadNote('<%=objRS("FileID")%>')"><%=objRS("FileName")%></a
>>
>>
>>
>> On the list_note.asp, the called page:
>>
>> Dim a_GetNoteFileID
>> 'a_GetNoteFileID = 10 'I used this line to test, it worked find
>> a_GetNoteFileID= Request("v_GetNoteFileID")
>> Session("a_GetNoteFileID") = a_GetNoteFileID
>>
>>
>> //some conn and rs codes are here
>>
>> strSQL = "Select * From dbo.v_ActiveDir_DOC Where FileID='" &
>Session("a_GetNoteFileID")
>> & "'"
>> objRS.Open strSQL
>>
>>
>> Based on the above codes, the results were:
>> =================
>> Error Type:
>> ADODB.Field (0x80020009)
>> Either BOF or EOF is True, or the current record has been deleted.
>Requested
>> operation requires a current record.
>> =================
>>
>> Question:
>> How to pass the v_GetNoteFileID from one asp to the other via the above
>Javascripts?
>> I have no problem with the normal asp to asp DIRECTLY passing the
>v_GetNoteFileIDs,
>> however, this caused me spending sometime and still could not get it.
>>
>> Best regards,
>>
>> WooGor
>>
>>
>>
>>
>> "Russell Jones" <arj1@northstate.net> wrote:
>> >Make the link call a client-side JavaScript function that opens the new
>> >window with the options you want, setting the URL parameter to the
>> >list_note.asp page, e.g. <untested code>
>> >
>> ><a
>>
>>href="JavaScript:myOpenWindowFunction('<%=objRS("FileID")%>')"><%=objRS("Fi
>l
>> >eName")%></a>
>> >
>> ><script type="text/javascript" language="javascript">
>> > function myOpenWindowFunction(someParam) {
>> > //call the window.open method here.
>> > }
>> ></script>
>> >
>> >"WooGor" <zhang5gor@yahoo.com> wrote in message
>> >news:3c0bd5dc$1@147.208.176.211...
>> >>
>> >> On list_all.asp page,
>> >>
>> >> <a
>>
>>href="list_note.asp?v_GetNoteFileID=<%=objRS("FileID")%>"><%=objRS("FileNam
>e
>> >")%></a>
>> >>
>> >> When click on the above link, the v_GetNoteFileID is passed to the
>> >list_note.asp
>> >> page.
>> >>
>> >> On list_note.asp page, I want:
>> >>
>> >> Open a new window with:
>> >>
>>
>>"toolbar=0,status=no,resizable=0,menubar=0,scrollbars=1,width=500,height=50
>0
>> >,TOP=50,LEFT=200"
>> >>
>> >> That is: no toolbar, no menubar, yes scrollbars.
>> >>
>> >> to show the Note.
>> >>
>> >>
>> >> Can anyone help?
>> >>
>> >>
>> >
>> >
>>
>
>
-
Re: Open new window with no toolbar and menubar
"WooGor" <zhang5gor@yahoo.com> wrote in message
news:3c0d2e6d$1@147.208.176.211...
>
> Thanks Russell!
>
> But, how to pass the parameter (i.e. objRS("FileID"), e.g. = 12) to the
Javascript
> function?
>
You already passed the parameter value to the function. All you need to do
now is append it to the URL, for example:
Win=window.open("list_note.asp?v_GetNoteFileID=" +
v_GetNoteFileID,"Win","scrollbars=yes,toolbar=no,status=no,location=no,direc
tories=no,width=600,height=550,top=50,left=200");
-
Re: Open new window with no toolbar and menubar
Hello Russell Jones,
Here it is – it works!
function LoadNote(v_GetNoteFileID){
Win=window.open("list_note.asp?v_GetNoteFileID="+v_GetNoteFileID,"Win","scrollbars=yes,too lbar=no,status=no,location=no,directories=no,width=620,height=620,top=50,left=200");
Win.focus();}
Thank you very much!
WooGor
"Russell Jones" <arj1@northstate.net> wrote:
>"WooGor" <zhang5gor@yahoo.com> wrote in message
>news:3c0d2e6d$1@147.208.176.211...
>>
>> Thanks Russell!
>>
>> But, how to pass the parameter (i.e. objRS("FileID"), e.g. = 12) to the
>Javascript
>> function?
>>
>You already passed the parameter value to the function. All you need to
do
>now is append it to the URL, for example:
>
>Win=window.open("list_note.asp?v_GetNoteFileID=" +
>v_GetNoteFileID,"Win","scrollbars=yes,toolbar=no,status=no,location=no,direc
>tories=no,width=600,height=550,top=50,left=200");
>
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks