Javascript,HTMLRelated issues-Collection of common programming errors


  • Member 10359492
    Javascript XML WCF JSON
    Hello my wcf code is below:   Interface: [OperationContract][WebInvoke(Method = “POST”, BodyStyle = WebMessageBodyStyle.Wrapped,UriTemplate = “/SaveURLTable”)]Int64 SaveURLTable(string URL, string UniqueID);   Method: public Int64 SaveURLTable(String URL, String UniqueID) {// my code here with return value }   now i m able to call this by making httprequest call from IE10, FF, Chrome like modern web browser but when i call this from IE8 then its giving me following error:   &

  • Raidzen10
    Javascript jQuery
    Ive got a javascript function that gives me the error in the title of the question.   Below is my code:   function ToggleVProcure(chkValidProc) {$.ajax({ type: “POST”, url: “DocumentManager.aspx”, data: { Action: “ValidateProcure”, Id: chkValidProc.attributes[“DId”].value }, dataType: “json”,success: function (data, textStatus) {if (textStatus == “success”) {  var chkProc = $(‘[did=”‘ + chkValidProc.attributes[“Did”].value + ‘”]’);var checkCPD = $(‘[docid=”‘ + chkValidProc.attrib

  • Taftazani
    Javascript HTML PHP
    Hello everyone..I tried to parsing drop down list value to another php page with javascript but can’t get it right…here is my code   dropdown.html:<p>Select your number :</p> <select name=”formNumber”><option value=”0″ id=”getNumber”>Select…</option><option value=”1″ id=”getNumber”>1</option><option value=”2″ id=”getNumber”>2</option> </select>  and i tried to get this page value with getValue.js like this:var get1 = docum

  • Chiranthaka Sampath
    Javascript PHP Web-Development
    I have created the following php script with javascript using a text editor and to run the php file I used XAMPP. But when I run the file I got an error. I saved the PHP file with the .php extension. At the below I am inserting the source code and the error message please try to solve my problem!    <?xml version=”1.0″ encoding=”UTF-8″?>

  • abhishekagrwl25
    SQL2005 C# ASP.NET Javascript
    hello all !!  i have retreived images from database using c# but how can i show them in a javascript slideshow in my .aspx page?

  • Jaydman2102
    Javascript HTML PHP
    I have a php file. I get this error:   Parse error: syntax error, unexpected ” (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in C:\wamp\www\spost.php on line 10   This is what on line 10 and before and after: line 7: $myFile = “servers.txt”; line 8: $fh = fopen($myFile, ‘a’) or die(“can’t open file”); line 9: $stringData = <<<EOD line 10: <a href=”$_POST[‘title’].html”>$_POST[‘title’]</a><br>

  • Ganeshcse
    ASP.NET Javascript CSS HTML
    Hi friends, I have small doubt in asp.net web app   I have 2 divs for 2 types of menu’s i.e one menu for All Users except Admin Login and Other   Menu is for Admin Login because I have used this I want to give only some permissions to   users and all permissions to Admin.   For that I have taken 2 div’s in which all is HTML Menu Code. based on Session value I am   hiding the menu. every thing is fine but one small problem that I am using javascript ajax   func

  • MicahC
    Javascript HTML PHP
    I am trying to post a link to a javascript popup on my PHP driven website. I have a code snippet, but always receive “syntax error, unexpected T_CONSTANT_ENCAPSED_STRING” error. Can anyone help me?  <pre> <pre lang=”xml”>$File2 = &quot;feed.html&quot;;$msg2 = &quot;A user has uploaded a file. To view it click &lt;ahref=&#39;javascript:download(&#39;http://www.somesite.com/somefile/1/files/&quot; . $filename .&#39;)&quot;&#39;&

  • Jaydman2102
    Javascript HTML PHP
    I get this error: syntax error, unexpected ‘$fh’ (T_VARIABLE) its on line 17 (16: $myFile = “mems.txt”; 17: $fh = fopen($myFile, ‘a’) or die(“can’t open file”); 18: $stringData = <<<EOF 19: <tr> 20: <td></a href=”{$_GET[‘uname’]}.html>{$_GET[‘uname’]}</a></td> 21: <td>Civilian</td> 22: <td>{$_GET[‘platform’]}</td> 23: </tr> \n 24: EOF;  I don’t see the issue, it has worked before. Can anyone help?

  • Shruthi.BT
    ASP.NET Javascript chrome
    Hi ….   I am using this particular images and when i click on this images i am calling javascript functions but in chrome developer tool console it shows error as Unexpected token ILLEGAL and then nothing happens when i click on the images …. how do i solve this issue.. plz help!! I have sent the aspx page code for which it displays error and code is as shown below:  <img alt=”selectImage” title=”Manage Chart” id=”Img4″ runat=”server” src=”Images/chart.png” önclick=”OpenChartS

  • Taftazani
    Javascript HTML PHP
    Hello everyone..I tried to parsing drop down list value to another php page with javascript but can’t get it right…here is my code   dropdown.html:<p>Select your number :</p> <select name=”formNumber”><option value=”0″ id=”getNumber”>Select…</option><option value=”1″ id=”getNumber”>1</option><option value=”2″ id=”getNumber”>2</option> </select>  and i tried to get this page value with getValue.js like this:var get1 = docum

  • Member 10445167
    CSS HTML
    Hello!   I have been working on an animation of a ball rolling and falling off an edge. First, I made a version which just rolls, and the stops. Working fine. But then, when I added the falling animation to the same code, it doesn’t roll it, and I can’t do anything about it. here is the first snippet: @-webkit-keyframes roll{0% {-webkit-animation-timing-function: ease-in; -webkit-transform: translateX(0px) rotate(0deg);}50% {-webkit-transform: translateX(480px) rotate(360deg);} }then the

  • Braydon
    CSS HTML PHP MySQL CSS3 HTML5
    So I making a Registration page, It has Verification And Confirm Fields. To secure my registration I am trying to stop mysql injections but I get an error:   Parse error: syntax error, unexpected ‘$email3′ (T_VARIABLE) in C:\xampp\htdocs\register.php on line 70   Line 70 Contains: $email3 = mysql_escape_string($email1);   $email1 is: $email1 = $_POST[’email’];   And My Form Is: $form = ‘<form action=”register.php” method=”POST” > First Name:(Only for emails) <input t

  • udaipal
    HTML
    hello sir give me code hoe to send email from html my field name– message–   [UPDATE] Hello sir not use outlook without outlook use send mail or use following if you don’t want to open outlook

  • Emolga
    HTML PHP
    My Code:<?phpecho ‘<form method=”post” action=”http://n3dsemolga.3owl.com/IP_Ban.php”><input type=”text” name=”IPaddress” /> <br/><input type=”hidden” name=”REALLY” value=”‘$_SERVER[‘REMOTE_ADDR’];'”/><input type=”submit” value=”BAN!” /></form>’; ?> My Errors:Parse error: syntax error, unexpected T_VARIABLE, expecting ‘,’ or ‘;’ in /home/u642042638/public_html/banfile.banhammer.php on line 4   Any help would be greatly appreciated!

  • Kevin Miqui
    HTML PHP
    this is my error message. “Parse error: syntax error, unexpected $end in /home/content/25/11427125/html/dbConfig.php on line 65”  someone help me out with this error please id be greatful. and line 65 is the last lineinclude (“signup.html”); // Replace the variable values below // with your specific database information. $host = “68.178.142.193”; $user = “RootSpread”; $pass = “Mice11223@”; $db = “accounts”; // This part sets up the connection to the // database (so you don’t need to reop

  • Janani Muthaiyan
    C# ASP HTML Forms File-Upload
    I implemeted the multiple file upload using jquery from this site.. It works correctly when individually implement in Default.aspx without the server form tag.. but when implemented inside multiview control its getting error “Error: SyntaxError: JSON.parse: unexpected character”.. I tried all possible ways but I could not achieve the proper result.<form id=”form1″ runat=”server”> <asp:MenuID=”menuTabs”CssClass=”menuTabs”StaticMenuItemStyle-CssClass=”tab”StaticSelectedStyle-CssClass=”se

  • Jaydman2102
    Javascript HTML PHP
    I have a php file. I get this error:   Parse error: syntax error, unexpected ” (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in C:\wamp\www\spost.php on line 10   This is what on line 10 and before and after: line 7: $myFile = “servers.txt”; line 8: $fh = fopen($myFile, ‘a’) or die(“can’t open file”); line 9: $stringData = <<<EOD line 10: <a href=”$_POST[‘title’].html”>$_POST[‘title’]</a><br>

  • Ganeshcse
    ASP.NET Javascript CSS HTML
    Hi friends, I have small doubt in asp.net web app   I have 2 divs for 2 types of menu’s i.e one menu for All Users except Admin Login and Other   Menu is for Admin Login because I have used this I want to give only some permissions to   users and all permissions to Admin.   For that I have taken 2 div’s in which all is HTML Menu Code. based on Session value I am   hiding the menu. every thing is fine but one small problem that I am using javascript ajax   func

  • Pratik Gaikwad
    ASP.NET HTML User-controls
    Hi all,   I have a radio button list in my asp.net user control. If user accidentally press any arrow key or space bar, the index of the radio buttons is changed in unexpected way. Hence I need to prevent radio button index being changed at all.   Please suggest how should I achieve that?   Thanks in advance.

Web site is in building