Tagged Questions
-1
votes
3answers
49 views
Hide Links in Source code
I want to hide file links generated by php function in source code. I know its impossible to hide source code but i think there should be a way to hide php generated links in php code.
Here is the ...
0
votes
0answers
15 views
Auto Show number for ammount of new chat messages
I have a link to my chat on my menu and I would like a number in brackets to show when a new message is posted or at the very least an explanation mark (!). When user 1 send a message it automatically ...
0
votes
0answers
7 views
Clientside validation in YII on button(not submit) click or while filling forms
Actually am new to YII, I have a page with Form and JQGrid. whenever the user clicks ADD button, Forms values should be added a row in JQGrid. This functionality I did. But I want to validate the form ...
1
vote
2answers
27 views
How to send id of a retrieved value in drop down list from database to a php file?
peace be with you all, I am retrieving some values from database and displaying in a drop down list using ajax and php.After selecting a field from drop down list(i.e. one of $row['course_codes']) I ...
0
votes
0answers
11 views
Orientation: Shop + Login
I'm not sure if this question should be here, if not feel free any admin to delete it.
I'm trying to do a shop with user login for my university project, here it's my plan:
Database tables:
...
1
vote
3answers
37 views
Jquery not getting the selected value from dropdown
I am trying to get the value of selected drop down,the selected value to store in database but it not takeing the selected value below is my code can one guide how to do it.thanks
Updated
...
0
votes
1answer
13 views
Combining checking box to activate text field and limited number of allowed checked boxes
I've combined two scripts on my page. The first one (http://htmlgoodies.com/tutorials/forms/article.php/3479181) makes sure that the user can only check 2 checkboxes in total. The second one forces ...
0
votes
1answer
15 views
Fetch post data from dynamically generated inputs
I'm using javascript to generate input fields in a form. The form looks as follows:
<form action="page.php" method="post">
<input type="text" name="team_name" value="" />
...
0
votes
0answers
30 views
How to use PHP yield with Ajax
I have a php function which uses yield to return values:
public function readAll() {
$result = $conn->query('SELECT * from tweet_location');
...
0
votes
1answer
19 views
Calling Model from Collection
Collection
define([
'jquery',
'underscore',
'backbone'
], function($, _, Backbone){
console.log("Loaded");
var Jobs = Backbone.Collection.extend({
url: function () {
...
-1
votes
4answers
26 views
Returning a json array using AJAX
Here's the javascript:
var data = $('form#registration-form').serialize();
$.post(
'<?php echo $this->url('/register', 'do_register')?>',
function(data) {
alert(data);
},
'json'
);
And ...
0
votes
1answer
20 views
AJAX Transferring page PHP
This is the structure I have:
A router.php, based on $_POST['c'] generates the controller file name, includes the file and calls the $_POST['a'] method of it.
I have a gridview. The only way to open ...
-3
votes
0answers
11 views
Joomla admin panel is all blank and white without any reason
I've migrated my localy installed joomla 3 to an IIS webserver, the site is showing up and works well, but the problem is about the backend, when I typed in www.domain.com/administrator it just shows ...
-2
votes
1answer
22 views
How to get a Visiting Users IP, ISP, Country, and City with JavaScript Or PHP?
How would you get a remote users IP, ISP, Country, and City with PHP or JavaScript
I know the way to get the IP address with PHP is $_SERVER['REMOTE_ADDR']; , But is there a way to do this with ...
0
votes
1answer
15 views
backbone JS Model / Collection (Retrieving Checked Box Ticked Value)
I currently have a list of item that is being loaded based on URL from collection.
Now i need to filter this list of item , currently the items are being populated manually hardcoded in ...
0
votes
2answers
25 views
Php, get the values from a text box to the next page
I am relatively new to PHP Mysql, I am struck on this problem, My problem is I have a from with two textboxes (name, sal) and i got the values from mysql. Now I am making changes in the sal text box, ...
-2
votes
1answer
26 views
how to get form fields in specific language?
How to force user/form to fills/gets some input fields with "none-en" language and some "en" language?
like this:
name & Family inputs only accept "Fa" Characters.
username & password inputs ...
0
votes
1answer
8 views
“substr” value of TinyMCE in php, HTML tags stripping. Design get distorted due to substring shown in grid
Whenever a html content entered from TinyMCE or other editor, shown in grid with short content, the design get distorted due to or etc. as applied substr($strin, 0, 100).
for example:
$str = ...
-1
votes
0answers
23 views
Single text or variable from Webpage to Android
Very simple. Problem is... Stackoverflow.com is full of "copy & paste" loser(developers) so they have the most specific non-relating questions as possible. I don't wanna download an entire page ...
-4
votes
1answer
17 views
yii how do usercreate function work and save [on hold]
want to create a new function like
call sql query from yii mvc how can it work and run.
$sql='select account from invoice';
return Yii::app()->db->createCommand($sql)->execute();
0
votes
0answers
17 views
PHP Alternative to Node.js/Socket.io [on hold]
I'm looking to build a variety of web apps that would have users' machines in constant communication with each other, and my understanding is that in terms of hardware performance a Node.js ...
0
votes
1answer
33 views
Can't get JSON array
I'm trying to get a JSON array that I return in a php page.
I have a script that is called onload of a document and the script has the following code:
function parses() {
alert("sdas");
$.ajax({
...
0
votes
1answer
24 views
Firefox not recognising json array returned, chrome does
I'm making a query to the database and the query is successfull. I create an array where I put the values of the result of the query and then I return the json_encode of the array.
$i=0;
...
1
vote
3answers
35 views
AJAX $.ajax() and setInterval() only loading when someone is on page?
I wrote the code below to refresh or reload the page to a div id='bitcoin_blocks_table' and it only does so when someone is on the site.
If nobody is on the site and I come back in 2 hours it didn't ...
0
votes
3answers
48 views
Reload a div on AJAX request
I want to send an ajax request and reload the div from which it came. As of current I am getting the proper request but it isn't reloading the div - it just makes it blank (nothing there). And I have ...
0
votes
1answer
15 views
Ajax with deeplink
I want to understand the following concept based on server side data and javascript and I'm interested how they do that. I search for a while a tutorial to get some start-up in this issue but did not ...
0
votes
1answer
20 views
Changing database values in an HTML table
I have written a control panel for managing devices, however as we have imported hundreds of them, there are a lot of values that need to be manually set. I have an overview page that shows the most ...
3
votes
1answer
47 views
Strange javascript issue with Google Chrome browser
Basic idea is: The page gets ajax content from server based on Y or N press of user. I'm testing this PHP+JS based web application on Chrome V.31.0.1650.57 m browser. I decided to test this ...
-1
votes
0answers
10 views
Disqus facebook/twitter integration
I have a website, that allows login with Twiiter and Facebook. I am trying to integrate Disqus to my wesbite. However, when I do so, I have to login again with Disqus to comment. Can't I login with ...
-1
votes
0answers
9 views
Ckeditor Tabs plugin [on hold]
I`m searching for plugin for Ckeditor that's allow to me to add tabs somthing like this
is there any plugin like this ?
0
votes
0answers
27 views
GET inner Div textvalue with same id
I did a form on wich you can click a + button and add clones... The div inside has 3 elements - a span, a textbox and the button.
I clone like this:
<script>
var actorcount = ...
-1
votes
0answers
11 views
$.ajax or $.ajaxForm which is the best?
I am programming a website, usually I am using $.ajax encrypting all the data in base64 and serielazing it.
I have to change the natural ajax call $.ajax with POST merthod to $.ajaxForm.
Usually I ...
0
votes
0answers
8 views
YQL query for getting email and username
I'm looking for a YQL query that retrieves all my friends email addresses and names.
What I found until now is the following query:
$query = sprintf("SELECT fields from social.contacts(0) WHERE ...
0
votes
2answers
20 views
Select2 -> Dynamic input returns as a string (jQuery
The format for my select 2 is as such:
$("#selectPretty").select2({
tokenSeparators: [","],
tags:["1", "2", "3", "php", "tiger", "test", "big bang theory", "bikes", "gh", "sd", "cheese", ...
0
votes
1answer
26 views
Wait for ajax call in another js file
I have two js files. These are the simplified version (there is a lot of code actually)
ucyg.js
This file is included in a page ucyg.php - this page is loaded into my index.php with an Ajax ...
0
votes
3answers
29 views
Popup WIndow and PHP form
I've created a contact page and a separate PHP page to receive the posted data. I'd like to make the PHP open in a popup window. I've tried methods online without any success, I can make the popup ...
0
votes
0answers
14 views
How to resolve and call js from a Bootstrap into Wordpress conversion?
I'm converting a theme from bootstrap into WordPress. There are some difficulties in doing so. First off, some of the scripts are loaded in the head, while others are loaded in the footer. Secondly, ...
0
votes
2answers
21 views
Pass an ID To Twitter Bootstrap Model
I am trying to pass an id to a twitter bootstrap model for a delete confirmation (basic CRUD page) and for the life of me I cant get this working. Looked at several examples still unable to get to ...
0
votes
1answer
23 views
backbone Scroll Events not firing
define([
'jquery',
'underscore',
'backbone',
'collections/jobs',
'text!templates/jobs/list.html'
], function($, _, Backbone, JobCollection, JobListTemplate){
var JobWidget = ...
0
votes
3answers
52 views
Server side generated javascript array throws unterminated string literal
This Is how I generate it in back end:
$scr = '';
forech(){
$scr .= ...
0
votes
0answers
12 views
Periodic Request to script PHP, from a Client in Javascript
Hello development masters,
I have the following problem, i development a script php for httprequest from a client in javascript, the request is done every two seconds.
the problems is after several ...
0
votes
0answers
6 views
Uploading an audio file obtained via getUserMedia() and Javascript to a server using PHP
I have pieced together a Javascript audio recorder that grabs the user microphone via getUserMedia and records and outputs a .OGG file for download. Note this only works in Firefox, which is fine for ...
0
votes
3answers
39 views
Getting form value from PHP in JQuery
I want to get a form input value from a php file to a javascript one, like this:
PHP file:
<html>
<head>
<meta charset = "UTF-8">
<title> Search Customer by Field ...
0
votes
0answers
23 views
The source of hash bang urls [duplicate]
I've seen many sites that have 'HashBang' or 'shebang' URLs, they're pretty nice, for example, the link would be,
http://example.com/#!/home
and then, as soon as we click an anchor in navigation for ...
-2
votes
2answers
48 views
How to call PHP function from HTML button? [duplicate]
I have following php and html code:
<?php
function fun1()
{
//This function will update some column in database to 1
}
function fun2()
{
//This function will update some column in ...
0
votes
2answers
41 views
hex colors change depending of a select
I'm creating an background color editor in my web site. Basically I would do match certain colors depending on the color chosen by the user it-self.
For example, based on the color added... i would ...
0
votes
2answers
28 views
if select equals selected option show different select [on hold]
How could I do: if main select Value1 show First select box else if Value2 show Second select box and if Value3 show third select box
<select id="main">
<option ...
0
votes
2answers
31 views
How do i store JSON from a link to java script array?
Hi iam trying to store this JSON to my javascript array.Is there any way to that.am using following code and its not working at all.
my json JSON
...
-6
votes
0answers
19 views
Get DOM of external HTML/JavaScript using PHP [on hold]
I want to get the source code of a web page with PHP that contains page items that have been added with JavaScript. The usual solutions for this problem don't show changes added with JavaScript.
I ...
0
votes
3answers
48 views
sending ajax request on two pages?
i am trying to send ajax post request on two php pages which are 1. properties.php and 2. profile.php the code i am trying it sends ajax request on properties.php so how i can send the same post ...