Hi folks,
Strange issue, when Firebug is enabled (and only then) does my Javascript start making double GET request (AHAH) at what appears to be random.
The result of this double call is that the code returned from the server (PHP generated Google Map / Javascript) is spat out on screen.
This issue does not occur in any other browsers...
I know it goes against the REST architecture but, from a pragmatic viewpoint, what is wrong about using GET request method to remove data from a database?
Let's say I built an application that has an administration panel. In administration panel admins can remove items by accessing URIs like these:
/admin-panel/items-controller/remove-...
I have 100 inputs with name - table[].
How to get their value with jQuery,like $_POST['table'] ,as I do in PHP.
I tryed
Code:
$("input[name='table[]']").each(function()
{ document.write($(this).val()); });
but I want to get them as an array.
...
A situation I ran across this week: we have a jQuery Ajax call that goes back to the server to get data
$.ajax(
{
type: "POST",
contentType: "application/json; charset=utf-8",
url: fullMethodPath,
data: data,
dataType: "json",
success: function(response) {
successCallback(response);
},
error: erro...
I'm trying this code (on my local web server)
<?php
echo 'the word is / думата е '.$_GET['word'];
?>
but I get corrupted result when enter ?word=проба
the word is / думата е ����
The document is saved as 'UTF-8 without BOM' and headers are also UTF-8.
I have tried urlencode() and urldecode() but the effect was same.
When upload it ...
I'm having troubles with the following code:
<link type="text/css" href="http://jqueryui.com/latest/themes/base/jquery.ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="http://jqueryui.com/latest/jquery-1.4.2.js"></script>
<script type="text/javascript" src="http://jquery-ui.googlecode.com/svn/tags/1.8rc1/jqu...
I have a jQuery AJAX call with type:'GET' like this:
$.ajax({type:'GET',url:'/createUser',data:"userId=12345&userName=test",
success:function(data){
alert('successful');
}
});
In my console output is:
GET:http://sample.com/createUser?userId=12345&userName=test
params: userId 12345
userName test
In my script i ...
All my entities can not be deleted - only deactivated, so they don't appear in any read methods (SELECT ... WHERE active=TRUE).
Now I have some 1:M tables on this entities on which all CRUD operations can be executed.
What is more efficient or has better performance?
My first solution: To add to all CRUD operations:
UPDATE ... JOIN ...
I am trying to add filter functionality that sends a GET request to the same page to filter records in my table.
The problem I am having is that the textbox complains about null object reference when a parameter is not passed. For example, when the person first views the page the url is '/mycontroller/myaction/'. Then when they apply a...
I have a ftp task that takes files from a server looking for a especific file name generated with a expresion and its working fine. But, now i need to download every file in a specific folder no matter the name it has, but the ftp task ask me for a specific file name. How can i do this.
tnks.
...
Hi, i think this is a bit of a noob question, but here goes.
I am trying to get a better understanding $_GET variables in PHP. A lot of CMS's etc convert things like site.com/?ID=42 into something like site.com/42
My question is, what happens to the $_GET variables when this happens? I try and print the GET array on page load, and it i...
Hi. I have a j2ee application running on struts & spring. Currently I have no control over my action class. I cn just set a particular class as its business logic class by setting it as property of the action class in the xml. In my business logic class i need to get the request so that i cn store something on the request which I will us...
how can i get the number from a div tag's id?
example:
<div id="button1"></div>
how can i get the 1 and store it in a variable?
...
I'd like to have access to one my model field verbose_name.
I can get it by the field indice like this
model._meta._fields()[2].verbose_name
but I need to get it dynamically. Ideally it would be something like this
model._meta._fields()['location_x'].verbose_name
I've looked at a few things but I just can't find it.
...
Hello,
Can someone help me with this
I am trying to set and catch the url variable
It begins with a form wich has the standard action set to "/autorisation/logout"
Then a button with an inline javascript function
function tbPayout()
{
parent.location = "/autorisation/logout?rcgo=payout";
return true;
}
<input src="/images/go02.gif"...
i have tried load and hebrew didn't work for me so i changed my code to
$.ajax({
type: "post",
url: "process-tb.asp",
data: data,
success: function(msg)
(partial code)
not knowing that post and get is the problem for my hebrew querystring.
so know i can get my page to get the hebrew and english bu...
Hi I am trying to scrape other people web pages (for the forces of good not evil). I am currently trying to do this with javascript/jquery from with in a browser. I am finding that the no data is returned from the jquery.get() success call back function.
My code.
$.get('http://www.google.co.uk/',
function (data, textStatus, XMLHtt...
Hey gang,
Bear with me as I try to learn more about .htaccess redirect rules - I'm a UI guy by profession and I'm doing my best to enhance my coding skills languages other than HTML/CSS/PHP, etc
So, what I have is an index.php file that contains a menu - pretty simple. If Javascript is enabled on the users computer then forms are shown...
Hi,
Today I run into some oddity with PHP, which I fail find a proper explanation for in the documentation. Consider the following code:
<?php
echo $_GET['t']. PHP_EOL;
?>
The code is simple - it takes a single t parameter on the url and outputs it back. So if you call it with test.php?t=%5Ca (%5c is a '\'), I expected to see:
\a
...
Hi,
For a website I'm currently working on we're redirecting our old URL's permanently to new ones like this:
Redirect 301 /oldfile.php http://www.site.com/show/newurl
Now I come across this situation in which the old url has a get var like:
Redirect 301 /oldfile.php?var=name http://www.site.com/show/newurl
This will redirect the oldf...