www.webdeveloper.com
Results 1 to 2 of 2

Thread: Parsing HTML with javascript - HTML on external page

  1. #1
    Join Date
    Feb 2011
    Posts
    2

    Parsing HTML with javascript - HTML on external page

    I have an external page with some rudimentary html in the source code missing many tags.. a bit like the below. On a page hosted elsewhere I need to take the html from this external page and add and remove certain parts of it and add some styling such as line breaks before ^FIELD01. I've looked at jquery and AJAX but cant find anything to suit my needs. I think what I am struggling with most is having this page in a variable to then be able to edit it. Please help.

    Code:
    ^BEGIN SEARCH FORM
    
    <form name="dancesearch" action="JJList.html?PHPSESSID=604918b69ab9936e638b5d48cdc142a3&xt=673">
    ^FIELD01: Dance Name<input name="ts" type="text" size="20" maxlength="25" />
    ^FIELD02: Choreographer<input name="cs" type="text" size="20" maxlength="25" />
    ^FIELD03: Added since...<select name="ag" size="1">
    <option value="-1" selected="selected">Anytime</option>
    <option value="2">February 16th, 2011</option>
    <option value="3">February 15th, 2011</option>
    
    <option value="4">February 14th, 2011</option>
    <option value="5">February 13th, 2011</option>
    <option value="10">February 8th, 2011</option>
    <option value="11">February 7th, 2011</option>
    <option value="12">February 6th, 2011</option>
    <option value="14">February 4th, 2011</option>
    <option value="15">February 3rd, 2011</option>
    <option value="16">February 2nd, 2011</option>
    <option value="60">Two months ago</option>
    
    <option value="120">Four months ago</option>
    <option value="180">Six months ago</option>
    </select>

  2. #2
    Join Date
    Feb 2011
    Posts
    2
    I must use Javascript in the page that will eventually show the new source code which is why I am asking here.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles