I have a WebEdit and a WebButton.
If I click the WebButton, I navigate to another url.
If the WebEdit has a text inside, the ButtonClick adds the text.
Ok, this works.
If the user press enter in the WebEdit, I want add the "WebEdit.Text" too.
But the url remains constant and a "?" is appended.
If I debug in my Firefox browser step by step, it works. Without debugging not.
Here is the code:
procedure TframeSophaMain.btnKundenClick(Sender: TObject);
begin
if edKundensuche.Text <> '' then
Application.Navigate( 'Kunde.html?search='+edKundensuche.Text, ntPage)
else
Application.Navigate( 'Kunde.html', ntPage);
end;
procedure TframeSophaMain.edKundensucheKeyPress(Sender: TObject; var Key: Char);
begin
if Key = #13 then
btnKundenClick( Sender);
end;
I'm trying a few more tests.
When I press enter, a "?" appended to the url.
Did I manually put a "#" after the "?" then it works.
I suspect problems with the bootstrap template again.