<script> tag inside a javascript or jquery (in Sharepoint (office 360)) -
at moment coding in sharepoint(office 360), , having many issues site considering first week use it. first of when tried use < script > tag in codes, sharepoint seems block this, , not recognize scripts. know there way unblock < script > tag, want concentrate on coding part.
ok, issue, @ moment using every codes can gather put < script > tags inside javascript/jquery. putting codes inside onclick event, considering site not allow me use < script > tag.
i tried use this:
<input type="hidden" name="new_workflow_doc_handler" onclick="<input type="hidden" name="new_workflow_doc_handler" onclick="$('#content').html('<script type='text/javascript'>alert('the script running');<\/script>');">
this:
<input type="hidden" name="new_workflow_doc_handler" onclick="document.write('<script type='text/javascript'>alert('the script running');<\/script>')">
this
<input type="hidden" name="new_workflow_doc_handler" onclick="var scriptstring = '<script>alert('the script running');</script>'; $(scriptstring).appendto('#content');">
unfortunately codes have tried no success. , 1 of big issues dont when inside onclick event cant use double qoutes.
if wondering why want put < script > tag inside javascript, have said in first place, sharepoint not allow me use < script > tags , want use script tag because want source something.
like this:
<script type='text/javascript' src='http://ntp-a1.nict.go.jp/cgi-bin/jsont'></script>
what syntax use put < script > tag inside onclick event?
or there other ways "src" without using < script > tag in javascript/jquery on onclick event.
or possible, because sharepoint kinda fussy when comes syntax coding. many , dont.
Comments
Post a Comment