Referrer In Frames
Apr 20, 2005
I have a site with the "standar" three frames (top, left, main) and in one of then i have a link that calls a Javascript function that at some point do
if(readCookie('TreeUtente')==null){
top.location.href = "Login.asp";
return;}
But this is sending the referrer the url of the frame where the code is, not the window url. How can i make the referrer the window url, not the frame url? From what i've serched Javascript can not change the referrer, is there any workaround?
View 3 Replies
ADVERTISEMENT
Jul 23, 2005
if I put alert(document.referrer) in code of a file that was linked from another it returns blank... pls, need to get document.referrer, don't why it's not working... read up on oreilly, don't know what I'm doing wrong..
View 9 Replies
View Related
Feb 23, 2006
Is there a way to turn the document.referrer string into a Location like
object, so I can extrac the domain and other parts of it?
View 2 Replies
View Related
Sep 28, 2006
does anyone know if there is anything wrong with this code?
<SCRIPT LANGUAGE="JavaScript">
document.referrer.indexOf("http://www.example.com")
!= -1){ document.write("http://www.example.com/image1.jpg")}
</SCRIPT>
View 5 Replies
View Related
Nov 21, 2009
I have some JS code that launches a popup (which is a PHP enabled page). It's the standard window.open setup.
On that popup, I need to detect the referrer.
In PHP, $_SERVER['HTTP_REFERRER'] is not set, so I get nothing. As well, document.referrer is empty.
So how to detect the referrer?
View 4 Replies
View Related
Jul 16, 2006
Is there a way to set the value of HTTP header Referrer to null or to
any specified value?? I have tried doing this
document.Referrer= null
but document.Referrer is a read only property therefore the value can't
be changed and a Javascript error is occuring. Any ideas on how this
can be achieved.
View 1 Replies
View Related
Jul 20, 2005
It certainly doesn't help that IE doesn't seem to pass document.referrer or am I missing something ? Is it set up thru an add-on analysis package? (referrer info from logs? )
View 1 Replies
View Related
Nov 23, 2005
This is my first time messing with the document.referrer tag in javaScript, and I'm afraid it's giving me some trouble. It all seems very simple and I'm having no problem getting the other document methods to work, but this one just refuses to get in line. Here's my test code:
<HTML>
<HEAD>
<title>refer test</title>
</HEAD>
<BODY>
<P>
<script LANGUAGE=JAVASCRIPT
TYPE="TEXT/JAVASCRIPT">
<!-- Hide script from old browsers
document.write('<P>Here's the URL: ' + document.URL);
document.write('<P>Here's the last modified info : ' + document.lastModified);
document.write('<P>Here's the referrer: ' + document.referrer);
//-- Stop hiding script -->
</SCRIPT>
</body>
</HTML>
The document.URL and document.lastModified work fine, but referrer never shows up. Can anyone tell me what I'm doing wrong here?
View 2 Replies
View Related
Mar 21, 2010
It should be possible because tracking softwares can find the referrer's title.
View 7 Replies
View Related
Mar 26, 2011
I am looking for a javascript that will redirect if the visitor is coming from a certain specific. url.Basically I need the webpage to do a meta refresh or redirect to a new page if the visitor is coming from a specific url.
So if there was a link on this post to my webpage, it would redirect to google if the visitor came ftom this url,[URL]...
I have adwords coupons and can make a small paypal deposit for your time.
View 1 Replies
View Related
Feb 6, 2010
Chrome creates new process for each instance(click to any _blank url). The new instance doesn't get 'document.referrer'.
How I can get it for Chrome? (This problems is only for Chrome)
You can create simple links and page.
This page contain next text:
<script language="javascript" type="text/javascript" charset='UTF-8'>
document.write('<H2>');
document.write('<b>Referrer Is: </b>');
[Code]....
View 2 Replies
View Related
May 17, 2010
I am trying to save the URL parameters from a referrer link... For example I have the following link: http:www.rene.com/media.asp?q=1234 and it takes you to a page where the javascript is running and saving the cookie: http:[URL] .Now i came out with the javascript code below but for some reason the parameter q is not saving in the cookie...
function gup( name )
{
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)";
[Code].....
View 1 Replies
View Related
Mar 14, 2002
When using document.referrer to get the referring URL it only sees up to the ampersand
i.e. www.something.com/script?name=value&
Is there any way to get the rest of the URL?
View 3 Replies
View Related
Jul 21, 2010
I'm trying to create a splash page effect on my index page by adding some full screen images with jquery. I got that to work, but I only want to call the script if a person is arriving at the homepage after coming from an external site. I think I can use document.referrer in something like this:
[Code]...
But it's not working I'm very new to javascript .
View 2 Replies
View Related
May 9, 2010
I have very little knowledge of javascript, other than modifying existing scripts, and I can't find anything about this particular problem. creating a simple script that will display a div ONLY if the user comes from a certain page within the same site.
Not sure if that was clear, but let me try with specifics. There is a link to a page called 'Clients' on the 'About Us' page. If a user goes directly to 'Clients', they should have a normal experience. If, however, they come via the 'About Us' page, I want to display a div at the bottom of the page that will take them back to the 'About Us' page.
I know how to get a referrer, and I know how to show/hide divs. I just don't know how to combine the two.
View 3 Replies
View Related
Feb 19, 2008
Is there any script that can hide referrer and works with both IE and fire fox?
View 5 Replies
View Related
Mar 15, 2010
I'm trying to get the top referrer. My script is called in a (nested) Iframe over multiple domains.
I googled a lot, and I'm getting the idea that it's not possible to do this.
For example: Somesite -> iframe (domain A) -> iframe (domain B) -> my script(domain C)
View 4 Replies
View Related
Nov 14, 2011
i was hoping to get some help with just figuring out how I should tackle an issue I'm having. I am pretty good with php and javascript, but no expert. Anyways, I have a site where I am wanting to swap some info around the Wordpress site, based on the referrer domain.
More specifically, when a user comes from craigslist.org/anything/ , I need to be able to make a substitution of a couple of html elements during their session. Very likely I will be making that substitution through some combination of js and php - right? - but I'm not quite confident in how I should start off. The site in question is [URL]...
If anyone just has any theories about how this should work, then PLEASE share them! And if you have a code snippet that might start work in this direction, that I can modify and play with, then PLEASE share that as well,
View 2 Replies
View Related
Mar 30, 2011
For example ,There is a "Link" called "go to view" at the bottom of the my page, which is redirecting to [URL]. if we use $_SERVER['HTTP_REFERER'] in test.php page It will display the url of the page from which link was clicked. The problem is this my URL can be seen at the target page. This needs to be avoided. How can i do this using javascript ?
View 7 Replies
View Related
Jul 23, 2005
As a rule, I don't like frames but I'm stuck supporting a web that uses
them. I have a page, default.asp, that has a header and body frame: "fHead"
and "fBody". What I want to do is to prevent default.asp from ever loading
itself into "fBody". Some users still have code that causes this behavior.
So how, using javascript , can I do something to the effect of: "If
default.asp tries to load default.asp (itself) into fBody, then reload the
top-level browser window with what fBody is trying to load."
Make sense? Any thoughts?
View 1 Replies
View Related
Feb 5, 2001
my main page consists of frames.
i'm using ssi to include copyright info, tos, and a privacy statement at the bottom of each page.
the ssi is working on all regular (ie non-frame) pages, but it doesn't seem to be called or parsed on the main page.
a look at the source shows the ssi call just sitting there, doing nothing.
has anyone dealt with this before?
i didn't think it mattered if an ssi was called from within a framed page, but i might be wrong.
i suppose i can just use the actual html for that one page but i'd rather just be able to use ssi since it's used through out the rest of the site.
View 4 Replies
View Related
Jul 23, 2005
I have a frameset with two frames, and want to have a button in one
frame call print() in the other one:
This is the layout:
<frameset rows="*,40" frameborder="NO" border="0" framespacing="0">
<frame src="..." name="pritableText">
<frame src="..." name="printButton" scrolling="NO" noresize>
</frameset>
And, in printButton, I got this code:
<a href="#" onClick="parent.printableText.focus();
parent.printableText.print();">Print the page</a>
However, nothing happens in Netscape (7.01) and Firefox (0.8), and in IE (6)
I get an "error in the script". However, I do not identify the error.
Does anyone have a clue onto what's happening?
View 1 Replies
View Related
Jul 23, 2005
Let me just start by saying... and I truly do mean this... I HATE frames. Now that I have that out of my system, unfortnualty I do not have a choice and am forced to use the complex structure that I am so SO needing help with. My framesets look like this
---------------------
| title |
|--------------------
| buttons |
|--------------------
| base |
|--------------------
inside the base frame I have ANOTHER frameset... split into frmLeft and frmRight... now if your mind isnt tied into knots... I am sure this will do it... I have a button called 'add category', which is on the buttons frame. When I click the button, I get a popup with the details... I add the category details... then I need the frame titled frmLeft to refresh. Is this possible?
View 1 Replies
View Related
Jul 23, 2005
What's the trick to sharing cookies between frames? I can set and read a
cookie in the same frame, but if I try to read the cookie in another frame
it is undefined. :o(
There are some other cookies that are available in all frames, so I know
that the frames are capable of reading cookies, just not the ones that I set
in the other frame.
View 1 Replies
View Related
Sep 12, 2005
I believe that different browsers treat frames/iframes differently, and this
is one of the reasons to avoid using them in websites/applications.
Are there any other reasons to avoid them?
In my experience I find them clunky and messy to implement using javascript
and prefer to keep the whole web page as a single page.
View 1 Replies
View Related
Sep 14, 2005
I have to iframes within one page. When I triger action in one frame, I
need to update the content's of other frame's selection list.
How to access second frame's form element from my first frame in index
page?
Suppose I named my second frame "content", and form element is named
simply "form1". If I try to access that form by refering:
parent.content.document.form1, I get nothing at all.
View 3 Replies
View Related