The absolute path for a file or directory is not the same as the URI. The absolute path on the web server is/home/DIR/Xs/something/mydir/. Here is how to find the absolute path on your web host for a given directory if you can’t find it, or it isn’t shown, in your web hosts control panel. Copy and paste the following code [...]
Close Event In Javascript Using OnUnload fuctions, its pretty simple.Check this out. <html> <body onunload=check()> <script type=”text/javascript”> function check() { a = “Mistonline.in” alert(a) } </script> </body> </html> Thanks
Hi guys here is the event that gets triggered when ever a browser [Internet Explorer, Firefox, Chrome] is closed. Its very simple just check out the script Hope you guys got it!!!!appreciate your comments.
This is a simple script to pass values from our server side language PHP to the client side script JAVASCRIPT. Its pretty simple we have two php files. CONTACT.php and SEND.php in that you can see like values which we enter in contact.php will be send to the text fields of send.php Now to get these values from the send.php [...]
Here is a simple code that explains how a cookie is set and retrieved using php. A cookie is set with the following code: setcookie(name, value, expiration) $Month = 2592000 + time(); //this adds 30 days to the current time setcookie(MyVisit, date(“F jS – g:i a”), $Month); ?> The above code sets a cookie named “MyVisit” in the visitors browser. [...]
This is a very simple script that will dynamically change the background color of a webpage using simple php script.Just copy an paste the script below. <html> <head> <title>Background Colors change based on the day of the week</title> </head> <? //mistonline.in $today = date("l"); print("$today"); if($today == "Sunday") { $bgcolor = "#FEF0C5"; } elseif($today == "Monday") { $bgcolor = "#FFFFFF"; [...]
Sample XML File Used The following XML data will be contained in the referenced “test_file.xml”: XML Mustang Accord XML <?xml version=“1.0″ encoding=“ISO-8859-1″?> <cars> <make name=“Ford”> <model>Mustang</model> </make> <make name=“Honda”> <model>Accord</model> </make> </cars> Loading XML Data Using simplexml_load_file This function is typically used for loading XML data either from a file, or a remote call. In this example, we will load [...]
Here i will explain how to close a child window from a parent window using simple javascript. Simple correct.Please give some feedback. DEMO
Here i will explain how to add and remove child nodes in a webpage using simple javascript and DOM [Document Object Model] elements. Here function2() clearly says that i am adding an HTML element <li>, then creaating a text named “New Child” And function1() shows how to remove the childs created inside addelement id. Hope you guys got some idea
Hi guys, here is a simple script which shows how to add a webpage to the favorites or bookmarking option of your browser both IE [Internet Explorer] and Firefox [FF].Very easy to install, just copy and paste on the page you want this option to be added.Enjoy!!!