Latest Posts

Stars Not showing on Rating Script

Scripts from this website 18 3

AdminSorry,
I think that the problem is from php server.
I notied that your server emits warning error if the date_default_timezone_set isn't specified; which affects data returned to ajax.
So, in the "ratings.php" file add the following code (before including of the "class.rating.php"), and set the time...

English video lessons for kids

General Chat 286 2

JanMolendijk(little joke) Meight i should also join the
lessons for better technical-english :D
One thing CoursesWeb does great unique things.
without you i would be still very basic...
But re-inventing the wheel is with Courseweb
no longer necessary `just fantastic`
thankfully...

AdminHello,
That error appears because there is something sent to browser before session_start(); , like an "echo", or a space or other character before the starting "<?php".
Make sure you put session_start(); before you output any character to browser, not even a space before "<?php".
Also, use...

AdminIf there is a "notice_id"; in that mysql table, you can store it in a variable, then apply "echo" to that variable.
while($row = mysqli_fetch_assoc($sql)){
$notice_id = $row['notice_id'];
}
//etc.. your code
echo isset($notice_id) ?$notice_id :0;...

AdminHello,
Just include the "siteaccess/siteaccess.js" in the html code of that page.
<script src="siteaccess/siteaccess.js"></script>
In the "siteaccess.js" file put an absolute /full path to "siteaccess.php" (with "://"), for example:
ob_ajax.open('POST', ' true);
- Or, if the "siteaccess.php" file is directly in root of...

AdminIn php files, if after the last line of code there isn't other content, like html, there is not need for the closing tag "?>".
The closing tag is necessary if there is other type of code /content after the php code.
For example, in a file called...

AdminHi,
I made some changes in the script that fixed the error you mentioned; just download the script again.
You have to start the script fresh because the new format for saving data it's a bit different.
- I implemented the script in this site too, you...

AdminGoogle announced that they joined the Coalition for Better Ads , an industry group dedicated to improving online ads; and, in 2018 Chrome will support the recently released Better Ads Standards .
For more details, visit their blog: Google blog about Better Ads Standards .
- If you have any...

Add image with dynamic src in HTML using javascript

JavaScript - jQuery - Ajax 25 1

AdminHello
Try this code:
<div id="dimg">Here add image</div>
<script>
var dimg = document.getElementById('dimg');
//receives the JPG image name (without extension)
function addImg(imn){
dimg.innerHTML ='<img src=" imn +'.jpg'" >';
}
addImg('imgname'); //adds the image imgname.jpg
</script>
Or this:
<img src='default_image.jpg'...

Alert on jquery ajax requst when new response

JavaScript - jQuery - Ajax 16 1

AdminTry something like this, store the previous response into a variable, and alert the message if response changed:
var msg_res =''; //store the previous response
$(document).ready(function ajax(){
$.ajax({
type: 'GET',
url: 'recieve.php',
dataType: 'html',
success: function(response){
//if response changed, not the same...

Disable submit button after first press

JavaScript - jQuery - Ajax 37 3

AdminYou can use "onclick" with: this.style.display='none' , or: this.style.visibility='hidden' ; will automatically hide the button, so, it will not be pressed again.
If you want with "disabled", try with "onsubmit" attribute added in <form> tag; like in this example:
<form action="" method="post" enctype="multipart/form-data" onsubmit="return this['submit'].setAttribute('disabled', 'disabled');">
<select name="satisfacere">
...

AdminHy,
To much code and i cannot test it because i not have the necessary database.
Study better the example I have gave above, that it works.
- If the <button> has: id="'.$id22.'"
- the associated Div with checkboxes must have: id="check'.$id22.'"...