[Solved] bootbox.js show ajax html data inside the dialog

Hi Guys

Just a quick one here if you are using a library called bootbox.js in your project. This library does not make ajax request automatically if you wish to load some data from your server to show within your dialog window. Instead, you can do something like this.

Example below assume that you are using jQuery, but logic still applies to other similar libraries too.

You can replace

with you own custom path and make other changes.

It can take a while sometimes to get the data back from the server. So its always a good idea to show a preloader while your request is being handled by the server.

I hope this helps.

 

Project Data Sources: re-sync required – Upgrading to PhpStorm 10.0.2

sync

Hey Guys, While I upgraded to PHPStorm 10.0.2 and restarted it, I got this message at the top right corner of this IDE Project Data Sources: re-sync required Unsupported format version 2.2 - (2.4 expected) While that got me puzzled for a … [Continue reading]

How to get Pinterest Numeric Board ID

Get Pinterest Numerci board ID

Hi Guys, It used to be easy to get Pinterest board ID before, but for some reason they have buried that sort of information within source, A while back I wrote something that wouldn't use the Pinterest official/unofficial API but parse the HTML … [Continue reading]

Free Clock Animation GIFs

Clock animation 15 minute interval

Hi Guys, While I was working on a project I need a couple of GIFs for Clock animations. I came up with these. You can use it in your commercial or free websites etc. Attribution or link to this page would be appreciated though :) Here are a … [Continue reading]

Unzip files in bulk in their own directory (sh)

Here is a quiz tip to unzip several zip files found in a directory to their own directories. Use this command from the folder where zip files are to be found [crayon-574de9f1c8aeb052734517/] To make sure that output folders will be created … [Continue reading]

Android Emulator Windows Hosts file editing

Oh! so you want to update a hosts file just like I wanted and spoiled many minutes playing with what works. Let's go through this process to make it work for you as well (hopefully!) Google Android emulator is an amazing tool to test out your apps, … [Continue reading]

Installing Latest MongoDB version on Ubuntu 14.04 LTS 15.04

How to Install MongoDB on Ubuntu 14.04 and 15.04 As we all know that MongoDB is becoming a default choice for certain part of community and is also emphasized as M in MEAN stack. Its an open source NoSQL database that is available free of cost and … [Continue reading]

PHPStorm Painfully Slow….

PHPStorm 64 bit executable

Oh Yeah, That went and drove me nuts. I would like to share what worked for me. I am a Windows user so the instructions you see in this post apply to windows user, but stuff shall be quite similar for Mac/Linux users too. First thing first … [Continue reading]

helpful awk command examples when working with Apache access logs

There are some utils that analyze access logs, one of such util is webalizer. But I always believe that getting to know you access log files is more appropriate when you want to do some more in depth analysis on something specific. There are … [Continue reading]

Ace editor cursor position has space between expected position and the current position

capture

Hi, I have used Ace editor a few times in my previous projects. Never did I face this problem before of having my cursor misplaced in my Ace editor. Let me guide you step by step Editor markup Here is a markup where I want my Ace editor to show … [Continue reading]