473,396 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

having an ASP variable in javascript

I have a menu that I use on my Intranet app, and while I did try to replace
it recently, I ended up going back to it. It's built entirely with
javascript, and works great.

However, there are certain pages where I would like to be able to put an
item into a querystring for a link. That is, I might have a link which is
worded "Add to this ticket" and the hyperlink associated with that text is
along the lines of "addtoticket.asp?ticketid=1000"

I am not able to figure out how to have an ASP variable into a link built by
javascript. This is the main question. How can I have the ASP variable in a
javascript?

Because it's Inranet, I don't have the page to show you. However, I have
zipped up the two javascript files and placed them at
www.middletree.net/js.zip

Also, in this case, IE-specific code will not be a problem. 100% of users
are on IE5+
Jul 19 '05 #1
13 1612
replace
addtoticket.asp?ticketid=1000
with
addtoticket.asp?ticketid=<%=YourAspVariable%>

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"middletree" <mi********@htomail.com> wrote in message
news:OZ**************@tk2msftngp13.phx.gbl...
I have a menu that I use on my Intranet app, and while I did try to replace it recently, I ended up going back to it. It's built entirely with
javascript, and works great.

However, there are certain pages where I would like to be able to put an
item into a querystring for a link. That is, I might have a link which is
worded "Add to this ticket" and the hyperlink associated with that text is
along the lines of "addtoticket.asp?ticketid=1000"

I am not able to figure out how to have an ASP variable into a link built by javascript. This is the main question. How can I have the ASP variable in a javascript?

Because it's Inranet, I don't have the page to show you. However, I have
zipped up the two javascript files and placed them at
www.middletree.net/js.zip

Also, in this case, IE-specific code will not be a problem. 100% of users
are on IE5+

Jul 19 '05 #2
<%
'This is asp so it runs on the server

Dim aVar
aVar="1000"
%>
<script language="Javascript">
//this runs on the client, except for the <%=aVar%> part which gets
tossed in on the server
function AddToTicket()
{
window.open('theUrl.asp?id=<%=aVar%>');
}
</script>
"middletree" <mi********@htomail.com> wrote in message
news:OZ**************@tk2msftngp13.phx.gbl...
I have a menu that I use on my Intranet app, and while I did try to replace it recently, I ended up going back to it. It's built entirely with
javascript, and works great.

However, there are certain pages where I would like to be able to put an
item into a querystring for a link. That is, I might have a link which is
worded "Add to this ticket" and the hyperlink associated with that text is
along the lines of "addtoticket.asp?ticketid=1000"

I am not able to figure out how to have an ASP variable into a link built by javascript. This is the main question. How can I have the ASP variable in a javascript?

Because it's Inranet, I don't have the page to show you. However, I have
zipped up the two javascript files and placed them at
www.middletree.net/js.zip

Also, in this case, IE-specific code will not be a problem. 100% of users
are on IE5+

Jul 19 '05 #3
OK, I'll try it. But that was so obvious that I didn't think it would work.
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uM**************@tk2msftngp13.phx.gbl...
replace
addtoticket.asp?ticketid=1000
with
addtoticket.asp?ticketid=<%=YourAspVariable%>

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"middletree" <mi********@htomail.com> wrote in message
news:OZ**************@tk2msftngp13.phx.gbl...
I have a menu that I use on my Intranet app, and while I did try to replace
it recently, I ended up going back to it. It's built entirely with
javascript, and works great.

However, there are certain pages where I would like to be able to put an
item into a querystring for a link. That is, I might have a link which is worded "Add to this ticket" and the hyperlink associated with that text is along the lines of "addtoticket.asp?ticketid=1000"

I am not able to figure out how to have an ASP variable into a link built by
javascript. This is the main question. How can I have the ASP variable
in a
javascript?

Because it's Inranet, I don't have the page to show you. However, I have
zipped up the two javascript files and placed them at
www.middletree.net/js.zip

Also, in this case, IE-specific code will not be a problem. 100% of

users are on IE5+


Jul 19 '05 #4
Didn't work.

The link is took me to, which should have been
http://localhost/TicketLog.asp?TicketID=1000&New=notnew, was actually
http://localhost/TicketLog.asp?TicketID=<%=intTicketID%>&New=notnew

Syntax error converting the varchar value '<=strTicketID>' to a column of
data type int.

/TicketLog.asp, line 34

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uM**************@tk2msftngp13.phx.gbl...
replace
addtoticket.asp?ticketid=1000
with
addtoticket.asp?ticketid=<%=YourAspVariable%>

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"middletree" <mi********@htomail.com> wrote in message
news:OZ**************@tk2msftngp13.phx.gbl...
I have a menu that I use on my Intranet app, and while I did try to replace
it recently, I ended up going back to it. It's built entirely with
javascript, and works great.

However, there are certain pages where I would like to be able to put an
item into a querystring for a link. That is, I might have a link which is worded "Add to this ticket" and the hyperlink associated with that text is along the lines of "addtoticket.asp?ticketid=1000"

I am not able to figure out how to have an ASP variable into a link built by
javascript. This is the main question. How can I have the ASP variable
in a
javascript?

Because it's Inranet, I don't have the page to show you. However, I have
zipped up the two javascript files and placed them at
www.middletree.net/js.zip

Also, in this case, IE-specific code will not be a problem. 100% of

users are on IE5+


Jul 19 '05 #5
The files where you want to substitute variables are JS files and are not
processed by ASP. There are a couple of possibilities.

1. make the js files .asp files and include asp code to set the
variables.

2. add a javacript variable declaration to the asp page before including
the script file. then use that variable in the script file.

....
<script language="javascript">
var strTicketID = "<%=YourAspVariable%>";
</script>

<script language="javascript" src="menu.js"></script>
....

in menu.js

self.location="addtoticket.asp?ticketid=" + strTicketID;

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"middletree" <mi********@htomail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Didn't work.

The link is took me to, which should have been
http://localhost/TicketLog.asp?TicketID=1000&New=notnew, was actually
http://localhost/TicketLog.asp?TicketID=<%=intTicketID%>&New=notnew

Syntax error converting the varchar value '<=strTicketID>' to a column of
data type int.

/TicketLog.asp, line 34

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uM**************@tk2msftngp13.phx.gbl...
replace
addtoticket.asp?ticketid=1000
with
addtoticket.asp?ticketid=<%=YourAspVariable%>

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"middletree" <mi********@htomail.com> wrote in message
news:OZ**************@tk2msftngp13.phx.gbl...
I have a menu that I use on my Intranet app, and while I did try to replace
it recently, I ended up going back to it. It's built entirely with
javascript, and works great.

However, there are certain pages where I would like to be able to put an item into a querystring for a link. That is, I might have a link which is worded "Add to this ticket" and the hyperlink associated with that text is
along the lines of "addtoticket.asp?ticketid=1000"

I am not able to figure out how to have an ASP variable into a link built
by
javascript. This is the main question. How can I have the ASP variable

in
a
javascript?

Because it's Inranet, I don't have the page to show you. However, I

have zipped up the two javascript files and placed them at
www.middletree.net/js.zip

Also, in this case, IE-specific code will not be a problem. 100% of

users are on IE5+



Jul 19 '05 #6
you'll have to show a few more lines of code from this asp

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"middletree" <mi********@htomail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Didn't work.

The link is took me to, which should have been
http://localhost/TicketLog.asp?TicketID=1000&New=notnew, was actually
http://localhost/TicketLog.asp?TicketID=<%=intTicketID%>&New=notnew

Syntax error converting the varchar value '<=strTicketID>' to a column of
data type int.

/TicketLog.asp, line 34

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uM**************@tk2msftngp13.phx.gbl...
replace
addtoticket.asp?ticketid=1000
with
addtoticket.asp?ticketid=<%=YourAspVariable%>

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"middletree" <mi********@htomail.com> wrote in message
news:OZ**************@tk2msftngp13.phx.gbl...
I have a menu that I use on my Intranet app, and while I did try to replace
it recently, I ended up going back to it. It's built entirely with
javascript, and works great.

However, there are certain pages where I would like to be able to put an item into a querystring for a link. That is, I might have a link which is worded "Add to this ticket" and the hyperlink associated with that text is
along the lines of "addtoticket.asp?ticketid=1000"

I am not able to figure out how to have an ASP variable into a link built
by
javascript. This is the main question. How can I have the ASP variable

in
a
javascript?

Because it's Inranet, I don't have the page to show you. However, I

have zipped up the two javascript files and placed them at
www.middletree.net/js.zip

Also, in this case, IE-specific code will not be a problem. 100% of

users are on IE5+



Jul 19 '05 #7
Comments below:

"Mark Schupp" <ms*****@ielearning.com> wrote in message
news:eg*************@tk2msftngp13.phx.gbl...
The files where you want to substitute variables are JS files and are not
processed by ASP.
That was my point in the OP. Guess I didn't communicate it well.
There are a couple of possibilities.
1. make the js files .asp files and include asp code to set the
variables. I have no idea how to do this, or what you mean, exactly.
2. add a javacript variable declaration to the asp page before including the script file. then use that variable in the script file.

...
<script language="javascript">
var strTicketID = "<%=YourAspVariable%>";
</script>

<script language="javascript" src="menu.js"></script>
...

in menu.js

self.location="addtoticket.asp?ticketid=" + strTicketID;


Hmm, this looks like something I could do. Let me check and I'll post my
results.

thanks very much!

Jul 19 '05 #8
Nope. Didn't work.

It gave me a link to
http://localhost/TicketLog.asp?TicketID=+strTicketID
"Mark Schupp" <ms*****@ielearning.com> wrote in message
news:eg*************@tk2msftngp13.phx.gbl...
The files where you want to substitute variables are JS files and are not
processed by ASP. There are a couple of possibilities.

1. make the js files .asp files and include asp code to set the
variables.

2. add a javacript variable declaration to the asp page before including the script file. then use that variable in the script file.

...
<script language="javascript">
var strTicketID = "<%=YourAspVariable%>";
</script>

<script language="javascript" src="menu.js"></script>
...

in menu.js

self.location="addtoticket.asp?ticketid=" + strTicketID;

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"middletree" <mi********@htomail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Didn't work.

The link is took me to, which should have been
http://localhost/TicketLog.asp?TicketID=1000&New=notnew, was actually
http://localhost/TicketLog.asp?TicketID=<%=intTicketID%>&New=notnew

Syntax error converting the varchar value '<=strTicketID>' to a column of
data type int.

/TicketLog.asp, line 34

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uM**************@tk2msftngp13.phx.gbl...
replace
addtoticket.asp?ticketid=1000
with
addtoticket.asp?ticketid=<%=YourAspVariable%>

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"middletree" <mi********@htomail.com> wrote in message
news:OZ**************@tk2msftngp13.phx.gbl...
> I have a menu that I use on my Intranet app, and while I did try to
replace
> it recently, I ended up going back to it. It's built entirely with
> javascript, and works great.
>
> However, there are certain pages where I would like to be able to
put
an > item into a querystring for a link. That is, I might have a link
which is
> worded "Add to this ticket" and the hyperlink associated with that text
is
> along the lines of "addtoticket.asp?ticketid=1000"
>
> I am not able to figure out how to have an ASP variable into a link

built
by
> javascript. This is the main question. How can I have the ASP

variable in
a
> javascript?
>
> Because it's Inranet, I don't have the page to show you. However, I

have > zipped up the two javascript files and placed them at
> www.middletree.net/js.zip
>
> Also, in this case, IE-specific code will not be a problem. 100% of

users
> are on IE5+
>
>



Jul 19 '05 #9
Well, there's no ASP, really. I mean, this menu is built entirely in js. I
have the js you can look at in the zip file I mentioned earlier, but on the
ASP page, I just have the <script> code which points to the external js
file.
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uD**************@TK2MSFTNGP09.phx.gbl...
you'll have to show a few more lines of code from this asp

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"middletree" <mi********@htomail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Didn't work.

The link is took me to, which should have been
http://localhost/TicketLog.asp?TicketID=1000&New=notnew, was actually
http://localhost/TicketLog.asp?TicketID=<%=intTicketID%>&New=notnew

Syntax error converting the varchar value '<=strTicketID>' to a column of
data type int.

