473,404 Members | 2,213 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,404 software developers and data experts.

What is this? <img src="{$ ImagesDir}/photo.gif">

What is this? <img src="{$ ImagesDir}/photo.gif">

I KNOW what an HTML image tag looks like. But what do you call that in the
file source? Is it like a virtual directory in IIS? It's some type of
variable obviously, but can somebody tell me what it's called so I can
research how it works? thanks.
Jul 19 '05 #1
8 2985
Was this formerly a php page or something? A php var would look like that
(but without the space after the $). Or maybe a .pl page. It could be
anything.

Ray at work

"Eric Bragas" <eb*****@thermage.com> wrote in message
news:O7**************@tk2msftngp13.phx.gbl...
What is this? <img src="{$ ImagesDir}/photo.gif">

I KNOW what an HTML image tag looks like. But what do you call that in the file source? Is it like a virtual directory in IIS? It's some type of
variable obviously, but can somebody tell me what it's called so I can
research how it works? thanks.

Jul 19 '05 #2
YES, I took this out of a PHP page. However, I thought I saw the same type
of thing in an ASP page using VBScript several years ago. Can something
like this be done in VBScript ASP?

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:OH**************@tk2msftngp13.phx.gbl...
Was this formerly a php page or something? A php var would look like that
(but without the space after the $). Or maybe a .pl page. It could be
anything.

Ray at work

"Eric Bragas" <eb*****@thermage.com> wrote in message
news:O7**************@tk2msftngp13.phx.gbl...
What is this? <img src="{$ ImagesDir}/photo.gif">

I KNOW what an HTML image tag looks like. But what do you call that in

the
file source? Is it like a virtual directory in IIS? It's some type of
variable obviously, but can somebody tell me what it's called so I can
research how it works? thanks.


Jul 19 '05 #3
Yes, VB Script supports variables. ;]
Somewhere in some php code, that is defined. It could be in an include
file, in that page, or in the php.ini file. There's isn't an asp.ini file
equivalent, but you can use things like application variables or includes to
include a global value in all of your pages. I guess you could kinda say
that php has one-up here, but it's all in how you look at it. If you define
500 variables in your php.ini, they'll be there for all pages unnecessarily.
This is a similar waste of resources in the way that adovbs.inc is, but at
least with that, you include it when and where you want.

Ray at work

"Eric Bragas" <eb*****@thermage.com> wrote in message
news:u5**************@TK2MSFTNGP12.phx.gbl...
YES, I took this out of a PHP page. However, I thought I saw the same type of thing in an ASP page using VBScript several years ago. Can something
like this be done in VBScript ASP?

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:OH**************@tk2msftngp13.phx.gbl...
Was this formerly a php page or something? A php var would look like that (but without the space after the $). Or maybe a .pl page. It could be
anything.

Ray at work

"Eric Bragas" <eb*****@thermage.com> wrote in message
news:O7**************@tk2msftngp13.phx.gbl...
What is this? <img src="{$ ImagesDir}/photo.gif">

I KNOW what an HTML image tag looks like. But what do you call that in
the
file source? Is it like a virtual directory in IIS? It's some type

of variable obviously, but can somebody tell me what it's called so I can
research how it works? thanks.



Jul 19 '05 #4
I know about application and session variables, and how to initialize in
global.asa, but is there a way to use VBS variables in this format? {$
someVar}

I thought I saw this before, but I could be wrong.

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:%2*****************@TK2MSFTNGP09.phx.gbl...
Yes, VB Script supports variables. ;]
Somewhere in some php code, that is defined. It could be in an include
file, in that page, or in the php.ini file. There's isn't an asp.ini file
equivalent, but you can use things like application variables or includes to include a global value in all of your pages. I guess you could kinda say
that php has one-up here, but it's all in how you look at it. If you define 500 variables in your php.ini, they'll be there for all pages unnecessarily. This is a similar waste of resources in the way that adovbs.inc is, but at
least with that, you include it when and where you want.

Ray at work

"Eric Bragas" <eb*****@thermage.com> wrote in message
news:u5**************@TK2MSFTNGP12.phx.gbl...
YES, I took this out of a PHP page. However, I thought I saw the same

type
of thing in an ASP page using VBScript several years ago. Can something
like this be done in VBScript ASP?

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:OH**************@tk2msftngp13.phx.gbl...
Was this formerly a php page or something? A php var would look like that (but without the space after the $). Or maybe a .pl page. It could be anything.

Ray at work

"Eric Bragas" <eb*****@thermage.com> wrote in message
news:O7**************@tk2msftngp13.phx.gbl...
> What is this? <img src="{$ ImagesDir}/photo.gif">
>
> I KNOW what an HTML image tag looks like. But what do you call that in the
> file source? Is it like a virtual directory in IIS? It's some type of > variable obviously, but can somebody tell me what it's called so I can > research how it works? thanks.
>
>



Jul 19 '05 #5
>>Can something like this be done in VBScript ASP?

Yes, it might look like this :

<img src="<%= ImagesDir %>/photo.gif">

"Eric Bragas" <eb*****@thermage.com> wrote in message
news:u5**************@TK2MSFTNGP12.phx.gbl...
YES, I took this out of a PHP page. However, I thought I saw the same type of thing in an ASP page using VBScript several years ago. Can something
like this be done in VBScript ASP?

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:OH**************@tk2msftngp13.phx.gbl...
Was this formerly a php page or something? A php var would look like that (but without the space after the $). Or maybe a .pl page. It could be
anything.

