I've recently been working alot with Scriptaculous and Prototype and I've got some good looking results in FF and IE. However, Safari is killing me! I would love for someone to look at this, and tell me if its my design or the libraries.
One example:
1. Checkout the above page
2. Choose August 2000
3. Choose "Download Package Two"
What happens beneath the hood:
OnClick =
I tried posting all the revelant code in the order they are called.
Any help,thoughts or suggestions would greatly be appreciated!
Thanks,
X
One example:
1. Checkout the above page
2. Choose August 2000
3. Choose "Download Package Two"
What happens beneath the hood:
OnClick =
Code:
function getpdf() {
Effect.Appear('progress');
rndractivity();
setTimeout('Poll()', 2000);
PollAttempts = 0;
}
// While report is loading, disable report interaction ability
function rndractivity() {
Effect.BlindDown('block');
Form.disable(document.forms['welcome1']);
Form.disable(document.forms['welcome2']);
new Effect.Opacity('block',
{ duration: 2.0,
transition: Effect.Transitions.linear,
from: 1.0, to: 0.5 });
}
//Goes to php page, get txt status msg and passes it to the update function
function Poll()
{
Event.unloadCache();
new Ajax.Request('observer.php', {
method: "get",
asynchronous: true,
onComplete:function(request) {update(request.responseText);}
});
}
//Gets called by poll() to see if request is completed, if not it tries one more time
var PollAttempts = 0;
function update (request) {
if(!request.match(/^Completed/)) {
PollAttempts++;
if(PollAttempts <= 1) {
Poll();
}
}
handelrequest();
}
function handelrequest() {
//Make the Progress Bar Disappear
enblactivty();
new Effect.Fade('progress');
}
function enblactivty() {
Effect.BlindUp('block');
Form.enable(document.forms['welcome1']);
Form.enable(document.forms['welcome2']);
Form.reset(document.forms['welcome1']);
Form.reset(document.forms['welcome2']);
}
I tried posting all the revelant code in the order they are called.
Any help,thoughts or suggestions would greatly be appreciated!
Thanks,
X