Is there any reason as to why I cannot get the Upload button to display the name of the file(s) uploaded despite copying exactly the tutorial on YouTube - see link below?
In the tutorial function Preview() {
var tmppath = URL.createObjectURL(event.target.files[0]) //URL of my file
$("#myDiv").append('<a href="'+tmppath+'" target="_blank">PREVIEW</a>')
};
is used for the blob:http://127.0.0.1:8000/8c17e770-18c1-4713-a601-1d634b0c649f
function in JS, but Adobe Dreamweaver is having none of it, so I used <div class="demo-section k-content">
<div id="tabstrip">
<ul>
<%} if(helpFlag.equals("true") || helpFlag.equals("1")) {%>
<li>Help</li>
<%} if(materialsFlag.equals("true") || materialsFlag.equals("1")) {%>
<li class="k-state-active">Materials</li>
<%}else{%>
<script type="text/javascript">$(document).ready(function(){$("#tabstrip").kendoTabStrip().data("kendoTabStrip").select(0);});</script>
<%} if(jobsFlag.equals("true") || jobsFlag.equals("1")) {%>
<li>Jobs</li>
<%} if(eProfileFlag.equals("true") || eProfileFlag.equals("1")) {%>
<li>eProfile</li>
<%}%>
</ul>
<%} if(helpFlag.equals("true") || helpFlag.equals("1")) {%>
<div>
<span class=""> </span>
<table style="width: 100%;">
<tr>
<td style="">
<div class="panelbar">
<li class="k-state-active" style="font-weight: bold;">Help
<div class="tabBody">
<iframe src="${pageContext.servletContext.contextPath}/help.do"
width="850px" height="650px"></iframe>
</div>
</li>
</div>
</td>
</tr>
</table>
</div>
<%} if(materialsFlag.equals("true") || materialsFlag.equals("1")) {%>
<div>
<span class=""> </span>
<table style="width: 100%;">
<tr>
<td style="">
<div class="panelbar">
<li class="k-state-active" style="font-weight: bold;">Materials
<div class="panelBody">
<img id="matloader" src="../loading.gif" width="36" height="36" alt="loading gif"/>
<iframe id="matFrame" style="display:none;" src="${pageContext.servletContext.contextPath}/materials.do"
width="100%" height="500px"></iframe>
</div>
<script>
$(document).ready(function () {
$('#matFrame').on('load', function () {
$('#matFrame').show();
$('#matloader').hide();
});
});
</script>
</li>
</div>
</td>
<td style="">
<div class="panelbar">
<li class="k-state-active" style="font-weight: bold;">PURCHASING
<div class="panelBody">
<img id="purchasingloader" src="../loading.gif" width="36" height="36" alt="loading gif"/>
<iframe id="purchasingFrame" style="display:none;" src="${pageContext.servletContext.contextPath}/purch.do"
width="100%" height="500px"></iframe>
</div>
<script>
$(document).ready(function () {
$('#purchasingFrame').on('load', function () {
$('#purchasingFrame').show();
$('#purchasingloader').hide();
});
});
</script>
</li>
</div>
</td>
</tr>
</table>
</div>
<%} if(jobsFlag.equals("true") || jobsFlag.equals("1")) {%>
<div>
<span class=""> </span>
<div class="jobs">
<div class="panelbar">
<li class="k-state-active" style="font-weight: bold;">Jobs
<div class="panelBody">
<img id="loader1" src="../loading.gif" width="36" height="36" alt="loading gif"/>
<iframe id="jobsFrame" style="display:none;" src="${pageContext.servletContext.contextPath}/jobs.do"
width="100%" height="500px"></iframe>
</div>
<script>
$(document).ready(function () {
$('#jobsFrame').on('load', function () {
$('#jobsFrame').show();
$('#loader1').hide();
});
});
</script>
</div>
</div>
</div>
<%} if(eProfileFlag.equals("true") || eProfileFlag.equals("1")) {%>
<div>
<span class=""> </span>
<div class="eProfile">
<div class="panelbar">
<li class="k-state-active" style="font-weight: bold;">eProfile <div class="panelBody">
<img id="eProLoader" src="../loading.gif" width="36" height="36" alt="loading gif"/>
<iframe id="eProFrame" style="display:none;" src="${pageContext.servletContext.contextPath}/eProfile.do"
width="100%" height="500px"></iframe>
</div>
<script>
$(document).ready(function () {
$('#eProFrame').on('load', function () {
$('#eProFrame').show();
$('#eProLoader').hide();
});
});
</script>
</li>
</div>
</div>
</div>
<%} %>
</div>
</div>
Thanks in advance for any insight. :)
https://www.youtube.com/watch?v=JML3BZo_ToA&list=PLQ0Y5YcHFmjVCFO7t1_72VU2FiXo5XaEI&index=1
e
eventListener
addEventListener
答案 0 :(得分:0)
You can just use your Database.database().isPersistenceEnabled = true
variable instead.
func checkInst(kingdom ,pass string) {
var z = fmt.Sprintf("rbs -k %v -r inst -a console", kingdom)
var x = fmt.Sprintf("scc -n ops0-host1-1-%v.eng.host.net &", kingdom)
child, err :=gexpect.Spawn(z)
if err != nil {
panic(err)
}
child.Expect("Escape character is ^]")
child.SendLine("\n")
child.ExpectRegex(`ops\d-host\d-\d-\w\w\w.\w\w\w.host.net login:`)
child.SendLine("root")
child.Expect("Password:")
child.SendLine(pass)
child.ExpectRegex(`\[(\w*)\@(\w*)-host\d-\d-(\w*) \~\]\#`)
child.SendLine(x)
child.ExpectRegex(`\[(\w*)\@(\w*)-host\d-\d-(\w*) \~\]\#`)
child.SendLine("exit")
child.ExpectRegex(`ops\d-host\d-\d-\w\w\w.\w\w\w.host.net login:`)
child.SendLine("\035")
child.Close()
}
child.SendLine("\035)
files