{"id":3142,"date":"2014-03-16T22:57:34","date_gmt":"2014-03-16T22:57:34","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/16\/phpjavascriptjqueryhtmlcssrelated-issues-collection-of-common-programming-errors\/"},"modified":"2014-03-16T22:57:34","modified_gmt":"2014-03-16T22:57:34","slug":"phpjavascriptjqueryhtmlcssrelated-issues-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/16\/phpjavascriptjqueryhtmlcssrelated-issues-collection-of-common-programming-errors\/","title":{"rendered":"php,javascript,jquery,html,cssRelated issues-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b42f96ef8065395ec33446eb3526c1a8?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nwaiwai933<br \/>\nphp exception exception-handling throw<br \/>\nI&#8217;m trying to use exceptions in PHP as a way of avoiding multiple if-then-else blocks. However, when I try to catch the exception, I get the error Parse error: syntax error, unexpected T_CATCH in \/directory\/functions.php on line 66. Am I doing something wrong with my throwing and catching?function doThis($sSchool, $sDivision, $sClass, $sUsername, $sCode,$query1,$query2) {connectDb();global $dbConnection;$sDivisionIdArray = mysqli_query($dbConnection,$query1);if ($sDivisionIdArray==false){throw n<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/01d897751cc05dc327dab52633e1c723?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nGalen<br \/>\nphp mvc<br \/>\ni know that everything is going through the controller.but i often read articles that says something like this:user interacts with the view controller asks the model to change its state model notifies the view when its sate has changedi dont get the 3rd one. why saying that the model notifies the view, when it actually is notifying the controller and the controller is notifying the view?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/k3Myh.png?s=32&amp;g=1\" \/><br \/>\nPhil Jackson<br \/>\nphp upload<br \/>\nIm using BluImp file uploader. Greate little script that I&#8217;ve used forever.Now I have scoured there forum and cant find anything but after debugging, I believe it is more of a permissions\/restrictions\/settings problem.Once the upload has appeared to have finished, an error is returned:Error: SyntaxError: Unexpected end of inputAfter debugging it is cause by any functions writing to the server, i.e. file_put_contents, move_upload_file&#8230;.The file is 1.47 mbmy additional ini alterations are max_ex<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/112b3fe5e02c17e8bdb75ac17561bcd4?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nmaxgee<br \/>\nphp html mysql table variables<br \/>\nI am trying to get this data to go into a table so I can view it better on my website and I dont really understand how to combing PHP and HTML and I was getting this error Parse error: syntax error, unexpected &#8216;;&#8217; I dont know if I combine them wrong so here is my code and tell me if I need to supply more than this line of code. &lt;h2&gt;Featured Event&#8217;s&lt;\/h2&gt; &lt;body&gt; &lt;table cellpadding=&#8221;10&#8243;&gt; &lt;tbody&gt; &lt;?php echo ?&gt;&lt;td&gt;&lt;?php $eventname ?&gt;&lt;\/td&gt;&lt;?php<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/64555e5f0e0ee1ecbf3eaaf0dc137328?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBojangles<br \/>\nphp mysql jquery-ui<br \/>\nThis seemed simply but i&#8217;m running into a problem. I&#8217;m building an autocomplete drop down box using jquery ui. It works fine with static information but when i try put dynamic data from mysql in the array it freaks out.Parse error: syntax error, unexpected T_DO, expecting &#8216;)&#8217; on line 46Line 46 is the do in the array$items = array(do { $row_Recordset1[&#8216;ARTIST&#8217;]; } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); );I&#8217;ve searched the net but I can&#8217;t find anything relating to problems w<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/352d31f54a2dab8362c03e0c29a1b0a9?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nZyteX<br \/>\nphp html compiler-errors echo<br \/>\nI have a long HTML code which I&#8217;m echoing out through the echo code. However I get an error and if I remove the code on all the lines where it says there&#8217;s an error I get an error on the body instead. When I try to connect to my page I get this error: ( ! ) Parse error: syntax error, unexpected $end inC:\\wamp\\www\\Legendary\\new\\usersettings.php on line 670http:\/\/fiddle.jshell.net\/n4a6W\/** EDIT ** I just noticed one of the errors, but the errors with almost all of the is still there&#8230;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/40de750233b3ce8268f235ba0b6a489b?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nteresko<br \/>\nphp yii optional-parameters yii-cmodel<br \/>\nI am trying to modify 1 controller to work with 2 models. This is what I have done with loadModel function in my controllerpublic function loadModel($id, $_model) {if (isset($_model)){$model=$_model::model()-&gt;findByPk($id); \/\/ syntax error, unexpected &#8220;::&#8221;if($model===null)throw new CHttpException(404,&#8217;The requested page does not exist.&#8217;);return $model;} else {$model=Foods::model()-&gt;findByPk($id);if($model===null)throw new CHttpException(404,&#8217;The requested page does not exist.&#8217;);return $mod<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a3d1f769479931a7770618c43e49654d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJDelage<br \/>\nphp ajax json<br \/>\nAll,I&#8217;m trying to pass a stringified json object as a GET parameter but the receiving URL seems unable to decode it, I am not sure why.Here is the relevant code:Client side Json object production (works fine): function createJson(){ \/\/ This works fine. It creates a json objects with three elements, the third being an array. \/\/(omitted code for brevity)return jsonData; }Client side ajax call (works fine):function recordSetGet(jsonData){request = createRequest();var rawSet=JSON.stringify(jsonDat<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/91b302cc64e5fa4c3a475507bceb2b21?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nColin<br \/>\nphp parsing<br \/>\nI&#8217;ve finally started to learn PHP and I quite have trouble with it. I am trying to make a website change its stylesheet according to the moment of the day (day, twilight, night) and I&#8217;ve taken this approach:&lt;?php$lt = localtime();if ($lt[2]&gt;=6 &amp;&amp; $lt[2]&lt;=16)echo(&#8216;&lt;link href=&#8221;style.css&#8221; rel=&#8221;stylesheet&#8221; type=&#8221;text\/css&#8221; \/&gt;&#8217;);elsif ($lt[2]&gt;=17 &amp;&amp; $lt[2]&lt;=21)echo(&#8216;&lt;link href=&#8221;style_twilight.css&#8221; rel=&#8221;stylesheet&#8221; type=&#8221;text\/css&#8221; \/&gt;&#8217;);elseecho(&#8216;&lt;link href=<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/187e3f68331377b6099bd8e4d8e73006?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\npsniffer<br \/>\nphp versions<br \/>\ni wrote a small program to help me study, it works fine on the localhost, but when i upload it i get an error message that has me stumped the line i get the error with is below&lt;?php echo &#8220;Num # : &#8221; . ($_SESSION[&#8216;monster&#8217;]-&gt;getQuestionNumber()[$q]) .&#8221;&amp;nbspof&amp;nbsp&#8221;. $_SESSION[&#8216;monster&#8217;] -&gt; getTotalQuestions() . &#8220;&lt;BR&gt;&#8221;;?&gt;on the local host i have PHP Version 5.4.4-14+deb7u5on the remote server i have PHP Version 5.2.6the error i get is Parse error: syntax error, unexpected<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/feef9dda8bbe41e9def78c274a37f60c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nProfK<br \/>\nasp.net javascript jquery<br \/>\nI&#8217;m trying to call a Page Method using a jQuery &#8216;attached&#8217; event function, in which I like to use the closure to keep the event target local, as below, but page method calls declare several &#8216;error&#8217; functions, and I would like to use one function for all of them. If, in the below code, I was handling an error and not success, how could I use my single, anonymous handler for all 3 error functions?$(&#8220;:button&#8221;).click(function () {var button = this;PageMethods.DoIt(function (a, b, c) {alert(button);<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/1656e3b5977a7695b6f4044edb5ea85b?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBlairHippo<br \/>\njavascript<br \/>\nI&#8217;m trying to change the value of a text input field based on user actions. I&#8217;m doing it like this:document.getElementById(textFieldID).value = newValue;It isn&#8217;t quite working &#8212; the original text in the field remains on the screen, unchanged. However, when I submit the form, it behaves as though the value was indeed changed correctly. (And a debug alert confirms that yup, I&#8217;m hitting that bit of the code and passing in the right field ID and text value.) Anybody have any insights? Is there<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/1607b348993138ebc8a82b491fbd5980?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJ\u00fcrgen Thelen<br \/>\njavascript jquery javascript-events<br \/>\nThe below code works well on localhost using XAMPP. But it doesn&#8217;t work on another server.&lt;!DOCTYPE html&gt; &lt;html&gt;&lt;head&gt;&lt;script src=&#8221;jquery-latest.js&#8221;&gt;&lt;\/script&gt;&lt;\/head&gt;&lt;body&gt;word: &lt;input type=&#8221;text&#8221; id=&#8221;sub&#8221; \/&gt;user: &lt;input type=&#8221;text&#8221; id=&#8221;user&#8221; \/&gt;&lt;button type=&#8221;button&#8221; id=&#8221;btn&#8221;&gt;Click Me!&lt;\/button&gt;&lt;script&gt;$(&#8220;#btn&#8221;).click(function () {var word=$(&#8220;#sub&#8221;).val();var usr=$(&#8220;#user&#8221;).val();alert(&#8220;hi&#8221;);});&lt;\/script&gt;&lt;\/body&gt; &lt;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/1a20ae6bb8b5f804d17d93c19b8894e2?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nKetema<br \/>\njavascript syntax coffeescript<br \/>\nI have the following valid javascript:App.Person = DS.Model.extend({ firstName: DS.attr(&#8216;string&#8217;), lastName: DS.attr(&#8216;string&#8217;), birthday: DS.attr(&#8216;date&#8217;),fullName: function() {return this.get(&#8216;firstName&#8217;) + &#8216; &#8216; + this.get(&#8216;lastName&#8217;);}.property(&#8216;firstName&#8217;, &#8216;lastName&#8217;) });According to js2coffee.org This js is the equivalent of the following coffee script :App.Person = DS.Model.extend(firstName: DS.attr(&#8220;string&#8221;)lastName: DS.attr(&#8220;string&#8221;)birthday: DS.attr(&#8220;date&#8221;)fullName: -&gt;@get(&#8220;firstName&#8221;)<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/7b3297b0f913d67a251ec08401aca583?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nmu is too short<br \/>\njavascript coffeescript<br \/>\nThis is my coffee, I simply can&#8217;t see why this is wrong. I keep getting an unexpected , error. renderTable:()=&gt;@table = d3.select(&#8220;#search-results-area&#8221;).append(&#8220;table&#8221;).attr(&#8220;id&#8221;,@tableId).attr(&#8220;class&#8221;,&#8221;visualization-panel&#8221;)@thead = @table.append(&#8220;thead&#8221;)@tbody = @table.append(&#8220;tbody&#8221;)@input = @table.append(&#8220;input&#8221;).attr(&#8220;id&#8221;,@inputId).on(&#8220;keydown&#8221;,(d)=&gt;console.log(&#8220;keydown&#8221;)console.log toFilter = $(@input[0][0]).val() window.setTimeout(()=&gt; toFilter = $(@input[0][0]).val() @tbody.sele<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/5f16ec0395b1710fd529b01602de66ca?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ndopatraman<br \/>\njavascript regex<br \/>\nI&#8217;m using a the .replace() method in javascript to convert a serialized array of objects into a simpler serialzed string. Here is my code:b = \/\/string b = b.replace(\/},{\/gi, &#8220;},cb,,{&#8220;); b = b.replace(\/}],[{\/gi, &#8220;},cb,,row,{&#8220;); \/\/The error is being thrown for this lineWhen I run this code I am getting an &#8220;Unexpected Token \/&#8221; error for the third line. Why is this? The line is more or less identical to the line above it. Please help me figure this out.Note: I cant submit a string without the regex<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b19917aa04a6839aef577f1117c71d48?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nPointy<br \/>\njavascript<br \/>\nvar bookmark_iterator = page_element.firstChild; do {\/\/ start insertionif (bookmark_iterator === null) {page_element.appendChild(div_el);break;}\/\/ middle insertionif (div_el.id &lt; bookmark_iterator.id) {page_element.insertBefore(div_el, bookmark_iterator);break;}\/\/ end insertionif (bookmark_iterator === page_element.lastChild) {\/\/ if null will insert at the end per referencebookmark_iterator = null;page_element.insertBefore(div_el, bookmark_iterator);break;}\/\/ increment loopbookmark_iterator =<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3d35dad83d73505d9b1f8f3b2acc8c72?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\njlleblanc<br \/>\njavascript html ajax mootools<br \/>\nI&#8217;m trying to build some JavaScript in MooTools that fetches table row markup from the server, then adds it to a table. I have an object named htmlAjax that&#8217;s set as a MooTools Ajax object. The object gets the HTML from the server correctly (tested this in the Firebug console), but when I attempt to add this markup to a new element, the &lt;td&gt; elements get stripped out. Here is my function that captures the data from the HTTP request and attempts to add a row:htmlAjax.addEvent(&#8216;onComplete&#8217;,<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0fd2816e78f6a04d5f8ce0aba1cb42e6?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ncspray<br \/>\njavascript div<br \/>\nI&#8217;m pretty new to javascript and programming and have run into a brick wall with my project. I have a div which contains the javascript to embed a quicktime player, when the page is first loaded no .mov file is pointed at by the page so a placeholder div is &#8216;unhidden&#8217; and the player div is set to style.display = &#8216;none&#8217;.So far so good, the user then enters the name of the new movie, the placeholder div is hidden and the player div is unhidden. My problem is that the javascript in the player div d<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6eb68098808a5da4bc9e8f9a755353e4?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nuser3057928<br \/>\njavascript<br \/>\nvar cashRegister = {total:0,add: function(itemCost){total += this.itemCost;},scan: function(item) {switch (item) { case &#8220;eggs&#8221;: this.add(0.98); break;case &#8220;magazine&#8221;:this.add(4.99);break;}return true;} };cashRegister.scan(&#8220;eggs&#8221;); cashRegister.scan(&#8220;magazines&#8221;);console.log(&#8216;Your bill is &#8216;+cashRegister.total);the output show NAN, and total is undefined. I tried cashRegister.total and this.total in the add method, no luck. What&#8217;s wrong with the code above?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/feef9dda8bbe41e9def78c274a37f60c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nProfK<br \/>\nasp.net javascript jquery<br \/>\nI&#8217;m trying to call a Page Method using a jQuery &#8216;attached&#8217; event function, in which I like to use the closure to keep the event target local, as below, but page method calls declare several &#8216;error&#8217; functions, and I would like to use one function for all of them. If, in the below code, I was handling an error and not success, how could I use my single, anonymous handler for all 3 error functions?$(&#8220;:button&#8221;).click(function () {var button = this;PageMethods.DoIt(function (a, b, c) {alert(button);<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2abbbc6ae4fcfd3a265c9cf945ed5c86?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nVikdor<br \/>\njquery html<br \/>\nin my html header i have &lt;head&gt;&lt;script src=&#8221;jquary.js&#8221;&gt;&lt;\/script&gt;&lt;script&gt;$(document).ready(function(){ladda();});&lt;\/script&gt;&lt;\/head&gt;and i load jquaryand in the body i have&lt;form namne=&#8221;load&#8221;&lt;fieldset&gt;&lt;legend&gt; load&lt;\/legend&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;div id=&#8221;inneh\u00e5ll1&#8243;&gt;vill du \u00e4ndra denna text&lt;\/div&gt;&lt;\/td&gt;&lt;\/tr&gt;&lt;\/table&gt; &lt;button id=&#8221;load_text&#8221;&gt;\u00e4ndra&lt;\/button&gt; &lt;\/fieldset&gt;and in my javascript i have<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/1607b348993138ebc8a82b491fbd5980?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJ\u00fcrgen Thelen<br \/>\njavascript jquery javascript-events<br \/>\nThe below code works well on localhost using XAMPP. But it doesn&#8217;t work on another server.&lt;!DOCTYPE html&gt; &lt;html&gt;&lt;head&gt;&lt;script src=&#8221;jquery-latest.js&#8221;&gt;&lt;\/script&gt;&lt;\/head&gt;&lt;body&gt;word: &lt;input type=&#8221;text&#8221; id=&#8221;sub&#8221; \/&gt;user: &lt;input type=&#8221;text&#8221; id=&#8221;user&#8221; \/&gt;&lt;button type=&#8221;button&#8221; id=&#8221;btn&#8221;&gt;Click Me!&lt;\/button&gt;&lt;script&gt;$(&#8220;#btn&#8221;).click(function () {var word=$(&#8220;#sub&#8221;).val();var usr=$(&#8220;#user&#8221;).val();alert(&#8220;hi&#8221;);});&lt;\/script&gt;&lt;\/body&gt; &lt;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/907798bf02efdaf6f9d07d3c0552868f?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nj08691<br \/>\njquery<br \/>\nHi guys I am trying to make my slider picking dynamically changed width of the window and put the right variable &#8220;newscount&#8221; to &#8220;slidesPerSlide : window.newscount&#8221; plus reload the last part:swiperLoop = $(&#8216;.swiper-loop&#8217;).swiper({slidesPerSlide : window.newscount,loop:false }); Please help me, the code is below:$(window).on(&#8216;load&#8217;, function(){$(window).on(&#8216;resize&#8217;, function() {var w = $(window).width();if (w &lt; 321) {var newscount = &#8220;2&#8221;;}else if (w &lt; 480) {var newscount = &#8220;3&#8221;;}else if (w &lt;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c968f8cf630e1754004b1219c0d29d08?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nCristiano Marques<br \/>\njquery each<br \/>\nFor some reason its only finding one div instead of finding all divs with that id.JS:jQuery(&#8216;#showoffline&#8217;).click(function(){jQuery.each(jQuery(&#8216;#offlineestreams&#8217;),function(){jQuery(this).css(&#8220;display&#8221;,&#8221;block&#8221;);}); });Divs are something like this:&lt;div id=&#8221;offlineestreams&#8221; style=&#8221;display = none;&#8221;&gt; Something here &lt;\/div&gt; &lt;div id=&#8221;offlineestreams&#8221; style=&#8221;display = none;&#8221;&gt; Something here2 &lt;\/div&gt;But only the first one shows :\\ Why is that happening?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/37067963126cace11aba2c9832024e8e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser2341213<br \/>\nphp jquery alert<br \/>\nMy JQuery code is not working. I tried functions such as &#8220;mouseenter&#8221; and that didn&#8217;t work, so I simply tried this and the alert does not show up. Is it a problem with the syntax or possibly something I am missing?&lt;script type=&#8221;text\/javascript&#8221; src=&#8221;jquery-2.0.0.min.js&#8221;&gt;&lt;\/script&gt; &lt;link type=&#8221;text\/css&#8221; rel=&#8221;stylesheet&#8221; href=&#8221;stylesheet.css&#8221;\/&gt; &lt;script type=&#8221;text\/javascript&#8221; src=&#8221;script.js&#8221;&gt;&lt;\/script&gt;The JS is this:$(document).ready(function() {alert(&#8220;JQuery is working!<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/bc10c7edd7524e1a05de670a3f0399a4?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nWill<br \/>\njquery<br \/>\nWhat are some quick tips for increasing jQuery performance?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/53bdac9d82783ce85a5ccb837ce7bc08?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ntkone<br \/>\njquery ajax json jquery-ajax<br \/>\nI have the following code:$.ajax({type: &#8216;get&#8217;,mode: &#8216;abort&#8217;,dataType: &#8216;json&#8217;,url: &#8216;http:\/\/localhost\/1.php&#8217;,data: {},success: function(res){alert(res);},timeout: 10000,error: function(XMLHttpRequest, textStatus, errorThrown){alert(&#8220;ERROR L: &#8221; + textStatus + &#8221; (&#8221; + errorThrown + &#8220;)&#8221;);}});PHP contains only {id:1} and that&#8217;s it. When I try to parse the code as is, I get:ERROR L: parsererror (SyntaxError: Unexpected token i)from the error handler I have. If I change to dataType:&#8217;html&#8217;, Everything<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e75e3418d05e4bb4a01fbe794d85aacd?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAwea<br \/>\njquery cross-browser<br \/>\nI have a form : &lt;form accept-charset=&#8221;UTF-8&#8243; action=&#8221;\/back\/pages\/22?locale=fr&#8221; class=&#8221;form-horizontal page-form&#8221; enctype=&#8221;multipart\/form-data&#8221; id=&#8221;edit_page_22&#8243; method=&#8221;post&#8221; target=&#8221;_blank&#8221;&gt;&lt;div style=&#8221;margin:0;padding:0;display:inline&#8221;&gt;&lt;input name=&#8221;utf8&#8243; type=&#8221;hidden&#8221; value=&#8221;?&#8221;&gt;&lt;p&gt;&lt;a href=&#8221;#&#8221; id=&#8221;no_window&#8221;&gt;Submit&lt;\/a&gt;&lt;\/p&gt;&lt;p&gt;&lt;a href=&#8221;#&#8221; id=&#8221;new_window&#8221;&gt;Submit &amp; _blank&lt;\/a&gt;&lt;\/p&gt; &lt;\/form&gt;And a Script attached : $(document).r<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/86f408d03c13a4ff1a4fbda9a21cf98e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJamie Taylor<br \/>\njquery internet-explorer<br \/>\nI&#8217;ve got some code which when you click a button it populates the text of a textbox and then prepends another button to that div.It works in all browsers except IE where it gives a javascript error.The only way I can easily explain is by using my jsFiddleIf you use that in any browser apart from IE and click the Book now select a date and then another button will appear Submit.This is the correct behaviour but if you use IE then as soon as you select a date there&#8217;s a javascript error Unexpected<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2abbbc6ae4fcfd3a265c9cf945ed5c86?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nVikdor<br \/>\njquery html<br \/>\nin my html header i have &lt;head&gt;&lt;script src=&#8221;jquary.js&#8221;&gt;&lt;\/script&gt;&lt;script&gt;$(document).ready(function(){ladda();});&lt;\/script&gt;&lt;\/head&gt;and i load jquaryand in the body i have&lt;form namne=&#8221;load&#8221;&lt;fieldset&gt;&lt;legend&gt; load&lt;\/legend&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;div id=&#8221;inneh\u00e5ll1&#8243;&gt;vill du \u00e4ndra denna text&lt;\/div&gt;&lt;\/td&gt;&lt;\/tr&gt;&lt;\/table&gt; &lt;button id=&#8221;load_text&#8221;&gt;\u00e4ndra&lt;\/button&gt; &lt;\/fieldset&gt;and in my javascript i have<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/112b3fe5e02c17e8bdb75ac17561bcd4?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nmaxgee<br \/>\nphp html mysql table variables<br \/>\nI am trying to get this data to go into a table so I can view it better on my website and I dont really understand how to combing PHP and HTML and I was getting this error Parse error: syntax error, unexpected &#8216;;&#8217; I dont know if I combine them wrong so here is my code and tell me if I need to supply more than this line of code. &lt;h2&gt;Featured Event&#8217;s&lt;\/h2&gt; &lt;body&gt; &lt;table cellpadding=&#8221;10&#8243;&gt; &lt;tbody&gt; &lt;?php echo ?&gt;&lt;td&gt;&lt;?php $eventname ?&gt;&lt;\/td&gt;&lt;?php<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/352d31f54a2dab8362c03e0c29a1b0a9?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nZyteX<br \/>\nphp html compiler-errors echo<br \/>\nI have a long HTML code which I&#8217;m echoing out through the echo code. However I get an error and if I remove the code on all the lines where it says there&#8217;s an error I get an error on the body instead. When I try to connect to my page I get this error: ( ! ) Parse error: syntax error, unexpected $end inC:\\wamp\\www\\Legendary\\new\\usersettings.php on line 670http:\/\/fiddle.jshell.net\/n4a6W\/** EDIT ** I just noticed one of the errors, but the errors with almost all of the is still there&#8230;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/kxyts.png?s=32&amp;g=1\" \/><br \/>\nHooman<br \/>\nphp html wordpress div wordpress-theming<br \/>\nI have created three columns like this:&lt;div style=&#8221;float: left&#8221;&gt;Left Column&lt;\/div&gt; &lt;div style=&#8221;float: left&#8221;&gt;Middle Column&lt;\/div&gt; &lt;div style=&#8221;float: left&#8221;&gt;Right Column&lt;\/div&gt;This works well on its own. However the moment I add it to my WordPress page template, by defining a left and right column around the existing main column something unexpected happens:http:\/\/venuscloud.com\/crm-software\/The left column is correctly placed and the middle column is as expected in<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3d35dad83d73505d9b1f8f3b2acc8c72?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\njlleblanc<br \/>\njavascript html ajax mootools<br \/>\nI&#8217;m trying to build some JavaScript in MooTools that fetches table row markup from the server, then adds it to a table. I have an object named htmlAjax that&#8217;s set as a MooTools Ajax object. The object gets the HTML from the server correctly (tested this in the Firebug console), but when I attempt to add this markup to a new element, the &lt;td&gt; elements get stripped out. Here is my function that captures the data from the HTTP request and attempts to add a row:htmlAjax.addEvent(&#8216;onComplete&#8217;,<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/588fbe9bc186dccbbd39546d78ab4aaf?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDriftingSteps<br \/>\nhtml osx<br \/>\nI don&#8217;t know if this question is relevant, but it has become an issue at my workplace, so&#8230;One of our clients (using a Mac) showed us a &#8216;problem&#8217; in a dropdown that we made using the default &lt;select&gt; tag. The dropdown has 43 &lt;option&gt;&#8217;s. In our Windows PC, the dropdown has a scroll bar (as you can see in the screenshot) showing only some items at a time. But in the client&#8217;s browser, the dropdown shows all the items at once. Is there a way to have scroll bars on the dropdown on Mac P<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/229a1cdc3aab580b63feca9a4bdcc54d?s=128&amp;d=identicon&amp;r=PG\" \/><br \/>\nGumbo<br \/>\nhtml gui usability<br \/>\nI like to display more info on certain keywords in a web page. I don&#8217;t want to send the visitor to another page and I prefer to show the extra info on top of the current page.The keywords are in an html list. It&#8217;s basically a list of features and I want to offer more info about the features. So I have two ideas based on having &#8216;More Info&#8217; or &#8216;?&#8217; hyperlinks.The user hovers on the link and a popup window shows up with the info and goes away when they hover away. They click on the link, a popup win<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/655ad279ca80e49f4ad19c02bb98f250?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nQ_Mlilo<br \/>\nhtml css<br \/>\nHie EveryoneI am designing a webpage with a fluid layout. I want to keep a 100% width and a 100% height. The problem is i dont know how to keep divs &#8220;left&#8221; and &#8220;right&#8221; with a 100% height inside their parent div, &#8220;wrapper&#8221;.&lt;div id=&#8221;container&#8221; style=&#8221;width:100%; height:100%&#8221;&gt; &lt;div id=&#8221;header&#8221; style=&#8221;width:100%; height:100px&#8221;&gt;&lt;\/div&gt;&lt;div id=&#8221;wrapper&#8221; style=&#8221;width:100%; height:(100% &#8211; 100px)&#8221;&gt;&lt;div id=&#8221;left&#8221; style=&#8221;width:250px; height:(100% &#8211; 100px)&#8221;&gt;&lt;\/div&gt;&lt;div<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/40de750233b3ce8268f235ba0b6a489b?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nteresko<br \/>\nc# html asp.net-mvc<br \/>\nFor example I have:&lt;img src=&#8221;http:\/\/gateway.com\/Providername\/NameOfTheSupplier\/RequestedImg.jpg&#8221; \/&gt;Now some customers are complaining that there customers can see the company name in the url. Because its to much work to change the structure of the gateway I use, I search for another way to do it.Is there a way I can hide the src for the client? For example with base64, or another encryption that can decrypt client-side?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/suLYJ.jpg?s=32&amp;g=1\" \/><br \/>\nchhantyal<br \/>\nhtml css alignment<br \/>\nPlease take a look at this fiddle: http:\/\/jsfiddle.net\/d3uc9\/4\/I have a problem with this, as the two divs, in a table, next to each other, are not on the same margin line, even thought they share the same css class etc.What have I done wrong in the example, and must I change to make them on the same margin-top line?Thanks, I have tried to be as clear as possible.What I mean is that they should share the same margin-top line, but they don&#8217;t, and what must I do to fix this?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/fab243b2d94e8ce1c3c0cd7fd8c24cf9?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nxiaohan2012<br \/>\ncss cross-browser<br \/>\nThis is a cross-browser style compatibility problem. And the effect is unexpected in Internet Explorer(&lt;=7.0)The sample webpage is hereNotice the .pll_viewpoint element(The boxes whose colors changes gradually from red to grey). The expected effect should be:(See it in Chrome, FF, Opera or IE &gt;= 8.0)New box should switch to new row if the width of upper row cannot contain this new box without overflowing the container&#8217;s width.However the effect in IE 7.0 is:(See it in IE &lt;= 7.0)The &#8220;extr<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/655ad279ca80e49f4ad19c02bb98f250?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nQ_Mlilo<br \/>\nhtml css<br \/>\nHie EveryoneI am designing a webpage with a fluid layout. I want to keep a 100% width and a 100% height. The problem is i dont know how to keep divs &#8220;left&#8221; and &#8220;right&#8221; with a 100% height inside their parent div, &#8220;wrapper&#8221;.&lt;div id=&#8221;container&#8221; style=&#8221;width:100%; height:100%&#8221;&gt; &lt;div id=&#8221;header&#8221; style=&#8221;width:100%; height:100px&#8221;&gt;&lt;\/div&gt;&lt;div id=&#8221;wrapper&#8221; style=&#8221;width:100%; height:(100% &#8211; 100px)&#8221;&gt;&lt;div id=&#8221;left&#8221; style=&#8221;width:250px; height:(100% &#8211; 100px)&#8221;&gt;&lt;\/div&gt;&lt;div<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/suLYJ.jpg?s=32&amp;g=1\" \/><br \/>\nchhantyal<br \/>\nhtml css alignment<br \/>\nPlease take a look at this fiddle: http:\/\/jsfiddle.net\/d3uc9\/4\/I have a problem with this, as the two divs, in a table, next to each other, are not on the same margin line, even thought they share the same css class etc.What have I done wrong in the example, and must I change to make them on the same margin-top line?Thanks, I have tried to be as clear as possible.What I mean is that they should share the same margin-top line, but they don&#8217;t, and what must I do to fix this?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/89a84cd8e3d3cba65cda4039e68b95b6?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nstanigator<br \/>\ncss<br \/>\nHere are two separate pieces of code snippets to illustrate the difference. Thanks in advance.Snippet #1&lt;style type=&#8221;text\/css&#8221;&gt;body {background-color: blue;} &lt;&#8212;h1 {color: green;}p {color: purple;} &lt;\/style&gt;Snippet #2&lt;style type=&#8221;text\/css&#8221;&gt;body {background: blue;} &lt;&#8212;h1 {color: green;}p {color: purple;} &lt;\/style&gt;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/193505336b9ae59838e1d0f97e3a02ea?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nPat<br \/>\nhtml css margin negative-margin<br \/>\nI have created a JSFiddle of my case here: http:\/\/jsfiddle.net\/gGCaX\/ (Please take a look, so as to get some idea of what I am about to ask.)Now, coming to the point, Social Sharing buttons or counters are irregular when it comes to padding, margins etc as they come from different people.As you can see in the JSFIDDLE, I&#8217;ve managed to get them look good together. But the problem is, for one of the buttons (&#8220;SHARE&#8221; button &#8211; &#8211; the last in the line) I had to use &#8220;negative&#8221; margin as it was leaving<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/01ab1271cafad1fd64de8a2b15c45868?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDennis Callanan<br \/>\njquery css button jquery-animate<br \/>\n&lt;script&gt;var swidth = $(window).width();var sheight = $(window).height();$(document).ready(function(){$(&#8220;#box&#8221;).animate({ \/\/animates depending on screen sizetop: (sheight*0.22)+&#8221;px&#8221;,left: (swidth*0.25)+&#8221;px&#8221;,width:(swidth*0.3)-40+&#8221;px&#8221;,height: (sheight*0.35)-40+&#8221;px&#8221;,}, 2000, function(){$(&#8216;&lt;input type=&#8221;button&#8221; value=&#8221;My button&#8221;&gt;&#8217;).appendTo(this).click(function(){ $(this).animate({ \/\/ reverses animation back to original size and locationtop: &#8220;150px&#8221;,left: &#8220;100px&#8221;,width:&#8221;1px&#8221;,height: &#8220;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/083d4fcffe13b58cbfa9fac4752e8253?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ntravelboy<br \/>\njavascript jquery css image dimensions<br \/>\nI need to obtain the dimensions of an image, using a dynamically created image tag. It works. But ONLY using attr(&#8216;width&#8217;) and ONLY if I do NOT add the image to the DOM. Otherwise, dimensions returned are zero. Why? :)this.img = $(&#8216;&lt;img\/&gt;&#8217;, {&#8216;src&#8217;: e.url} ); \/\/ generate image this.img.appendTo(&#8216;body&#8217;); \/\/ add to DOM this.img.load(function(self){return function(){ \/\/ when loaded call functionconsole.log(self.img.attr(&#8216;src&#8217;));console.log(self.img.attr(&#8216;wi<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a2d818d801ce38a33807f68fdd92043a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBoltClock<br \/>\ncss css-selectors<br \/>\nI would like to know how to select first-child in actual scope, let me give you an example so you could understand my question correctly:HTML:&lt;div class=&#8221;comment commentCompany&#8221;&gt;&lt;div class=&#8221;commentTop&#8221;&gt;&lt;\/div&gt;&lt;div class=&#8221;commentMiddle&#8221;&gt;Text of comment level two comment.&lt;div class=&#8221;comment&#8221;&gt;&lt;div class=&#8221;commentTop&#8221;&gt;&lt;\/div&gt;&lt;div class=&#8221;commentMiddle&#8221;&gt;Text of comment level three.&lt;\/div&gt;&lt;div class=&#8221;commentBottom&#8221;&gt;&lt;\/div&gt; &lt;\/div&gt;&lt;\/di<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/nx79C.png?s=32&amp;g=1\" \/><br \/>\nSuhosin Pony<br \/>\nphp html css internet-explorer menu<br \/>\nI have two problems. I tried visiting my website on Internet Explorer and i saw that everything is messed up. What should i do? In chrome i can visit the site normally.The second problem is that the menu with the navigation buttons is not stable. If i visit the site from other browsers or from other computers the menu margins from the HEADER IMAGE are not the same! What should I do about it ? I tried everything and nothing..Here is the site : http:\/\/aasiskos.webpages.auth.gr\/1905_YPA\/index.php &#8220;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/FN0lM.jpg?s=32&amp;g=1\" \/><br \/>\nPeterVR<br \/>\ncss<br \/>\nThis is my code for the two buttons:HTML:&lt;div clas=&#8221;buttons&#8221;&gt; &lt;a class=&#8221;btn1&#8243; href=&#8221;#&#8221;&gt;Ture&lt;\/a&gt; &lt;a class=&#8221;btn2&#8243; href=&#8221;#&#8221;&gt;False&lt;\/a&gt; &lt;\/div&gt;CSS:.btn1 { margin-bottom: 30px; margin-left: 150px; } .btn2 { margin-right: 150px; }However, &#8220;the margin-bottom:30px&#8221; attribute simply doesn&#8217;t work. It failed to position the button vertically. Even more weirdly, the &#8220;margin-right: 150px;&#8221; attribute doesn&#8217;t work for my btn2, and the two buttons are still adjoin to each other<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>waiwai933 php exception exception-handling throw I&#8217;m trying to use exceptions in PHP as a way of avoiding multiple if-then-else blocks. However, when I try to catch the exception, I get the error Parse error: syntax error, unexpected T_CATCH in \/directory\/functions.php on line 66. Am I doing something wrong with my throwing and catching?function doThis($sSchool, $sDivision, [&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-3142","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3142","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=3142"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3142\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}