0
votes
0answers
10 views

Json Format Issue with response

I am trying to work with the bootstrap typeahead plugin but I need to get my JSON to output correctly. Per the last example on this page it appears you can use more than just a key->value in the JSON ...
-2
votes
2answers
23 views

How to access sessions Info using javascript

I want to access/get all the sessions of websites running in chrome using java-script. If i open some example.com , example's java-script gets all session info of websites running on browser and ...
0
votes
1answer
13 views

How do you get Javascript to see tinyint(1) data pulled via AJAX request as boolean?

I am having a problem and after hours of searching for answers and playing around with it I cannot get it to work. My problem. I have a MYSQL database. When I pull my "boolean" data from the database ...
-2
votes
2answers
29 views

How can I display javascript as php?

I have some code and basically I want to display it in php. Here is the code: <script> var useridisplay = GetQueryStringParams('user_id'); </script> Basically the code I want ...
0
votes
0answers
5 views

Qtip2 / Isotope Conflict in WordPress: “Uncaught TypeError: Cannot call method 'call' of undefined”

I'm having what appears to be a hard conflict between Jquery Isotope and Qtip2. When Isotope is loaded, qtip doesn't work, and when it SHOULD be activating, I get the JS error in my Chrome console: ...
0
votes
3answers
20 views

How to grab favicons and load them on my site from sites i am linking to?

Lets say I have 5 links on my site. (these 5 links are not like normal links on my site.) These 5 links are in list format. 1 on top of the other like so: Link 1 Link 2 Link 3 Link 4 Link 5 The ...
1
vote
0answers
29 views

Display .jpeg files from MySQL gathered with PHP form

Currently I am working on an html/php page that will display a random image and piece of text taken from a table with two VARCHAR(200) fields. The issue is that the script will not display files with ...
0
votes
1answer
15 views

Live Dynamic search of MySQL table using jquery and php

I am sure there are a number of articles covering this topic, but every piece of code I try just doesn't seem to work. If this has been answered somewhere else already, I am sorry that I could not ...
0
votes
2answers
15 views

Highcharts JSON, chart not displaying

I have some data I wish to display on a chart but it just shows the title and no points get drawn. The JSON data I receive is correct as per my knowledge, I think it's somewhere in the chart function ...
0
votes
1answer
26 views

javascript adding/deleting to/from text file

I'm trying to use jquery, ajax and PHP to add characters to a text file. The POST ajax call returns successful, but the PHP function is not executed. Does anyone see my error? Workaround? ...
-2
votes
3answers
35 views

Removing line breaks with PHP [duplicate]

I got a little problem here. The thing is that in my database I got a text, and then I print it onto the screen and the code goes like: <p>Text 1</p> <p>Text 2</p> Thats ...
0
votes
1answer
21 views

Formatting an RSS Feed Date and Time

I have an RSS Feed I used FeedRoll to create it an i am pulling it in via xslt into my site. My question is what formatting via javascript would I have to create to format my dates to not look like: ...
-2
votes
0answers
29 views

Contact form not working - JS/PHP [on hold]

Hello having some issues trying to get a contact form working on my website. The form seems to submit as it should (from my knowledge) but I don't receive an email afterwards with the submitted ...
0
votes
2answers
13 views

Google Maps API formatted_address

