PHP interesse |
|
ik heb de volgende code
function onOK() {
var required = {
"f_url": "You must enter the URL"
};
for (var i in required) {
var el = document.getElementById(i);
if (!el.value) {
alert(required[i]);
el.focus();
return false;
}
}
// pass data back to the calling window
var fields = ["f_url", "f_alt", "f_align", "f_border", "f_horiz", "f_vert"];
var param = new Object();
for (var i in fields) {
var id = fields[i];
var el = document.getElementById(id);
param[id] = el.value;
}
__dlg_close(param);
return false;
};
function onOK() { var required = { "f_url": "You must enter the URL" }; for (var i in required) { var el = document.getElementById(i); if (!el.value) { alert(required[i]); el.focus(); return false; } } // pass data back to the calling window var fields = ["f_url", "f_alt", "f_align", "f_border", "f_horiz", "f_vert"]; var param = new Object(); for (var i in fields) { var id = fields[i]; var el = document.getElementById(id); param[id] = el.value; } __dlg_close(param); return false; };
maar voor dat hij dus dingen terug moet sturen naar het hoofdscherm wil ik graag dat hij in de variabele f_url de text "/images" zet...
deze optie werkte niet
f_url = "/images"+f_url
alvast bedankt voor de moeite
|