2,530 Topics
| |
Hey everyone, this code below is giving me a weird error, Script 438: Object doesn't support property or method 'ajax'. I am testing this in Microsoft Edge, but...I have a website that uses this exact same code, and its working like normal. I am getting the `var id` to load … | |
> this is php code for get value while ($row = $activeRiders->fetch(PDO::FETCH_ASSOC)){ $rider_name = $row['RiderName']; $longitude = $row['CurrentLongitude']; $latitude = $row['CurrentLatitude']; $locations[]=array( $rider_name, $latitude, $longitude ); } $markers = json_encode( $locations ); > Jquery function $(document).ready(function() { $('#map').height($('.page-container').height()); $( window ).resize(function() { $('#map').height($('.page-container').height()); }); <?php echo "var markers=$markers;\n"; ?> > … | |
I am literary about to bleed...I have a single controller that will accept POST request from an external domain. Once the post data arrives (usually a number or a date), it returns json data. The problem is CORS error in firefoz and chrome. Only that controller is going to be … | |
Hey guys what do you think is the best website performance analysing tool available? Where can I get it? The site I'm looking to analyze : https://www.sellist.com | |
When click the map icon for loading the map, map show the error, Please solve the error | |
Hello, I wonder why I cannot hide pages with Jquery? home.blade.php <li> <input id="c10" type="checkbox"> <label for="c10"> <!-- <a href="#" @click.prevent="togglePage()"> --> <a href="{{ action('HomeController@getArticles') }}" id="hide"> @if($uri=="home/articles") <!-- <img src="{{url("")}}/images/button-10-hover.png"/> --> <div id="circle1"><div style="margin: -10px 0 0 0;"><img src="{{url("")}}/images/add/icons5-hover.png" width="30px" /></div></div> @else <!-- <img src="{{url("")}}/images/button-10.png"/> --> <div id="circle1"><div style="margin: … | |
hello, i'm having trouble with jquery navigator i don't think the problem is my code <script> $(document).ready(function(){ alert( "welcome"); alert("twice alert"); }); </script> in chrome i have this error: Uncaught SyntaxError: Unexpected token < in firefox i have this error : SyntaxError: expected expression, got '<' i looked on astackoverflow … | |
this code snippet works fine on its own but as soon as it's added to Magento it doesn't work. Anyone have any thoughts? <!-- Start Edits --> <script type="text/javascript" src="jquery.autocomplete.js"></script> <script type="text/javascript" > //<![CDATA[ var jQuery = jQuery.noConflict(); jQuery(document).ready(function() { jQuery("#antique_toys_materials").keyup(function() { var tag = jQuery(this).val(); if(tag != '') { … | |
//The php section of the code <?php function getJSONFromDB($sql){ $conn = mysqli_connect("localhost", "root", "","rent"); //echo $sql; $result = mysqli_query($conn, $sql)or die(mysqli_error()); $arr=array(); while($row = mysqli_fetch_assoc($result)) { $arr[]=$row; } return json_encode($arr); } $jsonData= getJSONFromDB("select Pic from Display"); $jsn=json_decode($jsonData); //for loop to retrieve rows from database for($i=0;$i<sizeof($jsn);$i++){ $a=$jsn[$i]->Pic; //here is the main … | |
newbie here! I am working with a simple PHP form with few fields and few uploads. I want to use the Modal pop up form for this. Below codes are working fine. I was able to insert the fields into MYSQL successfully but I don't know how to add file … | |
I use jQuery UI .droppable for dropping elements to divs. Now I need to prevent dropping to divs with class .box if they are not empty. if ($('.box').is(':empty')) { $(".box").droppable({ }); } But this makes all .box divs non-droppable whether they are empty or not. | |
hello danibe's friends i hope you all are doing well, i always had a question that i never asked so i would like my image to be full width not full screen just the width on any screen how can i do that without deforming the original image, have i … | |
Hi, I understand the fundamental of replacing from a <div> to a <button>. i am having trouble though adding an id to the replacement. example> say i have the following code: <div class="container"> <div class="inner first">Hello</div> <div class="inner second">And</div> <div class="inner third">Goodbye</div> </div> I am applying this jquery to replace … | |
| Hi all. Been fiddling with an idea about combining setters and getters in PHP. I really don't like magic methods (`__get` and `__set`) as they're not very flexible (IMO), but equally bore myself to distraction with set/get methods. Anyhow, having used jQuery for some time, I really liked the non-verbose … |
I'm using this snippet to calculate the sum of two table cells. var sum = 0; $('.amount').each(function(){ sum += parseFloat($(this).text()); }); $('.sum').text(sum); But when the sum is for example 40.00 it displays as 40 and as picky as I am, i want it to display as 40.00. So... what to … | |
Hi Everyone, I am having a strange problem on my webpage. I am getting this Black shade whenever i type or focus my cursor on a select or text field. the strange thing is its only happen on a specific page and not to the entire system that i am … | |
Is it possible to attach a jquery autocomplete input to a form initiated by ajax editing a table? I have the following method for making a table cell editable using AJAX. I.e., user clicks on the cell and it transforms to a mini form. Hit Enter and the changes are … | |
Something like: var loadUrl1 = '@Url.Action("Index", "Versus")?matchId=' + MatchID; How to pass these dynamic values using Url.action()? | |
I am following this **tutorial** to display **custom opacity control** in wordpress **default** color picker scheme, [Click Here](https://github.com/BraadMartin/components/tree/master/customizer/alpha-color-picker) i want my color picker looks like this, after adding opacity bar. ![dani.PNG](/attachments/large/4/735831d60c76788bcc1ce819a383ce49.PNG "align-center") I am using **twenteen seventeen theme** to display alpha color picker in the **apperence->customize->text**, but it is only … | |
<div class="list-group"> <div id="id1" class="list-group-item" data-target="@Url.Action("Index","DayilyProposials")" > <span class="badge" style="font-size:10px;color:#fff" id="DailyPropNumber">0</span> <span style="font-size:10px;font-weight: 900;font-weight: 900;">Daily Proposals</span> </div> <div id="id1" class="list-group-item" data-target="@Url.Action("HotG","home")"> <span class="badge" style="font-size:10px;color:#fff" id="HotGamesNumber">0</span> <span style="font-size:10px;font-weight: 900;">@index.Index.hotgames</span> </div> <div id="id1" class="list-group-item" data-target="@Url.Action("Index","home")"> <span class="badge"style="font-size:10px;color:#fff" id="TodayNumber">0</span> <span style="font-size:10px;font-weight: 900;">Today</span> </div> <div id="id1" class="list-group-item" data-target="@Url.Action("Index","home")"> <span class="badge" style="font-size:10px;color:#fff" id="ByTimeNumber">0</span> <span style="font-size:10px;font-weight: … | |
Hello i want to put a shorten text-*SeeMORE* function inside another function $(function() { var showTotalChar = 200, showChar = "Show (+)", hideChar = "Hide (-)"; $('.show').each(function() { var content = $(this).text(); if (content.length > showTotalChar) { var con = content.substr(0, showTotalChar); var hcon = content.substr(showTotalChar, content.length - showTotalChar); var … | |
I want to see the penalties updating, but it's only see after you click the return button and wait for one day again that it will show the penalty. <?php $user_query=mysqli_query($dbcon, "select * from borrow LEFT JOIN member ON borrow.member_id = member.member_id LEFT JOIN borrowdetails ON borrow.borrow_id = borrowdetails.borrow_id LEFT … | |
I have a straight forward form sprinkled with a bit of jQuery, but I have a small issue. When I hit Next button it goes to the next step without popping up the small field with "you have to complete this required field". How can I force the next button … | |
I tested over and over and it seems there is something conflicting between these 2 scripts: bootstrap toggle and jquery validator. If I remove data-toggle=" toggle" the checkbox is required for validation, otherwise it just passes regardless of being checked or not! <form id="regiration_form" action="action.php" method="post"> <h1></h1> <fieldset> <h2>Pasul 1: … | |
I'm not extremely great at coding, but I'd like to have players in my basketball program be able to copy and paste some code (on their phones) from a textarea. The catch is I also want the button to turn green and say the words "Copied! Now open the app … | |
Need help to add css transition effects to this https://jsfiddle.net/az9yt611/ floor item 1 is selected, when it changes to floor item 2 is selected add effect to its inner div's, i.e. Left & Right. Add cube **To Top** transition to **left div** & **To Bottom** to **right div**, on next … | |
I am using easyUI datagrid component and I'm trying to add bootstrap dropdown menu in a datagrid cell. The problem is when I click the dropdown button, the menu doesn't show. When moving the menu outside the cell, or remove the cell 'datagrid-cell' class, it works fine. No console errors … | |
I have site using php frame work codigniter where I am using the mattdiamond/Recorderjs to record an audio file in blob content type then i am uploading it to the server but it is taking top much time to upload I want to minimize my uploading time. Max size of … | |
I've been learning and experimenting with NodeJS, and the project I'm using is to port a homemade content management system (CMS) written using the Linux/Apache/MySQL/PHP combination. One of the areas I am trying to update is protecting against spam on a contact form. The NodeJS version is based upon Linux/Mongo/Nginx/Javascript … | |
Hello, I would like to share a page on facebook with a dynamic url. Here is the code to get the dynamic url. <?php $profie_url = $this->url(array("id" => $mRow->id, "url" => $this->urlify($mRow->first_name)) , "details") ."/" . $this->urlify(trim($mRow->subtitle)) . "/" . $this->urlify(trim($mRow->city_name)); ?> To use it I usually do: href="<?php echo … |
The End.