|
|
a page used as a menu in an active desktop enviroment is made up of frames. the menu being the top frame and a main frame for viewing, very simple... So how can i keep a page, such as "Code Project", from jumping out of the frame and taking the whole active window over?
shotgun
|
|
|
|
|
I do not think you can do this. Sites that do what you are describing do this on purpose. They don't want to be framed as part of another site/application. Am I wrong?
// Steve McLenithan
Cluelessnes: There are no stupid questions, but there are a lot of inquisitive idiots.
|
|
|
|
|
I have built a custom web control with C#. For some reason, when another control fires a postback (such as a drop down list with AutoPostBack set to true is changed), the event handler for my custom control gets fired as well as the event that is intended to get fired. Does anyone have an idea why this might be?
Thanks.
-Matt
------------------------------------------
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
|
|
|
|
|
Hi,
I need to re-define the root of my html-page in the following sense:
When you write the picture will be taken from the websites root/pics/ folder. Now, I want to dynamically change this, say I have two different sets of images in
root/picsA and root/picsB - and I want to write something like
<image-root "="" picsa"="">
get it ? All pictures (etc.) must be loaded from another root than the default. I've looked at the <base..> tag, but it doesn't seem to be what I need. any other suggestions ?
Do you know why it's important to make fast decisions? Because you give yourself more time to correct your mistakes, when you find out that you made the wrong one. Chris Meech on deciding whether to go to his daughters graduation or a Neil Young concert
|
|
|
|
|
What language are you wanting to accomplish this with? Regardless, you will have to process what you want on the server side. There are no HTML tags to accomplish what you want. It is a static markup language. Future browsers may have support for something like this using xml (xhtml maybe -- see http://www.w3.org/TR/xhtml1/ for the complet xhtml spec), but browsers in their current iteration do not. I would suggest that you create some routine that keeps track of all your images and inserts a record for each one into a database. Then you can grab an image record and the image path and place those in your src tag.
If you need more specific help, tell me what language you're using.
-Matt
------------------------------------------
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
|
|
|
|
|
Thanks for your answer
I just hoped there would be something like the <base target="myOtherFrame" /> or whatever that could specify a common "root" for all source references (css, images, etc.) - but as I couldn't find it, I asked here. I'll trust you on the "There are no HTML tags to accomplish what you want" statement
Acutually, I'm generating the HTML from a template file with tags I replace with content - all done form C#. In the meantime, I've discovered some other problems regarding the folder-structure / IIS setup I'm using, so I think I'll move to a different setup, where I won't need this "root-switch".
But thanks again - this is why I like CP so much. You usually get at least one answer on a query. A lot of other sites seem to contain primarily questions and no answers...
/Jan
Do you know why it's important to make fast decisions? Because you give yourself more time to correct your mistakes, when you find out that you made the wrong one. Chris Meech on deciding whether to go to his daughters graduation or a Neil Young concert
|
|
|
|
|
Doesn't this work?
<base href="http://your-web-site.com/rootB/" />
I believe it's depreciated in HTML 4.0, but there is a HTTP header you can send to do the same thing.
|
|
|
|
|
that would switch all relative to rootb not just img tags
"there is no spoon" biz stuff about me
|
|
|
|
|
Can anyone recommend a shopping cart? Hopefully a free one. I
have looked at them all. Agoracart is terrible. OsCommerce is
great, but lots of little adjustments.
Does an easy shopping cart exist?
|
|
|
|
|
How about the IBuySpy store. http://www.asp.net?
-Matt
------------------------------------------
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
|
|
|
|
|
PayPal[^] rocks the world. When used with IPN it's just like any commercial solution, I really recommend it
Paul
Open the fridge door, scream, and everything that doesn't run into the corner is safe for eating. - Jörgen Sigvardsson
modified 18-Jul-18 11:59am.
|
|
|
|
|
I am attempting to create a variable for every field in a record set. When attempting to run this code, I get simply a "Syntax Error". Does anyone know why this won't work?
Set RS = Server.CreateObject("ADODB.Recordset")
RS.Open "SELECT * FROM " & tableName, MyConn
For each Field in RS.Fields
createVar = Field.Name & "=" & Field.Value
Execute(createVar)
Next
Thanks
|
|
|
|
|
Execute is a method associated with a Server, Connection, or Command object in ASP, not a standalone function. It looks like you're trying to append field values to field names, then treat them as functions. What are you really trying to accomplish?
"Another day done - All targets met; all systems fully operational; all customers satisfied; all staff keen and well motivated; all pigs fed and ready to fly" - Jennie A.
|
|
|
|
|
Isn't it Server.Execute? I could be wrong...
NATHAN RIDLEY
Web Application Developer
email: nathan @ netlab.com.au
[remove the spaces before and after the @ symbol]
|
|
|
|
|
|
Hi
I have a menu (html) that always stays the same. I want to include this menu on my other html pages, but don't want to use frames.
How is this done? I know there's a #include syntax in asp, but I want to use only html.
tx
|
|
|
|
|
(i.e.
if I have an includes folder at the root of my web dir)
or
(i.e.
to 'step back' one dir and into the includes folder.)
include virtual is the best way to include a file.
|
|
|
|
|
Hi
sorry but this stil does not work, I don't know what I'm doing wrong!
my one file is a.html:
standard "hallo world" sentence
the other one is b.html:
<html
<body>
in the same dir...
|
|
|
|
|
If using 'include virtual' it doesn't matter if the file is in the same directory or not - you always specify the absolute path from the web root. Meaning, if your domain name is acme.com, and you have a folder called 'includes', then the full URL to your includes would be www.acme.com/includes/...same with this. If your a.html is in a directory other than the web root, then you have to specify it (i.e., include virtual = "/includes/a.html" or whatever your path is).
If it's in the same directory you can simply use 'include file' and it will work in your particular example as well.
Robby
|
|
|
|
|
This is SSI (server-side include) syntax and must be supported by the web server. Either the web server must be configured to treat .html files as SSI files or the file must be renamed to the use the extension associated with SSI (usually .shtml ).
Think of SSI as a "lightweight" scripting language that doesn't have the advanced features of languages like ASP/JSP/PHP.
- Mike
|
|
|
|
|
|
Try the sum (5*22.99) in Javascript... (Internet explorer 6.0.2800xp sp2)
<script type="text/javascript" > document.write(5*22.99);</script>
I get 114.94999999999999!! it can't be right.
what do you get or is this machine specific?
Jason
|
|
|
|
|
I get the same. IE 6.0.2800.1106 (SP1)
Just another little oopsie... I had similar problems with Paradox, trying to convert a currency value to text often (not always) got the last digit wrong by one. It took me hours to figure out
text = asc(int(amount)) + "." + asc(int(amount*100)- (100 * int(amount)))
just to be able to print a check. Does it get the correct answer if you format it to display only the first two decimal places?
"Another day done - All targets met; all systems fully operational; all customers satisfied; all staff keen and well motivated; all pigs fed and ready to fly" - Jennie A.
|
|
|
|
|
hi all.i am working now on my graduation project which is about content management system. i want to add date and time to my home page which are to be always updated when the clock or date of the computer change.
so i want it dynamic not static.
thanks .
good luck for all.
|
|
|
|