Hi All,
Thought I would share something with you all that cost me 3 hours this afternoon. I was modifying the Act_Primary.html template, adding some images for the navigation, I tried an offline preview of the site and a runtime error occurred causing the application to abort and close.
Having checked the code over and over again I could find no problem. I reinstated the original file and this worked happily. I compared both files against each other and as I had only changed a small section of code, there were no obvious discrepancies. Then, after removing line by line of the code and retrying a preview I finally found that by removing a single line of table data, the offline preview worked succesfully and the application no longer aborted.
I am going to share this with you all as an extract of the code as this is very specific to the problem. Hopefully someone will be able to offer a reason why? I have to say this is about the third time this has happened, different code each time. Probably the reason everyone says be careful editing the HTML. However, I do consider this to be a fault with the application.
The problem Code:
The code was changed to this and worked:
Anyone explain why Actinic should parse the second code section without causing a runtime error but have a problem with the first!
Just thought I would share this gotcha with you all - three hours is a long time to lose and I have noted people talking of corrupt databases and bad HTML but in this case, Actinic is just fussy about what it wants to see.
Alan Wyatt-Jones.
Thought I would share something with you all that cost me 3 hours this afternoon. I was modifying the Act_Primary.html template, adding some images for the navigation, I tried an offline preview of the site and a runtime error occurred causing the application to abort and close.
Having checked the code over and over again I could find no problem. I reinstated the original file and this worked happily. I compared both files against each other and as I had only changed a small section of code, there were no obvious discrepancies. Then, after removing line by line of the code and retrying a preview I finally found that by removing a single line of table data, the offline preview worked succesfully and the application no longer aborted.
I am going to share this with you all as an extract of the code as this is very specific to the problem. Hopefully someone will be able to offer a reason why? I have to say this is about the third time this has happened, different code each time. Probably the reason everyone says be careful editing the HTML. However, I do consider this to be a fault with the application.
The problem Code:
Code:
<td><img src="home_up.jpg" width="97" height="28"><img src="about_up.jpg" width="113" height="28"><img src="contact_up.jpg" width="122" height="28"><img src="news_up.jpg" width="84" height="28"><img src="checkout_up.jpg" width="129" height="28"><img src="banner_fill.jpg" width="180" height="28"></td>
Code:
<td><table width="725" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="home_up.jpg" width="97" height="28"></td> <td><img src="about_up.jpg" width="113" height="28"></td> <td><img src="contact_up.jpg" width="122" height="28"></td> <td><img src="news_up.jpg" width="84" height="28"></td> <td><img src="checkout_up.jpg" width="129" height="28"></td> </tr> </table></td>
Just thought I would share this gotcha with you all - three hours is a long time to lose and I have noted people talking of corrupt databases and bad HTML but in this case, Actinic is just fussy about what it wants to see.
Alan Wyatt-Jones.
Comment