Asp and passing paths

S

spenn

I have a web page that has a snapshotviewer builtin. I need to pass a
parameter through the hyperlink and have asp to take the value and insert the
path into the Snapshotviewer.
can somebody help.
 
M

MD Websunlimited

Hi Spenn,

I'm not sure what you mean by "snapshotviewer" but to pass the link you add the parameter to it.

<a href="mypage.asp?myparam=myimage.jpg" >View Image</a>

Then in mypage.asp

You could use something like

<img src="<%=request.querystring("myparam")%>" >

in the page mypage.asp.


--
Mike -- FrontPage MVP '97-'02
J-Bots 2004 102 Components For FP
http://www.websunlimited.com
FrontPage Add-ins Since '97 FP 2003 / 2002 / 2000 Compatible
Download the Trial http://www.microsoft.com/frontpage/downloads/addin/launchupdate/download.asp
 
R

Rob Giordano \(Crash Gordon®\)

access snapshot viewer
spenn's been working on this for a while now.

| Hi Spenn,
|
| I'm not sure what you mean by "snapshotviewer" but to pass the link you add the parameter to it.
|
| <a href="mypage.asp?myparam=myimage.jpg" >View Image</a>
|
| Then in mypage.asp
|
| You could use something like
|
| <img src="<%=request.querystring("myparam")%>" >
|
| in the page mypage.asp.
|
|
| --
| Mike -- FrontPage MVP '97-'02
| J-Bots 2004 102 Components For FP
| http://www.websunlimited.com
| FrontPage Add-ins Since '97 FP 2003 / 2002 / 2000 Compatible
| Download the Trial http://www.microsoft.com/frontpage/downloads/addin/launchupdate/download.asp
|
| >I have a web page that has a snapshotviewer builtin. I need to pass a
| > parameter through the hyperlink and have asp to take the value and insert the
| > path into the Snapshotviewer.
| > can somebody help.
|
|
 
R

Ronx

See my reply to your thread "Hyperlink Path" on 1st July, reproduced
here:
<quote>
I would use server-side scripting, for example ASP:
<%
dim pathname
pathname=request.querystring("path")
%>

<OBJECT ID="SnapshotViewer" WIDTH=736 HEIGHT=914
CLASSID="CLSID:F0E42D60-368C-11D0-AD81-00A0C90DC8D9">
<PARAM NAME="_ExtentX" VALUE="16722">
<PARAM NAME="_ExtentY" VALUE="11774">
<PARAM NAME="_Version" VALUE="65536">
<PARAM NAME="SnapshotPath"
VALUE= "<%=pathname%>" valuetype="ref">
<PARAM NAME="Zoom" value ="0" >
<PARAM NAME="AllowContextMenu" VALUE="-1">
<PARAM NAME="ShowNavigationButtons" VALUE="-1">
</OBJECT>


The calling link would be similar to
<a href="snapshotpage.asp?path=requiredpath>snapshot</a>

I have no idea whether this will work or not.
</quote>
 
R

Ronx

<%
dim pathname
pathname=request.querystring("path")
%>

<OBJECT ID="SnapshotViewer" WIDTH=736 HEIGHT=914
CLASSID="CLSID:F0E42D60-368C-11D0-AD81-00A0C90DC8D9">
<PARAM NAME="_ExtentX" VALUE="16722">
<PARAM NAME="_ExtentY" VALUE="11774">
<PARAM NAME="_Version" VALUE="65536">
<PARAM NAME="SnapshotPath"
VALUE= "<%=pathname%>" valuetype="ref">
<PARAM NAME="Zoom" value ="0" >
<PARAM NAME="AllowContextMenu" VALUE="-1">
<PARAM NAME="ShowNavigationButtons" VALUE="-1">
</OBJECT>

(Assumes snapshot.asp is the page with the activeX object
 
S

spenn

index_am.html is the web page with the active X object.
I tried the code it does not work.
In the hyperlink I am passing a path that needs to be passed to index_am.html.
 
R

Ronx

No.
The code is almost complete[1].
index_am.html must be renamed as index_am.asp, or it will not work at
all.

In the page passing the path you need a hyperlink similar to

<a href="index_am.asp?path=pathtobepassed">Snapshot for
pathtobepassed</a>

where pathtobepassed should be replaced with the path you wish to be
passed to the ActiveX control.

[1]Note that if the path contains a / or \ these must be replaced by
entity values - it is probably easier to replace these within the asp
code in index_am.asp. If you post samples of the paths you need to
pass it will be easy to give examples.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top