stonecracker
6 Nov 2006, 3:19 AM
I have a basic grid works fine in a single html file. I even finished a AJAX context menu for that.
But when I try to get the page1(with only the body) into a DIV of the main page2, it doesn't work anymore. I replaced the load event(because the page1 doesn't load in any place, I think) to the onAvailable event of the element containing the grid.
I checked the varible "Example" as in the following snippet and I can not access it in the firebug of the main page.
Snippet:
<script>
var Example = {
init : function(){
var myData = [
['3m Co',71.72,0.02,0.03,'9/1 12:00am'],
.....
</script>
So, how can I make the varible in the DIV innerHTML accessible in the main page. Maybe it's not the problem of the grid, but search for javascript and ajax with google simply give me nothing related. Can anybody help?
But when I try to get the page1(with only the body) into a DIV of the main page2, it doesn't work anymore. I replaced the load event(because the page1 doesn't load in any place, I think) to the onAvailable event of the element containing the grid.
I checked the varible "Example" as in the following snippet and I can not access it in the firebug of the main page.
Snippet:
<script>
var Example = {
init : function(){
var myData = [
['3m Co',71.72,0.02,0.03,'9/1 12:00am'],
.....
</script>
So, how can I make the varible in the DIV innerHTML accessible in the main page. Maybe it's not the problem of the grid, but search for javascript and ajax with google simply give me nothing related. Can anybody help?