|
Is there a possibility in Client Side script to find out whether an URL was already visited or not?
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
you can access a history object with window.history
history object properties:
current<br />
length<br />
next<br />
previous
Methods:
back()<br />
forward()<br />
go()<br />
toString()
I haven't used it myself, but I think it's only for the active browser window.
Hope that helps.
let the whole world look in who cares who sees anything
BW
|
|
|
|
|
I'm trying to call multiple asp page just simply by clicking a button
But could i do this method? or how could i pass the value from this page to another asp page.
Thanks for the responce
> It should be something like this:
<SCRIPT LANGUAGE='VBSCRIPT'>
<!--
function btnClick_onClick
document.form.action = "myform.asp?ID=" & document.form.txtfield.value
document.form.submit
End Function
-->
</SCRIPT>
|
|
|
|
|
is there a way to load an html document into another one using java script?
|
|
|
|
|
What is it that you want to do...
If you give some more details I think that I can help you...
theJazzyBrain
Wise is he who asks good questions, not he who gives good answers
|
|
|
|
|
Here is my problem from another forum I tried:
I tried IFRAME and it worked with a bit of fiddling, but I don't like the extra scroll bars it adds, and I think that it only works in IE...... though not sure.
I read in another post about server side includes, but I don't know any php, and wasn't sure if I should do it that way. I managed to load the page using Java Script like this
#menu
{
position:relative;
background :#66CCCC;
float:left;
width:20%;
height:100%;
}
#content
{
position:relative;
float:left;
height:100%;
width:80%;
}
</style>
</head>
<body>
<div id="menu"> menu goes here</div>
<div id="content">
<script type="text/javascript">parent.location.href='../html/ch1/notes/Unit1a.htm';
</script> </div>
</body>
</html>
(I put another post about thisJ) However I have the problem with the file being over writing the menu, I tried changing to relative positioning with little luck.
What I want to do is have two columns side by side, one menu and on the right a dynamically loaded html page. I am writing some javascript to automatically generate a menu of links from the heading tags in my html page, that is the eventual aim. So that whatever page is loaded a set of hyperlinks will be put on the left. The idea is to save me time in making up a menu though it hasn't worked so far .
BTW, is there a way to specify a fixed column width for one column, and have another expand to fill the rest of the screen cf frames??
Cheers
Andy
|
|
|
|
|
andyg.101 wrote:
I tried IFRAME and it worked with a bit of fiddling, but I don't like the extra scroll bars it adds, and I think that it only works in IE...... though not sure.
You can disable the scroll bars of the IFRAME.
It works on Netscape 7.0 and on the latest version or Opera.
I cant see any reason why you are not using standard frames. Just find a beginners tutorial in HTML and you will be surprised that the FRAMESET tag is excactly what you need...
theJazzyBrain
Wise is he who asks good questions, not he who gives good answers
|
|
|
|
|
I'm trying to find out if there is a way to NOT print the record if a yes/no field is marked 'yes'
ASP - VBscript
using Dreamweaver's display records in Access Database on IIS
Any help would be appreciated!
Thanks!
Jacko
|
|
|
|
|
Are you looking for something like this (you would do this as you cycle through the recordset:
if not adors("yourfield") = "yes" then
Response.Write "something"
end if
HTH
-Nick Parker
|
|
|
|
|
Please a small question.
I have some javascript that i want to define with along some css stuff.
It is pretty cool with a good scrollbar effect.
Can anyone help me???
I WOULD APPRECIATE IT VERY MUCH!!!
<marquee>Universal Project
|
|
|
|
|
I am unclear as to what your question is, exactly. Is it an integration problem? Do you have a DHTML interface and want to add CSS (or the other way around)? Are you looking for ideas for using CSS?
- Mike
|
|
|
|
|
See I have a CSS file and I want to include a javascript into the CSS file so that I won't have to type in the script for every page.
<marquee>Universal Project
|
|
|
|
|
Just put your JavaScript code into a file named script.js (or something similar), and include it in your headers, e.g.:
<html>
<head>
<script language="javascript" type="text/javascript"
src="script.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<-- Rest of page... -->
- Mike
|
|
|
|
|
Does anyone know of a method by which I can assign a specific file as content for an iframe? What I have in mind is a "thought for the day" based on a hard-copy diary of quotes. I have been able to do this inside VBScript, but not to transfer it to my html page.
|
|
|
|
|
Try this JavaScript:
<br />
iframeName.src = "yourUrl.htm"<br />
But I think that it would be better to have all you quotes in a database and randomly select one when the iframe is loaded...
theJazzyBrain
Wise is he who asks good questions, not he who gives good answers
|
|
|
|
|
Thanks for the advice so far.
However, I think I must put a scenario to all you good people:
Say I have a site on the subject of world history (not true, but near enough - very similar) and I want an "events of the day", including births, deaths, battles, coronations, .... Average daily insert +- 200 words. I have a file containing six months at a time: 744k., from which this has in the past been done (don't ask me how, but I have seen it - seems easy enough too).
My second aspect is that while I'm running through the year, I'll be translating into a second language and putting both on one page on my site (for the simple reason I'd like prospective translation clients to compare the quality of my work).
I can compile a variable by way of a string in the VB environ, but how to transfer that as VBS to my HTML page? (And I need to put the site up asap!)
|
|
|
|
|
How can I force a browser to use a particular character encoding set?
I have made all the meta tags in my HTML files specify utf-8 for the charset property but I still seem to open them as western 1?
Andy
|
|
|
|
|
Hello !
I have some experience with com/webbrowser/mshtml. Recently I run into a very interesting problem, and after spending some days on it(no success) I decided to try geting some answers from other programmers.
So: I wrote a simple browser helper object. On a machine without internet access, when detecting BeforeNavigate2 event, I redirect navigation. For example, if the user enters http://www.google.com, i redirect to http://mygateway/page.aspx?url="http://www.google.com".
This works fine, the problem is I can't redirect the location of the objects in the document (objects; images; flash; etc), and the page can not load them.
I couldn't find an event that fires when a resource download begins, and a mechanism for redirecting these downloads. (please note that implementing a download manager dows not solve this problem; dm objects are invoked only when the user explicitly selects "download targer..." from the context menu for example).
Please let me know if you have any ideas ( is it possible ? is it not ? a source for more info -> i've already read all I could find in msdn and microsoft on this topic and got no answer ).
I don't need specific code / code samples, I only need a hint on how to do it. I'm not interested in parsing the html code and modifying the links. pages may contain flash/applets, and i can't parse them to change the links. I need browser redirection.
As soon as I'll solve this problem, I'll post the project (no mfc; no atl; just pure C++/Com).
All the best,
psangeljg
ps. I did find a solution, but it's not what I want. I figured that mshtml uses wininet (wininet.dll) to access the resources. I could write my own wininet.dll that calls the actual wininet.dll, changing the urls. However, I try to avoid this soultion, since wininet.dll varies with the os version. Performance is also important.
|
|
|
|
|
I know how to align an HTML background image to one side or another (using background-position), but how can I make it start at 0,0 and stretch to exactly fit the size of the element?
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
I'm not sure what you mean, but try something like this
CSS:
tr.title<br />
{<br />
background-image: url(\Images\bar.gif);<br />
}
in HTML:
<tr class=title>
|
|
|
|
|
You can use that to tile an image or to have the image shown once on the background, but I haven't found a way to stretch it to exactly fit the element.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
Is there a way to load an html page using DHTML. I have lots of HTML source already written, and I'd like to have a page with the following
<html>
etc etc...
<body>
<div id="menu">menu content here</div>
<div>load a previously written html document here</div>
</body>
</html>
Is this possible?
andy
|
|
|
|
|
you can useful DOM method inside JavaScript:
----------------------------
document.write(place your html code here);
|
|
|
|
|
can I do something like
document.write(../../xxxx.html)
?
|
|
|
|
|
Hi,
I would be really grateful for som info on this.
(1) How do I perform a javascript submit from a C++ client app. My own guess is that using CInternetFile::Write() would be a good start but I wonder whether this is enough or if perhaps special string formatting or additional data needs to be added to the written string.
(2) To do a HTML POST could probably be done in a similar way but how do the the "name= " and "action= " parameters fit into the picture?
(3) Are there classes in .NET that would do this whole thing a lot easier?
thanks and cheers
Adam
_____________________________________
Action without thought is not action
Action without emotion is not life
|
|
|
|