Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 03-11-2004, 10:22 PM
SpeedStreet SpeedStreet is offline
 
Join Date: Aug 2002
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default One Step Away From Spellcheck

I posted less code then this yesterday...but now I am VERY close to being able to release a hack for integrating ieSpell into vB3.

The problem we are having, is that the new WYSIWYG editor is actually a div, so that programs like ieSpell can't read from it (it needs a textarea).

The code below is supposed to use javascript to replicate the data entered into the wysiwyg editor and place it in a hidden textarea for ieSpell to grab from.

Here is how much I have as of now. I've had some great help from folks like ShAm4n over at DevShed, and I think we are really close to licking this!

Like I said previously, the object here is to replicate the data in a div tag of a WYSIWYG editor so that ieSpell will be able to read from the data and spell check it.

Anyone who cracks this will have a major part in bringing free client side spellchecking to vB3!


PS: If my dream is not possible, please let me know.

PHP Code:
Here is the code for the form:
======================================================
<
script language="javascript">
browsername=navigator.appName;

if (
browsername.indexOf("Netscape")!=-1) {
browsername="NS";
} else {
if (
browsername.indexOf("Microsoft")!=-1) {
browsername="MSIE";
} else {
browsername="N/A";
}
}

function 
checkspell() {
try {
var 
tmpis = new ActiveXObject("ieSpell.ieSpellExtension");
tmpis.CheckAllLinkedDocuments(document);
} catch(
exception) {
// nothing
}

}

function 
spellButton() {
if (
browsername=="MSIE") {
try {
var 
tmpis = new ActiveXObject("ieSpell.ieSpellExtension");
document.write('<input type="button" value="Check Spelling" onclick="checkspell()" class="normal_text">');
tmpis null;
} catch(
exception) {
// nothing
}
}
}

</
script>
<
script language="JavaScript">spellButton()</script>
================================================================



Here is the code for the form:
================================================================
<!-- 
This is the existing WYSIWYG code from vB3 --> 
<!-- 
I added the id="message" because I was told to --> 
<!-- 
BEGIN vBCODE --> 
<
div class="controlbar" id="qrdiv"
<
textarea name="message" id="qr_message" class="bginput" style="width:600px; height:100px;" rows="5" cols="60" tabindex="1"></textarea
<!-- 
End vBCode --> 

<!-- 
Here is the snippet provided to me --> 
<!-- 
BEGIN SNIPPET --> 
<
textarea style="display: none" id="message"></textarea
<
script type="javascript">
document.getElementById('message').value document.getElementById('qr_message').InnerHTML;
</
script
<!-- 
END SNIPPET --> 

<!-- 
BEGIN vBCODE -->         
    </
div
<!-- 
END vBCODE -->
================================================================== 
By all accounts and purposes, I am sure this should work...but it's still giving me the same issues. Can SOMEBODY please help me figure this one out!?

Thanks!
Reply With Quote
  #2  
Old 03-31-2004, 06:41 PM
Soholaunch Soholaunch is offline
 
Join Date: Feb 2004
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any progress?
Reply With Quote
  #3  
Old 04-08-2004, 07:38 PM
sross sross is offline
 
Join Date: Mar 2004
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Soholaunch
any progress?
also eagerly awaiting this hack
Reply With Quote
  #4  
Old 04-28-2004, 02:15 AM
joeychgo's Avatar
joeychgo joeychgo is offline
 
Join Date: Mar 2004
Location: Chicago, IL
Posts: 933
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you abandoned this hack Speedstreet???
Reply With Quote
  #5  
Old 04-28-2004, 04:05 AM
sross sross is offline
 
Join Date: Mar 2004
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hopes and dreams shattered! hehe
Reply With Quote
  #6  
Old 05-28-2004, 12:29 AM
lucky64's Avatar
lucky64 lucky64 is offline
 
Join Date: Nov 2002
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I hope hes still working on it
Reply With Quote
Reply

Thread Tools
Display Modes

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 06:07 PM.


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.05055 seconds
  • Memory Usage 2,224KB
  • 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_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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