[Solved] Need help linking 2k files into html [closed]

Given your specific situation as explained in the chat, you have no access to the ‘back end’ you DO have access and permission to change the directory-structure and file-names of the course-materials (pdf-files) current path & filenaming conventions are a mess (don’t exist) and unpredictable there is currently nothing linking course-codes with course-descriptions/course-materials every course … Read more

[Solved] How can I create a table as displayed in the below screen shot [closed]

You can add the following to css: tr { border: 1px solid black; } th { border: 0; width: 100px; text-align: left; } Here is the snippet: tr { border: 1px solid black; } th { border: 0; width: 100px; text-align: left; } <table border=1px solid; style=”border-collapse:collapse;” RULES=COLS> <tr> <th>Duration </th> <th>Topic</th> </tr> <tr> <td>10 … Read more

[Solved] How to write Java script that advances to a link after a link has been clicked “X” # of times [closed]

Try this. Its simple but you get the idea. Rest you should try to accomplish yourself. var clicks = 0; document.getElementById(‘button’).onclick = function(){ clicks++; if(clicks == 5) { window.location.href=”www.yourlink.com”; } } <button id=”button”> Click </button> solved How to write Java script that advances to a link after a link has been clicked “X” # of … Read more

[Solved] How can I find which file or code affected to my code in html, css

Hiding an element can be done by setting the display property to “none” or the visibility property to “hidden”. (http://www.w3schools.com/css/css_display_visibility.asp) Try it without the display none: element.style { border: 1px solid rgb(0, 0, 0); padding: 0px; width: 800px; height: 480px; } solved How can I find which file or code affected to my code in … Read more

[Solved] POST function not working with my php code however in the same function GET is working [duplicate]

If you want to access the variable via the $_POST array, you have to specify post as the method in your form (or in whatever mechanism you’re using to hit the file, like an AJAX request or something, you’d need to specify “post” accordingly): <form method=”post” action=”your-file-or-route”> If you don’t want to worry about that, … Read more

[Solved] Website posting and login [closed]

You seem to be talking about a Content Management System. I’d suggest you look at some of the (many) options out there e.g. WordPress or Drupal – neither is perfect but both are widely supported. 2 solved Website posting and login [closed]

[Solved] Why should not be id repeated? [duplicate]

Like others before me have said, you are using the id tag which is a unique identifier. Whereas you should use a class to apply styles across multiple elements. See what the W3C defines an id as: (http://www.w3.org/TR/html401/struct/global.html#h-7.5.2) Element identifiers: the id and class attributes Attribute definitions id = name [CS] This attribute assigns a … Read more

[Solved] Trying to display Json data from a web url into a table

This is how i solved it <?php try{ $url=”the json url goes here”; // path to your JSON file $data = file_get_contents($url); // put the contents of the file into a variable $characters = json_decode($data); echo ‘<div class=”panel-heading”> <h3 align=”center”>Market Prices for ‘; echo $characters[0]->Crop; echo ‘</h3> </div>’; echo ‘<div class=”panel-body”> <table class=”table table-striped table-hover … Read more

[Solved] Turning a content into a $variable in php

You can use \DOMDocument->loadHTML(); Ex: <?php $doc = new \DomDocument(); $doc->loadHTML(‘<div class=”whatever”> Title </div>’); View examples here: http://docs.php.net/manual/en/domdocument.loadhtml.php This is assuming that your source is available to php. It would probably be more pragmatic to extract the value with javascript in the client and send it with the page request. If your app is well … Read more

[Solved] Jquery Multiple Select Show values in [closed]

Try it like, var ul = $(‘<ul>’).appendTo(‘body’); function createList() { ul.empty(); $(‘select option:selected’).each(function() { li = $(‘<li/>’).text($(this).text()).attr(‘value’, this.value); li.appendTo(ul); }); } $(‘select’).on(‘change’, function() { createList() }).trigger(‘change’); <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js”></script> <select name=”is_format” id=”is_format”> <option value=”A4″>{l s=”A4″}</option> <option value=”A3″>{l s=”A3″}</option> </select> <select name=”is_color” id=”is_color”> <option value=”Couleur” selected>{l s=”Couleur”}</option> <option value=”Noir/Blanc”>{l s=”Noir et Blanc”}</option> </select> 3 solved Jquery Multiple … Read more

[Solved] Refresh table after seconds

You need to use $.ajax like $(function(){ function getdata(){ $.ajax({ url:’getdata.php’, success:function(response){ $(‘#dataTables-example tbody’).html(response); } }); } setInterval(function(){getdata()},5000); }); getdata.php <?php $req = mysqli_query($con, ‘select user_id, user_name from users’); while ($dnn = mysqli_fetch_array($req)) { echo “<tr> <td>” . $dnn[‘user_id’] . “</td> <td>” . $dnn[‘user_name’] . “</td> </tr>”; } ?> 6 solved Refresh table after seconds