I am getting an incosistant error in IE8, it happens about half the time. I have cascading drop downs using ajax to fetch the next select box options.
$(function () {
$("#stock_item_id").change(function () {
var stock_item = $("#stock_item_id > option:selected").attr("value");
$.ajax({
type: "POST",
...
I don't know what other details I should provide. But I am very disoriented. I am not a web developer so I don't know what classes to use. It's not like I can tell the difference between HttpResponse, HttpHeader, HttpSession, HttpTransaction etc.
...
I have a form which goes to the following login script when it is submitted.
<%
Dim myConnection As System.Data.SqlClient.SqlConnection
Dim myCommand As System.Data.SqlClient.SqlCommand
Dim requestName As String
Dim requestPass As String
requestName = Request.Form("userName")
requestPass = Request.Form("userPass"...
I have an array that stores a few urls of XML files that need to be downloaded.
On success, these files need to be processed. But that is where it goes wrong.
The problem is quite apparent:
for (var i = 0; i < loadMaps.length; i++){
var currentMap = loadMaps[i];
$.ajax({
type: "GET",
url: currentMap,
dataType...
I've got a website where URLs are rewritten in this format:
http://www.example.co.uk/module/page/query/
http://www.example.co.uk/index.php?m=module&p=page&q=query
Which gives rise to pages such as:
http://www.example.co.uk/schools/view/495/
http://www.example.co.uk/schools/search/park+lane/
Is there any way to make it so th...
Hey guys,
I am building an application in Cocoa that uses a local Ruby on Rails web server to communicate data and info between the client and server. There are times in the program where I need to poll the web server for some information using HTTP GET requests, but I'm not sure if that is the best approach. Are there any alternatives ...
Hi,
I'm using fstream to read a stream from a binary file. I use the method get().
fstream f1("Log.dat", ios::in | ios::binary);
char zMsgSize[MSG_SIZE];
zMsgSize[0] = '\0';
f1.get(zMsg, CHR_END);
CHR_END is a special terminating character that I have put in the file earlier. There are null characters in the file I'm reading, that'...
hi, I'm trying to code with the facebook API
here it says : http://developers.facebook.com/docs/authentication/javascript
to get the access_token thing, but it's after a # and not a ?
so how can I get it ?
http://www.example.com/callback#access_token=...&expires_in=...
...
Hey.
I'm trying to get an array of all GET-variables passed to a PHP document.
Is this possible?
Thanks. :)
...
Hi folks,
performing a GET in order to send data to an API before a user leaves the page can be seen as a performance issue.
Is there an alternative or a way a developer can optimize the client side javascript?
One of the great examples is:
Google Analytics!
...
Hello,
I've used jqGrid for long time now, without any kind of problem.
Today I've tried to implement it in ASP.NET MVC 2 project and things didn't work as expected.
After a little struggle I've realized that now controllers do not accept GET calls when returning JSON data. It is for security reasons.
If I force my controller to support...
First off, I do not want what is in the URL query. I want what PHP see's in the$_GET array.
This is because the URL query will not show all the params if mod_rewrite has been used to make pretty URLs
So is there a way to get the query string that would match exactly what is in the php $_GET array?
--
I came up with a way myself using...
I am trying to get the html of a website using this code:
function catchData(req) {
console.debug("i got a reply!");
var returnXML = req.responseXML;
console.debug(returnXML);
if (!returnXML)
{
console.debug("html is bad");
return;
}
if (speed != currentSpeed)
moveToNewSpeed(speed);
currentSpeed = sp...
Hello,
I am working with a script for resizing images. I seem to be getting an error:
Error: no image was specified
Probably because of this code in the script(image.php):
if (!isset($_GET['image']))
{
header('HTTP/1.1 400 Bad Request');
echo 'Error: no image was specified';
exit();
}
Here is what I...
Hi folks,
often I find myself suprized about simple things, I'm not sure but I believe that this might be one of them.
Often I find myself needing to merge get attributes, especially within filters and search pages within sites. This come be at times quite complicated, as you might want to remove and add parameters dynamically.
Simple...
So suppose I have the url:
http://url?x=1&y=2
Then I can just get all the get parameters via PHP using the $_GET variable
so print_r($_GET) will echo all the get variables
Now suppose I'm using zend framework and i'm trying to take advantage of the /var/value/var/value feature:
so now my url is
http://url/controller/action/x/1...
I am having difficulty with code igniter routing.
http://www.mysite.com goes to the right controller and does the right thing. However, http://www.mysite.com/?ref=p&t2=455 causes a 404 error. Also http://www.mysite.com/mycontroller/mymethod/?ref=p&t2=455 works fine.
I changed the uri_protocol in the config.php file and tried...
I know very, very little of javascript, but I'm interested in writing a script which needs information from another webpage. It there a javascript equivalent of something like urllib2? It doesn't need to be very robust, just enough to process a simple GET request, no need to store cookies or anything and store the results.
...
Hi folks,
if a GET request is made as follows
$(window).bind('beforeunload', function() {
// GET request
});
and the page is abandoned before the GET request is completed,
will the destination server still process the request? Or will it somehow vanish?
I would like to send a server data on "beforeunload" firing, but without ...
What is wrong with this rewrite rule?
RewriteRule ^api/(.+)$ api/index.php?url=$1 [L]
I simply want "index.php?url=" to be added after api/ and before the rest of the get parameters.
api/image/upload&arg1=1&text=lorem+ipsum
to
api/index.php?url=image/upload&arg1=1&text=lorem+ipsum
What is wrong with (.+) to get everything after ...