{"id":2931,"date":"2014-03-10T12:58:54","date_gmt":"2014-03-10T12:58:54","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/10\/javascripthtmlrelated-issues-collection-of-common-programming-errors\/"},"modified":"2014-03-10T12:58:54","modified_gmt":"2014-03-10T12:58:54","slug":"javascripthtmlrelated-issues-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/10\/javascripthtmlrelated-issues-collection-of-common-programming-errors\/","title":{"rendered":"Javascript,HTMLRelated issues-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nMember 10359492<br \/>\nJavascript XML WCF JSON<br \/>\nHello my wcf code is below: \u00a0 Interface: [OperationContract][WebInvoke(Method = &#8220;POST&#8221;, BodyStyle = WebMessageBodyStyle.Wrapped,UriTemplate = &#8220;\/SaveURLTable&#8221;)]Int64 SaveURLTable(string URL, string UniqueID); \u00a0 Method: public Int64 SaveURLTable(String URL, String UniqueID) {\/\/ my code here with return value } \u00a0 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: \u00a0 &amp;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nRaidzen10<br \/>\nJavascript jQuery<br \/>\nIve got a javascript function that gives me the error in the title of the question. \u00a0 Below is my code: \u00a0 function ToggleVProcure(chkValidProc) {$.ajax({ type: &#8220;POST&#8221;, url: &#8220;DocumentManager.aspx&#8221;, data: { Action: &#8220;ValidateProcure&#8221;, Id: chkValidProc.attributes[&#8220;DId&#8221;].value }, dataType: &#8220;json&#8221;,success: function (data, textStatus) {if (textStatus == &#8220;success&#8221;) { \u00a0var chkProc = $(&#8216;[did=&#8221;&#8216; + chkValidProc.attributes[&#8220;Did&#8221;].value + &#8216;&#8221;]&#8217;);var checkCPD = $(&#8216;[docid=&#8221;&#8216; + chkValidProc.attrib<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nTaftazani<br \/>\nJavascript HTML PHP<br \/>\nHello everyone..I tried to parsing drop down list value to another php page with javascript but can&#8217;t get it right&#8230;here is my code \u00a0 dropdown.html:&lt;p&gt;Select your number :&lt;\/p&gt; &lt;select name=&#8221;formNumber&#8221;&gt;&lt;option value=&#8221;0&#8243; id=&#8221;getNumber&#8221;&gt;Select&#8230;&lt;\/option&gt;&lt;option value=&#8221;1&#8243; id=&#8221;getNumber&#8221;&gt;1&lt;\/option&gt;&lt;option value=&#8221;2&#8243; id=&#8221;getNumber&#8221;&gt;2&lt;\/option&gt; &lt;\/select&gt;\u00a0 and i tried to get this page value with getValue.js like this:var get1 = docum<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nChiranthaka Sampath<br \/>\nJavascript PHP Web-Development<br \/>\nI 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! \u00a0\u00a0 &lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nabhishekagrwl25<br \/>\nSQL2005 C# ASP.NET Javascript<br \/>\nhello all !! \u00a0i have retreived images from database using c# but how can i show them in a javascript slideshow in my .aspx page?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nJaydman2102<br \/>\nJavascript HTML PHP<br \/>\nI have a php file. I get this error: \u00a0 Parse error: syntax error, unexpected &#8221; (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 \u00a0 This is what on line 10 and before and after: line 7: $myFile = &#8220;servers.txt&#8221;; line 8: $fh = fopen($myFile, &#8216;a&#8217;) or die(&#8220;can&#8217;t open file&#8221;); line 9: $stringData = &lt;&lt;&lt;EOD line 10: &lt;a href=&#8221;$_POST[&#8216;title&#8217;].html&#8221;&gt;$_POST[&#8216;title&#8217;]&lt;\/a&gt;&lt;br&gt;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nGaneshcse<br \/>\nASP.NET Javascript CSS HTML<br \/>\nHi friends, I have small doubt in asp.net web app \u00a0 I have 2 divs for 2 types of menu&#8217;s i.e one menu for All Users except Admin Login and Other \u00a0 Menu is for Admin Login because I have used this I want to give only some permissions to \u00a0 users and all permissions to Admin. \u00a0 For that I have taken 2 div&#8217;s in which all is HTML Menu Code. based on Session value I am \u00a0 hiding the menu. every thing is fine but one small problem that I am using javascript ajax \u00a0 func<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nMicahC<br \/>\nJavascript HTML PHP<br \/>\nI am trying to post a link to a javascript popup on my PHP driven website. I have a code snippet, but always receive &#8220;syntax error, unexpected T_CONSTANT_ENCAPSED_STRING&#8221; error. Can anyone help me?\u00a0\u00a0&lt;pre&gt;\u00a0&lt;pre lang=&#8221;xml&#8221;&gt;$File2 = &amp;quot;feed.html&amp;quot;;$msg2 = &amp;quot;A user has uploaded a file. To view it click &amp;lt;ahref=&amp;#39;javascript:download(&amp;#39;http:\/\/www.somesite.com\/somefile\/1\/files\/&amp;quot; . $filename .&amp;#39;)&amp;quot;&amp;#39;&amp;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nJaydman2102<br \/>\nJavascript HTML PHP<br \/>\nI get this error: syntax error, unexpected &#8216;$fh&#8217; (T_VARIABLE) its on line 17 (16: $myFile = &#8220;mems.txt&#8221;; 17: $fh = fopen($myFile, &#8216;a&#8217;) or die(&#8220;can&#8217;t open file&#8221;); 18: $stringData = &lt;&lt;&lt;EOF 19: &lt;tr&gt; 20: &lt;td&gt;&lt;\/a href=&#8221;{$_GET[&#8216;uname&#8217;]}.html&gt;{$_GET[&#8216;uname&#8217;]}&lt;\/a&gt;&lt;\/td&gt; 21: &lt;td&gt;Civilian&lt;\/td&gt; 22: &lt;td&gt;{$_GET[&#8216;platform&#8217;]}&lt;\/td&gt; 23: &lt;\/tr&gt; \\n 24: EOF;\u00a0 I don&#8217;t see the issue, it has worked before. Can anyone help?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nShruthi.BT<br \/>\nASP.NET Javascript chrome<br \/>\nHi &#8230;. \u00a0 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 &#8230;. 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: \u00a0&lt;img alt=&#8221;selectImage&#8221; title=&#8221;Manage Chart&#8221; id=&#8221;Img4&#8243; runat=&#8221;server&#8221; src=&#8221;Images\/chart.png&#8221; \u00f6nclick=&#8221;OpenChartS<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nTaftazani<br \/>\nJavascript HTML PHP<br \/>\nHello everyone..I tried to parsing drop down list value to another php page with javascript but can&#8217;t get it right&#8230;here is my code \u00a0 dropdown.html:&lt;p&gt;Select your number :&lt;\/p&gt; &lt;select name=&#8221;formNumber&#8221;&gt;&lt;option value=&#8221;0&#8243; id=&#8221;getNumber&#8221;&gt;Select&#8230;&lt;\/option&gt;&lt;option value=&#8221;1&#8243; id=&#8221;getNumber&#8221;&gt;1&lt;\/option&gt;&lt;option value=&#8221;2&#8243; id=&#8221;getNumber&#8221;&gt;2&lt;\/option&gt; &lt;\/select&gt;\u00a0 and i tried to get this page value with getValue.js like this:var get1 = docum<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nMember 10445167<br \/>\nCSS HTML<br \/>\nHello! \u00a0 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&#8217;t roll it, and I can&#8217;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<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nBraydon<br \/>\nCSS HTML PHP MySQL CSS3 HTML5<br \/>\nSo 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: \u00a0 Parse error: syntax error, unexpected &#8216;$email3&#8242; (T_VARIABLE) in C:\\xampp\\htdocs\\register.php on line 70 \u00a0 Line 70 Contains: $email3 = mysql_escape_string($email1); \u00a0 $email1 is: $email1 = $_POST[&#8217;email&#8217;]; \u00a0 And My Form Is: $form = &#8216;&lt;form action=&#8221;register.php&#8221; method=&#8221;POST&#8221; &gt; First Name:(Only for emails) &lt;input t<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nudaipal<br \/>\nHTML<br \/>\nhello sir give me code hoe to send email from html my field name&#8211; message&#8211; \u00a0 [UPDATE] Hello sir not use outlook without outlook use send mail or use following if you don&#8217;t want to open outlook<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nEmolga<br \/>\nHTML PHP<br \/>\nMy Code:&lt;?phpecho &#8216;&lt;form method=&#8221;post&#8221; action=&#8221;http:\/\/n3dsemolga.3owl.com\/IP_Ban.php&#8221;&gt;&lt;input type=&#8221;text&#8221; name=&#8221;IPaddress&#8221; \/&gt; &lt;br\/&gt;&lt;input type=&#8221;hidden&#8221; name=&#8221;REALLY&#8221; value=&#8221;&#8216;$_SERVER[&#8216;REMOTE_ADDR&#8217;];'&#8221;\/&gt;&lt;input type=&#8221;submit&#8221; value=&#8221;BAN!&#8221; \/&gt;&lt;\/form&gt;&#8217;; ?&gt; My Errors:Parse error: syntax error, unexpected T_VARIABLE, expecting &#8216;,&#8217; or &#8216;;&#8217; in \/home\/u642042638\/public_html\/banfile.banhammer.php on line 4 \u00a0 Any help would be greatly appreciated!<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nKevin Miqui<br \/>\nHTML PHP<br \/>\nthis is my error message. &#8220;Parse error: syntax error, unexpected $end in \/home\/content\/25\/11427125\/html\/dbConfig.php on line 65&#8221;\u00a0 someone help me out with this error please id be greatful. and line 65 is the last lineinclude (&#8220;signup.html&#8221;); \/\/ Replace the variable values below \/\/ with your specific database information. $host = &#8220;68.178.142.193&#8221;; $user = &#8220;RootSpread&#8221;; $pass = &#8220;Mice11223@&#8221;; $db = &#8220;accounts&#8221;; \/\/ This part sets up the connection to the \/\/ database (so you don&#8217;t need to reop<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nJanani Muthaiyan<br \/>\nC# ASP HTML Forms File-Upload<br \/>\nI 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 &#8220;Error: SyntaxError: JSON.parse: unexpected character&#8221;.. I tried all possible ways but I could not achieve the proper result.&lt;form id=&#8221;form1&#8243; runat=&#8221;server&#8221;&gt; &lt;asp:MenuID=&#8221;menuTabs&#8221;CssClass=&#8221;menuTabs&#8221;StaticMenuItemStyle-CssClass=&#8221;tab&#8221;StaticSelectedStyle-CssClass=&#8221;se<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nJaydman2102<br \/>\nJavascript HTML PHP<br \/>\nI have a php file. I get this error: \u00a0 Parse error: syntax error, unexpected &#8221; (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 \u00a0 This is what on line 10 and before and after: line 7: $myFile = &#8220;servers.txt&#8221;; line 8: $fh = fopen($myFile, &#8216;a&#8217;) or die(&#8220;can&#8217;t open file&#8221;); line 9: $stringData = &lt;&lt;&lt;EOD line 10: &lt;a href=&#8221;$_POST[&#8216;title&#8217;].html&#8221;&gt;$_POST[&#8216;title&#8217;]&lt;\/a&gt;&lt;br&gt;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nGaneshcse<br \/>\nASP.NET Javascript CSS HTML<br \/>\nHi friends, I have small doubt in asp.net web app \u00a0 I have 2 divs for 2 types of menu&#8217;s i.e one menu for All Users except Admin Login and Other \u00a0 Menu is for Admin Login because I have used this I want to give only some permissions to \u00a0 users and all permissions to Admin. \u00a0 For that I have taken 2 div&#8217;s in which all is HTML Menu Code. based on Session value I am \u00a0 hiding the menu. every thing is fine but one small problem that I am using javascript ajax \u00a0 func<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nPratik Gaikwad<br \/>\nASP.NET HTML User-controls<br \/>\nHi all, \u00a0 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. \u00a0 Please suggest how should I achieve that? \u00a0 Thanks in advance.<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Member 10359492 Javascript XML WCF JSON Hello my wcf code is below: \u00a0 Interface: [OperationContract][WebInvoke(Method = &#8220;POST&#8221;, BodyStyle = WebMessageBodyStyle.Wrapped,UriTemplate = &#8220;\/SaveURLTable&#8221;)]Int64 SaveURLTable(string URL, string UniqueID); \u00a0 Method: public Int64 SaveURLTable(String URL, String UniqueID) {\/\/ my code here with return value } \u00a0 now i m able to call this by making httprequest call from [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2931","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2931","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2931"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2931\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2931"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2931"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2931"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}