I am using php to convert latitude and longitude to an address in a WordPress custom field. It works how I want except I get the country at the end of the address (ex. 1234 1st st City State 90210 ...
1
vote
1answer
38 views

How to automatically hit download URL and download a file using javascript?

In WordPress there's a feature that exports your data into xml files. You can hit this URL with parameters and it will start downloading XML file. The cat parameter indicates the ID of the category ...
0
votes
1answer
48 views

How to send JavaScript array using AJAX to PHP?

I make a fucntion in html when I call function(click button) is to send array(json from) but it's not work, Help me to solve this a problem please! thank you everyone. :) html <? $arrs = ...
0
votes
1answer
16 views

php/mysql search results - filter result when type >1 while keeping results where other types not >1 - codeigniter

Apologies for the title, I'm still trying to work out how to explain this. I have a codeigniter web app that has a decent search function that nicely tabulates the results. Let's call it an airbnb ...
1
vote
1answer
13 views

Dynamically sorting the table along with other few selection criteria via javascript and php

I have two parts First part is building dynamic queries based on various inputs second part is sorting the result table ASC / DESC PHP part is well tested and working fine if( !empty( ...
0
votes
3answers
41 views

AJAX - Button Submit to update a form

I'm attempting to learn to make use of AJAX. I removed most of the complexity of the program to just isolate the problem I'm having. So I have a text area and beneath that a div that has "STATUS" ...
-8
votes
0answers
24 views

Molecule with JavaScript canvas? [on hold]

Molecule with JavaScript canvas Hi If I could get a piece of code introduced me to. So the molecular formula is received (for example h2o) and very easy to show.
1
vote
3answers
27 views

AJAX Multiple Forms With Same Submit/Click Function

I've got multiple forms (that are similar) that are passed using Ajax to appended a PHP page using this code below. However, when I click the first or second form, it only sends the data from the ...
0
votes
3answers
75 views

Shorthand when using || for comparison (==) rather than assignment (=)

I've seen lots of questions about the use of || in assignment expressions such as $a = $b || $c but I haven't come across this, so forgive me if it's a duplicate. Can you abbreviate a comparison ...
0
votes
2answers
38 views

PHP- How to make it so someone can't change parameters in url and dont run script again on refresh on a page?

I have a page where any user gets directed to after a payment was made, and in that page there is PHP code to send a confirmation email and some certain other tasks. So I don't want user to be able to ...
0
votes
0answers
37 views

Why does my code is executed after window location?

I wonder why my code is executed after I use window.location and how I can avoid it? <script type="text/javascript"> if(!confirm("question?")) { window.location = ...
0
votes
1answer
16 views

flot doesn't draw bars chart

I tried with my other two scripts(line chart and pie chart) but the flot doesn't draw the bars chart... can you help me with this...I think the error is in the javascript.. The library: <script ...
0
votes
1answer
23 views

When posting to a URL, Google Analytic's Event isn't firing

I am using a Cron-Job to search the database I have every 15 minutes for new users, the problem I am running into though, is when it finds any new users, it is supposed to use jQuery's GET function to ...
1
vote
1answer
46 views

Clean way to integrate JS into JS

My goal is to generate some JS from PHP. That is the content of my script.php so I can use later <script src="script.php?id=1&username=tom"></script> here is the content of ...
2
votes
1answer
6 views

Google column chart bug with the drawing in Web app

In my web app there is a google chart that uses dataTable(jsonObject) to draw the graphs and I have bugged data. Here is my code of calling the function : <script type="text/javascript" ...
0
votes
3answers
27 views

Javascript obfuscate AJAX code

First of all sorry if the name of the topic isn't the most correct. Imagine the following code which connects to a PHP file by AJAX. function get_locales(){ var the_locale = ...
-1
votes
0answers
61 views

if statement disabling my jquery function/button

I am a noobie and still stuck on this problem after hours of searching and trial and error. Any help would be greatly appreciated, as I am completely out of ideas. Thank you. I have a jquery comment ...
-1
votes
2answers
37 views

Best way to paginate query result without GET method PHP

What is the the best way to paginate mysql results without refresh the page? I'm using ajax to connect my html file to php. The php file has the query and i want to paginate the result. I'm ...
0
votes
2answers
23 views

Validating that all checkboxes are checked in form / Wordpress

I have the following that works great in jsfiddle: http://jsfiddle.net/cRKPt/ but when implemented here: http://tinyurl.com/kyttpue (within a wordpress page [view source to see coding/js]), it's not ...
-1
votes
3answers
51 views

Limit time user is allowed on website before forcing a login [on hold]

I'm not sure what language to use (php, Java or other) but I'll need to limit the amount of time a user is allowed to browse our website before forcing a login popup appears. Example: Unregistered ...
1
vote
1answer
22 views

Requiring a Password / Passphrase to view contents of category with Wordpress

I'm trying to set something up where when a user clicks on a category link within the navbar, it asks them for a password / passphrase to view that categories posts. I've done a lot of digging, and I ...
0
votes
0answers
20 views

Loading a wp_editor () via AJAX doesn't work correctly

I have a problem with loading a wp_editor via AJAX jQuery into post_type page. I have removed the classic wp_editor and I want add my wp_edtior via AJAX. Here is my code: // MY PHP CODE ...
0
votes
0answers
33 views

Getting null when decoding what it seems to be a JSON object

In the Firebug when a AJAX call is sent I see the response as JSON I'm trying to decode this JSON response with PHP $data = '[[10592,[[2778318,"Damash Gilan ...
0
votes
2answers
22 views

How to pass the data obtained from the PHP page on the server's local page in JS?

I have an HTML 5 page that you can use offline. When this page is online you should connect to a PHP page (the 'I've already done) with a login and receive response in 1 string and 2 integers. How to ...
-1
votes
0answers
5 views

Triconsole DatePicker Calendar - change displayed date programmatically from Javascript

Using Triconsole DatePicker calendar class, BEFORE creating a calendar instance, you can easily set its default date $myCalendar->setDate(1,1,2013); but once you have written the datePicker, ...
1
vote
2answers
45 views

AJAX update MYSQL database using function called from HTML generated from PHP

I have a php page generating and displaying a table. for the last row in the table i want to display an image with an 'onclick' function attached. this will send the username for the selected row to a ...
2
votes
1answer
19 views

SQL Generated select menu, updating textbox based on related value

Some Background information: I have a table with two fields, TECHNAME and TECHCOLOR What I am trying to do is: Have a SQL generated Drop down menu based on TECHNAME (DONE) Have TECHCOLOR update ...
1
vote
3answers
59 views

Passing JavaScript ID Value to PHP for download

I am pretty new to PHP but I am learning fast.. I have been trying to use AJAX to Pass An ID to PHP. With this ID I use SQL to get the path of a file from the database than use it to download the ...
-7
votes
0answers
42 views

How can I connect an PHP row to an image? [on hold]

For a school project I'm using PHP for the first time. The thing I want to make is a page with images on it, and when you click on an image it opens a new page with information from my database. Do I ...
0
votes
0answers
16 views

Attaching an Image as attachment in Outlook

I am working with a PHP web application, where I need to attach an image to outlook on a click of a button. Provided outlook is configured in the system, and is logged in. The image is coming from a ...
0
votes
2answers
36 views

Parse array with a array inside to PHP

I have array in my JS and I have to parse it to PHP: var transfer_data = { cl_name : $("#free_1_1_title").val(), contact_name : $("#free_1_1_name").val(), ...
0
votes
1answer
27 views

Fill an polygon with dynamic text and dynamic size

I have no clue, whether there is almost an solution for my problem nor if it is at all possible to do solve this. What I want to do: I have a picture of polygones. It's a abstract drawing of a ...
0
votes
1answer
22 views

Uncaught ReferenceError: FB is not defined

I know this question is asked frequently, but I have not found the solution. I use this code: open the html tag with <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#"> ...
1
vote
3answers
38 views

prev() is not working it seems

i have my code like this in one file... $d = new db(); class db { function fetchform() { global $wpdb; $content=''; $result = $wpdb->get_results("select * from ...
-5
votes
0answers
23 views

Adding a script to an Admin Template [on hold]

I recently bought a Admin Template form themeforest and I was wondering how to apply a script to get it working. Or what are the steps to make it work.
0
votes
0answers
35 views

How to customize JavaScript code to display 9 locations [on hold]

I have this JavaScript function in a .js file. I need to customize this code by using a loop to display 9 locations. The JavaScript file: function GetDateTime(plg) { switch (plg) { case ...
0
votes
3answers
79 views

JQuery class vs ID

I have a foreach loop here. For every item it prints, there is a comment section that is expandable/collapsable. The problem I have is, when I hit the "Expand All" for an item, it expands the ...

15 30 50 per page