Cant get Request to fire off.
What happens onBlur its supposed to send the request to the URL. The
URL is valid but it doenst send the request.
<script>
window.addEvent("domready", function(){
//loop all togglers
$$('.toggler').each(function(el){
el.addEvent('click', function(){
//read the title attribute and turn it into an
object with JSON
var data = JSON.decode(el.get("title"));
//the data.target contains the id you want to
show
$(data.target).setStyle("display", "block");
//el = the element being clicked
el.setStyle("display", "none");
});
});
$$('.tb').each(function(el){
el.addEvent('blur', function(){
var data2 = JSON.decode(el.get("title"));
$(data2.target).setStyle("display", "block");
el.setStyle("display", "none");
valOf = el.get("value");
var url="./index.php?componentName=Video&scid={/literal}
{$scid}{literal}&action=updatecaption"
var vidid = el.get('id');
url=url+"&vidid="+vidid;
// _ui = $('i'+el.id).getProperty('value');
url = url + "&caption="+valOf;
// alert(url);
// url = encode(url);
new Request(url, {method: 'get'}).send();
})
})
});
</script>