Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - popup box help
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

popup box help

 Post Reply Post Reply
Author
Nathan View Drop Down
Groupie
Groupie


Joined: 08 January 2002
Location: Greece
Status: Offline
Points: 160
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nathan Quote  Post ReplyReply Direct Link To This Post Topic: popup box help
    Posted: 10 March 2003 at 1:55am

I am using a popup box to confirm that a form has been processed (send email with link to the page to a friend_, but I want the user to be returned to the original page after they have pressed the OK on the popup box:

 

dim site
site=request.servervariables("http_referer")

response.write "<script>alert('email sent!');location.href='http://www.agni-travel.com'</script>"
response.end

 

I need to change the location.href to reflect the 'site' varaible, but however I add it I get a error or sent off onto a while page!

Thanks for any help you can offer.

Nathan

 

Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 10 March 2003 at 6:22am
Originally posted by Nathan Nathan wrote:

I get a error or sent off

and the error is ______________ ?
Contribute to the working anarchy we fondly call the Internet
Back to Top
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post Posted: 11 March 2003 at 3:59pm

dim site
site=request.servervariables("http_referer")

response.write "<script>alert('email sent!');location.href='"&site&"'</script>"
response.end

Back to Top
Nathan View Drop Down
Groupie
Groupie


Joined: 08 January 2002
Location: Greece
Status: Offline
Points: 160
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nathan Quote  Post ReplyReply Direct Link To This Post Posted: 11 March 2003 at 10:57pm

Gullanian - thanks for your help - that is what I am after. ave tried all sorts of combinations!

Your suggestion:

site="http://www.agni-travel.com/enquire.htm"

response.write "<script>alert('email sent!');location.href='&site&'</script>"

response.end

 

Doesn't work though - I get redirected to:

http://www.agni.gr/scripts/email/&site&

There must be an easy solution!

PS sorry MZ, I was not very clear in defining my problem.

 

Back to Top
Bunce View Drop Down
Senior Member
Senior Member
Avatar

Joined: 10 April 2002
Location: Australia
Status: Offline
Points: 846
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bunce Quote  Post ReplyReply Direct Link To This Post Posted: 11 March 2003 at 11:00pm

Thats because you didn't use what Gullanian wrote.

Check your quotes around the &site& variable. Copy EXACTLY what Gullanian had.

Cheers,
Andrew

There have been many, many posts made throughout the world...
This was one of them.
Back to Top
Nathan View Drop Down
Groupie
Groupie


Joined: 08 January 2002
Location: Greece
Status: Offline
Points: 160
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nathan Quote  Post ReplyReply Direct Link To This Post Posted: 13 March 2003 at 11:13pm

Brilliant,

Thanks Andrew - I am afraid - my eye-sight isn't so good anymore - too many years looking at this bloody screen!

Thanks Gullian for the correct solution.

Cheers - pop by the Taverna anytime for a beer.

Nathan

Corfu, Greece

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.