SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Mar 2013
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Submit to other submit page which submits too and load

    Page#1 search form:
    <form id="SearchForm" action="http://mysite/search-results-jobs/" target="" method="post">
    <input type="hidden" name="action" value="search" />
    <input type="hidden" name="listing_type[equal]" value="Job" />
    <label><strong>What?</strong>
    <em>
    <input type="text" value="job title, keywords or company name"
    onblur="if(this.value=='') this.value='job title, keywords or company name'"
    onFocus="if(this.value =='job title, keywords or company name' ) this.value=''" name="keywords [all_words]" />

    </em></label>




    <label><strong class="color">Where?</strong><b><input type="text" value="city, state or zip code"
    onblur="if(this.value=='') this.value='city, state or zip code'" onFocus="if(this.value =='city, state or zip code' ) this.value=''" name="City[all_words]" /></b></label>


    <a href="#" class="SearchForm-link" onclick="document.getElementById('SearchForm').submit()"/>Search</a></form>



    Page#2

    <form id="SearchForm" action="http://mysite.com/search-results-jobs/" target="my-iframe" method="post">
    <input type="hidden" name="action" value="search" />
    <input type="hidden" name="listing_type[equal]" value="Job" />
    <label><strong>What?</strong>
    <em>
    <input type="text" value="job title, keywords or company name"
    onblur="if(this.value=='') this.value='job title, keywords or company name'"
    onFocus="if(this.value =='job title, keywords or company name' ) this.value=''" name="keywords[all_words]" />

    </em></label>




    <label><strong class="color">Where?</strong><b><input type="text" value="city, state or zip code"
    onblur="if(this.value=='') this.value='city, state or zip code'" onFocus="if(this.value =='city, state or zip code' ) this.value=''" name="City[all_words]" /></b></label>
    <a href="#" class="SearchForm-link" onclick="one(); two(); three(); four();">Search</a>
    <input type="submit" id="btn-search" class="button" value="Cauta"/></form>

    <iframe id="my-iframe" name="my-iframe" align="right" src="http://mysite.com/" frameborder="0" height="100%" scrolling="no" width="100%"></iframe>

  2. #2
    Just Blow It bronze trophy
    DaveMaxwell's Avatar
    Join Date
    Nov 1999
    Location
    Mechanicsburg, PA
    Posts
    7,251
    Mentioned
    113 Post(s)
    Tagged
    1 Thread(s)
    I'm sorry - is there a question here?
    Dave Maxwell - Manage Your Site Team Leader
    My favorite YouTube Video! | Star Wars, Dr Suess Style

  3. #3
    SitePoint Member
    Join Date
    Mar 2013
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes. I have page1 with search form. When people complete search form on Page1 and push search I need page 2 to load with results within iframe(page3) based on search text from page1. Right now if I search o page 1 it loads iframe page alone with results while I need t load page2 with results inside the iframe.


Bookmarks

Posting Permissions

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