Ask a Question related to ASP, Design and Development.
-
mark | r #1
customising external .js files
can you use asp to customise external js files e.g.
<script src="fred.js"></script>
where fred gets the page id and changes an image in the .js file to suit?
mark
mark | r Guest
-
external .js files
Hi all, I see there is a way to setup external app to edit source files, but is there a way to use an external app (notepad.exe) to edit .js... -
Customising List/Menu appearance
Hello Can anyone help as I am struggling to create a customised list/menu in dreamweaver. How do you alter the border style etc using CSS as all I... -
customising PagerStyle
hi, In a datagrid that allows paging i m using PagerStyle-Mode=NextPrev. i want to customize the pager style in order to display two images (or... -
external exe files
Hi Michael, No. You cannot effect your user's computer in any way from a web application. This isn't a Shockwave thing, it's a web security... -
Customising the interface
I often see training schools with their logo set into the photoshop background/interface. Instead of the dull grey background the logo's are inset... -
Tom B #2
Re: customising external .js files
What I would do, is have a function in fred.js that accepts a parameter
For example in fred.js
function Start(aString)
{
alert(aString);
}
then in your "asp" code...
<%
Dim sString
sString="'Hello'"
%>
<script src="fred.js"></script>
<script language=Javascript>
Start(<%=sString%>)
</script>
which would result in
<script src="fred.js"></script>
<script language=Javascript>
Start('Hello')
</script>
"mark | r" <mark@nmd.freeuk.com> wrote in message
news:3f5e0376$0$261$cc9e4d1f@news.dial.pipex.com.. .> can you use asp to customise external js files e.g.
>
> <script src="fred.js"></script>
>
> where fred gets the page id and changes an image in the .js file to suit?
>
> mark
>
>
Tom B Guest
-
mark | r #3
Re: customising external .js files
wjat i mean is can the contents of a .js file be built?
mark
mark | r Guest
-
Ray at #4
Re: customising external .js files
<script src="fred.ASP">
Use that, and then in fred.asp, response.write your client-side code as
needed.
Ray at work
"mark | r" <mark@nmd.freeuk.com> wrote in message
news:3f5e112e$0$265$cc9e4d1f@news.dial.pipex.com.. .> wjat i mean is can the contents of a .js file be built?
>
> mark
>
>
Ray at Guest
-
Chris Barber #5
Re: customising external .js files
I suppose you could ask ... why? If it's dynamic then what's the point of it
being a src="" since there is no point in caching it.
Generalise your scripts enough to be cacheable and then put the dynamic
stuff direct into the html page?
Do you have a specific aim in mind for this since it's not clear what the
context or final intention is?
Chris.
"mark | r" <mark@nmd.freeuk.com> wrote in message
news:3f5e112e$0$265$cc9e4d1f@news.dial.pipex.com.. .
wjat i mean is can the contents of a .js file be built?
mark
Chris Barber Guest
-
Dave Anderson #6
Re: customising external .js files
"Chris Barber" wrote:
One reason comes to mind. I believe it has been explored in>
> I suppose you could ask ... why? If it's dynamic then what's
> the point of it being a src="" since there is no point in
> caching it.
ms.public.scripting.jscript as a means for hiding source code from prying
eyes. I don't recall the consensus on its effectiveness, however.
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Dave Anderson Guest
-
mark | r #7
Re: customising external .js files
its an include to hide a non accessible element from a text browser.
mark
"Dave Anderson" <GTSPXOESSGOQ@spammotel.com> wrote in message
news:OvAp5YwdDHA.2432@TK2MSFTNGP10.phx.gbl...Use> "Chris Barber" wrote:>> >
> > I suppose you could ask ... why? If it's dynamic then what's
> > the point of it being a src="" since there is no point in
> > caching it.
> One reason comes to mind. I believe it has been explored in
> ms.public.scripting.jscript as a means for hiding source code from prying
> eyes. I don't recall the consensus on its effectiveness, however.
>
>
> --
> Dave Anderson
>
> Unsolicited commercial email will be read at a cost of $500 per message.contact> of this email address implies consent to these terms. Please do not> me directly or ask me to contact you directly for assistance. If your
> question is worth asking, it's worth posting.
>
>
mark | r Guest



Reply With Quote

