Changing the action of a form with JavaScript/jQuery

后端 未结 6 801
借酒劲吻你
借酒劲吻你 2020-11-29 19:40

I\'m having an issue that is driving me crazy. I\'m trying to modify the openid-selector to support facebook. I\'m using RPXNow as my provider so it requires the form to be

6条回答
  •  一整个雨季
    2020-11-29 20:15

    I agree with Paolo that we need to see more code. I tested this overly simplified example and it worked. This means that it is able to change the form action on the fly.

    
    
    
    
    First Name:
    Last Name:

    EDIT: I tested the updated code you posted and found a syntax error in the declaration of providers_large. There's an extra comma. Firefox ignores the issue, but IE8 throws an error.

    var providers_large = {
        google: {
            name: 'Google',
            url: 'https://www.google.com/accounts/o8/id'
        },
        facebook: {
            name: 'Facebook',
            form_url: 'http://wikipediamaze.rpxnow.com/facebook/start?token_url=http://www.wikipediamaze.com/Accounts/Logon'
        },  //<-- Here's the problem. Remove that comma
    
    };
    

提交回复
热议问题