/TicketLog.asp, line 34

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uM**************@tk2msftngp13.phx.gbl...
replace
addtoticket.asp?ticketid=1000
with
addtoticket.asp?ticketid=<%=YourAspVariable%>

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"middletree" <mi********@htomail.com> wrote in message
news:OZ**************@tk2msftngp13.phx.gbl...
> I have a menu that I use on my Intranet app, and while I did try to
replace
> it recently, I ended up going back to it. It's built entirely with
> javascript, and works great.
>
> However, there are certain pages where I would like to be able to
put
an > item into a querystring for a link. That is, I might have a link
which is
> worded "Add to this ticket" and the hyperlink associated with that text
is
> along the lines of "addtoticket.asp?ticketid=1000"
>
> I am not able to figure out how to have an ASP variable into a link

built
by
> javascript. This is the main question. How can I have the ASP

variable in
a
> javascript?
>
> Because it's Inranet, I don't have the page to show you. However, I

have > zipped up the two javascript files and placed them at
> www.middletree.net/js.zip
>
> Also, in this case, IE-specific code will not be a problem. 100% of

users
> are on IE5+
>
>



Jul 19 '05 #10
HI people,
Put the asp result in a html hidden element, so afterwards attribute it to
javascript variable, thus:
<input type="hidden" name="hidTest" value="<%=VarASP%>">

<script>
var JsTest = hidTest.value;
</script>

bye and good luck1

--

««««««««»»»»»»»»»»»»»»
Vlmar Brazão de Oliveira
Desenvolvimento Web
HI-TEC
"Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem
news:uD**************@TK2MSFTNGP09.phx.gbl...
you'll have to show a few more lines of code from this asp

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"middletree" <mi********@htomail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Didn't work.

The link is took me to, which should have been
http://localhost/TicketLog.asp?TicketID=1000&New=notnew, was actually
http://localhost/TicketLog.asp?TicketID=<%=intTicketID%>&New=notnew

Syntax error converting the varchar value '<=strTicketID>' to a column of
data type int.

/TicketLog.asp, line 34

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uM**************@tk2msftngp13.phx.gbl...
replace
addtoticket.asp?ticketid=1000
with
addtoticket.asp?ticketid=<%=YourAspVariable%>

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"middletree" <mi********@htomail.com> wrote in message
news:OZ**************@tk2msftngp13.phx.gbl...
> I have a menu that I use on my Intranet app, and while I did try to
replace
> it recently, I ended up going back to it. It's built entirely with
> javascript, and works great.
>
> However, there are certain pages where I would like to be able to
put
an > item into a querystring for a link. That is, I might have a link
which is
> worded "Add to this ticket" and the hyperlink associated with that text
is
> along the lines of "addtoticket.asp?ticketid=1000"
>
> I am not able to figure out how to have an ASP variable into a link

built
by
> javascript. This is the main question. How can I have the ASP

variable in
a
> javascript?
>
> Because it's Inranet, I don't have the page to show you. However, I

have > zipped up the two javascript files and placed them at
> www.middletree.net/js.zip
>
> Also, in this case, IE-specific code will not be a problem. 100% of

users
> are on IE5+
>
>



Jul 19 '05 #11
This looks like it will work; at least it did my first test.

thanks
"Vilmar Brazão de Oliveira" <su*****@hitecnet.com.br> wrote in message
news:e8**************@tk2msftngp13.phx.gbl...
HI people,
Put the asp result in a html hidden element, so afterwards attribute it to
javascript variable, thus:
<input type="hidden" name="hidTest" value="<%=VarASP%>">

<script>
var JsTest = hidTest.value;
</script>

bye and good luck1

--

««««««««»»»»»»»»»»»»»»
Vlmar Brazão de Oliveira
Desenvolvimento Web
HI-TEC
"Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem
news:uD**************@TK2MSFTNGP09.phx.gbl...
you'll have to show a few more lines of code from this asp

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"middletree" <mi********@htomail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Didn't work.

The link is took me to, which should have been
http://localhost/TicketLog.asp?TicketID=1000&New=notnew, was actually
http://localhost/TicketLog.asp?TicketID=<%=intTicketID%>&New=notnew

Syntax error converting the varchar value '<=strTicketID>' to a column of data type int.

