Table of Contents

This page gathers progress works lead during Q1 and Q2 2012 to develop generic web portal for OAR eco-system. See Web Portal proposal for the context.

Participants

ExtJS 3 Prototype version

  wget http://oar.imag.fr/live/oar-devel-poar-amd64.qcow2
  sudo kvm -m 512 -redir tcp:2222::22 -redir tcp:8080::80  -redir tcp:4343::443 oar-devel-poar-amd64.qcow2
  firefox http://localhost:8080/poar/poar.htm

Todo

Technicals Notes

http basic auth (in-ajax)

  http://coderseye.com/2007/how-to-do-http-basic-auth-in-ajax.html
  How to do HTTP Basic Auth in Ajax
  --------------------------------------
  function make_base_auth(user, password) {
    var tok = user + ':' + pass;
    var hash = Base64.encode(tok);
    return "Basic " + hash;
  

Step 3

Use it in your Ajax call.

  var auth = make_basic_auth('me','mypassword');
  var url = 'http://example.com'

RAW

  xml = new XMLHttpRequest();
  xml.setRequestHeader('Authorization', auth);
  xml.open('GET',url)
  // ExtJS
  Ext.Ajax.request({
    url : url,
    method : 'GET',
    headers : { authorization : auth }
  })

jQuery

  $.ajax({
    url : url,
    method : 'GET',
    beforeSend : function(req) {
        req.setRequestHeader('Authorization', auth);
    }
  })