vendredi 28 juillet 2017

How a browser is able to pesent unreadable code in right way

I met a problem when i try to get the content of following link: http://ift.tt/2vdlJwo &city=Rajkot the content is written in Gujarati ,and it can be presented rightly in browser,but when you try to copy content or see it in the source Html code,you will find that the content is actually unreadable codes. So how browser is able represent it?How a browser is able to pesent unreadable code in right way




useing two css file on one page with same class name

is there a way i could use two different css file on one html page with the two css files having same class name e.g

style1.css

container{
  background-color: #ffffff;
}

style2.css

container{
  background-color: #000000;
}

index.html

<div class="style1.css/container"></div>
<div class="style2.css/container"></div>

i have tried it using this e.g

file2.php

<style>
   container{
     background-color: #000000;
   }
</style>
<div class="container">

and in the index.php

<div class="style1.css/container"></div>
<?php 
   include 'file2.php';
?>

i hope someone get what i ama trying to do, i would really appreciate if i could get any help




how to set image using css ( background-image property)?

I need to know how to set background image in CSS using background-image property.

The image cannot show in the browser. i don not know what is the reason but my file image path is from the desktop but i should use ../ use to set but it nothing will appear .Can anyone know this please help to set this problem




jeudi 27 juillet 2017

JQuery Custom Column Sorting not working for columns that are alphanumeric

I have set up custom JQuery column sorts that work for numeric or alphabetical data types but i can't get it to work for alphanumeric. I would imagine the numbers get sorted to the top and the alphas go underneath but i cannot get it to do anything. Im using Bootstrap Data Tables and JQuery. My custom statements are below but i can't see how to allow them for alphanumeric mixed field types. Has anyone have a solution or point me in the direction of where i would find one? thanks in advance.

    /* Create an array with the values of all the input boxes in a column */
$.fn.dataTable.ext.order['dom-text'] = function(settings, col) {
    return this.api().column(col, { order: 'index' }).nodes().map(function(td, i) {
        return $('input', td).val();
    });
}

/* Create an array with the values of all the input boxes in a column, parsed as numbers */
$.fn.dataTable.ext.order['dom-text-numeric'] = function(settings, col) {
    return this.api().column(col, { order: 'index' }).nodes().map(function(td, i) {
        return $('input', td).val() * 1;
    });
}

/* Create an array with the values of all the select options in a column */
$.fn.dataTable.ext.order['dom-select'] = function(settings, col) {
    return this.api().column(col, { order: 'index' }).nodes().map(function(td, i) {
        return $('select', td).val();
    });
}

/* Create an array with the values of all the checkboxes in a column */
$.fn.dataTable.ext.order['dom-checkbox'] = function(settings, col) {
    return this.api().column(col, { order: 'index' }).nodes().map(function(td, i) {
        return $('input', td).prop('checked') ? '1' : '0';
    });
}

/* Initialise the table with the required column ordering data types */
$(document).ready(function() {
    $('#tab_logic').DataTable({
        "columns": [
            { "orderDataType": "dom-text-numeric" },
            { "orderDataType": "dom-text" },
            { "orderDataType": "dom-select" },
            { "orderDataType": "dom-select" },
            { "orderDataType": "dom-checkbox" }
        ]
    });




Multiple pipeline extensions

Do I need to specify whole pipeline or can I only "youngest" one? Examples:

file.html.erb vs file.erb

file.html.haml vs file.haml

file.css.scss vs file.scss

file.text.erb vs file.erb




PayPal not working after clicking Buy Now

I have create PayPal buy now on PayPal but when I get the HTML code that provide by PayPal and try it, it's not working. Here is the code that provide by PayPal :

 <form action="http://ift.tt/rDmnwQ" method="post" target="_top">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="A86U9CK5PE8N8">
    <table>
        <tr>
            <td>
                <input type="hidden" name="on0" value="Annual Subscription">Annual Subscription</td>
        </tr>
        <tr>
            <td>
                <select name="os0">
                    <option value="1 Year">1 Year RM57.00 MYR</option>
                </select> 
            </td>
        </tr>
    </table>
    <input type="hidden" name="currency_code" value="MYR">
    <input type="image" src="http://ift.tt/121CPXj" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
    <img alt="" border="0" src="http://ift.tt/rpOo6s" width="1" height="1">
</form>

This is the result after I click Buy Now : enter image description here

I experience this problem after PayPal change their method on 29 March this year, before this I have no problem with creating PayPal button. Could anyone tell me what causes of this error?




how to call or read jar file on the web server for my computer..?

The jar file that I have is supposed to be working with web UI properly with the port number :8080 (which I manually set for local host) when I have it in my computer. However, once it is on the server, it is not working or I don't know how to. Can anyone advise me to have it work properly? html codes for make it work or any kind of codes would be very appreciated.