Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Contributor
Posts: 3
Registered: ‎09-13-2011
My Device: BlackBerry Bold 9000
My Carrier: design

Can't get a image from web ($get jqurey)

I have search but i can't find the answer, I tried to get an image from a .jason but I cant do it

 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" id="viewport" content="height=device-height,width=device-width,user-scalable=no" />
<title>Insert title here</title>
<script src="js/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
	function banner(){
$.get('http://phillipsl.delapalo.com/queries/get_banner.js?method=?',
		function(data){
		if(data != null)
		  $('.result').html("<a href='"+data.url_banner+"'><img src='http://phillipsl.delapalo.com"+ data.url_image + "' /></a>");
	   }, "jsonp"); 
	   }
});
</script>

</head>
<body>
<!-- Banner -->
<div class="result"></div>
<!--Fin Banner -->
</body>
</html>

 

 

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="1.0.0.0">
  <name>testbanner</name>
  <feature id="blackberry.invoke" required="true" version="1.0.0.0"/>
  <feature id="blackberry.push" required="true" version="1.0.0.0"/>
  <access subdomains="true" uri="http://phillipsl.delapalo.com/">
    <feature id="blackberry.invoke" required="true" version="1.0.0.0"/>
    <feature id="blackberry.push" required="true" version="1.0.0.0"/>
  </access>
  <access subdomains="true" uri="http://beapp.net/"/>
  <content src="index.html"/>
</widget>

I am missing something? permission?