This is a discussion on "Bugger" within the JavaScript Forum section. This forum, and the thread "Bugger are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Bugger
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Bugger
I have some javascript that generates a specified number of tables and populates each table with random numbers, this part works but I also have a header that says "BINGO" which I cannot get it to repeat. Any suggestions would be helpful. I have the table header stored in a string but when I do a document.write(str); or document.writeln(str); I get an error permission denied. So question is, what am I doing wrong. or is this just not possible?
The header looks like this:
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Last edited by moojoo; Aug 8th, 2006 at 16:40. |
|
|
|
#2
|
|||
|
|||
|
Re: Bugger
How about starting each table with a header cell that goes the full width of the table and have/assign your 'BINGO' in/to that cell. |
|
#3
|
|||
|
|||
|
Re: Bugger
That is the idea but the problem I am having is getting it to output that. when I try to output the string I get a permission denied error. So something is either out of place, incorrect, or I just did something silly.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Last edited by moojoo; Aug 9th, 2006 at 15:07. |
|
#4
|
|||
|
|||
|
Re: Bugger
Without seeing the code you tried to do this it's difficult to know. In principle, adding nodes for the header cell should be no more problamatic than what you are already doing. |
|
#5
|
|||
|
|||
|
Re: Bugger
Well yes but I am a javascript retard. But what you just said gave me a good idea of what I need to do.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#6
|
|||
|
|||
|
Re: Bugger
Let us know how you get on. |
|
#7
|
|||
|
|||
|
Re: Bugger
Here is the table heading I need to generate for each repeating instance: The question is, how would I turn the string into something I can use to repeat above every generated table? This is where I am having issues.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#8
|
|||
|
|||
|
Re: Bugger
I feel like such a retard!
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Last edited by moojoo; Aug 15th, 2006 at 15:29. |
![]() |
| Tags |
| bugger |
| Thread Tools | |
|
|