Welcome, Guest
Username: Password: Remember me
Welcome to the ToolsJX forum!


TOPIC: Display Data After Submit, but ....

Re:Display Data After Submit, but .... 2 years 5 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)
The administrator has disabled public write access.

Re:Display Data After Submit, but .... 2 years 5 months ago #1889

  • tomaz
  • tomaz's Avatar
  • OFFLINE
  • Administrator
  • Posts: 735
  • Thank you received: 50
  • Karma: 8
Use this:

if(ds=="rut%7C%7C")return;
How about posting a review on JED? Table JX, Card View JX, Paid Downloads JX
The administrator has disabled public write access.

Re:Display Data After Submit, but .... 2 years 5 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.
The administrator has disabled public write access.

Re:Display Data After Submit, but .... 2 years 5 months ago #1893

  • tomaz
  • tomaz's Avatar
  • OFFLINE
  • Administrator
  • Posts: 735
  • Thank you received: 50
  • Karma: 8
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.
How about posting a review on JED? Table JX, Card View JX, Paid Downloads JX
The administrator has disabled public write access.
Time to create page: 0.152 seconds