vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Ie Throwing Error (https://vborg.vbsupport.ru/showthread.php?t=208013)

DieselMinded 03-11-2009 11:20 AM

Ie Throwing Error
 
http://www.dieselbombers.com/attachm...s-dbcerror.jpg



The error for instance on every page is always on line 2471



well i copy and pasted my source code in dreamweaver and on line 2471 is this code...

HTML Code:

<a rel="nofollow" href="http://www.dieselbombers.com/editpost.php?do=editpost&amp;p=303357" name="vB::QuickEdit::303357"><img src="http://www.dieselbombers.com/images/buttons/edit.gif" alt="Edit/Delete Message" border="0" /></a>

did i do something wrong?

Lynne 03-11-2009 02:04 PM

What is the exact error?

Marco van Herwaarden 03-11-2009 02:55 PM

We can not see an image that needs a login to your forums.

DieselMinded 03-11-2009 09:35 PM

1 Attachment(s)
Error Message attached

Lynne 03-11-2009 09:50 PM

Have you tried copy/pasting the page source for the page into an html validator (you can't just put in the page url to validate since you need to be logged in to have that error happen)?

DieselMinded 03-11-2009 09:59 PM

Is there an online HTML validator or something

Lynne 03-11-2009 10:24 PM

The W3C Markup Validation Service

DieselMinded 03-11-2009 10:34 PM

Result: 275 Errors, 50 warning(s)

alot are these

Quote:

end tag for "img" omitted, but OMITTAG NO was specified.

Lynne 03-11-2009 11:03 PM

Well, if you tackle those, you may end up fixing the problem.

DieselMinded 03-11-2009 11:05 PM

I see some obvious problems , But how do i fix this

HTML Code:

    end tag for "img" omitted, but OMITTAG NO was specified.

mcrider 03-11-2009 11:16 PM

Quote:

Originally Posted by DiesellMinded (Post 1766096)
I see some obvious problems , But how do i fix this

HTML Code:

    end tag for "img" omitted, but OMITTAG NO was specified.


HTML Code:

<img border="0" src="http://www.dieselbombers.com/images/home24.png" width="24" height="24" alt="Go To The Home Page" />

DieselMinded 03-11-2009 11:19 PM

Thanks Ill work on thos over the next few weeks , if i have any errors i cant decipher ill post here , '

Thanks Guys and Girl :)

BigJohnny 03-12-2009 12:45 AM

one thing ive noticed is that one small error can generate hundreds of other ones.

Look for more major problems, like a missing closing tag, or an orphan tag. Chances are that if you remove an orphan tag or properly close/nest an out of place tag, it will cut down a whole whack of those other errors.

DieselMinded 03-12-2009 11:27 PM

Well I have 10 less errors now and 3 hours of my life down the tubes

DieselMinded 03-14-2009 10:39 AM

most of my issues are coming from this custom template

HTML Code:

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->

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

/***********************************************
* Bookmark site script- ? Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
        window.sidebar.addPanel(title, url, "");
else if(window.opera &amp; window.print){ // opera
        var elem = document.createElement('a');
        elem.setAttribute('href',url);
        elem.setAttribute('title',title);
        elem.setAttribute('rel','sidebar');
        elem.click();
}
else if(document.all)// ie
        window.external.AddFavorite(url, title);
}
</script>
<table style="background-image: url(images/headerbarbg.png)" border="1" align="center" width="95%" cellspacing="0" cellpadding="0">
        <tr>
                <td height="100%" width="450" align="center"><p style="margin-top: 10px; margin-bottom: 5px">
        <a target="_self" href="http://www.dieselbombers.com"> <img border="0" src="http://www.dieselbombers.com/images/home24.png" width="24" height="24" alt="Go To The Home Page" /></a>
        <a target="_self" href="http://www.dieselbombers.com/About.php">
        <img border="0" src="http://www.dieselbombers.com/images/infoabout24.png" width="24" height="24" alt="About Us" /></a>
<if condition="$vbulletin->userinfo['userid']"><a href="#myAnchor"/></a>
<img src="http://www.dieselbombers.com/images/gotofooter.png" border="0" alt="Go To Bottom Of Page" /></a>
<a target="_self" href="http://www.dieselbombers.com/search.php"><img border="0" src="http://www.dieselbombers.com/images/find24.png" width="24" height="24" alt="Search The Forums" /></a>
        <a target="_self" href="http://www.dieselbombers.com/all_albums.php">
        <img border="0" src="http://www.dieselbombers.com/images/pictures24.png" width="24" height="24" alt="All Photo Albums" /></a>
<a target="_self" href="http://www.dieselbombers.com/casino.php">
        <img border="0" src="http://www.dieselbombers.com/images/casino.png" width="24" height="24" alt="Enter The Casino" /></a>
<a target="_self" href="http://www.dieselbombers.com/arcade.php">
        <img border="0" src="http://www.dieselbombers.com/images/arcade.png" width="24" height="24" alt="Enter The Arcade" /></a>
        <script type="text/javascript"><!--
function openPoker(cn) {pipwin=open("","pipwin","scrollbars=no,width=715,height=510").document.write("<html><title>Texas Holdem</title><frameset rows=* cols=* border=0 frameborder=0><frame noresize scrolling=no src=http://www.pluginpoker.com/popup/lobby.asp?c="+cn+"&phpu=$bbuserinfo[username]&phpp=$bbuserinfo[password]&phpe=$bbuserinfo[email]></frameset></html>");}
-->
</script>
<a href=javascript:void(0) target=_top onClick=openPoker(1202)>
<img border="0" src="http://www.dieselbombers.com/images/poker.png" width="24" height="24" alt="Our Private Texas Holdem Table" /></a>
<a target="_self" href="http://www.dieselbombers.com/awc_ds.php?do=donation"><img border="0" src="http://www.dieselbombers.com/images/money24.png" width="24" height="24" alt="Make a Donation " /></a>
        <a target="_self" href="http://www.dieselbombers.com/usercp.php">
        <img border="0" src="http://www.dieselbombers.com/images/configure24.png" width="24" height="24" alt="Edit Your Settings" /></a>
<a target="_self" href="http://www.dieselbombers.com/?styleid=6">
        <img border="0" src="http://www.dieselbombers.com/images/cellphone.png" width="24" height="24" alt="Diesel Bombers Mobile" /></a>
<a target="_self" href="http://www.dieselbombers.com/search.php?do=getnew"><img border="0" src="http://www.dieselbombers.com/images/chat24.png" width="24" height="24" alt="See All The Newest Posts" /></if></a>
<if condition="$vbulletin->userinfo['userid']==0">
<a target="_self" href="http://www.dieselbombers.com/register.php"><img border="0" src="http://www.dieselbombers.com/images/adduser24.png" alt="Join The Bombers" width="24" height="24" /></a>
<a href="javascript:bookmarksite('DIESEL BOMBERS', 'http://www.dieselbombers.com')">
        <img border="0" src="http://www.dieselbombers.com/images/bookmark.png" width="24" height="24" alt="Bookmark Us" /></a>
</td></if>        </td>
                <td height="100%" width="225" align="center">
                <p style="padding-top: 0px; margin-top:5px; margin-bottom: 5px">
<script type="text/javascript">

/***********************************************
* AnyLink Drop Down Menu- ? Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a target="_blank" href="http://www.thedieselclassifieds.com">The Diesel Classifieds</a>'
menu1[1]='<a target="_blank" href="http://www.dieselbookmarks.com">Diesel Bookmarks</a>'
menu1[2]='<a target="_blank" href="http://www.dieselswag.com">Diesel Swag</a>'
menu1[3]='<a target="_blank" href="http://www.cafepress.com/dieselbombers">Bomber Gear</a>'
menu1[4]='<a target="_blank" href="http://www.youtube.com/dieselbombers">You Tube Channel</a>'
menu1[5]='<a target="_blank" href="http://dieselsites.gotop100.com/in.php?ref=101">Top Diesel Sites</a>'

               
var menuwidth='200px' //default menu width
var menubgcolor='lightyellow'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

</script>

<a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, '200px')" onMouseout="delayhidemenu()">
<img border="0" src="http://www.dieselbombers.com/images/dbs4.png"></a>
</p>
</td>
                <td height="100%" width="390" align="center"><form action="http://www.google.com/cse" id="cse-search-box" target="_blank">
  <div>
    <input type="hidden" name="cx" value="partner-pub-6341648289900751:pw95wgotmpe" />
    <input type="hidden" name="ie" value="ISO-8859-1" />
    <input type="text" name="q" size="31" />
    <input type="submit" name="sa" value="Search" style="font-family: Verdana; font-weight: bold"/>
  &nbsp;&nbsp;</div>
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script>
</td>
        </tr>
</table>

The errors that are left i do not know how to fix , what do you think?

--------------- Added [DATE]1237031930[/DATE] at [TIME]1237031930[/TIME] ---------------

ARGH THIS IS HELL !!!!

Whats the proper way to close a linked image , i do it one way ..

HTML Code:

<a target="_self" href="http://www.dieselbombers.com"> <img border="0" src="http://www.dieselbombers.com/images/home24.png" width="24" height="24" alt="Go To The Home Page" />
and it throws errors so i do it like this

HTML Code:

<a target="_self" href="http://www.dieselbombers.com"> <img border="0" src="http://www.dieselbombers.com/images/home24.png" width="24" height="24" alt="Go To The Home Page" /></a>
and it throws errors too

Lynne 03-14-2009 03:16 PM

What is the exact error it gives you for that?

DieselMinded 03-14-2009 03:36 PM

http://validator.w3.org/check?uri=ht...Inline&group=0

this is driving me insane i got almost 600 errors

Quote:

document type does not allow element "a" here.

…nk" href="http://www.thedieselclassifieds.com">The Diesel Classifieds</a>'
--------------- Added [DATE]1237080998[/DATE] at [TIME]1237080998[/TIME] ---------------

abort thread called upon by thread starter , thread starter gave up and hired a professional , thread starter now washes hands of html validation tactics and declares html as the language of demons

</thread>

BigJohnny 03-15-2009 01:03 PM

for your image tag errors, you can knock of a bunch of those other errors simply by closing the image tag.

<img src="whatever"> SHOULD be <img src="whatever" />

I had 56 errors on my site, i fixed an image tag like that and was left with only 6 validation errors which are simple fixes simply because they arent valid for my doc type.

Also, i notice this

Error Line 2700, Column 218: an attribute value literal can occur in an attribute specification list only after a VI delimiter.

…is feed Off Topic "Non-Diesel Related"" /></a>

Im willing to bet if you remove that extra " more errors will disappear also.

EDIT
I just noticed you do have img tags closed properly, just mkae sure they are ALL like that, and try removing the extra " like I mentioned. its confusing your code.

DieselMinded 03-15-2009 05:02 PM

Check again if you would i have removed 3 mods due to improper html and coding , Resize with highslide , Cyb PM system enhancements , RSS feeds button/icon by forum title .

do you get any errors currently ?

--------------- Added [DATE]1237140281[/DATE] at [TIME]1237140281[/TIME] ---------------

i only get 1 error when loged in

Line 95, Column 51: there is no attribute "onClick".

?cript:void(0)" target="_top" onClick="openPoker(1202)"><img border="0" src="h

what can we do to fix this error ? everything i try deactivates the popup

--------------- Added [DATE]1237140329[/DATE] at [TIME]1237140329[/TIME] ---------------

I aslo removed the bookmark us java and the drop down in my header that had all my sites on it , both were full of errors and such

mcrider 03-15-2009 06:15 PM

Change onClick to onclick

BigJohnny 03-15-2009 06:30 PM

thanks you just helped me solve a couple of my errors. I completely neglected to notie that onClick contains a capitol....... xhtml is all lowercase... lol.

DieselMinded 03-15-2009 11:24 PM

I'm proud to announce that Diesel Bombers is Now xhtml traditional

http://www.thejimgaudet.com/blog/wp-...08/11/woot.gif

BigJohnny 03-15-2009 11:36 PM

transitional?

DieselMinded 03-18-2009 09:52 PM

that too :D


All times are GMT. The time now is 04:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01223 seconds
  • Memory Usage 1,840KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete