https://antibiotiqueaugmentin.com/surdosage-augmentin-bebe/
× Welcome to the ToolsJX forum!


Display Data After Submit, but ....

  • proyectoc77
  • proyectoc77's Avatar Topic Author
  • Visitor
  • Visitor
11 years 9 months ago #1888

If I put this code, if(ds="rut|")return; with =
the submit button don't work, so alert(ds); don't give me any result.

If I use this code, if(ds=="rut|")return; with "=="
the submit button work, and alert(ds); show me a pop with this rut%7C%7C (when search box is empty), if I put an id the alert code show me a pop up windows with the di, like this rut%7C98765432-1%7C. (id 98765432-2)

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #1889

Use this:

if(ds=="rut%7C%7C")return;

Please Log in or Create an account to join the conversation.

  • proyectoc77
  • proyectoc77's Avatar Topic Author
  • Visitor
  • Visitor
11 years 9 months ago #1892

You're a genius!. Now works as I wish.

Another question this applies to this format in particular. Now I've only one grid.

What happens if I set another grid and I need another column to filtrate?.
I would have to put another line in the grid.js?


thanks.

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #1893

Hi,

In that case you will need to adjust that code. Probably with another if clause. You could say

if(id="my_id")
if(ds=="rut%7C%7C")return;


You could use alert(id) to check what the id is in the case of the current table that you are using.

However I must warn you that this method that I proposed is not 100 percent safe. One could still get to your data if he puts a bit effort into the thing. If this is an important information that you are tying to hide, you will have to adjust the php code as well.

Please Log in or Create an account to join the conversation.

Moderators: tomaz
Time to create page: 0.153 seconds

Contact Us

Contact us on Discord

Contact us on Facebook