Ray at work

"Eric Bragas" <eb*****@thermage.com> wrote in message
news:O7**************@tk2msftngp13.phx.gbl...
What is this? <img src="{$ ImagesDir}/photo.gif">

I KNOW what an HTML image tag looks like. But what do you call that in
the
file source? Is it like a virtual directory in IIS? It's some type

of variable obviously, but can somebody tell me what it's called so I can
research how it works? thanks.



Jul 19 '05 #6
No. Here's from the VBScript docs:

Naming Restrictions
Variable names follow the standard rules for naming anything in VBScript. A
variable name:

a.. Must begin with an alphabetic character.
b.. Cannot contain an embedded period.
c.. Must not exceed 255 characters.
d.. Must be unique in the scope in which it is declared.
Ray at work
"Eric Bragas" <eb*****@thermage.com> wrote in message
news:Ov**************@TK2MSFTNGP12.phx.gbl...
I know about application and session variables, and how to initialize in
global.asa, but is there a way to use VBS variables in this format? {$
someVar}

I thought I saw this before, but I could be wrong.

Jul 19 '05 #7
"Eric Bragas" <eb*****@thermage.com> wrote in message
news:Ov**************@TK2MSFTNGP12.phx.gbl...
I know about application and session variables, and how to initialize in
global.asa, but is there a way to use VBS variables in this format? {$
someVar}

I thought I saw this before, but I could be wrong.
In ASP/VBScript, this would look more like:

<img src="<%=ImagesDir%>/photo.gif">

Hope this helps.

Peter Foti


"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:%2*****************@TK2MSFTNGP09.phx.gbl...
Yes, VB Script supports variables. ;]
Somewhere in some php code, that is defined. It could be in an include
file, in that page, or in the php.ini file. There's isn't an asp.ini file
equivalent, but you can use things like application variables or includes
to
include a global value in all of your pages. I guess you could kinda

say that php has one-up here, but it's all in how you look at it. If you

define
500 variables in your php.ini, they'll be there for all pages

unnecessarily.
This is a similar waste of resources in the way that adovbs.inc is, but at least with that, you include it when and where you want.

Ray at work

"Eric Bragas" <eb*****@thermage.com> wrote in message
news:u5**************@TK2MSFTNGP12.phx.gbl...
YES, I took this out of a PHP page. However, I thought I saw the same

type
of thing in an ASP page using VBScript several years ago. Can something like this be done in VBScript ASP?

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message news:OH**************@tk2msftngp13.phx.gbl...
> Was this formerly a php page or something? A php var would look
like that
> (but without the space after the $). Or maybe a .pl page. It could be > anything.
>
> Ray at work
>
> "Eric Bragas" <eb*****@thermage.com> wrote in message
> news:O7**************@tk2msftngp13.phx.gbl...
> > What is this? <img src="{$ ImagesDir}/photo.gif">
> >
> > I KNOW what an HTML image tag looks like. But what do you call
that in
> the
> > file source? Is it like a virtual directory in IIS? It's some
type of
> > variable obviously, but can somebody tell me what it's called so I

can > > research how it works? thanks.
> >
> >
>
>



Jul 19 '05 #8
My guess is that someone generated that page by transforming XML with XSLT,
but had an error in their XSLT somewhere. In XSLT you can declare a
variable and then insert its value where you need it with {$variablename}.
Maybe the space between $ and ImagesDir screwed it up.
"Eric Bragas" <eb*****@thermage.com> wrote in message
news:O7**************@tk2msftngp13.phx.gbl...
What is this? <img src="{$ ImagesDir}/photo.gif">

I KNOW what an HTML image tag looks like. But what do you call that in the file source? Is it like a virtual directory in IIS? It's some type of
variable obviously, but can somebody tell me what it's called so I can
research how it works? thanks.

Jul 19 '05 #9

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

Similar topics

14
by: Gregory | last post by:
Hello, I'm trying to do the above in order to process an image and return the result to an html image control. It fails and my key suspects are either the variable that I'm passing in -...
15
by: Gérard Talbot | last post by:
Hello all, I'd like to know and understand the difference between, say, <img src="/ImageFilename.png" width="123" height="456" alt=""> and <img src="/ImageFilename.png" style="width:...
16
by: Gufus | last post by:
Hi Group... <a name="#top"></a> ----del---- ----del---- <img SRC="images/top.gif" USEMAP="#top" BORDER=0> <map NAME="top">
1
by: lwhitb1 | last post by:
I have been trying to load a javascript function from the body onload html tag, but I only want the function to load the first time the page is loaded: I have investigated but haven't found...
2
by: McKirahan | last post by:
If I have a Web page invoked via http://myDomain.com/What.htm that references an ASP page via the <img> tag's "src=" like this: <html> <head> <title>Page.htm</title> </head> <body> <img...
17
by: Alan Silver | last post by:
Hello, I have a page which I am converting to use themes. The page has an HTML <input type="image"> element that is used to post to another page. I would like to replace this with a server...
4
by: aashen | last post by:
I'm building a new site and using the Lightbox2 photo gallery(http://www.huddletogether.com/projects/lightbox2/). I have several images...each open up their own gallery. I was having a problem with...
7
by: Christian Hackl | last post by:
Hi everyone, I've got a question about what makes the "img" element's width/height attributes valid HTML or XHTML. First of all, this is a rather theoretical question, but digging through the...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.