Wrox Programmer Forums
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 29th, 2004, 10:13 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W
Default page hanging

Hi there

I've got an online transaction going on my website in development; when I put myself in the customers shoes and put a transaction through on my Windows machine (infact any windows machine) the transaction works fine and it ends up displaying the correct page.

However, when I try it on a Mac it hangs on the validation page of the transaction; in the validation page I have a set of conditions that it has to pass - if it fails it directs to a particular failure page, if it succeeds, it directs to a particluar success page. When I view the source on the validation page that it is hanging on I see this:

 <form name="frm_pass_it_on_failed" action="http://myurl.com/t_failure.asp" method="POST">
        </form>

        <script>
            document.frm_pass_it_on_failed.submit();
        </script>

I'm not worried about it failing but what I don't understand is why it doesn't submit to http://myurl.com/t_failure.asp - does anyone know why this would be a problem with a Mac and if so, how can I rectify it.

Many thanks

Adam

 
Old September 29th, 2004, 11:18 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Pity you can't debug it as you can on Windows...
Does adding type="text/javascript" to the script tags help?
Or perhaps you need a full reference to the form:
Code:
document.forms.frm_pass_it_on_failed.submit();
Are there really no elements in the form, perhaps Mac doesn't like that?
Is it IE on the Mac, if so what version?

--

Joe
 
Old September 30th, 2004, 03:55 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W
Default

Hi Joe

It's IE 6 on the mac

the only other elements in the form are a couple of variables in the querystring which I removed when I posted the code up here. do you think it's the querystring which it doesn't like?

 
Old September 30th, 2004, 04:09 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

maybe it doesn't like posting the form before the page has fully loaded? Have you tried putting the code in the onload event of the body? I'm just guessing here BTW.

rgds
Phil
 
Old September 30th, 2004, 04:12 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W
Default

Got it - I took out the querystring variables and changed them to hidden variables and it works fine now - not sure why!

 
Old October 21st, 2004, 05:03 PM
Registered User
 
Join Date: Oct 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, Adam,
I am having similar problem with you on a commerical site which I maintain, but on windows, browser IE6 too.Sometimes customers called us for complaining they didn't get receipt page after filling out credit card information and click submit button. Asp page is just hanging and never displayed to them, I am not sure if this is a problem because of query string behind the action or redirect. Can you tell me how to write a asp code to debug the the similar issue.

 
Old October 28th, 2004, 07:27 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W
Default

Hi there

What I did was change the way the variable was fetched from the querystring to a hidden variable.

Sorry about the delay in replying






Similar Threads
Thread Thread Starter Forum Replies Last Post
Report Viewer is hanging up rachel_caleb13 Crystal Reports 0 July 11th, 2007 05:28 AM
VS2003 hanging gbrown VS.NET 2002/2003 3 October 9th, 2006 01:50 PM
code downloads - hanging... daboooooh Forum and Wrox.com Feedback 1 May 15th, 2006 01:53 PM
code downloads - hanging! daboooooh BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 4 May 14th, 2006 09:50 AM
Hanging process Gert SQL Server 2000 0 April 4th, 2005 04:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.