Saturday, January 14, 2012

[YouTube-API] I dont know but i think there is sommething wrong in google example code

in this page


the code for the step 3 is  
<script type="text/javascript">
 
function checkForFile() {
   
if (document.getElementById('file').value) {
     
return true;
   
}
    document
.getElementById('errMsg').style.display = '';
   
return false;
 
}
</script>

<form action="URL?nexturl=http%3A%2F%2Fwww.example.com method="post"
  enctype="
multipart/form-data" onsubmit="return checkForFile();">
 
<input id="file" type="file" name="file"/>
 
<div id="errMsg" style="display:none;color:red">
    You need to specify a file.
 
</div>
 
<input type="hidden" name="token" value="TOKEN"/>
 
<input type="submit" value="go" />
</form>


there is a "  missing  in this part 
<form action="URL?nexturl=http%3A%2F%2Fwww.example.com method="post"
i think it shoud be 
<form action="URL?nexturl=http%3A%2F%2Fwww.example.com" method="post" 

--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/MS7Av7oqoHsJ.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.

No comments:

Post a Comment