473,287 Members | 1,570 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,287 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 2975
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.