Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 problems with javascript links
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 04 November 2004 :  00:58:20  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
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  Show Profile  Visit Gremlin's Homepage
Sure it's not because of something your running locally? Norton's etc thats blocking referrers?

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 04 November 2004 :  03:47:14  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
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
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 04 November 2004 :  06:05:36  Show Profile  Visit Gremlin's Homepage
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
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 04 November 2004 :  07:02:33  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
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
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 04 November 2004 :  07:57:27  Show Profile  Visit HuwR's Homepage
any chance of a demo link ?

are you using frames at all ?
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 04 November 2004 :  07:59:17  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
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
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 04 November 2004 :  08:59:07  Show Profile  Visit HuwR's Homepage
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
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 04 November 2004 :  14:43:18  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
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
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 04 November 2004 :  15:11:54  Show Profile  Visit HuwR's Homepage
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
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 04 November 2004 :  15:20:26  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
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
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 04 November 2004 :  18:50:08  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
I could send the referer through the querystring from the menu-links, but I'd rather not do that

-Stim
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 04 November 2004 :  19:51:17  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
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
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 05 November 2004 :  05:23:18  Show Profile  Visit HuwR's Homepage
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
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 05 November 2004 :  20:14:07  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
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
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 06 November 2004 :  03:22:27  Show Profile  Visit HuwR's Homepage
you could pass the referer in the url instead
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.38 seconds. Powered By: Snitz Forums 2000 Version 3.4.07