Rather than posting entirety of all the files into forum post, just do the following :
- Go to JSFiddle (better to bookmark it if you can not remember it)
- Choose JS Framework if you’re using any.
- Press run and try to reproduce the problem you’re facing.
- Save to get a public URL.
- Share the URL on respective forums.
As Mike said in his post, it should have *relevant code* (as little code as possible, which reproduce the issue). Most of the time doing this, you’ll solve the problem yourself. 😉 And If not, it will help a lot to people who’re going to help you. 🙂
For SQL related issue, you can use SQLFiddle (Courtesy : Phil_Factor’s tweet), a tool for database developers to test out their queries.If you do not know SQL or basic database concepts, this site is not going to be very useful to you. In case you’re wondering in what cases it can help you out and how to use it, then you should read this. Check out the sample fiddle here.
Thanks to developers of JSFiddle and SQLFiddle, it’s definitely a solution of sharing a code on public forums and able to run it.