hi every1
Well I have a script that is loaded when the page loads, its inline on the page and it used getelementByid method.
The only problem is that the id for this script dont load into the page when the page loads, they are only requested if you click a button. I.E an ajax request loads them to the page, but my script is already broken because it couldnt find the id's on the frist load?
In the passed I have include the id's as hidden elements in the html document and when the ajax request loaded my actually content they were removed, just wondering is there an easyer way to do it?
I have try alots of things, like loading the script with the id's in the ajax request but still nothing.
Thanks
Well I have a script that is loaded when the page loads, its inline on the page and it used getelementByid method.
| Code: |
| document.getElementById("my_id") |
The only problem is that the id for this script dont load into the page when the page loads, they are only requested if you click a button. I.E an ajax request loads them to the page, but my script is already broken because it couldnt find the id's on the frist load?
In the passed I have include the id's as hidden elements in the html document and when the ajax request loaded my actually content they were removed, just wondering is there an easyer way to do it?
I have try alots of things, like loading the script with the id's in the ajax request but still nothing.
Thanks
