189 Posted Topics

Member Avatar for SimonIoa

Hello i want to make a script in Ionic 3 to capture audio and video from device. index.html `<button ion button (click)="captureApp()" id="captureAudio">Capture Audio</button>` index.ts document.addEventListener("deviceready", onDeviceReady, false); function id(element) { return document.getElementById(element); } function onDeviceReady() { navigator.splashscreen.hide(); captureApp = new captureApp(); captureApp.run(); } function captureApp() { } captureApp.prototype = …

Member Avatar for SimonIoa
0
500
Member Avatar for SimonIoa

Hello i just started to use Ionic and i have some questions. First of all i downloaded an existing ionic project on GitHub to start. I do these commands and works fine. $ git clone https://github.com/srinivastamada/ionic-restful-authentication.git $ cd ionic-restful-authentication $ npm install $ ionic serve The project starts at localhost:8100 …

Member Avatar for SimonIoa
0
917
Member Avatar for SimonIoa

Hello i am getting these error node sass could not find a binding for your current environment windows 64-bit with unsupported runtime (59) when i am typing `ionic serve` on my command prompt does anyone knows how can i fix it?

Member Avatar for hericles
0
398
Member Avatar for SimonIoa

I tried to run an Ionic 3 project from existing files using not C++ but Apache/Cordova and i am getting these errors. Idid a Typescript project works fine. But Cordova won't run with Javascript? Severity Code Description Project File Line Suppression State Error TS2304 Build:Cannot find name 'object'. ionic2 C:\Users\Simon\AppData\Local\Microsoft\Windows\INetCookies\Desktop\Various …

Member Avatar for SimonIoa
0
1K
Member Avatar for SimonIoa

Hello i am getting an error on log about npm... Any suggestion? PATH=.\node_modules\.bin;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Web\External;%PATH%;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\cmd;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\bin "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Web\External\npm.CMD" install npm WARN deprecated babili@0.0.10: babili has been renamed to babel-minify. Please update to babel-minify npm WARN engine …

Member Avatar for SimonIoa
0
865
Member Avatar for SimonIoa

Hello how do you feel about Ionic 3 and Angular 4 frameworks? Are they compatible with Ios? Do i need to know Java to use them?

Member Avatar for hericles
0
462
Member Avatar for SimonIoa

Hello i have a problem. i use session for any user that logs In my website. I use the session user id as a variable to show the first page of my site when one presses my website url (www.mywebsite.com) so, if the session user id is empty then returns …

Member Avatar for SimonIoa
0
529
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
406
Member Avatar for SimonIoa

Hello i used to have a facebook invite script now, so when one presses the link it shows the user's friends to invite them. Now i am getting an error *Game Requests are only available to games. * What should i do?

Member Avatar for rproffitt
0
548
Member Avatar for SimonIoa

