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

Posts: 119
Location: France
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-------> http://www.benjidela.com, for people who wants to have a good time ;)
website------>http://www.benjidela.com (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
 
When You Register, These Ads Go Away!
Old 10-09-2005, 07:49 PM
chrishirst's Avatar
Super Moderator

Posts: 15,313
Location: Blackpool. UK
No closing quotes or closing paranthesis on the document.write
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
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
OMG i feel stupid now....

Thanks
__________________
forum-------> http://www.benjidela.com, for people who wants to have a good time ;)
website------>http://www.benjidela.com (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
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-------> http://www.benjidela.com, for people who wants to have a good time ;)
website------>http://www.benjidela.com (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: 636
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
Alright i'll try it roght now....
thanks a lot for yout help
__________________
forum-------> http://www.benjidela.com, for people who wants to have a good time ;)
website------>http://www.benjidela.com (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
Maybe it's my html editor that sucks but it shows on;ly the black layer...........i use HTML-kit.....
__________________
forum-------> http://www.benjidela.com, for people who wants to have a good time ;)
website------>http://www.benjidela.com (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: 636
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
i created another post that follows this one so we'll tlk on the other one.....
__________________
forum-------> http://www.benjidela.com, for people who wants to have a good time ;)
website------>http://www.benjidela.com (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

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

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


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


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

 


Page generated in 0.14098 seconds with 12 queries