Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

Posting values #94

Open
parakkajithin opened this issue Feb 2, 2018 · 2 comments
Open

Posting values #94

parakkajithin opened this issue Feb 2, 2018 · 2 comments

Comments

@parakkajithin
Copy link

I am using ajax-live-search in a form and the form filed as you mentioned

I added attribute name='title'
But when I submit the form php says undefined index title.
When I inspect the input filed in fire fox, the name is changed as 'ls_query;
how can I give custom name and id to form filed ?

@iranianpep
Copy link
Owner

Hi,

This is a good point, however at the moment you cannot change it with the configs. What you can do is to change ls_query in:

  • file js/ajaxlivesearch.js where elem.attr('name', 'ls_query'); is located
  • file core/Handler.php where if ($k === 'ls_query' && strlen($v) > $maxInputLength) { is located
  • file core/AjaxProcessor.php where $_POST['ls_query'] is located

Let me know how it works.

Cheers,
Ehsan

@winihoo
Copy link

winihoo commented Feb 21, 2019

hi,
i added attribute name='ls_query', also error : undefined index 'ls_query'.
how can i get value ls_query when i post in php ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants