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
|