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!

Operation aborted - why though? :/

Status
Not open for further replies.

youradds

Programmer
Jun 27, 2001
817
GB
Hi,

Got a bit of a weird error :/

Using FireFox - this works fine. IE 6 though refuses to work :/ (gives an error popup message, saying that the error in the below image)


error.gif


The code in question is:

Code:
function init_menu() {

	menus[0] = new menu(170, "vertical", 15, 310, -2, -2, "white", "black", "Verdana", 8, "bold", "bold","black", "white", 3, "white", 6, "rollover:images/tri-right1.gif:images/tri-right2.gif",false, false, true, true, 12, false, 4, 4, "black")
	menus[0].addItem("[URL unfurl="true"]http://www.test.com",[/URL] "", 25, "left", "Home", 0);
	menus[0].addItem("[URL unfurl="true"]http://www.test.com",[/URL] "", 25, "left", "Galaxy Pictures", 1);
	menus[0].addItem("[URL unfurl="true"]http://www.test.com",[/URL] "", 30, "left", "Planetary Pictures", 0);
	menus[0].addItem("[URL unfurl="true"]http://www.test.com",[/URL] "", 30, "left", "Natural Phenomena", 0);
	menus[0].addItem("[URL unfurl="true"]http://www.test.com",[/URL] "", 25, "left", "Conjunctions", 0);
	menus[0].addItem("[URL unfurl="true"]http://www.test.com",[/URL] "", 25, "left", "Eclipses", 0);

//Sub Menu for 2nd Main Menu Item ("web building"):
//	menus[1] = new menu(135, "vertical", 0, 0, -5, -5, "#d3e9f8", "#d3e9f8", "Verdana,Helvetica", 8, "bold", "bold", "black", "white", 1, "gray", 2, 62, false, true, false, true, 6, true, 4, 4, "black");
//	menus[1].addItem("/", "", 30, "left", "Just a test as an example", 0)

}

..and I'm calling it in the .html file with:

Code:
<script>
          init_menu();
        </script>

Can anyone see any problems with it? :| (I can post the full content if required, but I didn't wanna clog up the first post- if it wasn't needed :))

TIA!

Andy
 
You've no "type" attribute in your script tag... try adding one in:

Code:
<script type="text/javascript">

and seeing if that helps.

Do you have anything else on the page (html, head, body elements, etc?)

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Hi,

Thanks for the reply. I did have a type="text/javascript" bit in the <script .> bit, but took it out - in case that was the problem.

I've The site is pretty simple:

Also - I've just done some more playing, and this basic version works OK:

Code:
<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 4</title>
</head>

<script type="text/javascript" src="includes/browser.js"></script>
<script type="text/javascript" src="config2.js"></script>


<body>

        <script>
          init_menu();
        </script>


</body>

</html>

.. but this doesn't (I've removed a lot of the junk from it, so as not to make you have to look too hard :))

Code:
<html>

<head>
<title>MENU</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<style type="text/css" media="screen">@import "./template_files/site.css";</style>

<script language="JavaScript" src="./template_files/site.js"></script>

<script type="text/javascript" src="includes/browser.js"></script>
<script type="text/javascript" src="config2.js"></script>

</head>

<body background="template_files/backgroundimg.jpg" topmargin="4">

<table class="main_table">
	<tr>
		<td valign="top" align="middle" width="733" colspan="2">
		<table bordercolor="#111111" cellspacing="0" cellpadding="0" width="733" border="0">
			<tr>
				<td align="middle" width="733" colspan="2">
				<table bordercolor="#111111" cellspacing="0" cellpadding="0" width="100%" border="0">
					<tr>
						<td width="74%" class="centeralign">
						<img height="49" src="template_files/Space3.jpg" width="444" border="0" /></td>
						<td width="26%">
[red]						<script>showdatenice()</script>
						<span id="liveclock"></span>
[/red]
						</td>
					</tr>
				</table>
				</td>
			</tr>
			<tr>
				<td align="middle" width="170"></td>
				<td width="563">
				<p><br />
&nbsp;</p>
				</td>
			</tr>
			<tr>
				<td width="170">&nbsp;</td>
				<td width="563">&nbsp;</td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td class="centeralign" valign="top" align="middle" width="170" height="218">
		<a href="[URL unfurl="true"]http://antwrp.gsfc.nasa.gov/apod/image/9701/ngc2359_cfa_big.jpg">[/URL]
		<img class="imgstyle" height="150" alt="See Explanation.  Clicking on the picture will download " src="template_files/galaxysmall.jpg" width="150" /></a><br />
[red]
        <script>
          init_menu();
        </script>
[/red]

		<p>&nbsp;</p>
		</td>
		<td valign="top" align="middle" width="563" height="218">
		<table class="content_table">
			<tr>
				<td width="100%">
				<p>&nbsp;</p>
				<h1>Main Header</h1>
				<p>&nbsp;</p>
				<h2>Page Header</h2>
				<p align="left">Some content</p>
				<p align="left">Some content</p>
				<p align="left">Some content</p>
				<p align="left">Some content</p>
			</td>
			</tr>
			<tr>
				<td width="100%">&nbsp;</td>
			</tr>
		</table>
		</td>
	</tr>
</table>

</body>

</html>

I've highlighted the potential problem areas in red, so hopefully it stands out.

Basically, the page has:

The menu
A "date" javascript
A "time" javascript

I've commented these out before, and it didn't seem to make a difference - until I commented out the menu bit.

Thanks again for your time helping on this - my mind is boggling still :(

Cheers
 
try to take your script blocks out of the table, i know it sounds weird but i've had this same issue before and apparently in some weird situations IE does not like script blocks inside a table. put them just above your closing body tag and see how that works out.

=========================================
Don't sweat the petty things and don't pet the sweaty things.
 
Hi,

Thanks for your help guys. I've uploaded the site to :


The JS files are at:


..and I believe the main ones for the menu are in:


..and named:

browser.js
dom-build.js
ie4-build.js
ie55-build.js
ie5m-build.js
no-build.js
ns4-build.js
op7-build.js
saf-build.js

TIA for your help on this guys!

Cheers

Andy
 
Hi,

Thanks for your reply. I never managed to solve this problem. I ended up using another CSS/Javascript solution for the menu system. Seems to work fine in IE and FF .. although its not quite as "cool" =) Very weird problem the above - but hey ho, life goes on :)

Cheers

Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top