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
missing } before first function
Old 09-25-2007, 07:25 PM missing } before first function
amw_drizz's Avatar
Ultra Talker

Posts: 340
Name: Jon
Location: New York
Trades: 0
OKay here is the deal, i am using javascript to open windows for my website, this website is designed for an internal lan and all the browsers allow popups from the site, but when using firefox with firebug to debug any errors on the file i get the following
Code:
missing ; before statement
funtion manusrpop(url)\n
even when i put it in my debug page which has nothing but the code that i want to debug to see if it works it still fails.

this is my js code

Code:
// JavaScript Document
/*
http://www.webmaster-talk.com/editpost.php?do=editpost&p=464567
Edit/Delete Message
This script controls all javascript initated pop
ups on the site of ECS-INTRANET or also known as
ECS Accounting and Payroll

Script created 9/24/07 at 10:19 pm

Created by Jonathan Nedobity

Copywrite 2007

Not for resale or distribution with out authors 
direct consent.

email is ********@*****.***

*/

// Firt pop is for managing web users
<!---
funtion manusrpop(url)
{
	manusr = window.open(url, "WEB USER CONTROL", "menubar=0,resizeable=1,scrollbars=1,location=0,menubar=1");
	manusr.moveTo(200,200);
}
THere is more but it fails at the first function

this is the code of the link i use to call the pop up on my main page
Code:
<A HREF="javascript:void(0)" onclick="manusrpop('index.php')">Get a welcome message</A>
with this in the header
Code:
<SCRIPT LANGUAGE="JavaScript" TYPE="TEXT/JAVASCRIPT" src="config/popupman.js">
<!--

//-->
</SCRIPT>
Know i am no expert but when i use a peice of code off of a tutorial site to test and all with it in a seperate file it works, but when i write my own and include the page for functions and try to use it i get that error

Thanks in advance for the help
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1

Last edited by amw_drizz; 09-25-2007 at 07:28 PM.. Reason: noticed missing code snippet that may help
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
 
Register now for full access!
Old 09-25-2007, 08:17 PM Re: missing } before first function
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Don't bang your head on the wall, but you wrote "funtion" rather than "function"


Happens to me all the time....
Viva la colorazione syntaxiq
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 09-26-2007, 01:18 AM Re: missing } before first function
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
I don't even want to admit how many times I've done something similar and stayed up all night to find my typo.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 09-26-2007, 04:30 PM Re: missing } before first function
amw_drizz's Avatar
Ultra Talker

Posts: 340
Name: Jon
Location: New York
Trades: 0
ops

even after scanning it for a long time still didnt figure out my typo.

thanks for pointing that out.
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
Old 09-26-2007, 06:35 PM Re: missing } before first function
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Jon sometimes it takes a second pair of eyes. I think the more you stare at something the harder it becomes to spot the obvious.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to missing } before first function
 

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