PDA

View Full Version : trying to add a tech artical


sleepytom
20th December 2002, 07:39 PM
Warning: Supplied argument is not a valid MySQL result resource in /home/sites/home/web/_includes/search.php on line 68

Warning: Variable passed to each() is not an array or object in /home/sites/home/web/_includes/search.php on line 70

Warning: Cannot add header information - headers already sent by (output started at /home/sites/home/web/_includes/search.php:68) in /home/sites/home/web/_includes/general.php on line 84

sleepytom
20th December 2002, 08:32 PM
now a new problem - if i add my artical that includes an html tabel it fucks up the alignment of the page (as the tabel is too wide to display in the available area) so i thought that i would add a link to the tabel and use javascript to popup the table in a new window but when the php proceses the javascript that i have typed in the editing box it adds <br> tags all though it an stops it from working - is there any way round this??

heres the code i'm trying to use to do the popup

<script>
function openpopup(){
var popurl="http://www.vjcentral.com/~images/mixers.html"
winpops=window.open(popurl,"","width=650,height=638,")
}
</script>
<a href="javascript:openpopup()">Click here to view table</a>

you can see my mixer tabel here http://www.vjcentral.com/~images/mixers.html

sleepytom
20th December 2002, 09:10 PM
yep thats a popup
there are many ways to do popups and you can cause a lot of trouble with them if not handeled properly (See www.brightonart.org/user/tom/fuck_you2.html - don't look at this unless your prepaired for a reboot!!)

in this case we're having trouble because when you add an artical to vjcentral the server takes what you have typed in the box and interprates it into html code - so when i type in the javascript the server is trying to interprate it into html and is adding <br> tags (the html code for new line) all over the place - so when the page is sent to the brouser the javascript no longer works :(

sleepytom
20th December 2002, 10:25 PM
ok its sort of working now but in a very hacked way - using <iframe> to include an html page that has the javascript on - its messy and i can't get the text size to be right

please feel free to delet this artical if you thing this is too much of a hack! i'll try and think of some kind of other way to do it

here it is in current form http://www.vjcentral.com/article/show/2879