Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Done: But with error on the page.

Status
Not open for further replies.

Bkster

Technical User
Joined
Jan 25, 2002
Messages
94
Location
US
Need help on this. Please! Had a site that we developed on one web hosting server (Readyhosting). When we were not satisfied with the service we switched to a different provider(Hostway). After uploading the site to the new provider I am getting the following error.

In the status bar is a yellow sign. When you double click on it you receive the following information.

Line:2
Char:1
Error: Syntax Error
Code:0
URL:
The page works fine its just that you get this error when you load the page. It does it for everypage that is located off the main www/ directory. Pages that are loaded from sub direcories do not display this message ie.. It works fine on my local machine. Hostway says it is a scripting error. I cannot figure out why it is only doing it on there server??? Here is the first couple lines of coude from the arts.asp page.

<html><!-- #BeginTemplate &quot;/Templates/main_template.dwt&quot; -->
<head>
<!-- #BeginEditable &quot;doctitle&quot; -->
<title>CSF Arts</title>
<!-- #EndEditable -->
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
<script language=&quot;JavaScript&quot;>
<!--
// fwLoadMenus()

Nothing jumps out at me. If anyone has any ideas on this one I would greatly appreciate them.

Thanks

Brian Russell
 
Is the page code you displayed from your original source file or is it from the &quot;view source&quot; of the running page? If it is from the original source, you should check the running source since asp may modify the code when running.
 
It was from the original file not the view source file. Do you get the error if you look at the page? The top of the page is a fireworks html page that is being pulled from a template. It you view the top page by itself you do not get the error. Something is happening when it gets put into the template. Any ideas???

Thanks for the help.
 
I also get the error, on this page and on all the links I tried. I am not familiar enough with ASP to know how it processes a page, but when I fought with a similar problem, I had to comment out parts of the page until I narrowed it down to a particular segment. Is your page missing anything? Do you get the error if you don't try to load the fireworks page? How about if that's all you load?

Let me know if you find something

BYW - it's a nice-looking site. Keep up the good work!
 
Thanks If you only load the top fireworks part it loads fine. I am just not sure what happen when we moved the site from Readyhosting to Hostway. It worked fine at Readyhosting and locally its just off of the Hostway server that we are having a problem.

Thanks for the input.
 
Hi there,

I have found that a missing piece of javascript syntax may cause a page to load but not perform as you would like. Do you get errors when you mouseover things that are functional or for popup windows? Frequently a missing end of statement } will cause the function to not run properly but will load the page irrespective of the fault. I'll pop over there and report back.


M
 
Everything seems to work fine. I think I might have narrowed it down to the left side menus. I will let you know thanks
 
Hi again,

Firstly, I'm sure that the error is not related to the ASP processing side, as the error is presented at the client level and refers to the code as if you looked at the page source.
Secondly, the clue lies in where the error occurs (line 1), apparently Dreamweaver has a flaky when you try and preload images that have spaces in their names, so check that out first, I can't tell you if that is your problem, you'll have to check your images file. If you have more than 1 image with the same name, a javascript error (ala the oh-so-informative one you get) will be presented. This doesn't actually do anything it just does, geddit? (nah, me neither).
Lastly don't name your images with numbers at the front of the image name, why? Guess what'll happen? You got it.

Just a few pointers, if you want you could try trawling through the Macromedia DW help files.

Hope this is in some slightly meaningful way, helpful.

;)

M
 
Wanted to thank everyone for there help. Apparently when we moved the site to a new host the template recreated itself outside the html folder. It would diplay locally fine but when it was on the server it could not access the template that was outside the html folder. Thanks for the input

Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top