Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Posting Form Results to an iframe
Old 01-11-2012, 08:17 AM Posting Form Results to an iframe
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
I have a form set up like so (on each page of a website):

Code:
<form method="post" action="http://www.mattpealing-server.co.uk/~devashwo/search/">
            <h4>Property Search</h4>
            <div class="content">
                <div class="field">
                    <label for="search-search">Search</label>
                    <select name="searchSearch" id="search-search">
                        <option value="for-sale">For Sale</option>
                        <option value="for-rent">For Rent</option>
                    </select>
                </div>
                <div class="field">
                    <label for="search-min-bed">Min. Beds</label>
                    <select name="bed" id="search-min-bed">
                        <option selected="selected" disabled="disabled" value="1">Please Select</option>
                        <option value="1">1</option>
                        <option value="2">2</option>
                        <option value="3">3</option>
                        <option value="4">4</option>
                        <option value="5">5</option>
                    </select>
                </div>
                <div class="field">
                    <label for="search-min-price">Min. Price</label>
                    <select name="lop" id="search-min-price">
                        <option selected="selected" value="0">No min</option>
                        <option value="50000">50,000</option>
                        <option value="100000">100,000</option>
                        <option value="150000">150,000</option>
                        <option value="200000">200,000</option>
                        <option value="250000">250,000</option>
                        <option value="300000">300,000</option>
                        <option value="400000">400,000</option>
                        <option value="500000">500,000</option>
                        <option value="1000000">1,000,000</option>
                    </select>
                </div>
                <div class="field">
                    <label for="search-max-price">Max. Price</label>
                    <select name="hip" id="search-max-price">
                        <option selected="selected" value="50,000">50,000</option>
                        <option value="100000">100,000</option>
                        <option value="150000">150,000</option>
                        <option value="200000">200,000</option>
                        <option value="250000">250,000</option>
                        <option value="300000">300,000</option>
                        <option value="400000">400,000</option>
                        <option value="500000">500,000</option>
                        <option value="1000000">1,000,000</option>
                        <option value="2000000">2,000,000</option>
                        <option value="9999999">No maximum</option>
                    </select>
                </div>
                <div class="field">
                    <label for="search-max-region">Regions</label>
                    <select name="cou" id="search-max-region">
                        <option value="Sale">Sale</option>
                        <option value="Altrincham">Altrincham</option>
                        <option value="Timperley">Timperley</option>
                        <option value="Stretford">Stretford</option>
                        <option value="Urmston">Urmston</option>
                        <option value="Other">Other</option>
                    </select>
                </div>
                <input type="submit" value="Search" name="submit">
            </div>
        </form>
And then the results page containing the following:
Code:
<iframe id="vebra" src="http://www.vebra.com/home/quick/PFresults.asp"></iframe>
I'm trying to get the results to display in the iframe using the 'target' attribute on the form however all that seems to happen is my browser will open a new tab?!

What I want it to do is go to the search results page and post the form results to the iframe.

Is this possible?

Here is a link to he page if that helps:
__________________

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
 
Register now for full access!
Old 01-11-2012, 12:38 PM Re: Posting Form Results to an iframe
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
I'm trying to get the results to display in the iframe using the 'target' attribute on the form
To do that you have to have a name attribute ON the iframe.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-18-2012, 03:47 AM Re: Posting Form Results to an iframe
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
Sorry for the late response.

Thanks for the tip! I've added a name attribute but it's brought up a couple of strange issues.

If I try the search form from the homepage for example, the results will open in a new tab.

Whereas if I try searching on the search form itself then I get a duplicate of the page opening up in the iframe itself (see attached image).

I assume I'm doing something wrong??
Attached Images
File Type: png Screen Shot 2012-01-18 at 08.45.55.png (74.1 KB, 3 views)
__________________

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Old 01-20-2012, 05:42 AM Re: Posting Form Results to an iframe
Junior Talker

Posts: 2
Trades: 0
Can you share the code where you are calculating the search results.
__________________

Please login or register to view this content. Registration is FREE
sabhandari is offline
Reply With Quote
View Public Profile Visit sabhandari's homepage!
 
Old 01-20-2012, 08:37 AM Re: Posting Form Results to an iframe
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
Could you please clarify what you mean by, and what the difference is, between "the search form from the homepage" and "the search form itself"?
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Reply     « Reply to Posting Form Results to an iframe
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.39348 seconds with 13 queries