SlideShare a Scribd company logo
1 of 13
Download to read offline
Jesús Del Carpio



      Jj
jjdelc@gmail.com


 http://isgeek.net

     1983




     aureal.com.pe
Your OpenID URL
              ¿?
Your e-mail




Your Blogger Username
<script src=quot;/js/open-selector.jsquot; type=quot;text/javascriptquot;></script>
<script type=quot;text/javascriptquot;>
    // ID for the OpenID form
    open_selector.openid_form_id= 'openid_form';
    // ID for the OpenID URL box
    open_selector.openid_box_id= 'openid_url';
    open_selector.init();
</script>
// List of OpenID providers
var providers = {
    livejournal: {
        name: 'LiveJournal',
        label: 'Enter your Livejournal username',
        ask_username: true,
        icon: 'http://livejournal.com/favicon.ico',
        url: 'http://{username}.livejournal.com/'
    },
    blogger: {
        name: 'Blogger',
        label: 'Your Blogger account',
        ask_username: true,
        icon: 'http://blogger.com/favicon.ico',
        url: 'http://{username}.blogspot.com/',
    },
    openid: {
        name: 'Other OpenID provider',
        label: 'Your OpenID identifier',
        info: 'You know what OpenID is.',
        ask_username: true,
        icon: 'http://openid.net/favicon.ico',
        url: '',
    }
};
var openid_form = $('#' + this.openid_form_id);
        var openid_box = $('#' + this.openid_box_id);
        openid_box.hide();
        openid_box.after('<p><label for=quot;open-selectorquot;>Select your provider</label>:<br/> <select id=quot;open-selectorquot;></select></
p><p id=quot;open-selector-user-blockquot; style=quot;display:none;quot;><label for=quot;open-selector-usernamequot;>Username</label>:<br/> <input
type=quot;textquot; size=quot;20quot; style=quot;padding-left: 22px;quot; id=quot;open-selector-usernamequot; style=quot;display:none;quot;/><br/><span style=quot;font-size:
90%;font-style:italic;color:#BBBquot;></span></p> <p id=quot;open-selector-infoquot;></p><p style=quot;color:#DDD;font-size:80%;font-
style:italic;quot;>Powered by <a href=quot;http://open-selector.comquot; title=quot;Open-selectorquot;>Open-selector</a>.</p>');

       var   open_selector = $('#open-selector');
       var   open_user = $('#open-selector-username');
       var   open_user_block = $('#open-selector-user-block');
       var   info = $('#open-selector-info');
       var   label = $('#open-selector-user-block label');
       var   span = $('#open-selector-user-block span');

       var provider, style, option, selected_provider;
       var endpoint = quot;quot;;

       // Fill the combo box with configured providers
       open_selector.prepend(quot;<option>Select provider</option>quot;);
       for (provider_id in providers) {
           provider = providers[provider_id];
           style = 'style=quot;padding-left: 22px;background: url(' + provider.icon+ ') no-repeat 3px centerquot;';
           option = '<option id=quot;' + provider_id + 'quot; ' + style + '>' + provider.name + '</option>';
           open_selector.append(option);
       }

       // Set what to do on provider selecion
       open_selector.change(function(){
           endpoint = quot;quot;;
           $('option', this).each(function(){
               if (this.selected == true) {
                   if (this.id) {
                       selected_provider = providers[this.id];
                       endpoint = selected_provider.url;

                        if (selected_provider.info) {
                            info.html(selected_provider.info);
                            info.show();
                        } else {
                            info.hide();
                        }

                        if ( selected_provider.ask_username == true) {
                            open_user.css('background', quot;url(quot; + selected_provider.icon + quot;) no-repeat 3px centerquot;);

                            span.html(endpoint);
                            if (selected_provider.label) {
Funciona en IE6?




               No creooooooo ehhhhh
ID Selector




              Ma.gnolia
http://open-selector.com
http://code.google.com/p/open-selector/




                                          jjdelc@gmail.com
                                          http://isgeek.net
                                                      2008

More Related Content

What's hot

Building Persona: federated and privacy-sensitive identity for the Web (Open ...
Building Persona: federated and privacy-sensitive identity for the Web (Open ...Building Persona: federated and privacy-sensitive identity for the Web (Open ...
Building Persona: federated and privacy-sensitive identity for the Web (Open ...Francois Marier
 
Creating web api and consuming part 2
Creating web api and consuming part 2Creating web api and consuming part 2
Creating web api and consuming part 2Dipendra Shekhawat
 
Everything you always wanted to know about forms* *but were afraid to ask
Everything you always wanted to know about forms* *but were afraid to askEverything you always wanted to know about forms* *but were afraid to ask
Everything you always wanted to know about forms* *but were afraid to askAndrea Giuliano
 
Practical JavaScript Programming - Session 1/8
Practical JavaScript Programming - Session 1/8Practical JavaScript Programming - Session 1/8
Practical JavaScript Programming - Session 1/8Wilson Su
 
Hacking Your Way to Better Security - PHP South Africa 2016
Hacking Your Way to Better Security - PHP South Africa 2016Hacking Your Way to Better Security - PHP South Africa 2016
Hacking Your Way to Better Security - PHP South Africa 2016Colin O'Dell
 
Hacking Your Way To Better Security
Hacking Your Way To Better SecurityHacking Your Way To Better Security
Hacking Your Way To Better SecurityColin O'Dell
 
UITableView Pain Points
UITableView Pain PointsUITableView Pain Points
UITableView Pain PointsKen Auer
 
Who Needs Ruby When You've Got CodeIgniter
Who Needs Ruby When You've Got CodeIgniterWho Needs Ruby When You've Got CodeIgniter
Who Needs Ruby When You've Got CodeIgniterciconf
 
Game jump: frontend introduction #1
Game jump: frontend introduction #1Game jump: frontend introduction #1
Game jump: frontend introduction #1Sebastian Pożoga
 
Taming forms with React
Taming forms with ReactTaming forms with React
Taming forms with ReactGreeceJS
 
Hacking Your Way To Better Security - DrupalCon Baltimore 2017
Hacking Your Way To Better Security - DrupalCon Baltimore 2017Hacking Your Way To Better Security - DrupalCon Baltimore 2017
Hacking Your Way To Better Security - DrupalCon Baltimore 2017Colin O'Dell
 
Acceptance Testing with Webrat
Acceptance Testing with WebratAcceptance Testing with Webrat
Acceptance Testing with WebratLuismi Cavallé
 
Object Calisthenics Applied to PHP
Object Calisthenics Applied to PHPObject Calisthenics Applied to PHP
Object Calisthenics Applied to PHPGuilherme Blanco
 

What's hot (20)

Building Persona: federated and privacy-sensitive identity for the Web (Open ...
Building Persona: federated and privacy-sensitive identity for the Web (Open ...Building Persona: federated and privacy-sensitive identity for the Web (Open ...
Building Persona: federated and privacy-sensitive identity for the Web (Open ...
 
Leveraging Symfony2 Forms
Leveraging Symfony2 FormsLeveraging Symfony2 Forms
Leveraging Symfony2 Forms
 
Creating web api and consuming part 2
Creating web api and consuming part 2Creating web api and consuming part 2
Creating web api and consuming part 2
 
Everything you always wanted to know about forms* *but were afraid to ask
Everything you always wanted to know about forms* *but were afraid to askEverything you always wanted to know about forms* *but were afraid to ask
Everything you always wanted to know about forms* *but were afraid to ask
 
Practical JavaScript Programming - Session 1/8
Practical JavaScript Programming - Session 1/8Practical JavaScript Programming - Session 1/8
Practical JavaScript Programming - Session 1/8
 
Hacking Your Way to Better Security - PHP South Africa 2016
Hacking Your Way to Better Security - PHP South Africa 2016Hacking Your Way to Better Security - PHP South Africa 2016
Hacking Your Way to Better Security - PHP South Africa 2016
 
[ HackFest.pl 2012] Testing - what for and how
[ HackFest.pl 2012] Testing - what for and how[ HackFest.pl 2012] Testing - what for and how
[ HackFest.pl 2012] Testing - what for and how
 
Hacking Your Way To Better Security
Hacking Your Way To Better SecurityHacking Your Way To Better Security
Hacking Your Way To Better Security
 
UITableView Pain Points
UITableView Pain PointsUITableView Pain Points
UITableView Pain Points
 
Who Needs Ruby When You've Got CodeIgniter
Who Needs Ruby When You've Got CodeIgniterWho Needs Ruby When You've Got CodeIgniter
Who Needs Ruby When You've Got CodeIgniter
 
Symfony2. Form and Validation
Symfony2. Form and ValidationSymfony2. Form and Validation
Symfony2. Form and Validation
 
Game jump: frontend introduction #1
Game jump: frontend introduction #1Game jump: frontend introduction #1
Game jump: frontend introduction #1
 
jQuery Presentasion
jQuery PresentasionjQuery Presentasion
jQuery Presentasion
 
[ WrocLoveRb 2012] user perspective testing using ruby
[ WrocLoveRb 2012] user perspective testing using ruby[ WrocLoveRb 2012] user perspective testing using ruby
[ WrocLoveRb 2012] user perspective testing using ruby
 
Emmet cheat-sheet
Emmet cheat-sheetEmmet cheat-sheet
Emmet cheat-sheet
 
Taming forms with React
Taming forms with ReactTaming forms with React
Taming forms with React
 
Hacking Your Way To Better Security - DrupalCon Baltimore 2017
Hacking Your Way To Better Security - DrupalCon Baltimore 2017Hacking Your Way To Better Security - DrupalCon Baltimore 2017
Hacking Your Way To Better Security - DrupalCon Baltimore 2017
 
Acceptance Testing with Webrat
Acceptance Testing with WebratAcceptance Testing with Webrat
Acceptance Testing with Webrat
 
Java script
Java scriptJava script
Java script
 
Object Calisthenics Applied to PHP
Object Calisthenics Applied to PHPObject Calisthenics Applied to PHP
Object Calisthenics Applied to PHP
 

Viewers also liked

High Speed Flash Photography
High Speed Flash PhotographyHigh Speed Flash Photography
High Speed Flash PhotographyCaz Mockett
 
Marios Imagineering Presentation
Marios Imagineering PresentationMarios Imagineering Presentation
Marios Imagineering PresentationMario Ramirez Reyes
 
Famines Due To Political Policies
Famines Due To Political PoliciesFamines Due To Political Policies
Famines Due To Political Policiesdedavis
 
Famines Due To Political Policies
Famines Due To Political PoliciesFamines Due To Political Policies
Famines Due To Political Policiesdedavis
 
End Of The World
End Of The WorldEnd Of The World
End Of The Worldpremchand p
 
Diabetics kerala
Diabetics keralaDiabetics kerala
Diabetics keralapremchand p
 
GULMOHAR- FLAME OF THE FOREST
GULMOHAR- FLAME OF THE FORESTGULMOHAR- FLAME OF THE FOREST
GULMOHAR- FLAME OF THE FORESTpremchand p
 
Linked In Presentation Bcm Nov 08
Linked In Presentation   Bcm Nov 08Linked In Presentation   Bcm Nov 08
Linked In Presentation Bcm Nov 08TimCracknell
 
Design Thinking in Business: An Introduction to Imagineering and an Illustrat...
Design Thinking in Business: An Introduction to Imagineering and an Illustrat...Design Thinking in Business: An Introduction to Imagineering and an Illustrat...
Design Thinking in Business: An Introduction to Imagineering and an Illustrat...Mario Ramirez Reyes
 

Viewers also liked (17)

High Speed Flash Photography
High Speed Flash PhotographyHigh Speed Flash Photography
High Speed Flash Photography
 
Marios Imagineering Presentation
Marios Imagineering PresentationMarios Imagineering Presentation
Marios Imagineering Presentation
 
Famines Due To Political Policies
Famines Due To Political PoliciesFamines Due To Political Policies
Famines Due To Political Policies
 
cinema cinema
cinema cinemacinema cinema
cinema cinema
 
Famines Due To Political Policies
Famines Due To Political PoliciesFamines Due To Political Policies
Famines Due To Political Policies
 
End Of The World
End Of The WorldEnd Of The World
End Of The World
 
M.v.ragavan
M.v.ragavanM.v.ragavan
M.v.ragavan
 
Deedi damodaran
Deedi damodaranDeedi damodaran
Deedi damodaran
 
Spiritual
SpiritualSpiritual
Spiritual
 
T.damodaran
T.damodaranT.damodaran
T.damodaran
 
Diabetics kerala
Diabetics keralaDiabetics kerala
Diabetics kerala
 
GULMOHAR- FLAME OF THE FOREST
GULMOHAR- FLAME OF THE FORESTGULMOHAR- FLAME OF THE FOREST
GULMOHAR- FLAME OF THE FOREST
 
Caste
CasteCaste
Caste
 
Linked In Presentation Bcm Nov 08
Linked In Presentation   Bcm Nov 08Linked In Presentation   Bcm Nov 08
Linked In Presentation Bcm Nov 08
 
T.damodaran
T.damodaranT.damodaran
T.damodaran
 
Nilppu samaram
Nilppu samaramNilppu samaram
Nilppu samaram
 
Design Thinking in Business: An Introduction to Imagineering and an Illustrat...
Design Thinking in Business: An Introduction to Imagineering and an Illustrat...Design Thinking in Business: An Introduction to Imagineering and an Illustrat...
Design Thinking in Business: An Introduction to Imagineering and an Illustrat...
 

Similar to Open Selector

Rugalytics | Ruby Manor Nov 2008
Rugalytics | Ruby Manor Nov 2008Rugalytics | Ruby Manor Nov 2008
Rugalytics | Ruby Manor Nov 2008Rob
 
Testing persistence in PHP with DbUnit
Testing persistence in PHP with DbUnitTesting persistence in PHP with DbUnit
Testing persistence in PHP with DbUnitPeter Wilcsinszky
 
Building Web Interface On Rails
Building Web Interface On RailsBuilding Web Interface On Rails
Building Web Interface On RailsWen-Tien Chang
 
Curso Symfony - Clase 4
Curso Symfony - Clase 4Curso Symfony - Clase 4
Curso Symfony - Clase 4Javier Eguiluz
 
12-security.ppt - PHP and Arabic Language - Index
12-security.ppt - PHP and Arabic Language - Index12-security.ppt - PHP and Arabic Language - Index
12-security.ppt - PHP and Arabic Language - Indexwebhostingguy
 
Django - Framework web para perfeccionistas com prazos
Django - Framework web para perfeccionistas com prazosDjango - Framework web para perfeccionistas com prazos
Django - Framework web para perfeccionistas com prazosIgor Sobreira
 
Hi5 opensocial-code-lab-presentation-1203814696810018-3
Hi5 opensocial-code-lab-presentation-1203814696810018-3Hi5 opensocial-code-lab-presentation-1203814696810018-3
Hi5 opensocial-code-lab-presentation-1203814696810018-3Kunal Mittal
 
ZFConf 2010: Zend Framework & MVC, Model Implementation (Part 2, Dependency I...
ZFConf 2010: Zend Framework & MVC, Model Implementation (Part 2, Dependency I...ZFConf 2010: Zend Framework & MVC, Model Implementation (Part 2, Dependency I...
ZFConf 2010: Zend Framework & MVC, Model Implementation (Part 2, Dependency I...Kirill Chebunin
 
Security: Odoo Code Hardening
Security: Odoo Code HardeningSecurity: Odoo Code Hardening
Security: Odoo Code HardeningOdoo
 
Android ui layouts ,cntls,webservices examples codes
Android ui layouts ,cntls,webservices examples codesAndroid ui layouts ,cntls,webservices examples codes
Android ui layouts ,cntls,webservices examples codesAravindharamanan S
 
Action View Form Helpers - 1, Season 2
Action View Form Helpers - 1, Season 2Action View Form Helpers - 1, Season 2
Action View Form Helpers - 1, Season 2RORLAB
 
Building @Anywhere (for TXJS)
Building @Anywhere (for TXJS)Building @Anywhere (for TXJS)
Building @Anywhere (for TXJS)danwrong
 

Similar to Open Selector (20)

Opensocial Codelab
Opensocial CodelabOpensocial Codelab
Opensocial Codelab
 
Rugalytics | Ruby Manor Nov 2008
Rugalytics | Ruby Manor Nov 2008Rugalytics | Ruby Manor Nov 2008
Rugalytics | Ruby Manor Nov 2008
 
Testing persistence in PHP with DbUnit
Testing persistence in PHP with DbUnitTesting persistence in PHP with DbUnit
Testing persistence in PHP with DbUnit
 
Building Web Interface On Rails
Building Web Interface On RailsBuilding Web Interface On Rails
Building Web Interface On Rails
 
Curso Symfony - Clase 4
Curso Symfony - Clase 4Curso Symfony - Clase 4
Curso Symfony - Clase 4
 
Merb jQuery
Merb jQueryMerb jQuery
Merb jQuery
 
Django
DjangoDjango
Django
 
12-security.ppt - PHP and Arabic Language - Index
12-security.ppt - PHP and Arabic Language - Index12-security.ppt - PHP and Arabic Language - Index
12-security.ppt - PHP and Arabic Language - Index
 
Security.ppt
Security.pptSecurity.ppt
Security.ppt
 
Django - Framework web para perfeccionistas com prazos
Django - Framework web para perfeccionistas com prazosDjango - Framework web para perfeccionistas com prazos
Django - Framework web para perfeccionistas com prazos
 
Hi5 opensocial-code-lab-presentation-1203814696810018-3
Hi5 opensocial-code-lab-presentation-1203814696810018-3Hi5 opensocial-code-lab-presentation-1203814696810018-3
Hi5 opensocial-code-lab-presentation-1203814696810018-3
 
ZFConf 2010: Zend Framework & MVC, Model Implementation (Part 2, Dependency I...
ZFConf 2010: Zend Framework & MVC, Model Implementation (Part 2, Dependency I...ZFConf 2010: Zend Framework & MVC, Model Implementation (Part 2, Dependency I...
ZFConf 2010: Zend Framework & MVC, Model Implementation (Part 2, Dependency I...
 
Eu odeio OpenSocial
Eu odeio OpenSocialEu odeio OpenSocial
Eu odeio OpenSocial
 
Clean Javascript
Clean JavascriptClean Javascript
Clean Javascript
 
Security: Odoo Code Hardening
Security: Odoo Code HardeningSecurity: Odoo Code Hardening
Security: Odoo Code Hardening
 
Zend framework 04 - forms
Zend framework 04 - formsZend framework 04 - forms
Zend framework 04 - forms
 
Android ui layouts ,cntls,webservices examples codes
Android ui layouts ,cntls,webservices examples codesAndroid ui layouts ,cntls,webservices examples codes
Android ui layouts ,cntls,webservices examples codes
 
QA for PHP projects
QA for PHP projectsQA for PHP projects
QA for PHP projects
 
Action View Form Helpers - 1, Season 2
Action View Form Helpers - 1, Season 2Action View Form Helpers - 1, Season 2
Action View Form Helpers - 1, Season 2
 
Building @Anywhere (for TXJS)
Building @Anywhere (for TXJS)Building @Anywhere (for TXJS)
Building @Anywhere (for TXJS)
 

Recently uploaded

Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 

Recently uploaded (20)

The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 

Open Selector

  • 1. Jesús Del Carpio Jj jjdelc@gmail.com http://isgeek.net 1983 aureal.com.pe
  • 2.
  • 5.
  • 6.
  • 7.
  • 8. <script src=quot;/js/open-selector.jsquot; type=quot;text/javascriptquot;></script> <script type=quot;text/javascriptquot;> // ID for the OpenID form open_selector.openid_form_id= 'openid_form'; // ID for the OpenID URL box open_selector.openid_box_id= 'openid_url'; open_selector.init(); </script>
  • 9. // List of OpenID providers var providers = { livejournal: { name: 'LiveJournal', label: 'Enter your Livejournal username', ask_username: true, icon: 'http://livejournal.com/favicon.ico', url: 'http://{username}.livejournal.com/' }, blogger: { name: 'Blogger', label: 'Your Blogger account', ask_username: true, icon: 'http://blogger.com/favicon.ico', url: 'http://{username}.blogspot.com/', }, openid: { name: 'Other OpenID provider', label: 'Your OpenID identifier', info: 'You know what OpenID is.', ask_username: true, icon: 'http://openid.net/favicon.ico', url: '', } };
  • 10. var openid_form = $('#' + this.openid_form_id); var openid_box = $('#' + this.openid_box_id); openid_box.hide(); openid_box.after('<p><label for=quot;open-selectorquot;>Select your provider</label>:<br/> <select id=quot;open-selectorquot;></select></ p><p id=quot;open-selector-user-blockquot; style=quot;display:none;quot;><label for=quot;open-selector-usernamequot;>Username</label>:<br/> <input type=quot;textquot; size=quot;20quot; style=quot;padding-left: 22px;quot; id=quot;open-selector-usernamequot; style=quot;display:none;quot;/><br/><span style=quot;font-size: 90%;font-style:italic;color:#BBBquot;></span></p> <p id=quot;open-selector-infoquot;></p><p style=quot;color:#DDD;font-size:80%;font- style:italic;quot;>Powered by <a href=quot;http://open-selector.comquot; title=quot;Open-selectorquot;>Open-selector</a>.</p>'); var open_selector = $('#open-selector'); var open_user = $('#open-selector-username'); var open_user_block = $('#open-selector-user-block'); var info = $('#open-selector-info'); var label = $('#open-selector-user-block label'); var span = $('#open-selector-user-block span'); var provider, style, option, selected_provider; var endpoint = quot;quot;; // Fill the combo box with configured providers open_selector.prepend(quot;<option>Select provider</option>quot;); for (provider_id in providers) { provider = providers[provider_id]; style = 'style=quot;padding-left: 22px;background: url(' + provider.icon+ ') no-repeat 3px centerquot;'; option = '<option id=quot;' + provider_id + 'quot; ' + style + '>' + provider.name + '</option>'; open_selector.append(option); } // Set what to do on provider selecion open_selector.change(function(){ endpoint = quot;quot;; $('option', this).each(function(){ if (this.selected == true) { if (this.id) { selected_provider = providers[this.id]; endpoint = selected_provider.url; if (selected_provider.info) { info.html(selected_provider.info); info.show(); } else { info.hide(); } if ( selected_provider.ask_username == true) { open_user.css('background', quot;url(quot; + selected_provider.icon + quot;) no-repeat 3px centerquot;); span.html(endpoint); if (selected_provider.label) {
  • 11. Funciona en IE6? No creooooooo ehhhhh
  • 12. ID Selector Ma.gnolia
  • 13. http://open-selector.com http://code.google.com/p/open-selector/ jjdelc@gmail.com http://isgeek.net 2008