get

Jquery's ThickBox: opening an iframe with GET parameters

Hey, I tried all sorts of combinations, how can I open a page in thickbox that has get parameters in it? for example: <a href="http://www.google.com?q=someQuery&amp;TB_iframe=true&amp;height=600&amp;width=600" title"bla" class="thickbox">example 1</a? Also, are there any special things to consider while working with thickbox in a fir...

Can I pass matched variables to the new URL with mod_rewrite?

I'm quite experienced in PHP but I don't quite use mod_rewrite (although I should). All I want to ask is if it's possible to pass many variables through a single rewrite rule. For example, is it possible to rewrite this: localhost/test.php?id=1&name=test&var1=3 into this: localhost/mysupertest/ and also use the same rewrite rule f...

How do i save POST and GET data into a session and pull it up with ASP.NET C#?

From what i understand session cookies are serverside and not transmitted to the user at all. This means it is safe from tampering (from outside of the server)? Anyways, from what i can tell POST data is stored in HttpContext.Current.Request.Form. How do i get GET data? right now i am doing this HttpContext.Current.Session...

jQuery.get() method doesn't want to work

I am trying to load WalkScore Map into one of div's on the page. For some reason my code works only if I alert() something right after $.get() method. Have no idea why. Can someone suggest something? Thanks. <html> jQuery - Ajax dynamic content loading function loadWalkScore() { $.get("http://www.walkscore.com/ti...

How can I send a html entities text via GET method in PHP ?

hi I sent a text via GET method to decode html entities ( &#119; = w ) > ?text=&#119;&type=htmldecode&format=text I got errors in the $text variable then I tried to set it in the last of the link ?format=text&type=htmldecode&text=&#119; and I got the same errors how I can fix that ? ...

How get all text in one html page, only between two tag

Hi all, Im Sorry for my bad English I need help for my problem. When we open page source of HTML page like google, we will found HTML TAG : (in this google was found my string) <!doctype html><head><title>bla bla bla <ol><li class="g w0"><h3 class=r>**bla bla bla..**</div></ol> <ol><li class="g w0"><h3 class=r>**bla bla bla..**</div><...

AJAX and NS_ERROR_DOM_BAD_URI error

Hi guys, I have been having the following problem, i think it's probably due to the fact that my approach may be misguided, but hopefully with your help i can sort this out! Basically, for my site i have a search provider (who has been paid, so i am not breaking any terms of use). When the search form is subbmitted i am directed to the...

JQuery AJAX load of external JavaScript causes browser to redirect to new location

I am having issues with loading external javascript using JQuery. Every time when I try to load this external file, browser window becomes blank and in Firefox it redirects to something like: wyciwyg://40/http://mydomain.com/myfile.html What I am trying to do, is to load walkscore google map into one of div's on the page. I've tried u...

GET var not working properly? Example inside

This is hurting my head. In a func i haave the code below. What is hurting my head is the fact i can se &id= in my RawUrl and it the value it should hold meanwhile req["id"] in the if statement returns null var req = HttpContext.Current.Request; string u = req.RawUrl; // --> /pstcm&id=5653999025705172077 d = null; if (re...

Some browsers send POST followed by GET requests

My Servlet app. gets called twice every time the user submits a form: The first time with a POST request, and immediately after, with a GET request (both requests with the same URI). This problem appears to be independent of the app server (I've tried with tomcat-6.0 and with resin.2.1). The problem seems to be browser related: The pro...

Post-Redirect-Get in ASP.NET

Hi all, i do Postback in my Page1.aspx to another page. If a press F5 key in Page1.aspx its appears the message (To display the webpage again, Internet Explorer needs to resend the information you've previously submitted. If you were making a purchase, you should click Cancel to avoid a duplicate transaction. Otherwise, click Retry to d...

Creating a RESTful API and website with PHP

I've got a PHP application I wrote earlier that I'd like to add a RESTful API to. I'd also like to expand the site to behave more like a Rails application in terms of the URLs you call to get the items in the system. Is there any way to call items in PHP in a Railsy way without creating all kinds of folders and index pages? How can I ca...

JS: Get clipboard data

I'm trying to write a Javascript function to edit content from clipboard before pasting. Right now i got bound event 'paste' to function via JQuery. $(this.elementDoc).bind('paste', function(event){ self.OnPaste(event); }); But that's not important. Now i would like to get Data from clipboard, but i can't find out how. I would be g...

Retrieve and display value of radio options via jQuery

I'm trying to have an alert box show the value of the radio option I have selected. HTML: <input type="radio" name="sex" value="Male" /> Male<br /> <input type="radio" name="sex" value="Female" /> Female When I choose one of those and set up and alert box to show me what i choose (as a test), it doesn't work. I know that other people ...

jquery ajax get responsetext from http url

neither: var response = $.ajax({ type: "GET", url: "http://www.google.de", async: false, success : function() { alert (this); } }); nor: var response2 = $.get("http://www.google.de", function(data){ alert("Data Loaded: " + data); } ); give me an object, ...

Problem passing parameters via Iframe in IE

Hi, I'm trying to execute an HTTP GET from my website to another website that is brought in via iframe. On Firefox, you can see in the source that the correct url is in the iframe src along with it's correct parameters-- and it works. On IE, you can see in the source that the correct url is in the iframe src along with it's correct pa...

HTML Form works with GET but not with POST

I'm running Firefox 2.0.0.14. I have a form on a webpage which is working fine with the GET method. I'm using a plugin to view my browser's HTTP request when submitting the form, and here it is : GET /postComment.php?review=2&comment=Testing HTTP/1.1 ... However, if I make the simple change from method=GET to method=POST on the form...

POST DATA , and get answer in c#

hi, i have big problem in posting data to php (because im newbie in c# ) ok i want send this request to server string Parameters = "hwid=" + _serialNo + "&country=" + PcIp + "&nat=1&pcname=" + PcName + "&winver=" + str; and after sending data to server get activation key , in my server side i used simple php + mysql get Param...

Asp MVC [Authorize] to return a Post instead of a Get

I would like to use [Authorize(Roles="Admin")] tags on my controller methods. If a user is not an admin I would like to return this user to my login screen. The default behaviour of returning the user to my login page is reroute my user to "Account/Login" using a Get url. The problem is, my website's subpages are all partial views refr...

How to remove a specific $_GET variable from a URL

I have a website authored in PHP where anytime a user receives an error I will redirect them to a another page (using header(Location:...)) and put the error ID in the URL so that I know which error to display. E.g. If the user tries to access a product page but that item is no longer available I will redirect back to the category of it...