Eg Net Solution: Java Script

Here in this sites web and software developer can get some essential information.

MY Favorite .Net Question For Interview

This are not tidy. Just for rough. In Sha Allah will make it tiddy soon. 1.  DateTime2 Date range 0001-01-01 through 9999-12-31  vs Date...

Users Countries


Showing posts with label Java Script. Show all posts
Showing posts with label Java Script. Show all posts

Saturday, June 28, 2014

How to load a css file with Java Script

June 28, 2014 0
How to load a css file with Java Script
I search this here and there in net. Also found many. But most of them were not working.Soo for making this thing easy now I am here.I made it by getting help from many sites. The code for how to load a css file by java script is given below.Just add the code in your header tag.And also make a style.css file in the same directory of the html file.

<script type="text/javascript">
var callbackFunc = function(){
//alert("Yes It worked");
};

Friday, June 27, 2014

HOW TO MAKE CROSS BROWSER COMPATIBLE WEBSITES

June 27, 2014 0
HOW TO MAKE CROSS BROWSER COMPATIBLE WEBSITES

Make your sites cross browser compatible adding  the following java-script code  in your pages head tag :

Make 4 style sheet. for google chrome,1 for fire fox,1 for Internet explorer.
style_google_chrome.css , style_firefox.css , style_IE.css , style.css ,1 for default1 .
<script type="text/javascript">
var browser=navigator.userAgent;
if (browser.lastIndexOf("Chrome")>=5)
{
var callbackFunc = function(){
//alert("WELCOME to Chrome");
};

Friday, June 20, 2014

Loading PHP file in any html or PHP file with Json

June 20, 2014 0
Loading PHP file in any html or PHP file with Json
<html lang="en">
<head>
<meta charset="utf-8">
<title>load demo</title>
<style>
body{ font-size: 12px; font-family: Arial; }
</style>
<script src="jquery.js"></script>
</head>
<body>
<b>Successful Response (should be blank):</b>
<div id="success"></div>
<b>Error Response:</b>
<div id="error"></div>
<script>
var browser=navigator.userAgent;
//if (browser.lastIndexOf("Chrome")>=5)
  {
 alert("ASHIk");
$("#success").load("index.php", function(response, status, xhr) {
if (status == "error") {
var msg = "Sorry but there was an error: ";
$("#error").html(msg + xhr.status + " " + xhr.statusText);
}
});
}
</script>
</body>
</html>

Thursday, June 19, 2014

Change the color of the active anchor (parent tag element) /current URL menu tab text in spry menu bar with JavaScript

June 19, 2014 0
Change the color of the active anchor (parent tag element) /current URL menu tab  text in spry menu bar  with JavaScript

I had tried in many way like active tag, JavaScript etc for changing the color of the active tab menu in spry menu bar or any type of menu bar. At last I had made this code. Also you can find details in my stackoverflow ID  Muhammad Ashikuzzaman by clicking here . Here is a link for prove http://bpmpakhulna.com/index.php or http://www.limt.co.uk/englishexam/math.php

 <ul id="MenuBar1" class="MenuBarHorizontal">
   <li><a href="index.php" class="MenuBarItemSubmenu">Home</a>    </li>
   <li><a class="MenuBarItemSubmenu" href="#">Exam</a>
    <ul>
      <li><a href="english.php">English</a></li>
      <li><a href="math.php">Math</a></li>
      <li><a href="details.php">Details</a></li>
    </ul>
   </li>
   <li><a href="uklife.php" class="MenuBarItemSubmenu">Uk Life</a>
</ul>

Add Choice