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.

JavaScript Forum


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



Reply
Old 10-09-2005, 07:25 PM need help!
lizard dude's Avatar
Super Talker

Posts: 119
Location: France
Trades: 0
hey here is my script:
Quote:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Untitled</title>
</head>
<script type="text/javascript">
document.write(" <div id='lyr' style='position:absolute;
top:90px;left:10px;width:200px;height:10px;z-index:10;background-color:white'></div>

function enter()
{
var str=document.forms.f.txt.value;
var obj=documen.getElementById("lyr");
obj.document.open()
obj.document.write(str)
obj.document.clos()
}
</script>

<body>
It doesn't work and tells me that there is a "unterminated string constant"
Can someone help me please?
__________________
forum------->
Please login or register to view this content. Registration is FREE
, for people who wants to have a good time ;)
website------>
Please login or register to view this content. Registration is FREE
(might be in construction :D)
Hope you have a great time and that my post is helpfull ;)
lizard dude is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-09-2005, 07:49 PM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
No closing quotes or closing paranthesis on the document.write
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-10-2005, 12:44 AM
lizard dude's Avatar
Super Talker

Posts: 119
Location: France
Trades: 0
OMG i feel stupid now....

Thanks
__________________
forum------->
Please login or register to view this content. Registration is FREE
, for people who wants to have a good time ;)
website------>
Please login or register to view this content. Registration is FREE
(might be in construction :D)
Hope you have a great time and that my post is helpfull ;)
lizard dude is offline
Reply With Quote
View Public Profile
 
Old 10-10-2005, 12:48 AM
lizard dude's Avatar
Super Talker

Posts: 119
Location: France
Trades: 0
Well now that i've aded the quotes and parenthesis, it makes the parenthesis part of the document.write.......

this is weird..
it might be a stupid mistake again....
__________________
forum------->
Please login or register to view this content. Registration is FREE
, for people who wants to have a good time ;)
website------>
Please login or register to view this content. Registration is FREE
(might be in construction :D)
Hope you have a great time and that my post is helpfull ;)
lizard dude is offline
Reply With Quote
View Public Profile
 
Old 10-13-2005, 04:44 PM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
Should be:
Code:
document.write(" <div id='lyr' style='position:absolute;top:90px;left:10px;width:200px;height:10px;z-index:10;background-color:white'></div>");
and add semicolons to the end of each line of:
Code:
obj.document.open()
obj.document.write(str)
obj.document.clos()
as well. Worked fine for me.
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 10-14-2005, 10:15 PM
lizard dude's Avatar
Super Talker

Posts: 119
Location: France
Trades: 0
Alright i'll try it roght now....
thanks a lot for yout help
__________________
forum------->
Please login or register to view this content. Registration is FREE
, for people who wants to have a good time ;)
website------>
Please login or register to view this content. Registration is FREE
(might be in construction :D)
Hope you have a great time and that my post is helpfull ;)
lizard dude is offline
Reply With Quote
View Public Profile
 
Old 10-14-2005, 10:18 PM
lizard dude's Avatar
Super Talker

Posts: 119
Location: France
Trades: 0
Maybe it's my html editor that sucks but it shows on;ly the black layer...........i use HTML-kit.....
__________________
forum------->
Please login or register to view this content. Registration is FREE
, for people who wants to have a good time ;)
website------>
Please login or register to view this content. Registration is FREE
(might be in construction :D)
Hope you have a great time and that my post is helpfull ;)

Last edited by lizard dude; 10-14-2005 at 10:21 PM..
lizard dude is offline
Reply With Quote
View Public Profile
 
Old 10-17-2005, 10:42 AM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
Can we see all the code for the page? If I finish the HTML tags for the page, it works, but it's a white box on a white page with no content, so you can't see it.
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 10-18-2005, 09:31 PM
lizard dude's Avatar
Super Talker

Posts: 119
Location: France
Trades: 0
i created another post that follows this one so we'll tlk on the other one.....
__________________
forum------->
Please login or register to view this content. Registration is FREE
, for people who wants to have a good time ;)
website------>
Please login or register to view this content. Registration is FREE
(might be in construction :D)
Hope you have a great time and that my post is helpfull ;)
lizard dude is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to need help!
 

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.45423 seconds with 12 queries