Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


create a custom window

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,386
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> create a custom window
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 create a custom window - 9/17/2001 8:35:53 AM   
  mcw

 

Posts: 7
Score: 0
Joined: 9/15/2001
From:
Status: offline
is there a way of creating a custom popup window on a link mouseclick event?

example:
link or button is clicked, custom sized popup opens with the source being specified.
like a user clicks a 'show request method' link, up pops a window with the source being
<.html>
<%=request.servervariables("REQUEST_METHOD")%>
</html>

heh, i dont know if that makes any sense, but if you can help it would be coo.. thanks.

'mcw
 
 
Post #: 1
 
 Re: create a custom window - 9/17/2001 5:31:19 PM   
  imav8n

 

Posts: 95
Score: 0
Joined: 7/3/2001
From: USA
Status: offline
While I was reading your post...I clicked on the icon to "e-mail the poster"....when you mouseover the icon, before you click it...you can see that the link is a javascript link:

javascript:openWindow('pop_mail.asp?id=2285')

And when you click it, it opens up a new window...presumably, it opens the window to the page "pop_mail.asp?id=2285"

If thats what you are trying to do, then should look at the source code for the forum pages, and see what you can get out of there...or try some javascript reference sites like http://javascript.internet.com

Good Luck!

~imav8n

(in reply to mcw)
 
 
Post #: 2
 
 Re: create a custom window - 9/17/2001 8:09:52 PM   
  mcw

 

Posts: 7
Score: 0
Joined: 9/15/2001
From:
Status: offline
hehe, ya i knew that wouldnt make sense, here lemme try to put it in simple logic for communication reasons cuz it jus sounds like babbling otherwise heh,

<a href="%popuphtml%&&make_popup" target="_new">click here</a>

<vbscript>
if invoke %popuphtml% then
%popuphtml% = "<html>
<head><title>new popup</title></head>
<body>
<h1>text here</h1>
</body>
</html>"

with no outside resources, im trying to contain all this junk into one simple file. hope that makes my question a lil more understandable hehe..

thanks,
-mcw

(in reply to mcw)
 
 
Post #: 3
 
 Re: create a custom window - 9/18/2001 7:57:43 PM   
  imav8n

 

Posts: 95
Score: 0
Joined: 7/3/2001
From: USA
Status: offline
Ok, let me see if this helps any...since your trying to keep it in one file...although this may not exactly be simple...let's try it anyways:

file name: tester.asp

<%
varWin = Request.QueryString("win")

If varWin = 1 then %>
<html>
<head><title>First Pop-up Window</title></head>

<body>
Pop-up window Contents
</body>

<%
Else
%>

<html>
<head>
<title>Original Window contents</title>
</head>

<body>
Here is a link to the pop-up: <a href=javascript:openWindow('tester.asp?win=1')> Click Here </a>
</body>
<% End If %>

-------------------------------------
This way, the contents of the pop-up get called from the link in the body...even though it is calling the same page, the variable identifies the link as the pop-up, so the page returns the 2nd set of info.

~imav8n

(in reply to mcw)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> create a custom window Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts