Hello,
I have created this BadIP-TV.js file in Hooks to run the two scripts, for the new created buttons in the Table View.
The problem both buttons run the same file http://WebSite/alerts/BadIP.php
Would you please assist with the Functions and IDs .. THANK YOU
BadIP-TV.js
jQuery(function(){
jQuery('#Filter').after('<button class="btn btn-default" type="button" id="filter-button"> Generate IP Groups</button>');
jQuery('button[id=filter-button]').click(function(){
window.location = 'http://WebSite/alerts/BadIPGroup.php';
});
});
jQuery(function(){
jQuery('#Filter').after('<button class="btn btn-default" type="button" id="filter-button"> Generate IPs</button>');
jQuery('button[id=filter-button]').click(function(){
window.location = 'http://WebSite/alerts/BadIP.php';
});
});
Adding Two Buttons to Table View
Adding Two Buttons to Table View
- Attachments
-
- Adding Buttons in TV..PNG (112.29 KiB) Viewed 871 times
THANK YOU...
AppGini Pro 24.11 -
Calendar - Search Page Maker - Summary Reports - Mass Update - DataTalk -
bizzworxx AppGini Helper JabaScript Library - bizzworxx Inline Detail-View - bizzworxx Helper Pack - AppGini Helper Packaging Tool -
Udemy course
AppGini Pro 24.11 -
Calendar - Search Page Maker - Summary Reports - Mass Update - DataTalk -
bizzworxx AppGini Helper JabaScript Library - bizzworxx Inline Detail-View - bizzworxx Helper Pack - AppGini Helper Packaging Tool -
Udemy course
Re: Adding Two Buttons to Table View
Hi,
please put you code in the code display. That makes it easier.
Try
please put you code in the code display. That makes it easier.
Try
Code: Select all
jQuery(function(){
jQuery('#Filter').after('<button class="btn btn-default" type="button" id="filter-button-ipgroup"> Generate IP Groups</button>');
jQuery('button[id=filter-button-ipgroup]').click(function(){
window.location = 'http://WebSite/alerts/BadIPGroup.php';
});
});
jQuery(function(){
jQuery('#Filter').after('<button class="btn btn-default" type="button" id="filter-button-ip"> Generate IPs</button>');
jQuery('button[id=filter-button-ip]').click(function(){
window.location = 'http://WebSite/alerts/BadIP.php';
});
});
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
Re: Adding Two Buttons to Table View
Hi pböttcher,
Great, THANKS FOR YOUR HELP
so, the idential IDs was the cause, and I must use unique IDs
Sure, next time will use inlinecode to post the code.
I am wondering, What is the best Reference or Documentation of AppGini Functions and Variables ?
Thanks again ..
Great, THANKS FOR YOUR HELP
so, the idential IDs was the cause, and I must use unique IDs
Sure, next time will use inlinecode to post the code.
I am wondering, What is the best Reference or Documentation of AppGini Functions and Variables ?
Thanks again ..
THANK YOU...
AppGini Pro 24.11 -
Calendar - Search Page Maker - Summary Reports - Mass Update - DataTalk -
bizzworxx AppGini Helper JabaScript Library - bizzworxx Inline Detail-View - bizzworxx Helper Pack - AppGini Helper Packaging Tool -
Udemy course
AppGini Pro 24.11 -
Calendar - Search Page Maker - Summary Reports - Mass Update - DataTalk -
bizzworxx AppGini Helper JabaScript Library - bizzworxx Inline Detail-View - bizzworxx Helper Pack - AppGini Helper Packaging Tool -
Udemy course