Author |
Topic |
Da_Stimulator
DEV Team Forum Moderator
USA
3373 Posts |
Posted - 04 November 2004 : 00:58:20
|
I've just added a pretty ****ed complicated DHTML Menu to my forum, from which you can go directly to post.asp (post a new topic in a forum) - and I've noticed that the asp dosnt pick up the referrer when coming from a javascript link, is there any way to fix this? because when it tries to redirect from post_info.asp it just goes to itself, displaying absolutely nothing. |
-Stim |
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 04 November 2004 : 03:23:19
|
Sure it's not because of something your running locally? Norton's etc thats blocking referrers? |
Kiwihosting.Net - The Forum Hosting Specialists
|
|
|
Da_Stimulator
DEV Team Forum Moderator
USA
3373 Posts |
Posted - 04 November 2004 : 03:47:14
|
positive... the http_referer isnt picking up the referer when the page is linked via javascript, it is when its linked via html though. |
-Stim |
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 04 November 2004 : 06:05:36
|
Well I'm fairly certain that whatever it is, it will be a client side issue, so I don't think theres anything server side you can do about it. |
Kiwihosting.Net - The Forum Hosting Specialists
|
|
|
Da_Stimulator
DEV Team Forum Moderator
USA
3373 Posts |
Posted - 04 November 2004 : 07:02:33
|
I dont care what the solution.... client side or server side, I need to figure out how to send a referrer from dhtml, or somehow pick it up using asp... I dont mess with client-side that much so I dont know where to start looking for the issue. |
-Stim |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 04 November 2004 : 07:57:27
|
any chance of a demo link ?
are you using frames at all ? |
|
|
Da_Stimulator
DEV Team Forum Moderator
USA
3373 Posts |
Posted - 04 November 2004 : 07:59:17
|
no frames.... divs/ilayers - and no chance for a link, running off my localhost.... type in my IP /snitz and it should come up
Edit: If it does come up Home->News->Submit news or Home->General Forum->New Topic anything with submit or new topic
post something, then it will sit you at an empty post_info.asp
edit again: test/test |
-Stim |
Edited by - Da_Stimulator on 04 November 2004 08:02:14 |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 04 November 2004 : 08:59:07
|
can't get at it, no problem.
couple of things, post.asp requires the either strReferer to be set by incheader or to be passed in a form variable, post_info is expecting it to be passed as a form variable from post.asp
if you do a view souce on post.asp, is the referer filled in ? check you inc_header to make sure it is being set correctly |
|
|
Da_Stimulator
DEV Team Forum Moderator
USA
3373 Posts |
Posted - 04 November 2004 : 14:43:18
|
checked the source, when viewed via javascript link, the hidden form field value is " ", when viewed via html link it shows the actual referer...
This is in my inc_header.asp
strReferer = chkString(request.servervariables("HTTP_REFERER"),"refer")
I dont know why its not working... |
-Stim |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 04 November 2004 : 15:11:54
|
where in the page is your menu code ? is it before or after strreferer gets set ?
How does the menu work? where are you coming from when you arrive at post.asp |
|
|
Da_Stimulator
DEV Team Forum Moderator
USA
3373 Posts |
Posted - 04 November 2004 : 15:20:26
|
menu code is in the <body> section, well after strReferer is set. Menu is heavily modified CoolMenus script from http://dhtmlcentral.com
Menu is a drop down, can be coming from anywhere when you arrive at post.asp
P.S. I'm uploading now... trying to anyway, FTP Server is messed up, but I will be able to show you what I'm talking about soon hopefully. |
-Stim |
Edited by - Da_Stimulator on 04 November 2004 15:30:36 |
|
|
Da_Stimulator
DEV Team Forum Moderator
USA
3373 Posts |
Posted - 04 November 2004 : 18:50:08
|
I could send the referer through the querystring from the menu-links, but I'd rather not do that |
-Stim |
|
|
Da_Stimulator
DEV Team Forum Moderator
USA
3373 Posts |
Posted - 04 November 2004 : 19:51:17
|
Huw, Here's a link - You can see what I mean by
Home->News->Submit News
Dont mind the site, its far from finished :P |
-Stim |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 05 November 2004 : 05:23:18
|
Sorry to say Stim, but that is actually normal behaviour, doing a href jump in JS is the same as typing the url directly in the browser (it is client side) so there is in fact no referer |
|
|
Da_Stimulator
DEV Team Forum Moderator
USA
3373 Posts |
Posted - 05 November 2004 : 20:14:07
|
well, its been discovered that firefox will send the base url as the referer, IE sends nothing....
I'll either make a work-around or remove those links |
-Stim |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 06 November 2004 : 03:22:27
|
you could pass the referer in the url instead |
|
|
Topic |
|