This discussion is now closed.
Scroll to see replies
1.
The application is 59p to help make back the £59pa that apple charge for developers
2.
The application is only acts as an overlay over the UCAS system and only communicates with UCAS
window.onload = function()
{
Titanium.App.Properties.setString('cPassword','');
// create controls
var textInstance = Titanium.UI.createTextField({value:Titanium.App.Properties.getString('cPersonalId'),width:
150,keyboardType:Titanium.UI.KEYBOARD_PHONE_PAD});
var textInstance2 = Titanium.UI.createTextField({value:Titanium.App.Properties.getString('cUsername'),width:
150});
var textInstance3 = Titanium.UI.createTextField({value:'',width:
150,passwordMask:true,returnKeyType:Titanium.UI.RETURNKEY_GO});
textInstance.addEventListener('change',function(e){
var tValue = e.value;
tValue = tValue.replace(' ','');
tValue = tValue.replace('-','');
Titanium.App.Properties.setString('cPersonalId',tValue);
});
textInstance2.addEventListener('change',function(e){
var tValue = e.value;
tValue = tValue.replace(' ','');
tValue = tValue.replace('-','');
Titanium.App.Properties.setString('cUsername',tValue);
});
textInstance3.addEventListener('change',function(e){
var tValue = e.value;
Titanium.App.Properties.setString('cPassword',tValue);
});
textInstance3.addEventListener('return',function(e){
validateTicket();
});
var b = Titanium.UI.createButton({
systemButton:Titanium.UI.iPhone.SystemButton.ADD
});
//Titanium.UI.currentWindow.setRightNavButton(b);
b.addEventListener('click',function(e)
{
validateTicket();
});
// create data array
var inputData = [
{title:'ID', input:textInstance},
{title:'Username', input:textInstance2},
{title:'Password', input:textInstance3}
];
// create grouped section
var inputSection = Titanium.UI.iPhone.createGroupedSection({
header:'UCAS Track Login',
footer:'Please do not enter dashes',
type:'input',
data:inputData
});
var buttonData = [
{title:'Login'}
];
var buttonSection = Titanium.UI.iPhone.createGroupedSection({footer:'', header:'', type:'button',data:buttonData});
buttonSection.addEventListener('click',function(e)
{
validateTicket();
});
// create grouped view and add section to view
groupedView = Titanium.UI.iPhone.createGroupedView();
groupedView.addSection(inputSection);
groupedView.addSection(buttonSection);
// add and show view
Titanium.UI.currentWindow.addView(groupedView);
Titanium.UI.currentWindow.showView(groupedView);
function validateTicket(){
var uPersonalId=Titanium.App.Properties.getString('cPersonalId');
var uUsername=Titanium.App.Properties.getString('cUsername');
var uPassword=Titanium.App.Properties.getString('cPassword');
var a = Titanium.UI.createAlertDialog();
a.setTitle('Login');
a.setButtonNames(['OK']);
a.setMessage("appNo="+uPersonalId+"&username="+uUsername+"&appPassword="+uPassword+"&action=login");
//a.show();
//Now get the events data from the page
var xhr = Titanium.Network.createHTTPClient();
xhr.setRequestHeader("Cookie","");
xhr.onload = function()
{
var a = Titanium.UI.createAlertDialog();
a.setTitle('Login');
a.setButtonNames(['OK']);
a.setMessage(xhr.getResponseHeader("Content-Location"));
//a.show();
Titanium.App.Properties.setString('cCookie',xhr.getResponseHeader("Set-Cookie"));
if (xhr.getResponseHeader("Content-Location")=="http://track.ucas.com:12508/ucastrackLogin.jsp")
{
var a = Titanium.UI.createAlertDialog();
a.setTitle('Login');
a.setButtonNames(['OK']);
a.setMessage('Invalid Login Details');
a.show();
}
else
{
var win = Titanium.UI.createWindow({url: 'track.html'});
win.open({animated:true});
Titanium.UI.currentWindow.close();
}
};
xhr.open("POST","https://track.ucas.com/ucastrack/login?ac=2427581&bc=1261433620877");
xhr.send("appNo="+uPersonalId+"&username="+uUsername+"&appPassword="+uPassword+"&action=login");
}
};
1.
The application is 59p to help make back the £59pa that apple charge for developers
2.
The application is only acts as an overlay over the UCAS system and only communicates with UCAS
window.onload = function()
{
Titanium.App.Properties.setString('cPassword','');
// create controls
var textInstance = Titanium.UI.createTextField({value:Titanium.App.Properties.getString('cPersonalId'),width:
150,keyboardType:Titanium.UI.KEYBOARD_PHONE_PAD});
var textInstance2 = Titanium.UI.createTextField({value:Titanium.App.Properties.getString('cUsername'),width:
150});
var textInstance3 = Titanium.UI.createTextField({value:'',width:
150,passwordMask:true,returnKeyType:Titanium.UI.RETURNKEY_GO});
textInstance.addEventListener('change',function(e){
var tValue = e.value;
tValue = tValue.replace(' ','');
tValue = tValue.replace('-','');
Titanium.App.Properties.setString('cPersonalId',tValue);
});
textInstance2.addEventListener('change',function(e){
var tValue = e.value;
tValue = tValue.replace(' ','');
tValue = tValue.replace('-','');
Titanium.App.Properties.setString('cUsername',tValue);
});
textInstance3.addEventListener('change',function(e){
var tValue = e.value;
Titanium.App.Properties.setString('cPassword',tValue);
});
textInstance3.addEventListener('return',function(e){
validateTicket();
});
var b = Titanium.UI.createButton({
systemButton:Titanium.UI.iPhone.SystemButton.ADD
});
//Titanium.UI.currentWindow.setRightNavButton(b);
b.addEventListener('click',function(e)
{
validateTicket();
});
// create data array
var inputData = [
{title:'ID', input:textInstance},
{title:'Username', input:textInstance2},
{title:'Password', input:textInstance3}
];
// create grouped section
var inputSection = Titanium.UI.iPhone.createGroupedSection({
header:'UCAS Track Login',
footer:'Please do not enter dashes',
type:'input',
data:inputData
});
var buttonData = [
{title:'Login'}
];
var buttonSection = Titanium.UI.iPhone.createGroupedSection({footer:'', header:'', type:'button',data:buttonData});
buttonSection.addEventListener('click',function(e)
{
validateTicket();
});
// create grouped view and add section to view
groupedView = Titanium.UI.iPhone.createGroupedView();
groupedView.addSection(inputSection);
groupedView.addSection(buttonSection);
// add and show view
Titanium.UI.currentWindow.addView(groupedView);
Titanium.UI.currentWindow.showView(groupedView);
function validateTicket(){
var uPersonalId=Titanium.App.Properties.getString('cPersonalId');
var uUsername=Titanium.App.Properties.getString('cUsername');
var uPassword=Titanium.App.Properties.getString('cPassword');
var a = Titanium.UI.createAlertDialog();
a.setTitle('Login');
a.setButtonNames(['OK']);
a.setMessage("appNo="+uPersonalId+"&username="+uUsername+"&appPassword="+uPassword+"&action=login");
//a.show();
//Now get the events data from the page
var xhr = Titanium.Network.createHTTPClient();
xhr.setRequestHeader("Cookie","");
xhr.onload = function()
{
var a = Titanium.UI.createAlertDialog();
a.setTitle('Login');
a.setButtonNames(['OK']);
a.setMessage(xhr.getResponseHeader("Content-Location"));
//a.show();
Titanium.App.Properties.setString('cCookie',xhr.getResponseHeader("Set-Cookie"));
if (xhr.getResponseHeader("Content-Location")=="http://track.ucas.com:12508/ucastrackLogin.jsp")
{
var a = Titanium.UI.createAlertDialog();
a.setTitle('Login');
a.setButtonNames(['OK']);
a.setMessage('Invalid Login Details');
a.show();
}
else
{
var win = Titanium.UI.createWindow({url: 'track.html'});
win.open({animated:true});
Titanium.UI.currentWindow.close();
}
};
xhr.open("POST","https://track.ucas.com/ucastrack/login?ac=2427581&bc=1261433620877");
xhr.send("appNo="+uPersonalId+"&username="+uUsername+"&appPassword="+uPassword+"&action=login");
}
};
1.
The application is 59p to help make back the £59pa that apple charge for developers
2.
The application is only acts as an overlay over the UCAS system and only communicates with UCAS
window.onload = function()
{
Titanium.App.Properties.setString('cPassword','');
// create controls
var textInstance = Titanium.UI.createTextField({value:Titanium.App.Properties.getString('cPersonalId'),width:
150,keyboardType:Titanium.UI.KEYBOARD_PHONE_PAD});
var textInstance2 = Titanium.UI.createTextField({value:Titanium.App.Properties.getString('cUsername'),width:
150});
var textInstance3 = Titanium.UI.createTextField({value:'',width:
150,passwordMask:true,returnKeyType:Titanium.UI.RETURNKEY_GO});
textInstance.addEventListener('change',function(e){
var tValue = e.value;
tValue = tValue.replace(' ','');
tValue = tValue.replace('-','');
Titanium.App.Properties.setString('cPersonalId',tValue);
});
textInstance2.addEventListener('change',function(e){
var tValue = e.value;
tValue = tValue.replace(' ','');
tValue = tValue.replace('-','');
Titanium.App.Properties.setString('cUsername',tValue);
});
textInstance3.addEventListener('change',function(e){
var tValue = e.value;
Titanium.App.Properties.setString('cPassword',tValue);
});
textInstance3.addEventListener('return',function(e){
validateTicket();
});
var b = Titanium.UI.createButton({
systemButton:Titanium.UI.iPhone.SystemButton.ADD
});
//Titanium.UI.currentWindow.setRightNavButton(b);
b.addEventListener('click',function(e)
{
validateTicket();
});
// create data array
var inputData = [
{title:'ID', input:textInstance},
{title:'Username', input:textInstance2},
{title:'Password', input:textInstance3}
];
// create grouped section
var inputSection = Titanium.UI.iPhone.createGroupedSection({
header:'UCAS Track Login',
footer:'Please do not enter dashes',
type:'input',
data:inputData
});
var buttonData = [
{title:'Login'}
];
var buttonSection = Titanium.UI.iPhone.createGroupedSection({footer:'', header:'', type:'button',data:buttonData});
buttonSection.addEventListener('click',function(e)
{
validateTicket();
});
// create grouped view and add section to view
groupedView = Titanium.UI.iPhone.createGroupedView();
groupedView.addSection(inputSection);
groupedView.addSection(buttonSection);
// add and show view
Titanium.UI.currentWindow.addView(groupedView);
Titanium.UI.currentWindow.showView(groupedView);
function validateTicket(){
var uPersonalId=Titanium.App.Properties.getString('cPersonalId');
var uUsername=Titanium.App.Properties.getString('cUsername');
var uPassword=Titanium.App.Properties.getString('cPassword');
var a = Titanium.UI.createAlertDialog();
a.setTitle('Login');
a.setButtonNames(['OK']);
a.setMessage("appNo="+uPersonalId+"&username="+uUsername+"&appPassword="+uPassword+"&action=login");
//a.show();
//Now get the events data from the page
var xhr = Titanium.Network.createHTTPClient();
xhr.setRequestHeader("Cookie","");
xhr.onload = function()
{
var a = Titanium.UI.createAlertDialog();
a.setTitle('Login');
a.setButtonNames(['OK']);
a.setMessage(xhr.getResponseHeader("Content-Location"));
//a.show();
Titanium.App.Properties.setString('cCookie',xhr.getResponseHeader("Set-Cookie"));
if (xhr.getResponseHeader("Content-Location")=="http://track.ucas.com:12508/ucastrackLogin.jsp")
{
var a = Titanium.UI.createAlertDialog();
a.setTitle('Login');
a.setButtonNames(['OK']);
a.setMessage('Invalid Login Details');
a.show();
}
else
{
var win = Titanium.UI.createWindow({url: 'track.html'});
win.open({animated:true});
Titanium.UI.currentWindow.close();
}
};
xhr.open("POST","https://track.ucas.com/ucastrack/login?ac=2427581&bc=1261433620877");
xhr.send("appNo="+uPersonalId+"&username="+uUsername+"&appPassword="+uPassword+"&action=login");
}
};
1.
The application is 59p to help make back the £59pa that apple charge for developers
2.
The application is only acts as an overlay over the UCAS system and only communicates with UCAS
window.onload = function()
{
Titanium.App.Properties.setString('cPassword','');
// create controls
var textInstance = Titanium.UI.createTextField({value:Titanium.App.Properties.getString('cPersonalId'),width:
150,keyboardType:Titanium.UI.KEYBOARD_PHONE_PAD});
var textInstance2 = Titanium.UI.createTextField({value:Titanium.App.Properties.getString('cUsername'),width:
150});
var textInstance3 = Titanium.UI.createTextField({value:'',width:
150,passwordMask:true,returnKeyType:Titanium.UI.RETURNKEY_GO});
textInstance.addEventListener('change',function(e){
var tValue = e.value;
tValue = tValue.replace(' ','');
tValue = tValue.replace('-','');
Titanium.App.Properties.setString('cPersonalId',tValue);
});
textInstance2.addEventListener('change',function(e){
var tValue = e.value;
tValue = tValue.replace(' ','');
tValue = tValue.replace('-','');
Titanium.App.Properties.setString('cUsername',tValue);
});
textInstance3.addEventListener('change',function(e){
var tValue = e.value;
Titanium.App.Properties.setString('cPassword',tValue);
});
textInstance3.addEventListener('return',function(e){
validateTicket();
});
var b = Titanium.UI.createButton({
systemButton:Titanium.UI.iPhone.SystemButton.ADD
});
//Titanium.UI.currentWindow.setRightNavButton(b);
b.addEventListener('click',function(e)
{
validateTicket();
});
// create data array
var inputData = [
{title:'ID', input:textInstance},
{title:'Username', input:textInstance2},
{title:'Password', input:textInstance3}
];
// create grouped section
var inputSection = Titanium.UI.iPhone.createGroupedSection({
header:'UCAS Track Login',
footer:'Please do not enter dashes',
type:'input',
data:inputData
});
var buttonData = [
{title:'Login'}
];
var buttonSection = Titanium.UI.iPhone.createGroupedSection({footer:'', header:'', type:'button',data:buttonData});
buttonSection.addEventListener('click',function(e)
{
validateTicket();
});
// create grouped view and add section to view
groupedView = Titanium.UI.iPhone.createGroupedView();
groupedView.addSection(inputSection);
groupedView.addSection(buttonSection);
// add and show view
Titanium.UI.currentWindow.addView(groupedView);
Titanium.UI.currentWindow.showView(groupedView);
function validateTicket(){
var uPersonalId=Titanium.App.Properties.getString('cPersonalId');
var uUsername=Titanium.App.Properties.getString('cUsername');
var uPassword=Titanium.App.Properties.getString('cPassword');
var a = Titanium.UI.createAlertDialog();
a.setTitle('Login');
a.setButtonNames(['OK']);
a.setMessage("appNo="+uPersonalId+"&username="+uUsername+"&appPassword="+uPassword+"&action=login");
//a.show();
//Now get the events data from the page
var xhr = Titanium.Network.createHTTPClient();
xhr.setRequestHeader("Cookie","");
xhr.onload = function()
{
var a = Titanium.UI.createAlertDialog();
a.setTitle('Login');
a.setButtonNames(['OK']);
a.setMessage(xhr.getResponseHeader("Content-Location"));
//a.show();
Titanium.App.Properties.setString('cCookie',xhr.getResponseHeader("Set-Cookie"));
if (xhr.getResponseHeader("Content-Location")=="http://track.ucas.com:12508/ucastrackLogin.jsp")
{
var a = Titanium.UI.createAlertDialog();
a.setTitle('Login');
a.setButtonNames(['OK']);
a.setMessage('Invalid Login Details');
a.show();
}
else
{
var win = Titanium.UI.createWindow({url: 'track.html'});
win.open({animated:true});
Titanium.UI.currentWindow.close();
}
};
xhr.open("POST","https://track.ucas.com/ucastrack/login?ac=2427581&bc=1261433620877");
xhr.send("appNo="+uPersonalId+"&username="+uUsername+"&appPassword="+uPassword+"&action=login");
}
};
Last reply 4 days ago
Official University Offer Holder thread list (2024 entry)Last reply 1 week ago
TSR Decisions Drop In 2024 - open any time - help choosing university offersLast reply 1 week ago
Can I drop out of college once I have an unconditional uni offer?Last reply 1 week ago
I've been rejected by UoN Law School but given an alternative offerLast reply 2 weeks ago
2024 applicants: what's your main concern around starting uni?Last reply 2 weeks ago
UCAS Applications + Uni Applicant Thread Directory for 2024 **Official Thread**Last reply 2 weeks ago
Study now at Exeter or wait one year to study at KCL or Bristol?Last reply 3 weeks ago
Deciding between universities - Exeter vs WarwickLast reply 4 days ago
Official University Offer Holder thread list (2024 entry)Last reply 1 week ago
TSR Decisions Drop In 2024 - open any time - help choosing university offersLast reply 1 week ago
Can I drop out of college once I have an unconditional uni offer?Last reply 1 week ago
I've been rejected by UoN Law School but given an alternative offerLast reply 2 weeks ago
2024 applicants: what's your main concern around starting uni?Last reply 2 weeks ago
UCAS Applications + Uni Applicant Thread Directory for 2024 **Official Thread**Last reply 2 weeks ago
Study now at Exeter or wait one year to study at KCL or Bristol?Last reply 3 weeks ago
Deciding between universities - Exeter vs Warwick