473,554 Members | 2,278 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2999
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*****@therma ge.com> wrote in message
news:O7******** ******@tk2msftn gp13.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******** ******@tk2msftn gp13.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*****@therma ge.com> wrote in message
news:O7******** ******@tk2msftn gp13.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*****@therma ge.com> wrote in message
news:u5******** ******@TK2MSFTN GP12.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******** ******@tk2msftn gp13.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*****@therma ge.com> wrote in message
news:O7******** ******@tk2msftn gp13.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******** *********@TK2MS FTNGP09.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*****@therma ge.com> wrote in message
news:u5******** ******@TK2MSFTN GP12.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******** ******@tk2msftn gp13.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*****@therma ge.com> wrote in message
news:O7******** ******@tk2msftn gp13.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*****@therma ge.com> wrote in message
news:u5******** ******@TK2MSFTN GP12.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******** ******@tk2msftn gp13.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*****@therma ge.com> wrote in message
news:O7******** ******@tk2msftn gp13.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*****@therma ge.com> wrote in message
news:Ov******** ******@TK2MSFTN GP12.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*****@therma ge.com> wrote in message
news:Ov******** ******@TK2MSFTN GP12.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="<%=ImagesD ir%>/photo.gif">

Hope this helps.

Peter Foti


"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:%2******** *********@TK2MS FTNGP09.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*****@therma ge.com> wrote in message
news:u5******** ******@TK2MSFTN GP12.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******** ******@tk2msftn gp13.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*****@therma ge.com> wrote in message
> news:O7******** ******@tk2msftn gp13.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*****@therma ge.com> wrote in message
news:O7******** ******@tk2msftn gp13.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
13058
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 - ImageName - for processing, or the return data which is done (or not as the case may be) by imagejpeg($img) in the script, after header("Content-type:...
15
122095
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: 123px; height: 456px;" alt="">
16
4427
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
8723
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 anything that works.. I thought about cookies, but what if the user's disable them? My code: //I want to call the Toggle function below only on the...
2
6794
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 src="http://myDomain.com/Page.asp" border="0" width="0" height="0" alt="">
17
3175
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 control so I can add a skinid. I tried adding runat="server" and the skinid to the existing control, but that didn't work. Any other ideas? TIA --
4
22157
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 my cells increasing in height when applying the galleries to the image source. A forum member from Lightbox suggested using <div...
7
9848
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 W3C HTML 4.01 standard and this group's archive didn't give me a satisfactory answer, so here we go: Is <img src="img.png" alt="" width="100px"...
0
7611
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7535
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7812
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7574
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7894
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5442
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3579
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3561
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1145
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.