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


create table data as I wish

More
8 years 11 months ago #3141

thanks, I edited the archive and added the code and change the title name of the table, but nothing happen.
here I send you the two archives the original and the edited so please you can fix it.

Attachments:

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

More
8 years 11 months ago #3142

My bad, I did not close the if statement. So here is the new code:

	if($this->_config->tableCaption == 'Performance'){
		$field['output_script'] .="<script>
			setInterval(function(){
				searchjx('".$this->ajaxURL("", "", 0 )."', '$this->_ID');
		}, 10000);
		 </script>";
	}

And one more thing. This will refresh table every 10 sec. if you want to change time interval just change the number 10000(this are ms) at the end of the code

Last edit: 8 years 11 months ago by Samir.
The following user(s) said Thank You: jor

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

More
8 years 11 months ago #3143

I insert the code and the web looks good but it doesn't reload refresh automatically yet...
also I would like to play a sound when a new row is added in the table.

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

More
8 years 11 months ago #3144

I have tested the code and it should work. Could you please check if the code was inserted correctly or just paste in the code above one more time.

The following user(s) said Thank You: jor

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

More
8 years 11 months ago #3145

thanks, it was my error I insert the code and now it works great.

thanks so much.

also I would like that the table play a sound every time a new row is added, to advice the users that new data is in the web.

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

Moderators: tomaz
Time to create page: 0.192 seconds

Contact Us

Contact us on Discord

Contact us on Facebook