/TicketLog.asp, line 34

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uM**************@tk2msftngp13.phx.gbl...
> replace
> addtoticket.asp?ticketid=1000
> with
> addtoticket.asp?ticketid=<%=YourAspVariable%>
>
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> www.Darkfalz.com
>
>
> "middletree" <mi********@htomail.com> wrote in message
> news:OZ**************@tk2msftngp13.phx.gbl...
> > I have a menu that I use on my Intranet app, and while I did try to > replace
> > it recently, I ended up going back to it. It's built entirely with
> > javascript, and works great.
> >
> > However, there are certain pages where I would like to be able to put
an
> > item into a querystring for a link. That is, I might have a link which is
> > worded "Add to this ticket" and the hyperlink associated with that

text
is
> > along the lines of "addtoticket.asp?ticketid=1000"
> >
> > I am not able to figure out how to have an ASP variable into a link built
> by
> > javascript. This is the main question. How can I have the ASP variable in
> a
> > javascript?
> >
> > Because it's Inranet, I don't have the page to show you. However, I have
> > zipped up the two javascript files and placed them at
> > www.middletree.net/js.zip
> >
> > Also, in this case, IE-specific code will not be a problem. 100%

of users
> > are on IE5+
> >
> >
>
>



Jul 19 '05 #12
It works for me all the time (not the exact same example).

Show exactly what you did in the .asp file and in the associated .js file.

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"middletree" <mi********@htomail.com> wrote in message
news:Ox**************@tk2msftngp13.phx.gbl...
Nope. Didn't work.

It gave me a link to
http://localhost/TicketLog.asp?TicketID=+strTicketID
"Mark Schupp" <ms*****@ielearning.com> wrote in message
news:eg*************@tk2msftngp13.phx.gbl...
The files where you want to substitute variables are JS files and are not
processed by ASP. There are a couple of possibilities.

1. make the js files .asp files and include asp code to set the
variables.

2. add a javacript variable declaration to the asp page before

including
the script file. then use that variable in the script file.

...
<script language="javascript">
var strTicketID = "<%=YourAspVariable%>";
</script>

<script language="javascript" src="menu.js"></script>
...

in menu.js

self.location="addtoticket.asp?ticketid=" + strTicketID;

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"middletree" <mi********@htomail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Didn't work.

The link is took me to, which should have been
http://localhost/TicketLog.asp?TicketID=1000&New=notnew, was actually
http://localhost/TicketLog.asp?TicketID=<%=intTicketID%>&New=notnew

Syntax error converting the varchar value '<=strTicketID>' to a column of data type int.

/TicketLog.asp, line 34

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uM**************@tk2msftngp13.phx.gbl...
> replace
> addtoticket.asp?ticketid=1000
> with
> addtoticket.asp?ticketid=<%=YourAspVariable%>
>
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> www.Darkfalz.com
>
>
> "middletree" <mi********@htomail.com> wrote in message
> news:OZ**************@tk2msftngp13.phx.gbl...
> > I have a menu that I use on my Intranet app, and while I did try to > replace
> > it recently, I ended up going back to it. It's built entirely with
> > javascript, and works great.
> >
> > However, there are certain pages where I would like to be able to put
an
> > item into a querystring for a link. That is, I might have a link

which is
> > worded "Add to this ticket" and the hyperlink associated with that

text
is
> > along the lines of "addtoticket.asp?ticketid=1000"
> >
> > I am not able to figure out how to have an ASP variable into a link built
> by
> > javascript. This is the main question. How can I have the ASP variable in
> a
> > javascript?
> >
> > Because it's Inranet, I don't have the page to show you. However, I have
> > zipped up the two javascript files and placed them at
> > www.middletree.net/js.zip
> >
> > Also, in this case, IE-specific code will not be a problem. 100%

of users
> > are on IE5+
> >
> >
>
>



Jul 19 '05 #13
I think my problem was I had the +strTicketID inside the quotes. Pretty
dumb.

Anyway, it works now.

thanks

"Mark Schupp" <ms*****@ielearning.com> wrote in message
news:#X*************@TK2MSFTNGP11.phx.gbl...
It works for me all the time (not the exact same example).

Show exactly what you did in the .asp file and in the associated .js file.

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"middletree" <mi********@htomail.com> wrote in message
news:Ox**************@tk2msftngp13.phx.gbl...
Nope. Didn't work.

