Jump to content

michbeta

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by michbeta

  1. Many thanks Scott,Your example worked also for me and directed me to the origin of the problem.The problem was originated by the calling page, where the sample page was called by:window.open('','TestServer',"menubar=yes,scrollbars=yes,status=yes,resizable=yes,toolbar=yes,width=800, height=600); 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
  2. 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
  3. 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
  4. Thanks Raimo,the statement you suggested is that I was lookig for.I didn't think to try with '*' before to read your answer.Michele
  5. 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
×
×
  • Create New...