bigdan
I have had the same problem. Although a lot has to do with the way the intranet is set up, you can get documents to open in their native application via your code.
My solution is to use "file://" at the beginning of the URL in a link instead of "http://"...
deltarho
Another way is to use HTML escape sequences.
i.e. “ gives an open quote,
” gives a close quote,
" gives a neutral quote that could be used as either an open or close quote
E.g. <H1>“Heading Goes Here”</H1>
will show on your page as...
lamber
This script reads from one text file and writes back to the same file. It is well commented and should get you off to a good start.
<% Option Explicit %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>File Incrementer</title>
</head>...
Rakhi Kalra
You could create a table in HTML and use the onMouseOver event to bring up a small pop-up window, or a prompt dialog box.
This function will change the contents of a table cell using a prompt dialog box:
function openChangeText(theCell){
theCell.innerText = prompt("Enter...
Hi
Another way to get vertical text is by embedding a table within a table cell. This works fine in IE5.5 and Mozilla. It really is just basic HTML so it should work in any browser.
i.e.
...
<TD> <!-- cell of outer table starts here-->
<table> <!-- inner table -->...
Hi vbkris
It doesn't work (I think) because the table tag doesn't support innerHTML. Use a span inside the table tags, as in
<html>
<script>
function AddRow()
{
var oldvar=document.getElementById('tbl').innerHTML
newvar=oldvar+"<tr><td>Hi<\/td><\/tr>"...
There is a way to do this using JavaScript, but not by inserting the contents of a separate file. The new HTML is in the JavaScript.
You can dynamically change the innerHTML of a span or div to seemingly change the page. If you make the span go from <body> to </body>, you can change the whole...
eclipse33 & jemminger
Is there any way you could preload the image before displaying it in the pop-up?
Something like
var newPic = new Image(100,100);
newPic.src = "SomePath/SomeImage.jpg";
in the JavaScript?
dolphyn
You can set up a span or div in the table cell, give it a name, and then use a function to change the innerHTML of the span (or div, I prefer to use a span because they don't cause extra line breaks).
i.e.
function func1(){
document.all.spanName.innerHTML =" HTML code here ";
}
where...
BobInPDX
EdwardMartinIII has a great script. I have not tested it myself but it looks great. It's just what I would need to send form data to an email address and to a database simultaneously.
However, I think it's going to a lot of un-neccesary trouble if all you want to do is send form...
It looks like a nesting problem to me.
If you want to have the DIV include an entire row of TDs, open the DIV immediately after the TR tag. Do not put it in one of the TDs.
i.e. Try <tr>
<DIV CLASS="off" ID="Test">
<td> . . .</td>
<td> . . .</td>...
gussy1
Yes, there is an easy way to do this. You don't need any scripting at all, but it is not secure. If you can live with that, here it is.
Make a form tag, like so ...
<form action="mailto:address@website" method="post" enctype="text/plain"...
Hi Tread42 and JohnBates
I just want to let you know that this is also doable without ASP. ASP would be preferable to populate large lists, as JohnBates has shown, but for small lists you can do it with JavaScript.
This site explains it fairly well...
To give some detail to this discussion, one way you could do this with ASP is to use an application level or session level variable. An application-level variable is available to any ASP page in the same directory, and a session-level variable is specific for one user. They are defined in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.