TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Abhijeet Panpatil
NA
95
20.6k
storing json response in variable
Mar 25 2018 10:06 AM
<!DOCTYPE html
>
<
html
>
<
head
>
<
script
src
=
"https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"
>
</
script
>
<
script
>
$(document).ready(function(){
$(function () {
$("#btn").bind("click", function () {
var
url
=
"http://104.211.243.204/?container=comedy-movies&blob="
+ encodeURIComponent($("#itemList").val());
//
window.location.href
=
url
;
playVideo(url);
});
});
});
function playVideo(url){
$("#divVideo video source").attr('src',url);
$("#divVideo video")[0].load();
}
</
script
>
</
head
>
<
body
>
<!--your video control -->
<
div
id
=
"divVideo"
>
<
video
width
=
"320"
height
=
"240"
controls
>
<
source
type
=
"video/mp4"
>
</
video
>
</
div
>
</
body
>
<
script
>
</
script
>
</
html
>
i have tried this but didnot give me any output please help me regarding thsi.
Reply
Answers (
4
)
Storing JSON response in variable
in am inserating record a database using store procedure the