Welcome to Php Script Windows Answers
Open Question: how can i click content inside infowindow so it can open in my div sidebar(slider)?
<html> <head> <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=true"></script> <script type="text/javascript" language="javascript"> //<![CDATA[ window.onload=function() { document.getElementById("d2").onclick = slideIt; document.getElementById("d3").onclick = slideIn; }; function slideIt() { var slidingDiv = document.getElementById("side_content"); var stopPosition = 0; if (parseInt(slidingDiv.style.left) < stopPosition ) { slidingDiv.style.left = parseInt(slidingDiv.style.left) + 15 + "px"; setTimeout(slideIt, 1); } } function slideIn() { var slidingDiv = document.getElementById("side_content"); var stopPosition = -400; if (parseInt(slidingDiv.style.left) > stopPosition ) { slidingDiv.style.left = parseInt(slidingDiv.style.left) - 15 + "px"; setTimeout(slideIn, 5); } } //]]> </script> <script> // Set the Map variable function initialize() { var map; var styles = [ { featureType: "landscape", stylers: [ { color: '#f4f3ef' } ] },{ featureType: "natural", stylers: [ { hue: '#a3deda' } ] },{ featureType: "road", stylers: [ { hue: '#5500aa' }, { saturation: -70 }, { visibility: "off" } ] },{ featureType: "building", elementType: "labels", stylers: [ { hue: '#c9dfae' } ] },{ featureType: "poi", //points of interest stylers: [ { hue: '#c9dfae' } ] } ]; var mapOptions = { zoom: 2, center: new google.maps.LatLng(0, 0), mapTypeId: google.maps.MapTypeId.ROADMAP, styles: styles }; var map = new google.maps.Map(document.getElementById('map_canvas'), mapOptions); var image = 'fashionmarker.png'; var myLatLng = new google.maps.LatLng(0, 0); var fashionmarker = new google.maps.Marker({ position: myLatLng, map: map, icon: image }); var marker = new google.maps.Marker({ position: map.getCenter(), map: map, icon:image, title: 'Click to view details' }); google.maps.event.addListener(marker, 'click', function() { slideIt(); // This line calls the next function map.setCenter(marker.getPosition()); }); // Creating an InfowWindow var infowindow = new google.maps.InfoWindow({ content: 'Hello world </br> Hi again </br> <a href="#"><img src="viewdetails.png"></a>' }); // Adding a click event to the marker google.maps.event.addListener(marker, 'click', function() { // Opening the InfoWindow infowindow.open(map, marker); }); for (i = 0; i < locations.length; i++) { marker = new google.maps.Marker({ position: new google.maps.LatLng(locations[i][1], locations[i][2]), map: map }); google.maps.event.addListener(marker, 'click', (function(marker, i) { return function() { infowindow.setContent(locations[i][0]); infowindow.open(map, marker); } })(marker, i)); } } google.maps.event.addDomListener(window, 'load', initialize); </script> </head> <body> <section id="wrapper"> <?php include('model/nav.php'); if(isset($_GET['pid2'])){ $page_id = $_GET['pid2']; } ?> <section class="body"> <div id="side_content" style="width: 450px; height: 505; position: absolute; background: white; z-index:100; opacity:0.958522; left:0px"> <div class="top_header"> <span style="color: blue; float:left;">Visual Arts</span> <span style="color: black; float:center; margin-left:65px;">Share</span> <span style="color: black; float:right; margin-right:45px;">Show On Map</span> </div> <div style="margin-left:10px;"> <div class="text" style="color: black; text-align:left; margin:60px 20px 0 0;"> <h1> New York Region </h1></div> </br>Phone: 2012212212 </br>Fax: 2012212212 </br>Email: 123@abc.com <div id="d2" style="float:right; margin-right:5px;" ><b>Show</b></div> <div id="d3"><b>hide</b></div> </div> <div id="map_canvas" style="width:1180px; height:505px;"></div> </section> </section> </body> </html> moreOpen Question: How to encrypt base64 spoiler? I have passed error counter head 10 seconds?
l have problems passing hello good 10 seconds without clicking the popup menu popup. This is the one I use: ---Original Code--- <script> function ventanaSecundaria(){ t=11;timer=window.setInterval("contador()",1000); hija=window.open("http://www.tupagina.com/popup.php" ,"ventana1","width=640,height=425,scrollbars=0") } function contador(){ if(hija!=null){ if(hija.closed){ alert ("Clicke un anuncio y espere con la pagina abierta"); clearInterval(timer); t=10; document.getElementById("contador") .value="Mostrar Enlaces De Descarga"; return } if(hija.frames.length!=3){ t=t-1; if(t<=0){ clearInterval(timer); document.getElementById("hide").style.display=""; t="spoiler"}document.getElementById("contador").value=t; return false } } } </script> <div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px"><b></b></i> <p class="Boton BtnGreen"><input type="button" id="contador" value="Show download links" style="width:300px;height=35px;font-weight:bold;font- size:16px;margin:0px;padding:0px;" onClick="ventanaSecundaria()"> </div> <div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;"> <div id="hide" style="display: none;">and mega download mediafire</p> but I want to work in Wordpress with base 64. concerned want an example of how to encrypt base 64. Edit I want to hide the download links with base 64 to make not look at the source code of the page and work with 3 php files. example: 1 .Here we see how it looks on the post in wordpress http://i.stack.imgur.com/MoPm9.jpg 2.note that the source code does not show links. http://i.stack.imgur.com/q3Ix4.jpg 3.And when you press the button in the popup and advertising links displayed there. source: http://stackoverflow.com/questions/15995051/how-to-encrypt-base64-spoiler-i-have-passed-error-counter-head-10-seconds Thanks and regards moreResolved Question: How can I learn php quick?
I am a 13 year old web developer and I'm currently trying to make a peer-2-peer website but I need to learn PHP really quick for database's, user, PMs, forums, and chatrooms but I need to find a really quick tutor on learning server side scripting and input verifing, I allready tried W3 schools and codecademy.com but I need something thatle teach me what I need in a more direct epproach, I allready know javascript so I don't need php to verify password and email forms, I may also need an extra helper on the site that knows these technoligies and can be a moderator on it... moreResolved Question: What is a user friendly OS that uses extremely little RAM? Something newer then windows 2000.?
Got a cheap laptop from a friend and I need to use-able RAM since the OS on it takes up half.I have 1 gigabit of ram btw. I'm currently using windows 7 starter, so its really hogging up the RAM. moreResolved Question: Advertising script? 10 seconds with spoiler? [closed]?
Advertising script? 10 seconds with spoiler? [closed] Leave a reply hello well I have problems spend 10 seconds without clicking the popup publcidad as encrypted hidden content base 64 want me to stay well. Demo http://foro-vip.com/1.php This is the one I use but I want to work on Wordpress with base 64. in question want an example of how I can encrypt base 64. because it recognizes the click the popup and spend 10 seconds defrente not understand that part. <script>function ventanaSecundaria(){t=11;timer=window.setInterval("contador()",1000);hija=window.open("http://www.tupagina.com/popup.php","ventana1","width=640,height=425,scrollbars=0")}function contador(){if(hija!=null){if(hija.closed){alert("Clicke un anuncio y espere con la pagina abierta");clearInterval(timer);t=10;document.getElementById("contador").value="Mostrar Enlaces De Descarga";return}if(hija.frames.length!=3){t=t-1;if(t<=0){clearInterval(timer);document.getElementById("hide").style.display="";t="spoiler"}document.getElementById("contador").value=t;return false}}}</script><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><b></b></i> <p class="Boton BtnGreen"><input type="button" id="contador" value="Mostrar Enlaces De Descarga" style="width:300px;height=35px;font-weight:bold;font-size:16px;margin:0px;padding:0px;" onClick=ventanaSecundaria()><div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;"> <div id="hide" style="display: none;"> Contenido Oculto</p> Thanks. moreResolved Question: Errors in HTML code..?
Everything is working fine on their own but when i combined everything something is wrong. The only thing that is working is the first temperature converter and its not even doing the right conversions. Its working fine in my other file though. <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Memory Bank</title> <link rel="stylesheet" type="text/css" href="lab4c.css"> <script src="../lab4a/lab4a.js"></script> <script src="../lab4b/lab4b.js"></script> <script src="../lab4c/lab4c.js"></script> <script src="../lab4d/lab4d.js"></script> <script src="../lab4g/lab4g.js"></script> </head> <body> <h1>Memory Bank</h1> <hr> <script type= 'text/javascript'>document.write('<p>' + (Date().toString()) + '</p>');</script> <form action=""> <center> <tr> <td>Enter a Celsius Temperature <input type="text" name="tempIn" size="4" onChange="convertC2F(document.forms[0].tempIn.value)"/>° C </td> <td><input type="text" name="tempOut" size="4"/>° F</td> </tr> </center> </form> <form action=""> <center> <tr> <td>Enter a Fahrenheit Temperature <input type="text" name="tempIn" size="4" onChange="convertF2C(document.forms[0].tempIn.value)"/>° F </td> <td><input type="text" name="tempOut" size="4"/>° C</td> </tr> </center> </form> <form action=""> <tr> <td>Heads or Tails? <input type="button" value="Flip" onClick="document.forms[1].ans.value=flipText()"/></td> <td><input type="text" name="ans" size="5"/></td> </tr> </form> <form action=""> <tr> <td>Body Mass Index: <input type="radio" name="unit" onclick='scale="E"' checked="checked"/>English <input type="radio" name="unit" onclick='scale="M"'/>Metric </td> <td>Weight: <input type="text" name="wgt" size="4"/> Height: <input type="text" name="hgt" size="4" onChange="document.forms[2].ans.value=BMI(scale,document.forms[2].wgt.value,document.forms[2].hgt.value)"/> BMI: <input type="text" name="ans" size="4"/> </td> </tr> </form> <form action=""> <tr> <td> Count and Score</td> <td><input type="button" Value="count" onClick="window.open('../lab4d/lab4d.html','window','resizable=yes')"/> </td> </tr> </form> </table> <h2>Important links:</h2> <a href="file:///S:/windows/Lab2/lab2.html">Homepage</a> <a href="file:///S:\windows\Lab 3\lab3.html">Calculator</a> </center> </body> </html> moreVoting Question: Text does not show up in my php "include"?
Below is the php code from an email file I'm working with. When I go to my website, the file that is supposed to be in "include" (rather text) does not display: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <head> <head> <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> <title>Southern Heritage 411</title> <link rel="stylesheet" href="StyleSheet1.css"> </head> <body bgcolor="#006400"> <script language="javascript"> <!-- function DisplayMenu (stobj,stbullet) { var obj = document.getElementByID(stobj); var bullet = document.getElementByID(stbullet); if(obj.ClassName == "submenu_hide") { obj.className = "submenu_show"; bullet.src = "images/menubullet_up.gif"; } else { obj.className = "submenu_hide"; bullet.src = "images/menubullet_down.gif"; } } function testit () { } //--> </script> <center> <table class="maintable" id="Table1" cellspacing="0" cellpadding="0" border="0" width="752"> <tr> <td colspan="2"> <div class="pageheader"> <table width="752" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="right"> <img src="titlebar2.jpg"> </td> <td align="right" valign="middle"> <img src="confederate_flags3.jpg"> </td> </tr> </table> </div> </td> </tr> <tr> <? include "virtual_menu.shtml"; ?> <td bgcolor="#ffffff" valign="top" align="left" width="80%"> <!-- Information Section --> <!-- *** Interesting E-Mail Begins Here *** --> <br> <a href="emails.shtml">Back to the main e-mails page.</a> <br><br> <? $mlno = "emails/$ml.php"; include "$mlno"; ?> <!-- *** End *** --> <!-- Information Section Ends --> </td> </body> </html> I have recently switched operating systems from Windows 7 to 8. I had used Dreamweaver for html editing, but had downloaded Microsoft Sharepoint to use when I got Windows 8. I managed to get Dreamweaver loaded and am using that. When I click on any of my .php files, only a link to return to my .shtml page appears, and not the text that is supposed to. Any help appreciated. This is baffling!SmallBizWebsites: Tried your suggestion, but I get the same results. When I click on the link of what is supposed to be a resulting php file, all that shows up is the statement at the top, "Back to the main emails page." ml.php represents a numbered file in a php directory (i.e., 1706.php). It's like including a small text file of information.<?php$mlno = "emails/$ml.php";include "$mlno";?>$mlno is a defined variable. "ml" represents a number of a php file in the "emails" directory. Include refers to the numbered php file (individual files representing individual articles). Hope this helps. I'm having a time with this.TK-421: I added var_dump. When I click on my file, I get this:NULLstring(11) "emails/.php" moreResolved Question: What is the best way to learn computer programming from scratch?
I want to learn computer science and programming, I don't know anything yet, I'm pretty sure that I know enough math for this moreResolved Question: Java - Question about getting contents from a website. Possibly AJAX?
I had asked this question before, but I don't think it was clear exactly what I was doing. I'm trying to get information from a website. Doing it using a URL is quite simple, however the URL of the website I'm accessing does not change even when it redirects to another part of the site. I think the website may be using AJAX or iFrame, but I'm not entirely sure. I know there is 3rd party API's that can help with this, but I'm trying to do this without them. I'm currently using HttpURLConnection to access the contents, but since the URL doesn't change, the contents that I pull don't change even when the window does. Example: If you're google searching something, and you search 'Cheeseburger', the URL would change to reflect that you're redirecting to another part of the site. However the site I'm on would just keep the URL as http://www.google.com/ and not reflect the fact that I'm going to a new part of the site. Does anyone know a way in Java (preferred) or JavaScript or anything to be able to get the contents from a site when the URL does not change? Any help would be greatly appreciated moreResolved Question: How do you do key bindings in LMDE?
Such as if I want a function key to run a bash script, regardless of what window is in focus when I hit that function key. I know some programs have their own keybindings, which will override it. But for those programs that don't override it, I want it to work the same regardless of program. moreResolved Question: Which is better for hosting a website Windows or Linux?
I am deciding what to put on my cloud server. I know both have their ups and downs but I would like to know what is best. moreVoting Question: It wont let me update dayz?
i tried to update it from http://dayzmod.com/forum/index.php?/topic/121605-dayz-mod-1751-update/ but a little window pooped up and said windows needs to know which file created it or something like that and i accidently clicked on wordpad and now every time i try and download it a wordpad page with thousands of weird charecters pop up, i guess like a script. what should i do moreVoting Question: It wont let me update dayz?
i tried to update it from http://dayzmod.com/forum/index.php?/topic/121605-dayz-mod-1751-update/ but a little window pooped up and said windows needs to know which file created it or something like that and i accidently clicked on wordpad and now every time i try and download it a wordpad page with thousands of weird charecters pop up, i guess like a script. what should i do moreResolved Question: How to incorporate python onto a website I want to make from Dreamweaver?
Would it be through Applets? Or will I have to rewrite the HTML5 code into Python -scripting language? moreResolved Question: Can I connect to a n wireless network with a b/g adapter?
Can I connect to a N wireless network with a B/G usb wireless adapter (for example with a Alpha AWUS036H or any other b/g adapter from it's family)? If yes, what are the downfalls excluding the limited speed (from N to G maximum speed)? moreResolved Question: Web Based File Sharing for My Website?
I am looking for a way for my website to share files with people who I've set up a username and password for. I want people to be able to go to my website, which is 'Yannotti.com', go to 'Yannotti.com/login.html', enter their login + password, then be able to share files without having to download software or a FTP client like Filezilla or zFTP. Yes, we could use DropBox or something like that but I want all the files (from others) on my domain (Yannotti.com) Looking for open source code written in simple HTML and Javascript. We tried using Windows Explorer but it is somewhat awkward (compared to a simple login on browser) and doesn't work very well.okay, thanksNot too sure what you are suggesting...sounds pretty technical.I was hoping to find most of the code already written and waiting for me to tweek. I'm not too good at html, perl, or javascript except I can sometimes tell whats going on enough to re-write a little bit of it.Just in case you are wondering why...I am receiving field notes (saved as PDF's) and photographs (mostly as jpeg's) with measurements of residential units.We were using email but even compressed was tough (had to send many emails so small enough).DropBox was okay but the number of files was more than we could manage.My domain has has up to 100Gb...plenty of room, so would like to park files there.If my hosting service (GoDaddy) used cPanel then great...but they use something that is not too goodJust in case you are wondering why...I am receiving field notes (saved as PDF's) and photographs (mostly as jpeg's) with measurements of residential units.We were using email but even compressed was tough (had to send many emails so small enough).DropBox was okay but the number of files was more than we could manage.My domain has has up to 100Gb...plenty of room, so would like to park files there.If my hosting service (GoDaddy) used cPanel then great...but they use something that is not too good moreResolved Question: how do you put the tumblr free hosted scripts as a link on tumblr?
i know you can put it in the description but ive seen a trend of putting it as a link and it looks much cleaner (for example http://orgasm.tumblr.com/) and i was jsut wondering how you do this because when i put it in the links bar it wont show up and i dont know what to write as the title because if i even write a number it shows up as the code? please if anyone has a tutorial or some way of helping me thatd be great! moreResolved Question: Problems with san andreas?
I cant play samp on my computer on the server I trie connecting to my friends cmputer but it doesn't conect. when I use one server the other computer doesn't connect, when I use 2 servers every computer hosts its own game. B.T.W I use wndows vista and my friend uses windows 7 And the comuters are about 4 inches away from each other. We don't have internet access were we live Please don't be rude I am just 11 moreResolved Question: Can someone explain this to me?
The password is J_o_i_n_s_I_t. How do you get that from this: <script language=JavaScript> var base= new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z","a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"); var data=new Array(3); base.reverse(); data[0]=base[42]; data[1]=base[11]; data[2]=base[17]; data[3]=base[12]; data[4]=base[7]; data[5]=base[43]; data[6]=base[6]; password=prompt("Please enter the Password!",""); if (password==data.join("_")){ window.location.href=""+password+".php"; } </script> moreResolved Question: What would the password be?
Give the information I will provide, what would the password be? I am not hacking anything, I am just on a site that has puzzles that you can do and this is one of them under java script. <script language=JavaScript> var base= new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z","a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"); var data=new Array(3); base.reverse(); data[0]=base[42]; data[1]=base[11]; data[2]=base[17]; data[3]=base[12]; data[4]=base[7]; data[5]=base[43]; data[6]=base[6]; password=prompt("Please enter the Password!",""); if (password==data.join("_")){ window.location.href=""+password+".php"; } </script>I thought it could be fAGB7g6, but it isn't. Not sure how to do this one.Thank you Steve M. Can you explain how that would be? moreResolved Question: Help with linux to windows server problem?
I'm having line break issues with php and javascript code. I have moved my web server from a Linux apache system running MySQL to a WAMP server on windows. The problem is I have millions of lines of code that got broken because Linux and windows handle line breaks and carriage returns differently. is there a way to make wamp work the same as Linux apache globally?Ok I realize that some people don't think Windows is worth working with but lets say I just have to right now. And yes the problem is the way windows handles line breaks, carriage returns and end of file. I have millions of lines of php and javascript script code separated on different websites hosted on the server. My software is affected by this. If there is a global change perhaps done through the apache conf file or the rewrite mod this would help me out greaty. Otherwise I will have to get back to the drawing board and try to learn how to create a debian Linux server on a raid 5 system. I don't know much about this kind of stuff.Ok I realize that some people don't think Windows is worth working with but lets say I just have to right now. And yes the problem is the way windows handles line breaks, carriage returns and end of file. I have millions of lines of php and javascript script code separated on different websites hosted on the server. My software is affected by this. If there is a global change perhaps done through the apache conf file or the rewrite mod this would help me out greaty. Otherwise I will have to get back to the drawing board and try to learn how to create a debian Linux server on a raid 5 system. I don't know much about this kind of stuff.Ok I realize that some people don't think Windows is worth working with but lets say I just have to right now. And yes the problem is the way windows handles line breaks, carriage returns and end of file. I have millions of lines of php and javascript script code separated on different websites hosted on the server. My software is affected by this. If there is a global change perhaps done through the apache conf file or the rewrite mod this would help me out greaty. Otherwise I will have to get back to the drawing board and try to learn how to create a debian Linux server on a raid 5 system. I don't know much about this kind of stuff.Ok I realize that some people don't think Windows is worth working with but lets say I just have to right now. And yes the problem is the way windows handles line breaks, carriage returns and end of file. I have millions of lines of php and javascript script code separated on different websites hosted on the server. My software is affected by this. If there is a global change perhaps done through the apache conf file or the rewrite mod this would help me out greaty. Otherwise I will have to get back to the drawing board and try to learn how to create a debian Linux server on a raid 5 system. I don't know much about this kind of stuff. moreResolved Question: how to clone a website?
Ok so people im asking on here because i need to copy everything this cant go wrong i am changing a load of stuff on a wordpress website but i dont want it to go wrong is there a easy way for me to copy the entire code of the website into a notepad file or multiple like with notepad++ make each page in that make the changes i need in a isolated file on my computer not the website server and then once i am happy and my mate who im doing it for is happy i can upload the new code/website directly from my windows based machine? thanks for any help you can give please try to be as informative as possible i know this is probably really easy but i dont want anything to go wrong i do not want to use most ways on the internet because i wont beable to get most of the php data off the website if it helps the website is running a outdate version of wordpress i think it is :3.3.1 or asleast that is what it says on the wordpress dashboard moreResolved Question: Programming Languages?
Can somebody tell me at least 5 programming languages and answer these questions (if you know) oWho created them? oWhy they were developed? oHow did they change over time (Versions)? oWhen did they stop being used? oDid they become something else? Thanks. moreResolved Question: Difference between javascript and php?
moreResolved Question: how do i change value of textfield by using javascript inside php?
in the html section of the page i have a form which is:- <form name="f1" action="t.php" method='get' onsubmit='return validate(this)'> please enter student number: <input type="text" name="sno" id="textfield" value=""/> <input type="submit" name="button" id="button" value="Search" /> </form> when submit is pressed a php code is executed which saves the value of the textbox in a session variable, sets session variable xx to be true then the page refreshes after 5 seconds. after the page refreshes i want the saved value for the textbox to appear again inside the textbox my code is:- <?php session_start(); if (!empty($_SESSION['xx'])) { //this will only work if xx has been given a value if ($_SESSION['xx']==='true') { //this will only work if xx is true echo("<script>"); //start script echo("var x=\"".$_SESSION['snum']."\";"); //save php var in javascript var echo("document. getElementById(\"textfield\"). value=x;"); //the buggy part. i put space after . for display purposes in yahoo echo("</script>"); //close script } } ?> when i run it nothing is happening. i was able to successfully store the session variable in a javascript variable and alert the javascript variable, but i can't give the textbox a new value. one solution is to build the form again instead of using javascript and give the textbox the new value but if i do that then the textbox will appear twice: once because of the php and one because of the original html form. i don't want that to happen which is why i want to change the value of the currently showing textbox but it's not working :-( moreResolved Question: Your fave scripting language: Perl, Python or PHP?
moreResolved Question: How to use ajax so that item name from database get displayed automatically for each item no..?
<script> function showUser(str){ if (str==""){ document.getElementById("txtHint").innerHTML=""; return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else{// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("txtHint").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","listajx.php?q="+str,true); xmlhttp.send(); } </script> <script> function add_col() { var num_box = document.getElementById("num_text").value; if(num_box) { for(var i=0;i < num_box; i++) { var tableName1 = document.getElementById("uTable"); var newTR1 = document.getElementById("td1"); var newName1 = document.createElement("TR"); newName1.innerHTML = " < input type='text' name='reqitem[]' id='item' onkeyup='showUser(this.value)' > "; var newTR2 = document.getElementById("td2"); var newquantity1 = document.createElement("TR"); newquantity1.innerHTML = " < input type='text' name='reqquantity[]' id='quantity' > "; var newTR3 = document.getElementById("td3"); var newmrp1 = document.createElement("TR"); newmrp1.innerHTML = " < input type='text' name='reqmrp[]' id='mrp' > "; var newTR4 = document.getElementById("td4"); var newname1 = document.createElement("TR"); newname1.innerHTML = " < div id='txtHint'>x</div > "; newTR1.appendChild(newName1); newTR2.appendChild(newquantity1); newTR3.appendChild(newmrp1); newTR4.appendChild(newname1) tableName1.appendChild(newTR1); tableName1.appendChild(newTR2); tableName1.appendChild(newTR3); tableName1.appendChild(newTR4); } } } here shocol will automatically display the input boxes in a row and no. of rows will be decided by the user. I want showuser function to display the item name in each row corresponding to the item no. in that row. moreResolved Question: Check Box AutoSum with Java & PHP?
Hi, I wanted to put a checkbox autosum on my website so that anyone who check a box and submit, the values (Points) of those check box are automatically added to my total sum (on home page actually) I have found this code so far for java script. ------------------------------------------------------------------------------------------------ <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td> <input name="sum_m_1" value="25" type="checkbox" id="sum_m_1" onclick="UpdateCost()"> </td> <td> ResponseOption_1 </td> </tr> <tr> <td> <input name="sum_m_2" value="15" type="checkbox" id="sum_m_2" onclick="UpdateCost()"> </td> <td> ResponseOption_2 </td> </tr> </table> <input type="text" id="totalcost" value=""> With JAVASCRIPT: <script type="text/javascript"> function UpdateCost() { var sum = 0; var gn, elem; for (i=1; i<3; i++) { gn = 'sum_m_'+i; elem = document.getElementById(gn); if (elem.checked == true) { sum += Number(elem.value); } } document.getElementById('totalcost' ).value = sum.toFixed(2); } window.onload=UpdateCost </script> ----------------------------------------------------------------------------------- This will add up the values but i wanted to add by checking check boxes --> Submit --> collect the data --> add to my main total. Any helps would be much appreciated. moreResolved Question: Is there a way to link to multiple random pages through one link in HTML 5?
Lets say I have a submit button at the end of a form that sends the user to a thank you page. If I have eight different versions of this thank you page with different text/thank you messages (as to make the experience more personal), is there a way to use the one button at the end of the form to send the user to a random one of the eight thank you pages? moreResolved Question: HTML/CSS: Positioning using position: relative, absolute, fixed, etc?
Could someone explain when each of these are used, I am quite unsure on what each one do but usualy use absolute/relative and use top: and left/right: to position boxes(divs). Could someone explain: Relative - Absolute - Fixed - I basically have html and styling with css hands down, I'm getting into css3 and learning more php/javascript but these positioning methods are the only thing I'm kinda foggy about. Thank you. Also, is ajax used to carry out functions like, "username exists" when entering a username in a box, or liking/tweeting pages, I'm wondering as the page does not refresh and from m current understanding I would have thought a server-side script would have to contact the server and refresh the page. Is ajax like some dynamic work around? Thank you for viewing my question.___________________________EDIT_______________Best answer going to amit, I seem to have misused positioning, even though my site looks wonderfull and works I am going to correct it according to parent and child positioning.Thank you all, i'm also sure that inherit will prove useful for multiple positioning. moreResolved Question: Linux and windows hosting difference?
I have made a site on ASP.NET and I want to know about linux and windows hosting , can I host my ASP.NET website on linux hosting server as it comes cheap to me or I have to host on windows hosting server as because I have made on ASP.NET. I don't know abot hosting servers so can any one tell me which host server I want to host my website windows hosting or Linux hosting. for review of website plz chech the url this is my ASP.NET website made by me www.programmingarena.somee.com moreResolved Question: Can someone help me get my website into dreamweaver (shared screen)?
I need help getting my site into dreamweaver I have sql files and instructions from a past web designer I know. I just can't get it open because I am a nub. I am offering a shared screen to my computer though join.me https://join.me/784-748-841. My phone number is 361-523-9919. First person to get it working gets best answer.The screen share shows my computer screen and mine only. I will share mouse control and show you the files and my problem. I will type to you through word and you can type back. moreResolved Question: How to solve login problem in PHP script?
I have wamp server installed in my computer.My os is windows xp.When I try to execute php login script in wamp,a message appears on screen.Message is: Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'localhost' (10061) in C:wampwwwdincludedatabase.php on line 23 Can't connect to MySQL server on 'localhost' (10061) And line 23 of database.php is: $this->connection = mysql_connect(DB_SERVER, DB_USER, DB_PASS) or die(mysql_error()); Please tell me,what is to be edited to execute the script properly in wamp and on real server also? moreResolved Question: how to make a php forgot password page?
how can i make a forgot password page in php and test it, and how can i make a shout box or a chat box that can be different for each user in php moreResolved Question: Is python is good to write software ?
Can i write a good windows software with python ? or i will need any other language to write ? And if i write software with python then is it's speed will be good as c/c++ ? and can python used to wrote web applications like online note taking and saving features,online calculator ....? or i need other language ? moreResolved Question: Good languages to branch off from Lua?
I'm looking for languages that are good to start if you have experience with Lua. I understand that Python is a good language to start off of, and I am currently learning it.Programming languages. Not bloody speaking languages. moreResolved Question: Why is my contact form on dreamweaver not working?
I have created a website on Dreamwever by using a template. This template has a contact.php attached and set up. My website is up and running and when you send an email through the contact form it sends and email to me saying: From: E-mail: Message: Even though I have filled those categories out on the contact form. Here's my coding from my 'contact us' page: <form action="contact.php" method="post" id="sendemail"> <ol><li> <label for="name">Name (required) <br /> </label> <input id="cf_name" name="name" class="text" /> </li> <li> <label for="email">Email Address (required)</label> <input id="cf_email" name="email" class="text" /> </li><li> <label for="message">Your Message</label> <textarea id="cf_message" name="message" rows="8" cols="50"></textarea> </li><li> <input type="image" name="imageField" id="imageField" src="images/submit.gif" class="send" /> <div class="clr"></div> </li></ol> </form> And here's the coding from my contact.php (note I've changed my email address for security reasons): <?php $field_name = $_POST['cf_name']; $field_email = $_POST['cf_email']; $field_message = $_POST['cf_message']; $mail_to = 'myemailaddress@hotmail.co.uk'; $subject = 'Message from a site visitor'.$field_name; $body_message = 'From: '.$field_name."\n"; $body_message .= 'E-mail: '.$field_email."\n"; $body_message .= 'Message: '.$field_message; $headers = 'From: '.$field_email."\r\n"; $headers .= 'Reply-To: '.$field_email."\r\n"; $mail_status = mail($mail_to, $subject, $body_message, $headers); if ($mail_status) { ?> <script language="javascript" type="text/javascript"> alert('Thank you for the message. We will contact you shortly.'); window.location = 'contactus.html'; </script> <?php } else { ?> <script language="javascript" type="text/javascript"> alert('Message failed. Please, send an email to gordon@template-help.com'); window.location = 'contactus.html'; </script> <?php } ?> Any ideas why it's not working?:( moreResolved Question: why the code cannot insert the databases?? can you explain. (it programming)?
<?php // Start session session_start(); // Include database connection details require_once ('config.php'); // Connect to mysql server $link = mysql_connect('localhost', 'root',''); if (!$link) { die('Failed to connect to server: ' . mysql_error()); } // Select database $db = mysql_select_db('daftar'); if (!$db) { die("Unable to select database"); } // Sanitize the POST values // mandatory $Nama=$_POST ['Nama']; $Alamat=$_POST['Alamat']; $ic=$_POST['ic']; $Keturunan=$_POST['Keturunan']; $Kerakyatan=$_POST['Kerakyatan']; $IbuBapa=$_POST['IbuBapa']; $Pekerjaan=$_POST['Pekerjaan']; $NamaMajikan=$_POST['NamaMajikan']; $TarikhLahir=$_POST['TarikhLahir']; $TempatLahir=$_POST['TempatLahir']; $Jantina=$_POST['Jantina']; $Email=$_POST['Email']; $NoTel=$_POST['NoTel']; $NoTel_r=$_POST['NoTel_r']; $Username=$_POST['Username']; $Password=$_POST['Password']; // Create INSERT query $qry = "INSERT INTO list(Nama,Alamat,ic,Keturunan,Kerakyatan, IbuBapa,Pekerjaan,NamaMajikan,TarikhLahir,TempatLahir,Jantina,Email,NoTel,NoTel_r,Username,Password) VALUES('$Nama','$Alamat','$ic','$Keturunan','$Kerakyatan','$IbuBapa','$Pekerjaan','$NamaMajikan','$TarikhLahir','$TempatLahir','$Jantina','$Email','$NoTel','$NoTel_r','$Username','$Password')"; mysql_query($qry) or die (mysql_error()); // Check whether the query was successful or not if($ic==$ic) {?> <script type="text/javascript"> window.location="daftarberjaya.php"; </script> <?php } else{ echo '<script type="text/javascript">alert("Password is wrong!");</script>'; } ?> moreResolved Question: Is there a free version or similar to Lucida Calligraphy or Apple Chancery Font?
I know these are protected but I have also heard there are corollary fonts which are not. Any help would be appreciated. Thanks moreResolved Question: how can i host my own website?
i got an old laptop, that i want to make an host out of. i have looked at some sites and they say it is possible, but i cant find a guide that is helping to do it. i wanna host my website and domain for free, but i need help. can someone help me ? if it is possible? moreResolved Question: Can anybody tell me a good online forum dealing with batch files only?
moreResolved Question: Coding help! (PHP/HTML)?
So I'm trying to make a website where you can login/register for the site. I have all the codes for the form for the registration and the login, but not sure how to get the website to re-direct you so that it shows you made an account/you're logged in. I honestly don't have the smallest idea of what to do here. Help please? Thanks!I know how to link the button to another page but how do I get the website to accept that someone just made an account or logged in? moreResolved Question: Can anyone with good computer skills understand these instructions?
Basically, I'm looking for a way to get the video IDs from my youtube videos. I know, you're first thought is "Just open the video and copy the link after v=". Easy enough, except I have over 3000 videos. Copying each link would take literally DAYS. SO, I found these instructions to get all my video IDs: http://stackoverflow.com/questions/13504899/how-do-i-get-a-list-of-uploaded-videos-for-a-certain-channel-with-the-new-youtub I tried following the instructions and I'm VERY confused. Is anyone able to help me out? moreResolved Question: What is this? Some kinda Script?
I opened Directory Listing by Mozilla www.dmoz.org/search?q="><script>window.location="http://www.vaibs.in";</script> moreResolved Question: What's the best way to install Linux Ubuntu alongside Windows 8?
I have a new laptop(Toshiba Satellite L500) that came with Windows 8. I installed Linux Ubuntu 12.10 64bit along with wubi for a dual boot. But Linux still won't run! I get the "Windows failed to start correctly" and the boot repair script won't execute since neither GitBash nor the command prompt recognizes the "sudo" command. Do I need to remove Windows 8, install Linux, and then reinstall Windows 8? Please help! moreResolved Question: Whats wrong with my auto search script?
practiclly its a basic bit of AJAX which i can' get to work and can't see why HTML PHP JS scripts below 1search.html <html> <head> <script type="text/javascript" src="search.js"></script> </head> <body onload="process()"> <h3>Do you mean :</h3> <input type="text" id="userInput"> <div id="underInput"> </body> </html> store,php <?php header('Content-Type: text/xml'); echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>'; echo '<response>'; $search = $_GET['search'] $searchArray = array('Physical','Conseptual','Symantical') echo $search ; elseif($search=='') echo 'Enter something'; else echo 'we dont have a page for $search'; echo '</response>'; ?> search.js var xmlHttp = createXmlHttpRequestObject(); function createXmlHttpRequestObject(){ var xmlHttp; if(window.ActiveXObject){ try{ xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){ xmlHttp = false; ] ]else{ try{ xmlHttp = new ActiveXRequest(); }catch(e){ xmlHttp = false; } } if(!xmlHttp) alert("can't creat that); else return xmlHttp; } function process()`{ if(xmlHttp.readyState==0 || xmlHttp.readyState==4){ food = encodeURIComponent(document.getElementById("userInput").value; xmlHttp.open("GET","store.php?search=" + search, true); xmlHttp.onreadystatechange = handleServerResponse; xmlHttp.send(null); }else{ setTimeout('process()',1000) } } function handleServerResponse(){ if(xmlHttp.readyState==4){ if(xmlHttp.status==200){ xmlResponse = xmlHttp.responseXML; xmlDocumentElement = xmlResponse.documentElement; messege = xmlDocumentElement.firstChild.data; document.getElementId("underInput").innerHTML = '<span style="color:blue">' + messege + '</span>'; setTimeout('process()',1000); }else{ alert('something went wrong') } } moreResolved Question: Question about Website?
My boss has created a site in adobe muse.. He only wants to allow registered users on the site.. and.. He has a windows hosted account. My Background: I am the IT guy (Pc repair, technical support) for the company. I graduated with an application programming degree 6-7 years ago and have lightly used it. I'd rather not use automated programs like wordpress, etc.. as he wants to use muse to modify his site and I want to make it as easy for him, and I as possible. --I did create a registration form in php that works.. the user fills it out.. it has error checking and e-mails my boss for account approval but I'm not sure how to lock down the site to where only registered users can use it. any suggetions? Any pointers on where I'd start with locking down the site? Is php a good choice for this? moreResolved Question: HTML help?! Dollmaker!?
I'm trying to make a doll maker. How do I add the props (images) and make them draggable? If I did something completely wrong, can you fix the HTML for me? <html> <head> <style type="text/css"> .drag{ position:relative; cursor:hand; z-index: 100; } </style> <script type="text/javascript"> /*********************************************** * Drag and Drop Script: © Dynamic Drive (http://www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit http://www.dynamicdrive.com/ for this script and 100s more. ***********************************************/ var dragobject={ z: 0, x: 0, y: 0, offsetx : null, offsety : null, targetobj : null, dragapproved : 0, initialize:function(){ document.onmousedown=this.drag document.onmouseup=function(){this.dragapproved=0} }, drag:function(e){ var evtobj=window.event? window.event : e this.targetobj=window.event? event.srcElement : e.target if (this.targetobj.className=="drag"){ this.dragapproved=1 if (isNaN(parseInt(this.targetobj.style.left))){this.targetobj.style.left=0} if (isNaN(parseInt(this.targetobj.style.top))){this.targetobj.style.top=0} this.offsetx=parseInt(this.targetobj.style.left) this.offsety=parseInt(this.targetobj.style.top) this.x=evtobj.clientX this.y=evtobj.clientY if (evtobj.preventDefault) evtobj.preventDefault() document.onmousemove=dragobject.moveit } }, moveit:function(e){ var evtobj=window.event? window.event : e if (this.dragapproved==1){ this.targetobj.style.left=this.offsetx+evtobj.clientX-this.x+"px" this.targetobj.style.top=this.offsety+evtobj.clientY-this.y+"px" return false } } } dragobject.initialize() <script type="text/javascript" src="http://www.dollmakerscript.com/drag-drop.js.php"></script> </script> </head> <body> <html> <head> <!--drag engine code installed here--> </head> <body> <img src="test.gif"/><br/> <img src="test2.gif"/><br/> <h1><b class="drag">Hi there</b></h1> </body> </html> </body></html> moreResolved Question: Is it safe to query mysql as root user?
I have recently finished setting up a ubuntu server on my network and have just got round to modifying my php code to run with the new mysql setup. On my previous windows setup I was running all mysql queries through the root user account, it just got me wondering.. How safe is this? (obviously it is a password protected root account) I have never set up accounts on phpmyadmin other than root so if this is unsafe practice, would anyone be able to share the best way to setup a safe user account? moreResolved Question: How to start programming?
I really like computer and I would like to start programming. How should I start? Where should I start? How should I start? With what language should I start? I have a Samsung computer with Windows 8 at the moment maybe that will help :) moreWelcome to Php Script Windows News
Windows Powershell Script to batch convert movie collection to m4v
I decided to convert my collection to m4v for native compatibility with XBox and ATV. For this I use Handbrake with a PowerShell script. The script was only written yesterday and still in it's early stages. The second post contains the script and the post ...
Read moreChange database charset and collation with PHP
Here is a useful PHP script for changing collation of your database ... Lab #3 – Assessment Worksheet Enable Windows Active Directory and User Access Controls Overview This lab provides students with the skills needed to create a new Active Directory ...
Read moreInternet Streaming website script
If you have ever wanted a website that can stream the freely available tv streams and video in the formats of Windows Media Video (wmv) and Flash streaming (swf and flv) then we have made available our internet tv script written in php with javascript/Ajax ...
Read moreAdd a server-side script as a data source
Important If your site resides on a server running Windows SharePoint Services ... can be written in a variety of languages, including Perl, PHP, and Microsoft ASP.NET. Unlike client-side scripts such as JavaScript, server-side scripts are run on the ...
Read moreEmbarcadero adds PHP to RAD Studio
But with the release of RAD Studio XE in early September, Embarcadero is adding PHP to that mixture ... "We made it simple to interact with Microsoft's Windows Azure platform, especially around tables, queues and blobs," he said. "All I have to do is ...
Read moreEditing The Scripts Database
The admin directory contains all the script to maintain the database. To load the menu goto the following: admin/admin.php this displays the following ... stream URL, player type (windows media player or flash player) and finally give a discription then ...
Read moreUsing PHP with FrontPage 2003
PHP scripts must reside in an executable directory ... ASP.NET is part of the Microsoft .NET Framework, which is a feature of Microsoft Windows®. Unlike PHP, ASP.NET is not a language or a parser but rather a set of technologies in the Microsoft .NET ...
Read moreSoftaculous Unveils 300 Script Milestone
said Punit Varia, Script packaging head at Softaculous. “We have many more apps to be added soon.” Recently the company also released AMPPS – A Windows stack of Apache, MySQL, PHP, PERL, Python and Softaculous. Users, especially developers ...
Read moreHow to Install Apache with MySQL 5 Support on Windows XP
Download the latest release of WAMP server at http://www.wampserver.com/en/download.php. This Windows installation script contains all you will need in a single installer. This can be done because Apache and MySQL are both freely available server packages.
Read moreRon Morales’ film ‘Graceland’ sreens in the US
However, (we had to) replace actors who cancelled in the last minute, find locations to film in, and find cars without tinted windows – which is very hard ... ‘Graceland’ just happens to be a script that was easy for me to write.
Read moreTop Php Script Windows Links