• Community
  • Products
  • Bitbucket
  • Questions
  • Hi, am trying to create one sample add-on for bitbucket. I have added one sample add-on via url and got my modules in the left panel. On clicking my modules html loads and i find my dom elements in the inspect but not in my view page. What am i missing?

Hi, am trying to create one sample add-on for bitbucket. I have added one sample add-on via url and got my modules in the left panel. On clicking my modules html loads and i find my dom elements in the inspect but not in my view page. What am i missing?

3 answers

Could you post a link to Github or Bitbucket to look at your code?

This is my dom element shown in inspect..

 

<html><head></head><body>null userId===&gt;{5e0e16c8-15a2-4074-80a2-c799de240163}access_token===&gt;zrnQ0_gwlEvt67sLqpMEexBBPSwOb_LrmeGfcxAV0zZKDm5pRVHlbq_6trD1QdA3seTjdrGZBFkg0Lo0ILQ=email===&gt;soundaryas227@gmail.comrep===&gt;{"1":"dummy","0":"first-rep"}portals===&gt;{"values":[{"id":548331,"name":""},{"id":1366593,"name":"dhakshina"},{"id":25622795,"name":"pfreshers"},{"id":63226744,"name":"test"},{"id":63350627,"name":"student"}]}


<script>
console.log(50527990);
</script>

<div>


<div style="float:left;"> 
<select name="projName" id="projName_0"> 
<option value="0">Select Your Projects Portal to connect</option> 

<option value="adventnet"> </option> 

<option value="dhakshina"> dhakshina </option> 

<option value="pfreshers"> pfreshers </option> 

<option value="test"> test </option> 

<option value="student"> student </option> 

</select> 
</div> 
<div><button onclick="alert('hi')">Connect</button></div>

</div>

</body></html>

 


In view Page its shows me this

 Screen Shot 2016-08-30 at 12.45.30 PM.png

Unfortunately, without more context, I'm not sure how to help you with the issue. For future posts, I'd recommend you format your code before you paste it. Eg:

&lt;html&gt;
&lt;head&gt;&lt;/head&gt;
&lt;body&gt;
null userId===&amp;gt;{5e0e16c8-15a2-4074-80a2-c799de240163}access_token===&amp;gt;zrnQ0_gwlEvt67sLqpMEexBBPSwOb_LrmeGfcxAV0zZKDm5pRVHlbq_6trD1QdA3seTjdrGZBFkg0Lo0ILQ=email===&amp;gt;soundaryas227@gmail.comrep===&amp;gt;{"1":"dummy","0":"first-rep"}portals===&amp;gt;{"values":[{"id":548331,"name":""},{"id":1366593,"name":"dhakshina"},{"id":25622795,"name":"pfreshers"},{"id":63226744,"name":"test"},{"id":63350627,"name":"student"}]}
&lt;script&gt;
	console.log(50527990);
&lt;/script&gt;
	&lt;div&gt;
		&lt;div style="float:left;"&gt; 
			&lt;select name="projName" id="projName_0"&gt;
				&lt;option value="0"&gt;Select Your Projects Portal to connect&lt;/option&gt;
				&lt;option value="adventnet"&gt;&lt;/option&gt;
				&lt;option value="dhakshina"&gt;dhakshina&lt;/option&gt;
				&lt;option value="pfreshers"&gt;pfreshers&lt;/option&gt;
				&lt;option value="test"&gt;test&lt;/option&gt;
				&lt;option value="student"&gt;student&lt;/option&gt;
			&lt;/select&gt;
		&lt;/div&gt;
		&lt;div&gt;
			&lt;button onclick="alert('hi')"&gt;Connect&lt;/button&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/body&gt;&lt;/html&gt;

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,745 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you