Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Intersting request...

Status
Not open for further replies.

GUJUm0deL

Programmer
Jan 16, 2001
3,676
US
Hey everyone, I was asked an intersting question today at work which had me stumped...
This is what we're doing: We have some links that link to an application created by IBM, but instead of linking to the app. directly we're having a "refresh" embedded on the HTML page (so that when the user clicks on the link it takes them to another page that refreshes them to the application), not the problem is that the "refresh" tag doesn't work...
So my boss wants to know if its possiable to capture what's happening when the user hits the enter key...what we need to know is when the user hits the enter key, is there a way to find out what's happening?? I have not failed; I merely found 100,000 different ways of not succeding...
 
well you'd only catch a CR at best, what you really need to check is whether th elink actually points to the right place.
As you're here I guess you'd know to right click the page and choose "view source" to check the link anyway? ***************************************
Party on, dudes!
[cannon]
 
Well, on some porn sites they have those annoying voice adds
which tell to press the letter P to go to their site. I
suggest you try figuring out how they did that ... I'll see
if I can find one of those, and pass you the url. [bobafett] BobbaFet [bobafett]

Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com
 
Well, isnt that what he basically needs ???
Or am I a complete and utter r*t*rd ??? [bobafett] BobbaFet [bobafett]

Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com
 
Hi mate,

The clude seems to be in the following part..

what we need to know is when the user hits the enter key, is there a way to find out what's happening??

BTW. I have noticed this post in at least 2 other forums, check out the replies there as I don't think anyone has an idea what is actually required..

thread253-245818
thread608-245839


GUJUm0deL,

Can you be more specific?

Hope this helps Wullie

 
Well, (this is just me being stubborn again) I still think
I'm right. If he can detect when the enter key is hit, he
can make some event fire right. Well, same thing with what
I said, those porn sites (cant seem to find em now) detect
when the P is pressed and then set a new location. It's the
same thing, only GujuModel wants it with the enter key. [bobafett] BobbaFet [bobafett]

Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com
 
Hi mate,

It looks to me as though he is trying to see what the browser is doing rather than catch the button press..

He could catch the button press and call a url but that wouldn't tell him what the browser is actually doing when the page is called..

Hope this helps Wullie

 
Simply said,

Who cares what the browser is doing, you cant change that
anyway. But the lines you marked with red, wullie, as I read
them, he wants to know when the enter key is pressed, I
think the second part of that is just to enforce the first.
I dont think that matters. But GUJUModel should make post
to tell us exactly what he wants. [bobafett] BobbaFet [bobafett]

Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com
 
Hey guys, first off thanks to everyone for the replies...I really don't get the time to check my email on the weekend thats why I couldn't reply back to the earlier posts...
OK, with that said and done, BobbaFet has the right idea of what my boss wants done (although the logics and the gist of the post question, Wullie has it right)...what we want to know is what happens when the ENTER key is hit...but only to find out why our reidrect page doesn't work right...
Lemme explain, we have a link on our site that the user click, it takes them to a redirect page that redirects them to a site where the application in question resides...but for some unknown resaon, the redirect page just redirects them back to our hompage and not to the application...
My boss wanted to know what happens when the redirect page tries to redirect the user to application...he had a theory that a certain string is being passed via the browser to that site, and if we can capture that string then we can have the redirect go to the application from the string and not through the URL address...
IBM created the application (which in my opinion sucks), so me and another collegue suggested that we have IBM accept that redirect page, my boss didn't want to that...
Does that help clear anything up??
Thanks again... I have not failed; I merely found 100,000 different ways of not succeding...
 
Hi mate,

If you can use htaccess or you have access to the server config files, then you could acheive the redirect that way so you are not dependant on the browser settings..

Redirect permanent /old.html
Just call the old file in the link and the server should automatically redirect without the user knowing..

Hope this helps Wullie

 
Hey Wullie, unfortunetly we don't have access to that...I work for the City and they are verry uptight with those rights, even though we are the webmasters, we don't have access to anything!! I have not failed; I merely found 100,000 different ways of not succeding...
 
PS -- even if I can't find out where the URL is going, how can make it so that the site where the application resides on would accept the redirect?? Is there a simple way or do I need access to other right?? I have not failed; I merely found 100,000 different ways of not succeding...
 
Wullie, because of that problem, my boss decided to just have the link directly to the application site address, instead of the redirect page...so the link wouldn't help at the moment...
But he doesn't wanna give up the redirect-page idea...
I asked him why we can't just send the user directly to the application site, he just said "It's user friendly if we have the redirect page"...I have no idea why wants to do that way...
I can ask the server guys if we can use PHP...but I doubt it...we do use PERL though... I have not failed; I merely found 100,000 different ways of not succeding...
 
Hi mate,

User freindly?? LOL Does he know anything??

If you use a meta refresh then the browser must support that AND must have it enabled. It is automatically disabled if you set IE to high security.. User freindly would be to send the user directly to the page..

When you say "the server guys", are the servers owned by your comapany? If so and they won't allow you to use htaccess then ask them to set it up in the server config for that page to redirect.. If you want to do this then I can tell you how..

Hope this helps Wullie

 
Wullie, I just got to work today and they found an alteranate method to work...
What they did was append a varaible at the end of the REFRESH meta-tag and have the server reference that varaible...so if the redirect page is comming from the variable page then allow it, otherwise do not allow it...
Thanks for all the help...:) I have not failed; I merely found 100,000 different ways of not succeding...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top