It gave me a link to
http://localhost/TicketLog.asp?TicketID=+strTicketID
"Mark Schupp" <ms*****@ielearning.com> wrote in message
news:eg*************@tk2msftngp13.phx.gbl...
The files where you want to substitute variables are JS files and are not processed by ASP. There are a couple of possibilities.

1. make the js files .asp files and include asp code to set the
variables.

2. add a javacript variable declaration to the asp page before including
the script file. then use that variable in the script file.

...
<script language="javascript">
var strTicketID = "<%=YourAspVariable%>";
</script>

<script language="javascript" src="menu.js"></script>
...

in menu.js

self.location="addtoticket.asp?ticketid=" + strTicketID;

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"middletree" <mi********@htomail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
> Didn't work.
>
> The link is took me to, which should have been
> http://localhost/TicketLog.asp?TicketID=1000&New=notnew, was actually > http://localhost/TicketLog.asp?TicketID=<%=intTicketID%>&New=notnew
>
> Syntax error converting the varchar value '<=strTicketID>' to a column
of
> data type int.
>
> /TicketLog.asp, line 34
>
>
>
>
>
> "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
> news:uM**************@tk2msftngp13.phx.gbl...
> > replace
> > addtoticket.asp?ticketid=1000
> > with
> > addtoticket.asp?ticketid=<%=YourAspVariable%>
> >
> > --
> > Curt Christianson
> > Owner/Lead Developer, DF-Software
> > www.Darkfalz.com
> >
> >
> > "middletree" <mi********@htomail.com> wrote in message
> > news:OZ**************@tk2msftngp13.phx.gbl...
> > > I have a menu that I use on my Intranet app, and while I did try to > > replace
> > > it recently, I ended up going back to it. It's built entirely
with > > > javascript, and works great.
> > >
> > > However, there are certain pages where I would like to be able to
put
an
> > > item into a querystring for a link. That is, I might have a link

which
> is
> > > worded "Add to this ticket" and the hyperlink associated with

that text
> is
> > > along the lines of "addtoticket.asp?ticketid=1000"
> > >
> > > I am not able to figure out how to have an ASP variable into a

link > built
> > by
> > > javascript. This is the main question. How can I have the ASP

variable
> in
> > a
> > > javascript?
> > >
> > > Because it's Inranet, I don't have the page to show you.
However, I have
> > > zipped up the two javascript files and placed them at
> > > www.middletree.net/js.zip
> > >
> > > Also, in this case, IE-specific code will not be a problem. 100% of > users
> > > are on IE5+
> > >
> > >
> >
> >
>
>



Jul 19 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Jonas Daunoravicius | last post by:
The subject pretty much sums up what I need to do. Here is what I have so far, but still can't figure out how to get it working: <script language="javascript" type="text/javascript"> function...
7
by: Donna Hawkins | last post by:
I want to use javascript to redirect to a URL which has been passed as a variable (in php). I have searched but cannot find any solution. I think this code is a basic redirect: <script...
5
by: Jim Banks | last post by:
Greetings I'm opening a pop up window with a html form, (in one document) and I want to pass a variable to the html form called from the hyperlink. Here's the code I'm using to pop up the...
23
by: Russ Chinoy | last post by:
Hi, This may be a totally newbie question, but I'm stumped. If I have a function such as: function DoSomething(strVarName) { ..... }
6
by: Jeremy Felt | last post by:
Newbie here. I'm sure I'm missing something EXTREMELY simple, but an hour of searching has led to nothing. I'm playing around with ajax and trying to pass a variable to a function. If I do:...
1
pbmods
by: pbmods | last post by:
VARIABLE SCOPE IN JAVASCRIPT LEVEL: BEGINNER/INTERMEDIATE (INTERMEDIATE STUFF IN ) PREREQS: VARIABLES First off, what the heck is 'scope' (the kind that doesn't help kill the germs that cause...
4
by: g1adiat0r | last post by:
Alright, so I'm working on a board and I want the chatbox located on the board to change colours whenever you change the board theme. I have a couple of questions: If I create a variable in a...
3
Atli
by: Atli | last post by:
Hi everybody. This is not so much a problem, since I have already managed to find a solution, but my solution requires the use of the eval() function, which I just hate to use. The problem is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.