Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Embedding html form search box with an <object> tag

Reply
Thread Tools

Embedding html form search box with an <object> tag

 
 
Perchance
Guest
Posts: n/a
 
      01-18-2007
Hello, I've written a basic search box form that will take the contents
of a box and pass it to a query string in my target URL.

When I run it on its standalone page it works fine. But I want to
distill my code into a simple object so others can embed the box into
their sidebars, et cetera.

I've written a standard <object> tag to do so. It even looks fine when
I post it on an independent page. The problem comes when I run the
search. Instead of jumping to the target page, or opening it in a new
window, the results appear in a tiny little keyhole iframe window about
the size of my object.

Any ideas for a fix?

 
Reply With Quote
 
 
 
 
J.O. Aho
Guest
Posts: n/a
 
      01-18-2007
Perchance wrote:
> Hello, I've written a basic search box form that will take the contents
> of a box and pass it to a query string in my target URL.
>
> When I run it on its standalone page it works fine. But I want to
> distill my code into a simple object so others can embed the box into
> their sidebars, et cetera.
>
> I've written a standard <object> tag to do so. It even looks fine when
> I post it on an independent page. The problem comes when I run the
> search. Instead of jumping to the target page, or opening it in a new
> window, the results appear in a tiny little keyhole iframe window about
> the size of my object.



Use target=_new or target=_blank in the form-tag

--

//Aho
 
Reply With Quote
 
 
 
 
Perchance
Guest
Posts: n/a
 
      01-18-2007

J.O. Aho wrote:
> Use target=_new or target=_blank in the form-tag


Thanks for the tip. Is it really that simple?!

I just tried modifying my host page's form tag like so:

<form action="http://www.JUNK.com/default.aspx" target="_blank"
method="get" class="formbox">

And it still isn't working out of my object.

 
Reply With Quote
 
J.O. Aho
Guest
Posts: n/a
 
      01-18-2007
Perchance wrote:
> J.O. Aho wrote:
>> Use target=_new or target=_blank in the form-tag

>
> Thanks for the tip. Is it really that simple?!
>
> I just tried modifying my host page's form tag like so:
>
> <form action="http://www.JUNK.com/default.aspx" target="_blank"
> method="get" class="formbox">
>
> And it still isn't working out of my object.
>


It's so simple, but don't quote the _blank/_new

<form action="http://www.JUNK.com/default.aspx" target=_blank
method="get" class="formbox">

or else the effect of the target won't happen.

--

//Aho
 
Reply With Quote
 
 
 
Reply

Thread Tools

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
error "A form tag with runat=server must exist" but there is a form tag!! André ASP .Net 2 06-23-2008 07:49 AM
HTML.Tag.BASE same as HTML.Tag.A carlbernardi@gmail.com Java 1 11-29-2006 03:41 AM
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM
How Can I put XSL tag inside HTML form tag? RC Java 2 05-10-2005 06:26 PM
How Can I put XSL tag inside HTML form tag? RC XML 2 05-10-2005 05:55 PM



Advertisments