I'm working on an iPhone app and I need to figure out how to properly nest the information in the URL (really a POST body) in order for rails to recognize it as an object hash such as:
Parameters: {:student => {:name => "Bob", :age => "13"}, :user_credentials=>"..."}
I've tried the following two ways and neither work for me:
/studen...
First of all I want to state that I've just started with Drupal so I'm a noob.
I'll try to explain what I think is a powerful URL and Alias system.
Lets say we have some structured content with some subcontent shared between main sections.
The main sections could be Visitor, Customer and Website. Now every main section has it's own men...
I'm converting a small PHP application to Django.
One section has a long query string, indicating how a widget is to be displayed. There are a few required parameters and several optional ones.
The current urls read like:
app.php?id=102030&size=large&auto=0&bw=1&extra=1
The id and size are required, but auto, bw and extra are option...
when i put www.test.com#view_comments in the url i want to so show a div not by clicking anything just by entering it into the url bar.
can anyone help?
...
I am trying to figure out a way to match 3 different URL types, they are;
http://(www.)domain.com or www.domain.com
http://(www.)domain.com/image.jpg/.png/gif or www.domain.com/image.jpg/.png/.gif
http://(www.)youtube.com/watch?v=Li1zXaEYol8 or www.youtube.com/watch?v=Li1zXaEYol8
Note, I do not want them parsed, if they are just doma...
I have a program that I would like to be launched whenever a url with the protocol "sample://" is clicked/launched. For example, a user clicks on a link in IE/Firefox with the following href: sample://test.txt. My program should then be invoked with the url as an argument. I would like a solution for Windows and linux if possible, though...
Hi,
I have deployed my web part to a SharePoint environment having alternate accessing mapping configured.
The public Url is https://sharepoint.com and the internal url for the same is http://internal-sharepoint.com
On one button click, i need to redirect the url to the same page with some additional parameter in query string.
I trie...
If the url is http://www.google.com/url?sa=t&source=web&ct=res&cd=1&ved=0CAsQFjAA&url=https%3A%2F%2Fwww.google.com%2Fadsense%2F&ei=1AdLS5HSI4yQ6APt6Ly-BQ&usg=AFQjCNHKn8TzGhRO1eUfLhB79AVU-_FnGQ&sig2=EGlbrGQ3jTQdTViEt14cYg,
I need the result to be :google.com
...
My apologies if this is too simple a question, I was unable to google it as it did not like searching for %20.
If I have a URL on which I use the getFile() method to obtain the path for a file I would like to open for processing. If the particular file resides in a directory that contains spaces, the path returned would contains %20 whe...
I'm wondering whether to use matrix or query parameters in my URLs. I found an older discussion to that topic not satisfying.
Examples
URL with query params: http://some.where/thing?paramA=1&paramB=6542
URL with matrix params: http://some.where/thing;paramA=1;paramB=6542
At first sight matrix params seem to have only advantages:...
I have the following route in routes.rb:
map.resources 'protégés', :controller => 'Proteges', :only => [:index]
#
# this version doesn't work any better:
# map.resources 'proteges', :as => 'protégés', :only => [:index]
When I go to "http://localhost:3000/protégés" I get the following:
No route matches "/prot%C3%A9g%C3%A9s" with {:met...
We are designing a URL system that will specify application sections as words separated by slashes. Specifically, this is in GWT, so the relevant parts of the URL will be in the hash (which will be interpreted by a controller layer on the client-side):
http://site/gwturl#section1/section2
Some sections may need additional attributes,...
Hi,
I have a select dropdown with id's mapped to values.
On the onChange event I want to redirect to the same url but with 'id=value' appended to the querystring.
How do I check that this 'id' option isn't already in the querystring (I don't want multiple values) and replace / append as necessary.
How do I check if '?' is already in...
In routes.rb I have
map.resource :user
In one of my templates I want to
link_to 'delete', some_other_user, :method => :post
I was hoping this would generate a url like
/user/#{some_other_user.id}
but instead get
/user.#{user.to_s}
The only solution I've found is to add a new route
map.delete_user 'users/:id', :controller => 'use...
I'm doing some simple HTTP authentication and am getting a
java.lang.IllegalArgumentException: Illegal character(s) in message header value: Basic OGU0ZTc5ODBk(...trimmed from 76 chars...)
(...more password data...)
which I think is due to me having a really long username and password and the encoder wraps it with a \n at 76 chars. I...
Hitting the url http://twitter.com/home?status=<status_msg> takes us to the twitter login page and once logged in, the status is already filled in the input box, ready to be tweeted.
Is there a similar url for following somebody on twitter ?
something of the form http://twitter.com/follow?user=<user_to be_followed> so that whe...
Hi.
Currently I've got a web app that retrieves the URL of a mp3 on an external server, but to conserve data I'd like to check first that the page my server is retrieving is actually a redirect, not the actual content (so I can grab the URL of the mp3 and NOT the actual mp3 itself.
The external PHP script requires that json data is ...
Hello everyone, today I'm trying to get the URL where my Flash movie is sitting on.
I found a similar question here, which was answered with a link to Flash's LoaderInfo method, but I'm not sure I'm using it correctly as the textField in my test movie here: http://leongaban.com/stackoverflow/getUrl/ does not display the URL
Updated! WO...
I need it to use in my firefox extension.
I already tried window.onload event listener, and check if current url == old url, and it's a good idea, but it does'nt work when page loads pdf.
I saw hash changed function too but it works only with ff 3.6; i need it to work at least with ff 3.
So, i need an event listener that check if docum...
How can I code my Android application to start the web browser to display a given URL?
(I'd rather not embed a web browser component into my app, but rather want to start the Android web browser to show the URL.)
Thanks!
...