Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-24-2007, 07:01 PM
chriscoleman chriscoleman is offline
 
Join Date: Feb 2007
Location: TN
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Breaking Javascript Code in Internet Explorer

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. 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:

HTML Code:
 <!-- 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 -->
Reply With Quote
  #2  
Old 06-25-2007, 06:54 AM
Kungfu Kungfu is offline
 
Join Date: Dec 2005
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 06-25-2007, 11:32 PM
chriscoleman chriscoleman is offline
 
Join Date: Feb 2007
Location: TN
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kungfu View Post
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!!
Reply With Quote
  #4  
Old 06-27-2007, 01:27 PM
chriscoleman chriscoleman is offline
 
Join Date: Feb 2007
Location: TN
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any suggestions ??
Reply With Quote
  #5  
Old 06-27-2007, 01:48 PM
Wayne Luke's Avatar
Wayne Luke Wayne Luke is offline
Senior Member
 
Join Date: Jan 2002
Location: Southern California
Posts: 1,694
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 06-27-2007, 02:00 PM
cyberphr's Avatar
cyberphr cyberphr is offline
 
Join Date: Jul 2006
Location: Hell
Posts: 293
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Javascript, not Java.
Reply With Quote
  #7  
Old 06-27-2007, 02:49 PM
chriscoleman chriscoleman is offline
 
Join Date: Feb 2007
Location: TN
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cyberphr View Post
Javascript, not Java.
My apologies........Javascript! Original post edited!

Quote:
Originally Posted by Wayne Luke View Post
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!!
Reply With Quote
  #8  
Old 06-27-2007, 03:12 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 06-27-2007, 05:14 PM
chriscoleman chriscoleman is offline
 
Join Date: Feb 2007
Location: TN
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:42 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06731 seconds
  • Memory Usage 2,243KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete