michbeta
-
Posts
5 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by michbeta
-
-
Thanks for suggestion.I tryed it:
<html><body><Table border="2"> <tr> <td> Property </td> <td> Value </td> </tr> <tr> <td> document.referrer </td> <td><script type="text/javascript"> document.write("----- " + document.referrer + " -----")</script> </td> </tr> <tr> <td> document.referer </td> <td><script type="text/javascript"> document.write("----- " + document.referer + " -----")</script> </td> </tr></body></html>
but the I.E. behavior is still the same, the document.referrer is empty.Thanks,Michele
-
Hi all,I'm trying to know the referrer page of my html page to only permit to view my page to users that are coming from a "well known" page.The problem is that document.referrer property correctly shows the calling page with Firefox 1.0.7 but is empty with Internet Explorer.I build a very sample page:<html><body><Table border="2"> <tr> <td> Property </td> <td> Value </td> </tr> <tr> <td> document.referrer </td> <td><script> document.write("----- " + document.referrer + " -----")</script> </td> </tr> <tr> <td> document.referer </td> <td><script> document.write("----- " + document.referer + " -----")</script> </td> </tr></body></html>Firefox correctly shows:
Property Valuedocument.referrer ----- http://it-m-c600:8080/WELoginAction.html -----document.referer ----- undefined -----
but I.E. shows
Property Value document.referrer ----- ----- document.referer ----- undefined -----
To complete the informations I'm using JBoss 4.01 SP1 as Web Server.Any help is very appreciated.Thanks,Michele
-
Thanks Raimo,the statement you suggested is that I was lookig for.I didn't think to try with '*' before to read your answer.MicheleHi!DOM (document object model) is a W3C standard. microsoft.all is not within it. :)This wil get all tags from document to array with DOM:var tags = document.getElementsByTagName("*"); // star means "all" -
Hi,I would like to browse all element of an html page.I found in internet this sample:--------------------------------<HTML><HEAD><TITLE>Elements: Collecting</TITLE><script LANGUAGE="JavaScript">function showElements() { var tag_names = ""; for (i=0; i<document.all.length; i++) tag_names = tag_names + document.all(i).tagName + " "; alert("This document contains: " + tag_names);}</SCRIPT></HEAD><BODY onload="showElements()"><H1>Welcome!</H1><P>This document is <B>very</B> short.</BODY></HTML>--------------------------------This is working but the Firefox Java Consoloe says that document.all is not Standard and suggests to use getElementById().But getElementById() needs an Id. Instead I would like to browse ALL elements of the page.How can I do it?Thanks,Michele
document.referrer seems to not work with I.E.
in JavaScript
Posted
With this function I.E. doesn't show the referrer page and, I don't know why, Firefox does show the referrer page, i'll do some other tests to try to discover the motivation.Many thanks also to other people for the receiveed help,Michele