smaqsood2008 / jquery-wordsearch-game

Automatically exported from code.google.com/p/jquery-wordsearch-game
MIT License
0 stars 0 forks source link

How to load this script dynamically?? #10

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What is the expected output? What do you see instead?

I want to load the <div id="theGrid"?</div> dynamically on my choice. It works 
fine, if I load it on document.ready(). How it will be load on my own choice?

What version of the product are you using? On what operating system?
Version 1.1 on Windows-XP

Please provide any additional information below.

I'm trying to embed this code on my project. I'm getting issues while loading 
this word search dynamically. 

Original issue reported on code.google.com by 1289abhi...@gmail.com on 31 Jan 2014 at 7:32

GoogleCodeExporter commented 8 years ago
Solved this issue like this..

$("#theGrid").data('wordsearchwidget').destroy();

$("#theGrid").removeData();

$("#theGrid").empty();

$("#theGrid").wordsearchwidget({
  wordlist:words[index],
  gridsize:14,
  onWordFound: function(object){},
  onWordSearchComplete: function(){}
});

Original comment by 1289abhi...@gmail.com on 13 Mar 2014 at 5:05