Read values from session storage
-
Hi,
I just upgraded to the pro version which is using Session storage instead of Local Storage (Cookies).We already did a upload form in combination with WordPress File Upload Pro which uploads videos and stores data in the database.
All the data needed were stored from the cookie with this code_
————-code begin
<script type=”text/javascript”>// <![CDATA[
wfu_addEventHandler(window, “load”, set_url_in_terms);
function set_url_in_terms() {
var search = “AGB”;
var labels = document.querySelectorAll(“.file_userdata_label”);
var sid = “”;
var ind = “”;
for (var i = 0; i < labels.length; i++)
if (labels[i].innerHTML.substr(0, search.length) == search) {
var match = labels[i].id.match(/^userdata_([0-9]+)_label_([0-9]+)$/);
sid = (match[1] ? match[1] : “”);
ind = (match[2] ? match[2] : “”);
if (!(sid == “” || ind == “”)) break;
}
if (!(sid == “” || ind == “”)) {
var label = document.getElementById(“userdata_” + sid + “_checklabel_” + ind);
label.innerHTML = “Ich akzeptiere die Bestimmungen“;
}
}
// ]]></script>
——————Code endIs there a possibilty to read these values from the Session, and how?
Cheers Martin
The page I need help with: [log in to see the link]
The topic ‘Read values from session storage’ is closed to new replies.