+ Reply to Thread
Results 1 to 3 of 3

Thread: JavaScript Help..

  1. #1
    Shadow121's Avatar
    Shadow121 is offline x10 Lieutenant Shadow121 is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    Centerville
    Posts
    455

    JavaScript Help..

    Alright I would like to create a custom WYSIWYG editor and I was wondering if there is a way for JavaScript to search a page for textarea tags then replace them with a say... table with 2 tr's and one of which contains a TD with the different buttons, then the other TR contains the TD with the textarea.

  2. #2
    Twinkie is offline Banned Twinkie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Ft. Lauderdale, Florida
    Posts
    1,389

    Re: JavaScript Help..

    Absolutely. You can load the infomation of the body into a variable using the var x = document.getElementsByTagName("body")[0].innerHTML; statement and search it appropriately. Use the http://w3schools.com/jsref/jsref_obj_string.asp reference to find the methods to search the body and then apply the changes.

  3. #3
    Shadow121's Avatar
    Shadow121 is offline x10 Lieutenant Shadow121 is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    Centerville
    Posts
    455

    Re: JavaScript Help..

    hmmm o-o I'll try it, thanks ;D
    Last edited by Shadow121; 01-08-2009 at 04:38 PM.

+ Reply to Thread

Similar Threads

  1. Replies: 0
    Last Post: 08-17-2008, 01:46 AM
  2. Making a site JavaScript dependent - pros/cons?
    By Tarzan in forum Programming Help
    Replies: 8
    Last Post: 07-11-2008, 10:08 AM
  3. drop down menus with JavaScript disabled?
    By sifaka in forum Free Hosting
    Replies: 1
    Last Post: 05-15-2008, 10:46 AM
  4. javascript and external javascript files problem
    By delon in forum Programming Help
    Replies: 6
    Last Post: 04-27-2008, 12:41 AM
  5. XML and Javascript
    By cuteboytm in forum Graphics & Webdesign
    Replies: 1
    Last Post: 09-21-2007, 10:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers