get

$.get() AJAX call not being able to handle server response

Hi guys, This might spund a little bit funny, didn't even know how to put the title at first. It could be due to long hours of work or I'm just doing something wrong. I have a file, say comment.php, which contains something similar to: var params = $('form#myform').serialize(); $.get("/ajax/file.php?"+params, function(data){ if (d...

Get URL param/segments conditionally (JS/jQuery)

I'm using an external jQuery url parsing library http://github.com/allmarkedup/jQuery-URL-Parser to grab url segments for GET. The URL's i'm working with include one of two formats: http://example.com/#name or http://example.com/?name=name Depending on the url im getting fed back, I want to use the url parsing library to construct a ...

jQuery get Method problem using IE

I 've created a small photo tour using HTML, CSS and jQuery. It works fine in Firefox and other browsers, but has some problems in IE. Here's the code I use to load the data: function loadNode(nodeID){ jQuery('.churchViewError').hide('slow'); jQuery(".churchViewLoading").show( 'fast'); jQuery.get(cVBaseURL+"ajax/getNodeHTML.php...

How does CherryPy caching work?

I recently discovered that page object attributes in CherryPy are persistent between requests (and between clients). So I'm wondering, would it make sense to store page output in such an attribute? Like this: class Page: def default(self, pagenumber): if pagenumber not in self.validpages: return 'Page number not ...

jQuery get cache probelm

I wrote a simple snippet to load dynamically pages parts as fallows: function LoadParts(container) { $("a._Part", container).each(function () { element = $(this); url = $(this).attr("href"); $.get(url, null, function (text, status) { var c = $(element).parent("span"); ...

get result from a vbscript in c#

hey everyone. i am trying to create a program that runs ti-84 programs. i just need to know how to get the results from a vbscript. if there is anny possible way, please tell me. ...

How to HTTP GET while sending vars and retrieve XML output using PHP

I'm trying to use this API: www.cpsc.gov/cpscpub/prerel/api.html Documentation: www.cpsc.gov/cpscpub/prerel/requirements.pdf Here is the location calls are to be sent, which also includes sample code snippets: http://www.cpsc.gov/cgibin/CPSCUpcWS/CPSCUpcSvc.asmx The getRecallByWord function should return XML data. Here's a preformed ...

Http post request not being noticed on MVC ASP.NET Deployment

Hi, I have two an action method - > RoleURLManagement which differs with its input parameter in the get compared to the post so we have [AcceptVerbs(HttpVerbs.Get)] public ActionResult RoleURLManagement(string id) { } and [AcceptVerbs(HttpVerbs.Post)] public ActionResult RoleURLManagement(aspnet_Roles r...

ASP.NET WebService mistakenly returning XML instead of JSON only when using Http Get but web.config is set up right

Symptom: When I make a web service request (from JQuery using .ajax, to ASP.NET .asmx file), if it is made using GET instead of POST, the .asmx file always returns XML instead of JSON. If I flip the call back to posts, it responds just fine as JSON. Goal: How can I get JSON instead of XML, using HTTP GET? I've a fair bit of googling...

php find characters in url

I want to use php to search the current url for com_agora and if it finds it to display something and if it doesn't to display something else the problem is there can be lots of characters after com_agora in the url an example would be this com_agora&task=cat_view&gid=41&Itemid= so how would I tell it find it while not caring what ch...

Quick Question About Get and Set

If there is the following code in a class, are get and set methods associated to the variable? How can I access get and set with an instance of the class? public string Something { get; set; } ...

Reading a Post request from a user HttpApplication

Hi, I've been messing about with HttpApplication app = (HttpApplication)source; Is there some way of the server identifying if the request is get or post. Basically i want to create an if statement and if the request is a GET it jumps into the if statement, if its a post it doesnt. Anyone? ...

Making a GET request with jQuery like WGET

Hello Friends, i want to call a webpage from jQuery and add the content to it to a div. The downloaded data should not undergo any parsing, it should be in raw format. I try to integrate the another application to my website. I've done some experimenting and the code does a successful request, but there seems there is no result display...

What is the problem with Ajax (jQuery) And Php

What is the problem with Ajax (jQuery) And Php ? Why my code does not work ? jQuery Code: $(document).ready(function(){ $.ajax({ type: "GET", url: "Tags.php", dataType: "xml", success: function(xml) { alert("success"); } }); }); Tags.php Code <?xml version="1.0" encoding="UTF-8"?> <tages> <?php ...

How to hide GET variables, but keep value.

How would I go about doing something like this: www.website.com/process.php?ip=32.313.131.31 to www.website.com/32.313.131.31 ...

How to get Ajax working with Jquery?

Hello everyone, this is my first time really using this site. I'm relatively new to using ajax with my sites and I ran into a problem a little while ago. The thing is, I'm not sure what my problem is exactly because every time I went over my script, it made sense to me (and it fit with everything I looked up on Google and the jQuery web...

PHP/Apache: GET Request Doesn't Exist?

Hi, Basically I have the following in my .htaccess file in the root of my site: Options -Indexes <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?route=$1 [L,QSA] </IfModule> In my PHP script when I use $_GET['route'...

JavaScript's equivalent to PHP's __get() magic method

Possible Duplicate: JavaScript getter for all properties Does JavaScript provide a method to access undefined object properties? In PHP the solution is to declare and implement __get() method in class. Solutions using try { .. } catch { .. } are not sufficient for me, because I already have very large amount of code which actu...

Apache, PHP: send filename through $_GET

Hello, I'm having an upload Java applet to handle large files upload. The use of this upload is mandatory, so dropping it is not an option. The problem is that, after the upload, the applet redirects to a given url and sends some info through $_GET. I can't change that ( the sending method, the params order ). And the last param sent is...

Use GET request for form submission in JSF 2.0

Is there a way to submit a form and have the URL include the parameters, that is submit as a GET request.. rather than POST? form.jsf/?firstName=John&lastName=Doe I thought would work (instead of the normal , however it doesn't seem to grab the form data.. any ideas? ...