I want to create shortened links for specific pieces of content on my site. To view these pages now, I pull the relevant content via the content ID passed via GET (ie, mysite.com/content/?id=332). To obfuscate the ID, I want to use base64 to encode and decode it into a short alphanumeric string (like 34sa6), which I already know how to d...
I've used will_paginate in a number of projects now, but when I moved one of them to Rails 2.3.5, clicking on any of the pagination links (page number, next, prev, etc.,) went from getting nice URLs like this:
http://foo.com/user/1/date/2005_01_31/phone/555-6161
to this:
http://foo.com/?options[]=user&options[]=date&options[]...
If I have a route with the following
{controller}/{action}/{id}
and I look at the following URL
c1/a1/abc.
it doesn't work. This only happens when the period is at the end of the URL. Any way to get ASP.NET MVC to recognize that as part of the ID?
...
Can anyone recommend a free URL monitoring service or software/code i can compile to monitor a range of URLs on multiple servers?
Thankyou!
Ben
...
Hello everyone,
I'm trying to use a 'tweet this page' function in a flash piece using the url
format 'http://www.twitter.com/home?status=go+to+this+page+http://www.example.com/#/page10'.
The flash project has deep-linked urls using SWFAddress. This requires the urls to have the pound character ( http://www.example.com/#/page10 ).
I ...
I have updated a website i have made recently, using asp.net. The problem Im now encountering is this. If I send in the request parameters of a page: i.e.
www.something.com/index.aspx?search=vendor, this url leads to a page stating "Command cannot execute". It used to work fine in my old version, and im still using the same iis server an...
Since I decided to pass the id of a particular record via query string so I encrypted the id (id=090ed4fe-daec-452d-b025-f664dcc1164d) and attached it's value to the url.
As we all know the url encoded value for / is %2f. So, on a particular instance of the application an id value (id=090ed4fe-daec-452d-b025-f664dcc1164d), which was enc...
I would like to include the URI http://beispiel.de/schnäppchen into a link in a XHTML document, which is encoded in UTF-8.
Should I percent-encode the URL and write
<a href="http://beispiel.de/schn%C3%A4ppchen">foobar</a>
?
"ä" is a legal character in UTF-8 and therefore should be legal in XML/XHTML, no?
...
http://domain.com/site/gallery/1#photo45
How to read value after the # sign (photo45)?
PS: What is the English word for the # sign?
...
Take this code snippet for example:
window.location.href = 'mysite.htm#images';
Already being on the site mysite.htm and triggering the reload thru location.href won't reload the page but jump to the anchor named within the URL.
I need a mechanism to truly reload the page. Any ideas?
PS: I tried location's other methods but none of ...
I would like to write a computer game played by several users sitting in front of different computers. For that I would like to implement a P2P approach.
Now I consider the following situation. I have, let say, 6 computers which build a local network. On every computer I install Apache web server. So, every computer runs a web site. In ...
I have a route defined as:
routes.MapRoute("AllUsers",
"Users/Search/{Search}", new {
Controller = "Users", action=
"Index"});
and the form as:
<% using (Html.BeginForm("Index", "Users/Search/", new { RouteValue = "AllUsers" }, FormMethod.Get, new { id = "searchForm" })){%>
<input id="searchBox" name="search" type="text...
This question concerns the characters in the query string portion of the URL, which appear after the ? mark character.
Per Wikipedia, certain characters are left as is and others are encoded (usually with a % escape sequence).
I've been trying to track this down to actual specifications, so that I understand the justification behind ev...
Hi All,
Was wondering if anyone had any smart approaches to creating dynamic vanity user urls upon user registration. My site basically uses emails as usernames. I have the regex to strip the text before the "@" symbol (e.g. "[email protected]" becomes "name") I would then like to take the "name" and create a vanity url (e.g. domain.com/na...
If I have to create a URL in my RESTful web service, which would be used by my clients to search all businesses by their fields where the fields are optional, what would the URL look like?
A business can be search by their name alone, name and phone number or name, phone number and contact e-mail.
...
You have a URL which accepts a first_name and last_name in Django:
('^(?P<first_name>[a-zA-Z]+)/(?P<last_name>[a-zA-Z]+)/$','some_method'),
How would you include the OPTIONAL URL token of title, without creating any new lines. What I mean by this is, in an ideal scenario:
#A regex constant
OP_REGEX = r'THIS IS OPTIONAL<title>[a-z]'
#...
I have this controller which will simply change the language in a session so I can set it in the bootstrap.
Except I want to change '$this->_redirect ( 'library/recipes/list' );' to be the URL of the page they are on. Ive tried a few functions and they dont seem to work.
Im a newbie Zend user, thanks!
class Library_LanguageswitchCon...
How I can parse a domain from URL in PHP? It seems that I need a country domain database.
Examples:
http://mail.google.com/hfjdhfjd/jhfjd.html -> google.com
http://www.google.bg/jhdjhf/djfhj.html -> google.bg
http://www.google.co.uk/djhdjhf.php -> google.co.uk
http://www.tsk.tr/jhjgc.aspx -> tsk.tr
http://subsub.sub.nic.tr/ -> nic.tr
ht...
I have a primary model for my project, Place.rb with a places_controller, and I've currently got it exactly the way I want for the users end of my project. With a nested photos controller, review, etc.
I want now to create a management resource which is mostly just an alias for Places, with its own nested resources, some of them overla...
What is the meaning of a ^ sign in a URL?
I needed to crawl some link data from a webpage and I was using a simple handwritten PHP crawler for it. The crawler usually works fine; then I came to a URL like this:
http://www.example.com/example.asp?x7=3^^^^^select%20col1,col2%20from%20table%20where%20recordid%3E=20^^^^^
This URL works fi...