0
votes
4answers
31 views

Scrolling text JavaScript doesn't load variables

I have a scrolling text in JavaScript that has some variables in it. I get the variables through a PHP script and then print them on the scrolling text. The problem is (I think) that the script ...
0
votes
1answer
18 views

How to save google search query in database?

I want to save google search query in my database.For example a person type in google "cricket schedules 2013" and some other person search in google as "pakistan cricket schedules" if user came to my ...
0
votes
1answer
33 views

Where should I host php file for ajax call?

So I have a very simple request. I am trying to make a call using jQuery to a php file so that the file's response will be put into a "div". I know there are other posts but for some reason none of ...
0
votes
0answers
16 views

Pull data from SQL or Excell and cycle data on webpage

I've done countless hours of searching, and I can't seem to find anything remotely related on what I am trying to do. This is a work related project, so I can give the basic idea of what I'm trying to ...
0
votes
1answer
17 views

How to phonegap send a parameter ajax to php file

I have a problem about my project. I make it in two part: On host server by php and On mobile and I want to include all in one project. How should I do that? I want to send data to php by ajax and I ...
0
votes
2answers
29 views

Destroying a session when user closes tab or window

I want te destroy a session when the users close the tab or window without logging out properly. And I thought this might work: the javascript: $(window).on("beforeunload", function(){ ...
0
votes
2answers
28 views

Simple PHP to Ajax 'not logged in' error - how?

Currently I am using this to send success or failure to ajax: $response = array( 'success' => true ); wp_send_json_success($response); However, say the user is not logged in and I would like to ...
-4
votes
1answer
39 views

Logging out user on exit

i'm trying to logout a user when he exits the page. window.onbeforeunload = confirmLogOut; function confirmLogOut() { return "Are you sure?"; } But how do i run a function only if he ...
-1
votes
0answers
21 views

isolate a javascript array value and set as a PHP variable

After selecting a company from a select box an Ajax call is used to return an array containing information about that company from the PHP file, using: PHP FILE: echo json_encode($NameReturn); ...
0
votes
2answers
31 views

Redirect to another page from colorbox

I have a colorbox. I want to redirect to another page after validating some value using php. I have tried the below code if (isset($_POST['confirm'])) { echo "<script> ...
0
votes
0answers
8 views

Use a .java file for Triple DES and for creating checksum in a php file where data is recieved from a form

Guys i have this long php page.Here in this function generateToken($encrypted_data) { $token_id = "************"; $api_key = "*********wMBnTH"; // CC data to tokenize.. //Payload ...
-2
votes
1answer
29 views

How to use web browsers media player in PHP?

I've noticed that videos can be automatically streamed by chrome / firefox. If you open for example http://domain-foo.com/file.mp4 in chrome / firefox you can jump on their media player from one ...
2
votes
1answer
87 views

$_POST undefined, and defined at the same time?

Ok I am at a crossroad here. For some reason I have a page that Can both see a certain $_POST index and cannot see it. I am using a jquery script to load a div with the page here is my function. ...
0
votes
1answer
10 views

how to add live updating charts in yii with highchart

Am using Yii and Activehighcharts to show charts. http://www.yiiframework.com/extension/activehighcharts controller is as follows public function actionChartView(){ $dataProvider=new ...
-1
votes
1answer
24 views

jQuery Text editor plugin for PHP [on hold]

Basically I need a jQuery/javascript text editor that I can embed into my admin panel so that my users can type PHP/HTML/CSS/JavaScript code. Most importantly, it must automatically format and syntax ...
-1
votes
3answers
37 views

specific id is not passing to ajax

This is a part of my code, and when user clicks the button it retrieve the data from database regarding to id (ie i am not geting net_id) i am also getting an error TypeError: $(...).attr(...) is ...
-1
votes
1answer
37 views

Return result to a PHP variable from AJAX in a jQuery function

So this is the hardest thing I've ever tried to do, I cannot find any answers after 1 day of searching. Note that I am using some custom jQuery API and will explain what it does. The setup is a php ...
-3
votes
0answers
31 views

jQuery Price Calculator with send data [on hold]

Good evening, we have created step by step a page with jquery technology to calculate some things The page works fine, but what you can not manage to add a contact form to send the final data for ...
0
votes
1answer
29 views

PHP/Javascript - Check in JS if PHP file upload was successful

there. I have a page that makes a form containing file upload in a Bootstrap Modal. The submit of the form is made on Javascript and I need to get a message about the file upload to show to the user ...
-2
votes
4answers
44 views

Submission of form does not work in jQuery

Problem: Trying to automatically generate a form and submit it without user interference. Complete code: <?php session_start(); ?> <!DOCTYPE html> <html lang="en"> ...
0
votes
1answer
39 views

Understanding AJAX response

I have tried implementing ajax and reached till the php well and echoed the final output but i have problem in understanding the js code as i cant figure it out what should i write to get the code so ...
0
votes
1answer
7 views

I cannot get Slickgrid displaying mySql data

When I run this it just displays the html table. Where am I going wrong. I have tried quite a few examples with no success and have read as much as I could on the net in the last week. I think the php ...
1
vote
0answers
29 views

HTML based brochures/flyers

I am wondering if its possible to be able to create an html type brochure that can get printed or saved to pdf but the html template would have a few things that the user can alter such as adding ...
0
votes
1answer
38 views

Form Upload Ajax

Here is my question i have a combobox <select id='addOPTION' onchange='fillADDid(this.value);'> <option value=0>Select</option> <option value=1>etc</option> <option ...
0
votes
4answers
40 views

Back button to be disable after logout

I have placed below codeigniter code for controller and view.When a user logout the back button should not go to previous page.But i my case it moves to previous page.Pls help me to solve the issue. ...
3
votes
2answers
83 views

Encode JSON in PHP and submit with POST

Problem: I have a variable which is encoded in JSON and I'm stuck trying to figure out how this variable can be sent to a PHP page using jQuery/AJAX. This is what I have tried so far. The file is ...
0
votes
0answers
11 views

Netbeans 7.4 settings for javascript code within php

I just installed the new version of netbeans and code within "<script> </ script>" not well indented appearance as in previous versions. How could reconfigure it? A greeting. SOLVED: ...
0
votes
4answers
56 views

how to add text on an image

I loaded an image to my html page. I set its opacity to 0.5 using jquery css property. Now I want to write a text based sentence on the top of this image. I mean to say that the image I loaded I want ...
0
votes
1answer
24 views

X editable backend configuration

I try to use x-editable but i can't find a way to update my database with new data. In my index.php i have : <a href="#" id="username">superuser</a> and in main.js i have : ...
-1
votes
3answers
59 views

how to write javascript code within php

I have got a form, on clicking the submit button: <form> <h2 style="text-align: center">* * * PROJECTS * * *</h2> <br> <input type="button" name="submit" ...
0
votes
1answer
19 views

Storing Data in Model & Call from Collection & Fetch

Collection define([ 'jquery', 'underscore', 'backbone' ], function($, _, Backbone){ console.log("Loaded"); var Jobs = Backbone.Collection.extend({ url: function () { ...
4
votes
1answer
29 views

retrieve data from Wikipedia and show it using angularjs

I am new to angularjs. I am trying to get data from wikipedia and show it in the front end. I retrived the data from wiki using the following php code $url = ...
0
votes
2answers
42 views

Assign New Key values when array called [on hold]

Hello Everyone I am working on this from last 3 days. I have searched on Google but nothing yet positive. I am calling below file Onclick function and I want to assign new array keys every time i call ...
1
vote
2answers
32 views

send multidimensional array to php using ajax as json and receive html text to show in a div

First part is completed, The data is successfully sent to php using ajax as json (I did it by following an answer to an already posted question on this site). Now how to access these values in php, ...
0
votes
3answers
31 views

Getting multiple selected checkbox values in a string in javascript and PHP

I have location name and location Id in database table. Using foreach loop i'm printing the values in checkbox in PHP. I have a submit button which triggers a javascript. I want the user selected all ...
1
vote
1answer
51 views

How to find the current location(longitude and latitude) using Google Map?

I just want to ask how can I get the current latitude and longitude using Google Map? Because I am creating a Map Tool for adjusting maps in database. If there is a given latitude and longitude simply ...
0
votes
0answers
16 views

Create some Knowledge Maps like in khan academy [on hold]

i have some research about learning model that need some knowledge map in the program, i'd like to make some knowledge map like in khan academy site, that link a course to a course people said it is ...
-1
votes
0answers
12 views

php local-storage api or cookie alternative

Simple question: is there any php api which can manipulate local-storage? i need to send and receive data in same php run, without js implications, i know that local-storage need JS to work but if ...
-8
votes
0answers
35 views

Embed javascript into PHP [on hold]

I know there is a way to embed js into php by start and end code. Does somebody knows these tags? Kr Bas SOLUTION: +100 :-) <?php $yr = date("Y"); $js = <<<JS <script ...
0
votes
0answers
9 views

Windows store app xhr post does not work

I have this simple piece of code bellow in my app. I am trying to communicate with php file on localhost and simple return the same value as I send from app, but php keeps returning me nothing, but if ...
0
votes
0answers
19 views

Get data from MS ACCESS Database that is saved in a shared folder

I am creating an Employee Evaluation form using HTML/CSS. The Management team was asking if there's a way to add dynamic graphs or reports within the form. I understand it is possible but here's my ...
2
votes
5answers
62 views

Show an input text field as plain text

I want to have a sort of editable div like this: <div onClick="this.contentEditable='true';"> lorem ipsum dolor lorem ipsum dolorlorem ipsum dolor </div> But it has to be an input field ...
0
votes
2answers
15 views

Implementing Tinymce in my CodeIgniter app

So I'm creating a simple CMS for my own use. So obviously i want to use Tinymce for my text editing. Im trying to implement it in a simple view, but it return nothing. No errors in the console, but it ...
0
votes
1answer
18 views

Ajax Image Upload - Get tmpname

Iam trying to create Ajax-Image Upload. Inorder to move image using move_uploaded_file() i need the name and tmp_name. Is there any functions in javascript to get the filename and temporary file name ...
0
votes
3answers
50 views

How to pass parameter as POST data on selection of an Select Box value, which will reload the same page?

I had two chained Select Boxes "pr_cat" and "sl_num" . The second select box values depend on the value selected in the first select box. <tr> <td width="257">Select Product ...
0
votes
1answer
15 views

qTip has no method 'qtip' for dynamic content

I have this interface in my system. I assign class mailListBtn for all Successful-[] Failed-[] link. When then user click at Successful-[] Failed-[] it will call this js code ...
1
vote
1answer
20 views

How to change ajximage.php with script?

My question: I have a image whose source is a php page ajximage.php. And I have button which will change the image. How to do this? My code: function change_capcha() { $("#imgCaptcha").attr('src', ...
0
votes
2answers
39 views

How to Send and $_GET from Java Script to PHP?

I have made a Script sendsms.php which executes and sends SMS with HTTP API. I call sendsms.php with a Java script (Button) and get back results in a text input window. When I press my Java Button ...
0
votes
1answer
19 views

Make A Different Popup Window For Each ID Inside A Table

I need some help. I used echo to display the ID but after I click each ID, the popup window appeared and will display the same page for all ID. I want to display a different page for each ID. How can ...
0
votes
2answers
35 views

When working with an already made website, how do you know which file to edit to change something?

Let's say I'm building a website and using an already made Wordpress theme. Say it's a pretty complex theme and there's a lot of folders and files. If I wanted to change something specific, like text, ...

15 30 50 per page