Hi,
I'm using autoLink="web" attribute in TextView to launch Browser.
However, I want to launch the myActivity with WebView, when I click the links in TextView.
Is is possible that catch the click event and invoke startActivity?
Thanks in advance,
Jason
...
I want to have username URLs and Base 58 short URLs to resources both off of the root url like this:
http://mydomain.com/username #=> goes to given user
http://mydomain.com/a3x9 #=> goes to given story
I am aware of the possibilities of a user names conflicting with short urls, and I have a workaround, but what I can't figure out is ...
I have some form on the website where users can add new pages. I must generate SEO friendly URLs and make this URLs unique.
What characters can I display in URL, I know that spaces I should convert to underscore:
" "->"_" and before it - underscores to something else, for example:
"_"->/underscore
It is easy make title from URL back....
I need to create 1500+ ruby files from a template for some testing I'm doing with Selenium.
The template looks like this:
class $CLASS_NAME
require "spec"
attr_accessor :title
include Spec::Example::ExampleGroupMethods
include Spec::Matchers
def initialize
@title = "$OLD_URL -> $NEW_URL"
end
def execute(selenium)
selenium....
I have a requirement in our web app. to allow users to drag an image from an external site and drop it in a text editor they have open in our app. This is, as you'd expect, to let them embed the image in the document (its a rich text editor).
In IE 8 this functionality appears to be broken. If I drag/drop, IE uses a relative URL for the...
Dear experts,
is there any existing rails helper to create a valid URL?
Specifically, I am generating a Web URL with some parameters that having special character (for e.g space i need to convert into + , and many others special characters).
http://domain.name?param1=ABC+DEF&param2=GHI
Thanks.
...
Hi,
How would I access the domain name from Rails inside the environments/deveopment.rb? I want to find out whether or not I am on localhost or a real domain. Thank you!
...
Hi all,
I would like to access the ActionController::Request from within the environments/development.rb file so that I can set a global variable there depending on the domain name. Any ideas?
Thank you!
...
i have an application, and in my urls.py i have something like that:
urlpatterns = patterns('',
url(r'^profile_view/(?P<id>\d+)/$',
profile_view,
name='profile_view'),)
meaning that the profile_view function has id as a parameter.
Now, i want to call that functio...
Heyy there,
i have for example a view function like this:
def profile_view(request, id):
u = UserProfile.objects.get(pk=id)
return render_to_response('profile/publicProfile.html', {
'object_list': u,
},
context_instance=RequestContext(request))
and the url:
url(r'^profile_view/(?P\d+)/$',
...
Hi All,
My site is in asp.net 3.5 and C#. I am sending link to my user through mail, now I want to send each user a specific URL. so instead of sending the clear text I want to send link with encrypted string URL, which I will decrypt on my home page.
Like instead of www.mysite.aspx\mypage?userId=12 i'll send www.mysite.aspx\mypage?User...
I am developing a system which is 100% ajax, except of course, the first request.
I am interested in changing the address in document.location, using javascript.
But I don't want the browser to load the page on that "new" location.
Does anyone know how I can do this?
miro
...
Ajax applications, and GWT in particular, use the URL fragment (e.g. http://example.com/myapp#fragment) to maintain application state on the client without reloading the page.
Is there a GWT library that facilitates the encoding and decoding of arbitrary parameters into the URL fragment? I'm looking for something analogous to the Servl...
I am working on Java. I am calling a GET url on my own machine using Java. Here is the url string with the arguments.
listen.executeUrl("http://localhost/post_message.php?query_string="+str);
I am taking str as user input.
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter query: ");
...
I have a website which has 2 pages , (home_page.php and action_page.php)Action page takes aprx. 2 minutes to completely load (server side takes 2 minutes) . But if user clicks to home page link while action page is loading , browser does not go to home page , until action page is completely loaded . First of all what is the reason of thi...
Hi guys,
I'm trying to get Twitter authentication working on my ASP.NET site. When you create the app on the Twitter website, you have to specify a callback URL, which for sake of argument, I have set to http://mydomain.com
I've read the oAuth 1.0a spec, and to override this callback URL with your own custom one you have to send the oa...
I am working on Java. Here is my code
response = URLEncoder.encode(response, "UTF-8").replaceAll("\\+", "%20");
Problem comes when there is a ' (single quote) in the string response. It gets encoded to \'.
eg - 'Collective Dynamics of Complex Networks' comes as
\'Collective Dynamics of Complex Networks\'
I want it to remain as it...
I have one problem.
I have one button and one textarea in a frame.I want to show the source code in that textarea when I click on button. show source code of URL that I want to show.
help pleas!
...
hi,
I have installed my website in a subfolder www.server.com/folder/index.php
Is there any way to hide "folder/" in my url ?
The only solution I can think is to change Directory Root on the apache config file, but unluckily I don't have access to it
thanks
Update: all the solutions provided so far are not changing the url
...
Hi guys,
I've a doubt. How can I configure my application to use www.mysite.com/myfolder instead of www.mysite.com/myfile.php?
I need to a create a profile page for every user registered to my PHP application but it's not so clear how can I do that. I've seen it's possibile with page frame, but, if possible, I prefrer don't use it.
Th...