Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Javascript write problems
Old 09-11-2003, 01:02 PM Javascript write problems
LookPortal's Avatar
Skilled Talker

Posts: 55
Location: New Jersey
Trades: 0
Sheesh, i have the worst luck with document.write i mean i thought it was easy anyway here is the code why is this not being shown in the table???


<script language="javascript">
<!--
pickCell =('<table width="128" height="90" bgcolor="red" BORDER=0 CELLSPACING=1 CELLPADDING=1>');
pickCell +=('<td bgcolor="#E4E4E4" style="cursor:hand" width="33%" align="center" valign="top"><scr');
pickCell +=('ipt language="javascript" SRC="http://www.aquariusinc.com/ad_125125_2.js"></');
pickCell +=('script></font></td>');
pickCell +=('</td></tr></table>');

document.write(pickCell);
//-->
</script>


Thanks
LookPortal is offline
Reply With Quote
View Public Profile Visit LookPortal's homepage!
 
 
Register now for full access!
Old 09-11-2003, 02:49 PM
david's Avatar
King Spam Talker

Posts: 1,314
Location: Glasgow, UK
Trades: 0
I don't think you can output JavaScript tags using JavaScript. Your alternatives would be:
1. Use a remote JavaScript that outputs as variable
2. Use a different method to output your pickCell code

Someone else may have some more ideas, though.
__________________

Please login or register to view this content. Registration is FREE
- Everything a webmaster needs - for free

Please login or register to view this content. Registration is FREE
- Free web hosts reviewed and rated

Please login or register to view this content. Registration is FREE
- Impartial hosting directory - Add your host today for FREE
david is offline
Reply With Quote
View Public Profile
 
Old 09-11-2003, 04:33 PM
LookPortal's Avatar
Skilled Talker

Posts: 55
Location: New Jersey
Trades: 0
Could be, but what i think is strange is that it is running the script i tried it by using a variable but just got a script error (i had previously tried just a document.write on each line but that didn't go)


<script language="javascript">
<!--
var doit = "ipt language="javascript" SRC="http://www.aquariusinc.com/ad_125125_2.js"


pickCell =('<table width="128" height="90" bgcolor="red" BORDER=0 CELLSPACING=1 CELLPADDING=1>');
pickCell +=('<td bgcolor="#E4E4E4" style="cursor:hand" width="33%" align="center" valign="top"><scr');
pickCell +=("' + doit + '</");
pickCell +=('script></font></td>');
pickCell +=('</td></tr></table>');

document.write(pickCell);
//-->
</script>
__________________
Sell 100% of your inventory all appropiate sites welcome @
Please login or register to view this content. Registration is FREE
LookPortal is offline
Reply With Quote
View Public Profile Visit LookPortal's homepage!
 
Reply     « Reply to Javascript write problems
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28322 seconds with 12 queries