title: Jquery, Modal,Lightbox Popup - open automatically with Java Call
body: <p>I've searched and searched and tried and tried but I can't find an answer to my question - any help greatly appreciated.</p>
  
  <p>I trying to get a Jquery modal popup of any description (I really don't mind which one I use) to launch automatically when called from Java.</p>
  
  <p>I can get the popups to work, get them to work on pageload but I need it to be able to launch from a bit of Java script.</p>
  
  <p>I'll explain...currently I have a from that uses some Java to check any entry as it typed against a database. If the entry is not present, a second form opens on a new page to enable the individual to make an entry.</p>
  
  <p>This all works perfectly the only thing I'd like to change is to have the second form open in a nice popup such as fancybox/colorbox/lytebox etc.</p>
  
  <p>Currently I have this bit of Java</p>
  
  <pre><code>function findValue(li) {
  if( li == null ) return window.location = "http://www.gotosecondform.com"
  </code></pre>
  
  <p>All a want to do is be able to call a nice popup iframe rather than go to the web address.</p>
  
  <p>Could anybody help and explain the best way to do this? - I suspect it's quite simple but I just can't find anything on the net that isn't based on page load and clickable links.</p>
  
  <p>I'm not fussed in regard to which Lightbox spin off I use.</p>
  
  <p>Thanks in advance and all example greatly appreciated.</p>
  
  <p>Chris</p>