Hello, the functions are called in the XHR (status 200) but dont return anything as it should,. Even when i put an echo it doesnt return the echo. The path is correct example javascript function userDetails(uid,apiBaseUrl,baseUrl,public_username,msgID,groupID) { var encodedata=JSON.stringify({"uid": uid,"public_username":public_username,"msgID":msgID}); var url; url=apiBaseUrl+'api/publicUserDetailsTest'; ajaxPost(url,encodedata, function(data) { if(data) { some code.... …

Member Avatar for pty
0
282
Member Avatar for SimonIoa

Hello, i want to cache embedded urls -YouTube, Vimeo- photos and videos so that i could reduce bandwidth usage and server load for my website. How can i help my website to do that? I know that browsers cache information `https://en.wikipedia.org/wiki/Web_cache`. Is there something i can to do to make …

Member Avatar for cereal
0
374
Member Avatar for SimonIoa

Hello i have a problem. Locally (xampp local server) the image uploads just fine but it doesn't when i try it on my webiste. The GD library is activated. So thats not the issue. html <video id="player" width="480px" height="240px" autoplay></video> <button id="takeSnap" class="startbutton messageButton" style="display:none;">Take Snap</button> <div id="webcam"> <input type="hidden" …

Member Avatar for cereal
0
766
Member Avatar for SimonIoa

Hello i have a script that lets the user to take a photo and then upload it -this was the thread i created `https://www.daniweb.com/programming/web-development/threads/508651/how-to-open-camera-and-take-a-photo-script`But the photo returns in low res all blurry etc. I think this is the part i should change var context = snapshot.getContext('2d'); // Draw the video …

Member Avatar for rproffitt
0
163
Member Avatar for SimonIoa

Hello i want to implement a rich text editor for a <textarea> that my users are uploading text. I found some on google but most of them are very old - like 9 years ago. Has anyone in mind anything more recent? It has to submit the text and then …

Member Avatar for SimonIoa
0
3K
Member Avatar for SimonIoa

I have a script that opens a camera and takes a snap. I want it to be able to create an id of the photo and then store it. HTML <a href="javascript:void(0);" class="updateControl2" id="webcamButton" title="Open Camera"><span class="boxWebcam wallbutton">Open Camera</span></a><br /><br /><br /> <video id="player" controls autoplay></video> <div id="webcam"> <button id="takeSnap" …

Member Avatar for diafol
0
3K
Member Avatar for SimonIoa

Hello i want to create a horizontal menu divided equally in 4 same width parts. I don't want its width to change. Any ideas? Something like this https://jsfiddle.net/simonioa/t6vqqva2/ but not with <span> elements. Menu should have 4 colors horizontally but would not have to change acoording to html content. I …

Member Avatar for SimonIoa
0
288
Member Avatar for SimonIoa

Hello, i use a script that allows a user to take a photo. I use a Shockwave Flash Object (.swf) to open the camera and i don't want to do this. How can i do it by callin' the browser prompt that ask you to open the camera? This is …

Member Avatar for gentlemedia
0
1K
Member Avatar for Stefce

I want to ask another thing. Why the .swf file doesn't play online ? Locally plays as wanted. Its a Flash thing, right? I am trying to implement it to my existing code. Ι want to take the id of the photo taken so that i can pass it to …

Member Avatar for rproffitt
0
7K
Member Avatar for SimonIoa

I would like to implement a script to my website that allows my users to invite their friends on Facebook to visit my website. I made an app account on facebook, i use facebook login api runs ok. I used to have a script that opened a facebook frame on …

Member Avatar for SimonIoa
0
883
Member Avatar for SimonIoa

Hello i want to add some CSS3 filters on a background image but the effects take place on the text too not just the background image. Here is the css code <div style="color:whitesmoke; background-image:url(wall_icons/uploadMedia.png); background-size:contain;-webkit-filter:grayscale(1.7); filter: brightness(0.2); -webkit-filter: brightness(0.2); -moz-filter: brightness(0.2); -o-filter: brightness(0.2); -ms-filter: brightness(0.2); background-repeat:no-repeat"> <small style="font-size: 3vmin;">Text.Text.Text.Text.Text.Text.</small> </b> …

Member Avatar for diafol
0
3K
Member Avatar for SimonIoa

Hello i have a problem. It seems that the value of this this input `<input type="hidden" id="uploadUid" value="<?php echo $sessionUid;?>" name="update_uid">` in here `formData.append('uploadUid', uploadUid.value);` When i put an alert `alert(uploadUid.value);` on Firefox it returns just fine but on Chrome returns undefined Any guess why?

Member Avatar for SimonIoa
0
354
Member Avatar for SimonIoa

Hello i have a problem uploading a file in the local server on Chrome. Works fine on Firefox, it uploads as requested, saves to localserver and puts the values on the database as wanted. But it doesn't on Chrome. On the inspector i am getting this error `index.php:1 Uncaught (in …

Member Avatar for rproffitt
0
572
Member Avatar for SimonIoa

Hello i want a script that shows various text content in the foreground and closes witn an X and shows the original page. Any suggestions?

Member Avatar for SimonIoa
0
346
Member Avatar for SimonIoa

Hello i want to make a script that allows the user to record audio from his device mic and then store it as a .mp3 or .wav file on my database. Does anyone knows any tutorials or scripts? I found this one `http://stackoverflow.com/questions/16413063/html5-record-audio-to-file` but i dont know to make it …

Member Avatar for diafol
0
14K
Member Avatar for SimonIoa

Hello i made a search box and i want to make a link what will pass the search word that the user put in the search box. e.g. http://localhost/myproject/allSearches.php?searchword=aa **aa** is what the user put for search. Now i want to get that, sort it and return the data. I …

Member Avatar for SimonIoa
0
301
Member Avatar for SimonIoa

Hello i want to do a count from 1 to 30 (1,2,3,4,5,6,7,8,9 etc) with javascript I did this var i = 1; if(i<=30) { i++; } '<span>#'+i+'</span>' all good but the count starts from 0 not 1 as wanted

Member Avatar for SimonIoa
0
201
Member Avatar for SimonIoa

Does anyone know what is the correct image size for Facebook. I mean if it is below some certain pixels it doesnt show the og:image. You may see what i mean here https://www.rovespier.com/uploads/Untitled-111.png

Member Avatar for cereal
0
288
Member Avatar for SimonIoa

Hello i am getting an error TypeError: data is null i can't find the error. js <script> $(document).ready(function() { username='<?php echo $_GET['public_username']; ?>'; apiBaseUrl='<?php echo $base_url; ?>'; singleArtist(apiBaseUrl,username); }); function singleArtist(apiBaseUrl,username) { var html =''; var encodedata=JSON.stringify({"username":username}); var url=apiBaseUrl+'api/singleArtist'; ajaxPost(url,encodedata, function(data) { if(data.length) { $.each(data, function(i,data) { html += 'dddddd'; …

Member Avatar for SimonIoa
0
364
Member Avatar for SimonIoa

Hello. In my editor shows that there is a syxtax error in this function. Does anyone knows whats the syntax error? !function(i,t){var e=function(i,t,e){var s;return function(){function n(){e||i.apply(o,r),s=null}var o=this,r=arguments;s?clearTimeout(s):e&&i.apply(o,r),s=setTimeout(n,t||150)}};jQuery.fn[t]=function(i){return i?this.bind("resize",e(i)):this.trigger(t)}}(jQuery,"smartresize"),function(i){i.Gal=function(t,e){this.element=i(e),this._init(t)},i.Gal.settings={selector:".item",width:225,gutter:20,animate:!1,animationOptions:{speed:200,duration:300,effect:"fadeInOnAppear",queue:!0,complete:function(){}}},i.Gal.prototype={_init:function(t){var e=this;this.name=this._setName(5),this.gridArr=[],this.gridArrAppend=[],this.gridArrPrepend=[],this.setArr=!1,this.setGrid=!1,this.setOptions,this.cols=0,this.itemCount=0,this.prependCount=0,this.isPrepending=!1,this.appendCount=0,this.resetCount=!0,this.ifCallback=!0,this.box=this.element,this.options=i.extend(!0,{},i.Gal.settings,t),this.gridArr=i.makeArray(this.box.find(this.options.selector)),this.isResizing=!1,this.w=0,this.boxArr=[],this._setCols(),this._renderGrid("append"),i(this.box).addClass("gridalicious"),i(window).smartresize(function(){e.resize()})},_setName:function(i,t){return t=t?t:"",i?this._setName(--i,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz".charAt(Math.floor(60*Math.random()))+t):t},_setCols:function(){this.cols=Math.floor(this.box.width()/this.options.width),this.cols<1&&(this.cols=1),diff=(this.box.width()-this.cols*this.options.width-this.options.gutter)/this.cols,w=(this.options.width+diff)/this.box.width()*100,this.w=w;for(var t=0;t<this.cols;t++){var e=i("<div></div>").addClass("galcolumn").attr("id","item"+t+this.name).css({width:w+"%",paddingLeft:this.options.gutter,paddingBottom:this.options.gutter,"float":"left","-webkit-box-sizing":"border-box","-moz-box-sizing":"border-box","-o-box-sizing":"border-box","box-sizing":"border-box"});this.box.append(e)}this.box.find(i("#clear"+this.name)).remove();var s=i("<div></div>").css({clear:"both",height:"0",width:"0",display:"block"}).attr("id","clear"+this.name);this.box.append(s)},_renderGrid:function(t,e,s,n){var o=[],r=[],a=0,h=(this.prependCount,this.appendCount),d=this.options.gutter,p=this.cols,c=this.name;i(".galcolumn").width();e?(r=e,"append"==t&&(h+=s,a=this.appendCount),"prepend"==t&&(this.isPrepending=!0,a=Math.round(s%p),0>=a&&(a=p)),"renderAfterPrepend"==t&&(h+=s,a=s)):(r=this.gridArr,h=i(this.gridArr).size()),i.each(r,function(e,s){var n=i(s),r="100%";n.hasClass("not-responsive")&&(r="auto"),n.css({marginBottom:d,zoom:"1",filter:"alpha(opacity=0)",opacity:"0"}).find("img, object, embed, iframe").css({width:r,height:"auto",display:"block","margin-left":"auto","margin-right":"auto"}),"prepend"==t?(a--,i("#item"+a+c).prepend(n),o.push(n),0==a&&(a=p)):(i("#item"+a+c).append(n),o.push(n),a++,a>=p&&(a=0),h>=p&&(h-=p))}),this.appendCount=h,this.itemCount=a,"append"==t||"prepend"==t?("prepend"==t&&this._updateAfterPrepend(this.gridArr,r),this._renderItem(o),this.isPrepending=!1):this._renderItem(this.gridArr)},_collectItems:function(){var t=[];return i(this.box).find(this.options.selector).each(function(e){t.push(i(this))}),t},_renderItem:function(t){var e=this.options.animationOptions.speed,s=this.options.animationOptions.effect,n=this.options.animationOptions.duration,o=this.options.animationOptions.queue,r=this.options.animate,a=this.options.animationOptions.complete,h=0,d=0;r!==!0||this.isResizing?(i.each(t,function(t,e){i(e).css({opacity:"1",filter:"alpha(opacity=1)"})}),this.ifCallback&&a.call(t)):(o===!0&&"fadeInOnAppear"==s?(this.isPrepending&&t.reverse(),i.each(t,function(s,o){setTimeout(function(){i(o).animate({opacity:"1.0"},n),d++,d==t.length&&a.call(void 0,t)},h*e),h++})):o===!1&&"fadeInOnAppear"==s&&(this.isPrepending&&t.reverse(),i.each(t,function(e,s){i(s).animate({opacity:"1.0"},n),d++,d==t.length&&this.ifCallback&&a.call(void 0,t)})),o!==!0||s||i.each(t,function(e,s){i(s).css({opacity:"1",filter:"alpha(opacity=1)"}),d++,d==t.length&&this.ifCallback&&a.call(void 0,t)}))},_updateAfterPrepend:function(t,e){var s=this.gridArr;i.each(e,function(i,t){s.unshift(t)}),this.gridArr=s},resize:function(){this.box.find(i(".galcolumn")).remove(),this._setCols(),this.ifCallback=!1,this.isResizing=!0,this._renderGrid("append"),this.ifCallback=!0,this.isResizing=!1},append:function(t){var e=this.gridArr,s=this.gridArrPrepend;i.each(t,function(i,t){e.push(t),s.push(t)}),this._renderGrid("append",t,i(t).size())},prepend:function(t){this.ifCallback=!1,this._renderGrid("prepend",t,i(t).size()),this.ifCallback=!0}},i.fn.gridalicious=function(t,e){return"string"==typeof t?this.each(function(){var s=i.data(this,"gridalicious");s[t].apply(s,[e])}):this.each(function(){i.data(this,"gridalicious",new i.Gal(t,this))}),this}}(jQuery);

Member Avatar for SimonIoa
-1
417
Member Avatar for SimonIoa

Hello i want to make a statement that increases a row on a table on MySql every time one visits the page. The $_GET['ID'] its ok dont waste your time with that. This is the statement require 'config.php'; $db = getDB(); $ID=$_GET['ID'] ; mysqli_query($db, "UPDATE table SET count = count …

Member Avatar for cereal
0
238
Member Avatar for SimonIoa

Hello, i want to put a Share Button with og:title, description and photo of the post. Also i want to make a invite your friends from facebook script. What item permissions do i need to submit on my developer app page to make them work?

Member Avatar for SimonIoa
0
456
Member Avatar for SimonIoa

Hello i have a problem with the facebook oauth login. I am getting `The parameter app_id is required` error but i know i put the app id and app secret any hints?

Member Avatar for Dani
0
582
Member Avatar for SimonIoa

Hello. I am getting an error on my console `TypeError: a is null jquery.min.js (line 2, column 2722)` that causes the page not to load correctly. Has anyone had the same problem.? could it be a conflict error? i use this version /*! jQuery v2.1.1 | (c) 2005, 2014 jQuery …

Member Avatar for Dani
0
254
Member Avatar for SimonIoa

I want to make a script that changes pictures depending on the type . I am getting a error on Sql but i dont know what i am doing wrong this is the script function Pic($profilePic) { if($profilePic) { $profile_pic=BASE_URL.UPLOAD_PATH.$profilePic; } else { $sql = "SELECT type FROM messages WHERE …

Member Avatar for cereal
0
452
Member Avatar for SimonIoa

Hello i want to pass a value with the id #allcountries. `html += '<option style="width:90%"><a href="'+v.country_id+'">'+v.nam+'' +'</a></option>';` `<div id="allcountries"></div>` `alert($("#allcountries"));` when i select a country it returns [object Object] on the alert when it should return the id of the country

Member Avatar for SimonIoa
0
343
Member Avatar for SimonIoa

Hello i want to sort the returning data from my MySql database. i want to sort them by their type (1,2,3) This is what i ve done so far. PHP works fine returns all records $somevariable represents the AND to sort the records function all() { $type = $data->type; if($type …

Member Avatar for Bachu
0
292
Member Avatar for SimonIoa

i have a project that uses third party websites, urls and images and i am getting about 10.000 ERRORS on the console errors like: dmp.214...e1b7.js (γραμμή 3) SoundCloud Embed Player (api-web) widget-...d738.js (γραμμή 5) Exception: Error: Permission denied to access property "href" widget-...d738.js (γραμμή 5) Object { resource_id="f-2", attributes={...}, _escapedAttributes={...}, …

Member Avatar for ryantroop
0
306
Member Avatar for SimonIoa

Hello i want to return data using jquery like this function countries() { var html=''; var j=''; var encodedata=JSON.stringify({}); var url=apiBaseUrl+'api/countries'; ajaxPost(url,encodedata, function(data) { if(data.countries.length) { $.each(data.countries, function(i,data) { html= '<div class="panel panel-default">'+ '<div class="panel-heading">'+'<a href="'+data.country_id+'" class="feed-author" target="_blank">'+data.name+'</a>'+'</div>'+'</div>'; }); } }); } and this is php function countries() { try …

Member Avatar for diafol
0
244
Member Avatar for SimonIoa

Hello i am trying to put a value into a field on a table in my database. The value changes accordingly so the type of the column is ENUM ('P','A','T') but everything i do the value tha is been inserted is 'P'. this is the html `<input type="hidden" id="type" name="type" …

Member Avatar for SimonIoa
0
348
Member Avatar for SimonIoa

I get this error when ever i try to upload a file. Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0 Does anybody knows what …

Member Avatar for SimonIoa
0
3K
Member Avatar for SimonIoa

hello i want to upload an audio file. i specified the location but the file doesnt go there. it stores the path in the row in the table on database but it doesnt store the file on the folder. i define the upload path on my config file define("UPLOAD_PATH_AUDIO", "uploads_audio/"); …

Member Avatar for diafol
0
949
Member Avatar for SimonIoa

Hello i am not familiar with returning HTML in Javascript code. I have this code. I want to return an audio player but nothing returns. var uploadImageHTMLTitle='<audio controls preload="metadata" id="'+data.msg_id+'">'; var uploadImageHTMLFooter='</audio>'; var uploadImageHTML=''; var C=''; if(data.uploadPaths.length) { if(data.uploadPaths.length > 1) { uploadImageHTML+=uploadImageHTMLTitle; for(var i=0; i<data.uploadPaths.length; i++) { C='<source src="'+data.uploadPaths[i]+'" …

Member Avatar for SimonIoa
0
310
Member Avatar for SimonIoa

Hello this is going to be a long post so thanks in advance for just reading it. I think it will help many users. I want to store additional data and to add new rows to a table. I know about mysql and php but i am not familiar with …

Member Avatar for SimonIoa
0
382
Member Avatar for SimonIoa

Hello i have a problem when a user tries to login with his facebook account on my website... i am getting this error 'URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on …

Member Avatar for SimonIoa
0
414
Member Avatar for SimonIoa

Hello i want my website to be responsive i have made media querries for several devices. There is one thing i cant understand on my mobile phone that says analysis 720X1280 and its 5.0 inch sreeen phone here are the media querries. <style type="text/css"> .box { width:80% } .block { …

Member Avatar for gentlemedia
0
454
Member Avatar for SimonIoa

Hello the same issue has troubled me in the past. I have a autocomplete script that the user chooses people to send them something. I use to store multiple values in one row. That is the id of the selected people that the user chooses. Thats not the proper thing …

Member Avatar for SimonIoa
0
249
Member Avatar for SimonIoa

Hello i want to create a script like this `$query=mysqli_query($this->db,"SELECT * FROM table WHERE to_user_id='$uid' ORDER BY id DESC")or die(mysqli_error($this->db));` but the to_user_id row has multiple values. (45,67,234) Lets say that one of them (45) is the $uid note: the $uid variable is called on a session file. Its the …

Member Avatar for diafol
0
215
Member Avatar for SimonIoa

Hello i have a problem with my script for uploading a photo. The name it is stored in the database (123.jpg) but the photo doesnt go to folder i ask it to go Here is my script <form id="imageform" method="post" enctype="multipart/form-data" action='<?php echo $base_url; ?>press_image_ajax.php'> <span id='addphoto'><?php echo $lang['AddAPicture'];?>:</span> <input …

Member Avatar for diafol
0
114
Member Avatar for SimonIoa

Hello i am getting an error that says *Mixed Content: The page at 'https://www.rovespier.com/login.php' was loaded over HTTPS, but requested an insecure script 'http://malsup.github.io/jquery.form.js'. This request has been blocked; the content must be served over HTTPS.* but the `malsup.github.io/jquery.form.js` file that i am calling i call it with https like …

Member Avatar for SimonIoa
0
748
Member Avatar for SimonIoa

Hello i want to retrieve only one row from an mysqli statement. The catch is that i use the `$row=mysqli_fetch_array` in a `while()` to loop the data. But i need a row to run as variable before the while begins This is what i mean $query=mysqli_query($db,"SELECT a_id,a_title,a_desc,a_url,a_img,a_uid,a_times FROM table WHERE …

Member Avatar for SimonIoa
0
651

The End.