开发者

Frames html, I have a problem with them

I have 3 frames in my web, the upper frame have a searchbar, when I click the button "search" the text in the searchbar goes blank, I wanna that the searchbar, keep the text. The text introduced in the search field, gives a url with the results of the query at the frames lower, don't use php because the query don't does in a server, only gives a text that is added to the URL with the resu开发者_运维技巧lts.


As I understand it, you have a page with three frames. One of the frames contains a form, but when you submit the form, you want to load the results into a different frame.

I'm guessing your form is submitting to its own frame, which is why its going blank (because you're not using any PHP to refill the form with the POSTed value).

I'm very rusty with frames as I can't remember the last time I needed to use one, but my guess would be that you need a TARGET in your form that matches the ID or name of the frame you want to load the results into?

<form method='post' action='loadThisUrl.html' target='anotherFrame'>
  <input type='text' name='myfield' />
</form>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