2,530 Topics

Member Avatar for
Member Avatar for patk570

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 …

Member Avatar for patk570
0
5K
Member Avatar for rjusman90

> 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"; ?> > …

0
173
Member Avatar for Sammy_1

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 …

Member Avatar for Rupsena
0
11K
Member Avatar for Dawud_1

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

Member Avatar for rproffitt
-1
237
Member Avatar for FOYSAL_1
Member Avatar for nam_6
0
240
Member Avatar for davy_yg

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: …

Member Avatar for davy_yg
0
394
Member Avatar for Hamsterking

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 …

Member Avatar for Hamsterking
0
8K
Member Avatar for Xytheron

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 != '') { …

Member Avatar for Max_21
0
290
Member Avatar for Mohammed_44

//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 …

Member Avatar for network18
0
375
Member Avatar for borgyborg

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 …

Member Avatar for diafol
0
3K
Member Avatar for Ivan_17

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.

Member Avatar for Ivan_17
0
436
Member Avatar for Hamsterking

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 …

Member Avatar for diafol
0
372
Member Avatar for yann.bohbot.9

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 …

Member Avatar for diafol
0
141
Member Avatar for diafol

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 …

Member Avatar for diafol
1
406
Member Avatar for gentlemedia

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 …

Member Avatar for gentlemedia
1
295
Member Avatar for skullscript

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 …

Member Avatar for skullscript
0
338
Member Avatar for dwlamb

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 …

Member Avatar for RobinR
0
489
Member Avatar for RainaAnja

Something like: var loadUrl1 = '@Url.Action("Index", "Versus")?matchId=' + MatchID; How to pass these dynamic values using Url.action()?

Member Avatar for RainaAnja
0
166
Member Avatar for Irtaza Ijaz

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 …

0
209
Member Avatar for RainaAnja

<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: …

Member Avatar for diafol
0
377
Member Avatar for SimonIoa

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 …

Member Avatar for diafol
0
402
Member Avatar for Mugiwara

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 …

Member Avatar for rproffitt
0
466
Member Avatar for seularts

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 …

Member Avatar for Haji Sameon
0
2K
Member Avatar for seularts

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: …

0
395
Member Avatar for Jon_7

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 …

Member Avatar for pdsubbu
0
392
Member Avatar for hrushi9

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 …

Member Avatar for pdsubbu
0
310
Member Avatar for dsimonovski1

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 …

0
378
Member Avatar for durga_4

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 …

Member Avatar for rproffitt
0
342
Member Avatar for ramabahama

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 …

Member Avatar for Damhart
0
275
Member Avatar for Carole_3

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 …

Member Avatar for essential
0
3K

The End.