Jump to content

how can i locate the cause of this error and fix it?


Greywacke

Recommended Posts

hi again,i receive this error in firefox when parsing the xml:

Error: no element foundSource File: http://www.ferrety.co.za/fab/scripts/ajax_...%2023%3A59%3A59Line: 1565, Column: 79Source Code: <attribs>canopy_req = pre-owned_colour_coded<br />canopy_style = low_
when i click on the link to see the source, i receive the following source with the erratic line highlighted in bold:
<lead>	<id>1107</id>	<consumer>Owen Rhoda;oarhoda@webmail.co.za;0829200855;Cape Town</consumer>	<duplicates>No Duplicates Found</duplicates>	<attribs>canopy_req = new_white<br />canopy_style = lowline_luxury<br />budget = R5,000 to R7,500<br />fitment = ASAP<br />vehicle_status = possession_yes<br />vehicle_make_model = Ford - Bantam<br />year_model = 2008</attribs>	<message>&nbsp;</message>	<region>Western Cape - Cape Town</region>	<created>2010-04-15 14:37:10</created>	<forwardpossible supplierid="27" suppliername="Bobaas Canopies (Vereeniging)" />	<forwardpossible supplierid="28" suppliername="Bucco Canopies (Gauteng)" />	<forwardpossible supplierid="21" suppliername="Bucco Canopies (Pinetown)" />	<forwardpossible supplierid="45" suppliername="Bucco Canopies (Port Elizabeth)" />	<forwardpossible supplierid="39" suppliername="Bush Buck Canopies (Cape Town)" />	<forwardpossible supplierid="38" suppliername="Canopy King (Pinetown)" />	<forwardpossible supplierid="34" suppliername="Canopyman (George)" />	<forwardpossible supplierid="35" suppliername="Canopymart (Bellville)" />	<forwardpossible supplierid="46" suppliername="Faaz Fit Canopy (West Rand)" />	<forwardpossible supplierid="33" suppliername="George Canopies (George)" />	<forwardpossible supplierid="36" suppliername="Roamerrand (Cape Town)" />	<forwardpossible supplierid="43" suppliername="Roamerrand (Polokwane)" />	<forwardpossible supplierid="44" suppliername="SA Canopy (Polokwane)" />	<forwardpossible supplierid="30" suppliername="Silverton Canopy Centre (Pretoria)" />	<forwardpossible supplierid="41" suppliername="Xtreme Canopies (Randfontein)" />	<forwardpossible supplierid="37" suppliername="ZZ Tops (Strand)" />	<forwarded prospectid="1107" prospectordinal="04" messagecount="99" suppliername="Bush Buck Canopies (Cape Town)" sent="2010-04-15 14:37:11" contactname="Venecia or Donovan" contactposition="Owner" contactemail="bush.buck@telkomsa.net" contacttel="0217041114" />	<forwarded prospectid="1107" prospectordinal="03" messagecount="99" suppliername="Canopymart (Bellville)" sent="2010-04-15 14:37:10" contactname="Chris Boltman" contactposition="Owner" contactemail="chris@canopymart.co.za" contacttel="0219451080" />	<forwarded prospectid="1107" prospectordinal="01" messagecount="99" suppliername="Roamerrand (Cape Town)" sent="2010-04-15 14:37:10" contactname="Arno Lotz" contactposition="Owner" contactemail="arno@roamerrand.co.za" contacttel="0219518179" />	<forwarded prospectid="1107" prospectordinal="02" messagecount="99" suppliername="ZZ Tops (Strand)" sent="2010-04-15 14:37:10" contactname="Kathy Coetzer" contactposition="Owner" contactemail="zztops@telkomsa.net" contacttel="0218547796" /></lead><lead>	<id>1099</id>	<consumer>Werner Pieterse;duraplumbing@gmail.com;082 848 9132;Durbanville</consumer>	<duplicates>No Duplicates Found</duplicates>	[b]<attribs>canopy_req = pre-owned_colour_coded<br />canopy_style = low_or_highline_standard<br />budget = R4,000 to R5,000<br />fitment = ASAP<br />vehicle_status = possession_yes<br />vehicle_make_model = Opel - Corsa<br />year_model = 2005</attribs>[/b]	<message>&nbsp;</message>	<region>Western Cape - Cape Town</region>	<created>2010-04-15 09:05:14</created>	<forwardpossible supplierid="27" suppliername="Bobaas Canopies (Vereeniging)" />	<forwardpossible supplierid="28" suppliername="Bucco Canopies (Gauteng)" />	<forwardpossible supplierid="21" suppliername="Bucco Canopies (Pinetown)" />	<forwardpossible supplierid="45" suppliername="Bucco Canopies (Port Elizabeth)" />	<forwardpossible supplierid="39" suppliername="Bush Buck Canopies (Cape Town)" />	<forwardpossible supplierid="38" suppliername="Canopy King (Pinetown)" />	<forwardpossible supplierid="34" suppliername="Canopyman (George)" />	<forwardpossible supplierid="35" suppliername="Canopymart (Bellville)" />	<forwardpossible supplierid="46" suppliername="Faaz Fit Canopy (West Rand)" />	<forwardpossible supplierid="33" suppliername="George Canopies (George)" />	<forwardpossible supplierid="36" suppliername="Roamerrand (Cape Town)" />	<forwardpossible supplierid="43" suppliername="Roamerrand (Polokwane)" />	<forwardpossible supplierid="44" suppliername="SA Canopy (Polokwane)" />	<forwardpossible supplierid="30" suppliername="Silverton Canopy Centre (Pretoria)" />	<forwardpossible supplierid="41" suppliername="Xtreme Canopies (Randfontein)" />	<forwardpossible supplierid="37" suppliername="ZZ Tops (Strand)" />	<forwarded prospectid="1099" prospectordinal="02" messagecount="99" suppliername="Canopymart (Bellville)" sent="2010-04-15 09:05:14" contactname="Chris Boltman" contactposition="Owner" contactemail="chris@canopymart.co.za" contacttel="0219451080" />	<forwarded prospectid="1099" prospectordinal="01" messagecount="99" suppliername="ZZ Tops (Strand)" sent="2010-04-15 09:05:14" contactname="Kathy Coetzer" contactposition="Owner" contactemail="zztops@telkomsa.net" contacttel="0218547796" /></lead>

these elements are enclosed by root tags. where does this error come from? is the child element limited by size perhaps? the whole xml file generated is available here.the complete javascript that parses this can be retrieved from here.this is only an excerpt of the xml returned that the error in firefox turns to, i'm not quite sure how to use firebug to debug this one...somebody please help!

Link to comment
Share on other sites

okay the error is gone, but now it bombs out whilst parsing the prospects xml (i assume in the alertContents function because this is where the loading "film" gets hidden when complete. there are also no errors present in firefox) 0othe xml generated is available at this location and the javascript that is supposed to parse it is in the file here.

Link to comment
Share on other sites

okay i noticed that not all leads had the canopy_req, canopy_style and vehicle_make_model or Requirement and products_description attributes.rather the attributes are there, just no keys.this issue has been resolved.

Link to comment
Share on other sites

heh yeah, sometimes... :) the issue is not resolved however - there are problems in the script itsself. i'll have to update the downloads for them at http://www.greywacke.co.za/ajax_prospects.js and http://www.greywacke.co.za/ajax_prospects.xml.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...