1

I'm from Java and know nothing about jQuery, my application need to integrate with openid and i have to choose openid-selector as my client, it is a jQuery plugin that can send a form to server with query parameters, I hope to submit the form with additional

openid_provider=google

query parameter pair according user's selection, how could i modify the js file to achieve this?

please see below demo:

http://openid-selector.googlecode.com/svn/trunk/demo.html

i know when i set openid.setDemoMode(false); and it will send request to server like below:

http://myserver/examples/consumer/try_auth.php?action=verify&openid_identifier=https%3A%2F%2Fwww.google.com%2Faccounts%2Fo8%2Fid

I want to add one query pair to this request mentioned above, how could i do that?

used file:

http://code.google.com/p/openid-selector/source/browse/trunk/demo.html

http://code.google.com/p/openid-selector/source/browse/trunk/js/openid-en.js

http://code.google.com/p/openid-selector/source/browse/trunk/js/openid-jquery.js

Thank you.

1 Answer 1

1

You can add another hidden field inside the form e.g.,

<input type="hidden" name="param" value="value" />
Sign up to request clarification or add additional context in comments.

1 Comment

I actually find the line to do the trick: it use $('#openid_form').append('<input type="hidden"d="' + this.input_id + '" name="' + this.input_id + '" value="'+ url + '"/>'); to add one input dynamically, following this i can add another parameter just as the same. Thanks anyway.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.