PDA

View Full Version : Breaking Javascript Code in Internet Explorer


chriscoleman
06-24-2007, 07:01 PM
I am having a problem, and am being told that it's the forum software that is causing javascript code to be broken and not viewable in Internet explorer. I use Mozilla Firefox as my primary browser and am able to view the post properly, but cannot in IE.

Can someone please tell me how to fix this so it can be viewed in IE please.

See one page HERE (http://dealcrasher.com/sports-fitness/3889-ski-chalet-steals-sales.html). There are others if needed.

Thanks in advance.

I wanted to add that I was told that the forum was placing break codes <br /> in the script that was causing the problem. Please see the following copy and paste:


<!-- message -->
<div id="post_message_4529"><!-- google_ad_section_start --><div align="center"><font size="4"><b>Ski Chalet Steals &amp; Sales!!</b></font><br />

<br />
<script type="text/javascript"><br />
<!--<br />
sas32tabidvalue = '206514';<br />
sas32tabafftrackvalue = '';<br />
// --><br />
</script><br />
<script type="text/javascript" src="http://widgets.shareasale.com/11155/32.js?u=206514"><br />
</script><br />
<br />
</div><!-- google_ad_section_end --></div>
<!-- / message -->

Kungfu
06-25-2007, 06:54 AM
are you parsing it or anything?

converting line breaks into <br />.

Otherwise i dont know why it would be there. How are you implementing that code?
Is it a plugin or something?

chriscoleman
06-25-2007, 11:32 PM
are you parsing it or anything?

converting line breaks into <br />.

Otherwise i dont know why it would be there. How are you implementing that code?
Is it a plugin or something?

Pardon my stupidity - parsing it? I am not familiar with that term, so not intentionally, no.
I am just copying and pasting the code. When I paste it, the line breaks are not there, they appear after I complete the post.

Thanks in advance for your assistance!!

chriscoleman
06-27-2007, 01:27 PM
Any suggestions ??

Wayne Luke
06-27-2007, 01:48 PM
Fixing this would require rewritting the class_bbcode.php file to actually be able to properly detect what is HTML and what isn't. Not an easy task, which is why its not in there. Until then, I recommend not pasting javascript in posts.

cyberphr
06-27-2007, 02:00 PM
Javascript, not Java.

chriscoleman
06-27-2007, 02:49 PM
Javascript, not Java.

My apologies........Javascript! Original post edited!

Fixing this would require rewritting the class_bbcode.php file to actually be able to properly detect what is HTML and what isn't. Not an easy task, which is why its not in there. Until then, I recommend not pasting javascript in posts.


Wayne, What would it cost me to have someone rewrite the file so I would be able to post javascript?

Thanks for your reply!!

Princeton
06-27-2007, 03:12 PM
Enabling html to the public is a security risk. (just need to get that out of the way)

remove all breaks from javascript code and it will work

so instead of having the script in mulitple lines - fit the entire script in one line

chriscoleman
06-27-2007, 05:14 PM
Every time I paste javascript code to a post, it breaks it. Isn't there a check box to automatically parse the links? I think I remember checking a box similar to that at some point, but cannot locate it now.

How can I set it where when I post one line of code, it actually stays that way?