get head content of page with jquery
by Unknown in javascript , jquery 0
You can use this code:
With Jquery
$("head")
//for example:
alert($("head").html());
With JS:
var headContent = document.getElementsByTagName("head")[0].innerHTML;
by Unknown in javascript , jquery 0
You can use this code:
With Jquery
$("head")
//for example:
alert($("head").html());
var headContent = document.getElementsByTagName("head")[0].innerHTML;
iconv("UTF-8", "UTF-16", $text)
- In other way, mbstring supports UTF-16, so you can use mb_convert_encoding.
<div id="content"> <h1>Headline</h1> <p>First paragraph that needs to be yellow.</p> <p>Second paragraph that need not change. :) </p> <p>Third paragraph that need not change. :) </p> </div>
SHOW TABLES;
Tables_in_databasename
SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_TYPE='BASE TABLE' AND TABLE_SCHEMA='yourdatabasename';
My script work good on shared hosting until hosting disable mbstring
Now my script can't run.
Many functions MB_ mb_strrpos mb_get_info .... get undefined errors.
Download pdf from Scribd without paying : Are you searching for pdf or ebook??? Scribd.com is
world largest digital library and has very large collection of
documents which can you download either in PDFs format or doc.
As a
student, I know the value of eBooks and no one wants to pay for the
eBook. A few weeks ago I was searching for ebook and surprisingly
I found that solely on Scribd so eagerly click on the download button,
but after registering on this site it offers membership which requires a
few dollars. But like me you can download any free document from Scribd
by following simple steps.
RewriteEngine On
RewriteCond %{REQUEST_URI} \.(jpg|jpeg|gif|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .*$ /no_picture.png [L]
Let's break it down as to what each line means.RewriteCond %{REQUEST_URI} \.(jpg|jpeg|gif|png)$ [NC]
Check to see if the requested file is of a file extension in the parentheses ()
. In this case, we're testing to see if the file name ends in either .jpg
, .jpeg
, .gif
or .png
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
Check that the file is not there and it's also not a directory.RewriteRule .*$ /no_picture.png [L]
If a requested resource/file passes all those tests, then it's an image that does not exist. So serve back the image of no_picture.png
to the browser. This will keep the filename. If you want to redirect to the no_picture.png
filename, change [L]
to [R]
by Unknown in javascript 0
We can do this function with just html or just javascript
<meta http-equiv="refresh" content="300">
Or using Java Script: setInterval(function() {
window.location.reload();
}, 300000);
by Unknown in javascript , jquery , Tutorial 0
var str = document.getElementById('mydiv').innerHTML; document.getElementById('mytextarea').innerHTML = str.replace(/<br\s*[\/]?>/gi, "\n");
var str = $("#mydiv").html(); var regex = /<br\s*[\/]?>/gi; $("#mydiv").html(str.replace(regex, "\n"));
by Unknown in javascript , jquery 0
$("#theSelect").change(function(){ var value = $(this).val(); if (value === '') return; var theDiv = $(".is" + value); var option = $("option[value='" + value + "']", this); option.attr("disabled","disabled"); theDiv.slideDown().removeClass("hidden"); theDiv.find('a').data("option",option); }); $("div a.remove").click(function () { $(this).parent().slideUp(function() { $(this).addClass("hidden"); }); $(this).data("option").removeAttr('disabled'); });
by Unknown in html5 , javascript 0