Questions tagged «xmlhttprequest»

30
අසමමුහුර්තව ගොනු උඩුගත කරන්නේ කෙසේද?
JQuery සමඟ අසමමුහුර්තව ගොනුවක් උඩුගත කිරීමට මම කැමතියි. $(document).ready(function () { $("#uploadbutton").click(function () { var filename = $("#file").val(); $.ajax({ type: "POST", url: "addFile.do", enctype: 'multipart/form-data', data: { file: filename }, success: function () { alert("Data Uploaded: "); } }); }); }); <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> <span>File</span> <input type="file" id="file" name="file" size="10"/> <input …

30
ප්‍රවේශ-පාලනය-ඉඩ දෙන්න-සම්භවය බහු ප්‍රභව වසම්?
Access-Control-Allow-Originශීර්ෂකය භාවිතා කරමින් බහු හරස් වසම් වලට ඉඩ දීමට ක්‍රමයක් තිබේද? මම දන්නවා *, නමුත් එය විවෘතයි. මට ඇත්තටම අවශ්‍ය වන්නේ වසම් දෙකකට පමණි. උදාහරණයක් ලෙස, මේ වගේ දෙයක්: Access-Control-Allow-Origin: http://domain1.example, http://domain2.example මම ඉහත කේතය උත්සාහ කර ඇති නමුත් එය ෆයර්ෆොක්ස් හි වැඩ කරන බවක් නොපෙනේ. බහුවිධ වසම් නියම කළ …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.