iframe托管付款,有时会重新加载父页面

时间:2014-06-24 14:16:00

标签: javascript jquery html iframe cross-domain

以下是页面采用的过程

+-----------------------+                +------------------------+
|     Parent Page       |                |     Parent Page        |
|                       |                |                        |
|      Takes user       |                |       Feeds info v     |
|        inputs         |                |                        |
|   +---------------+   |                |   +----------------+   |
|   |               |   |                |   |   Hosted page  |   |
|   |               |   |                |   |                |   |
|   | not displayed |   |                |   |                |   |
|   |               +------------------> |   | Ask for credit |   |
|   |               |   |                |   |      info      |   |
|   |               |   |                |   |                |   |
|   +---------------+   |                |   +----------------+   |
|                       |                |                        |
+-----------------------+                +------------------------+


+-----------------------+                +------------------------+
|     Parent Page       |                |     Parent Page        |
|                       |                |                        |
|       waits           |                |   parent Refreshes     |
|                       |                | Parent goes to redirect|
|   +---------------+   |                |   +----------------+   |
|   |               |   |                |   |   Hosted page  |   |
|   |               |   |                |   |                |   |
|   | Checks data   |   |   success      |   |                |   |
|   | Charges fee   +------------------> |   |redirect trigger|   |
|   |               |   |                |   |                |   |
|   |               |   |                |   |                |   |
|   +---------------+   |                |   +----------------+   |
|                       |                |                        |
+-----------------------+                +------------------------+
            |                                                      
            |                                                      
            | Fails to charge                                             
            |                                                      
            v                                                
+-----------------------+                                          
|    Parent Page        |                                          
|                       |                                          
|                       |                                          
|   reload to redirect  |                                          
|      SOMETIMES        |                                          
|    MOSTLY doesn't!    |                                          
|  +-----------------+  |                                          
|  |   HOSTED page   |  |                                          
|  |                 |  |                                          
|  |Trigger redirect |  |                                          
|  |                 |  |                                          
|  |                 |  |                                          
|  |                 |  |                                          
|  +-----------------+  |                                          
|                       |                                          
+-----------------------+            

重定向应仅在iframe内部进行,但会在父级上触发 并且有时候,在失败的情况下,它几乎总是在iframe内部触发,可能是1/10重新加载。

两个重定向都附有一个POST数据,附带基本的付款信息反馈

如金额,用途,地点,等等。

我需要的是STOP刷新页面或ALWAYS执行此操作

由于此代码是Too board to post

(大部分都在托管付费页面上称为行星付款)因此无法直接访问他们实际如何进行重定向。

0 个答案:

没有答案