get

How to remove get param on form submit?

Can you advice me how to remove get parameter (input text) without removing the value of the input or disabling it? Is this possible at all? ...

get text of linklabel created at runtime

hello, can someone please explain to me how i can get the Text property of the linklabel that i have created at runtime? I have tried: string str = e.Link.LinkData; ...but that just displays an empty messagebox. Thanks lots :) ...

PHP - get certain word from string

Hola! If i have a string like this: $myString = "input/name/something"; How can i get the name to be echoed? Every string looks like that except that name and something could be different. ...

Get only the specified styles of an element :)

Hi guys, can you help me ? :( I can get a style of an element just doing this: alert (document.defaultView.getComputedStyle (document.getElementById ("element"), null).getPropertyValue ("background-color")); I can get all styles of an element just doing this: var styles = document.defaultView.getComputedStyle (document.getElementByI...

Hide autoincrement ids in GET parameter (PHP)

Hello! Problem: I have dynamic pages in PHP where the content is shown according to the given id. The id is always submitted via a GET parameter: page.php?id=X This causes a problem: Site visitors can enumerate the ids and simply walk through all the different content pages. This shouldn't be possible, of course. How could this be sol...

WCF Unicode UrlEncoded Get not coming over nicely

I have a RESTful WCF service which accepts GET verbs with Unicode encoded urls. The Unicode characters are translated as little boxes strangely when I get the data on the server. Is there something I have to tell the service contract to do in order to get Unicode UrlEncoded Gets to translate into nice strings? Here's my contract: [Ope...

Why does this jQuery fail to load/parse my HTML string?

jQuery.get(window.location.href, function(data) { alert(data); alert($(data).html()); }); The first popup is all the HTML good and healthy. The second popup is blank. Why? (the HTML is XHTML compliant) ...

PHP display problems

I am pulling messages from mysql using PHP to be displayed on a specific page. Instead of displaying the title of the message in the designated title bar and the message in the designated body text box...there is no content displayed and its displaying the title in the url. What am I missing in my query? Or what is going on? ...

PHP display problems revisited

I am pulling messages from mysql using PHP to be displayed on a specific page. Instead of displaying the title of the message in the designated title bar and the message in the designated body text box...there is no content displayed and its displaying the title in the url. What am I missing in my query? Or what is going on? /*--Here is...

Dynamic Query based on mulitple GET variables (Refine Search Form)

So im trying to find a script that can start me off with creating an 'refine search' panel which will be a form, hopefully something close to what Ebay have got at the moment. Whilst I know this is going to be a form and using the GET method, I cant find a script that can parse a url for multiple params and update the query all dynamica...

Characters allowed in GET parameter

Hello! Which characters are allowed in GET parameters without encoding or escaping them? I mean something like this: http://www.example.org/page.php?name=XYZ What can you have there instead of XYZ? I think only the following characters: a-z (A-Z) 0-9 - _ Is this the full list or are there additional characters allowed? I hope you...

jquery ajax get example

At the moment I'm using the post method like this $.ajax({ type: "POST", url: "Servicename.asmx/DoSomeCalculation", data: "{param1ID:"+ param1Val+"}", contentType: "application/json; charset=utf-8", dataType: "json", success: function(msg) { UseReturnedData(msg.d); }, error: function(err) { al...

How can I get query information from referring search engines

I want to use the query that someone used to find my page, these are in the URL of the referring page $GET_['q'] (and for yahoo $GET_['p']). How can I use these? I want something like $query = REFERRING PAGE ($GET_['q']), but I just can't figure out the way to say it. ...

$_get/htaccess question (php)

I'm trying to make it so that $_session['kw']=$_GET['kw']. If I use the url index.php?kw=example, then when i echo $_GET['kw'] i get a blank. Is there anything that would cause $_GET to not work? I figured out that it must be caused by the .htaccess file there are rewrite rules in there that go like this: RewriteRUle ([-a-z0-9_]+)_re...

JSF page initialization using GET

I need to be able to grab a user's information from a database and pre populate some fields on the page from this information, using args sent in a GET request in the database's query. What is the best way of performing this "on page load" type of functionality using standard JSF? Couple possibilities I have found so far: performing...

400 Bad Request when getting a page with PHP Curl

I keep getting a 400 bad request code from a hotfile.com page when I try to get it with curl. I can get the pages fine in the browser The first (login) (post) request in the script works The last (get) request in the for loop works I have tried setting the curl headers to the same headers sent by my browser I have tried sleeping up to ...

Where does $row come from?

I am learning codeigniter and have a question. The codes are from http://www.devshed.com/c/a/PHP/Paginating-Database-Records-with-the-Code-Igniter-PHP-Framework/ The followings are model and controller. And it does not define $row but it still works. (The original had typo, so I fixed it.) Q1. Where does $row come from? Q2. Could you ...

jQuery to take url with variables from a link and send it via Ajax

Hello, I can add a product to cart via GET with this link: <div id="add"><a id="add-link" href="http://localhost/catalog/cart?product_id=8&amp;boutique_id[]=36&amp;func=Module::Cart-&gt;add"&gt;Add to Cart</a></div> I want to use jQuery Ajax to stay on the same page (if JS is enabled). I have crapped out the following, but of course...

What is the best way to auto generate getters and setters for a class in php?

I regularly create a class that has a few private variables. When an instance of this class is set, it should be possible to fill all variables of the class with getters and setters. Is there an easy way to do this without having to type all these setters and getters for each variable on creation of the class? now i have to type this f...

firebug net monitor options

I have an issue where I executing an AJAX request. Instead of seeing the normal POST or GET preceeding the action page url, I see OPTIONS. The data is successfully posted, but there is no response from the action page. What does OPTIONS indicate? ...