url

How do I login into Google Apps via a URL?

I know I can login into Google using a URL. For example to login and see my inbox: https://www.google.com/accounts/ServiceLoginAuth?continue=http%3A//mail.google.com/gmail&service=mail&Email=LOGIN&Passwd=PASSWORD&null=Sign+in But how do I do the same for a gmail inbox that belongs to a domain that is using Google Apps? ...

Mod_rewrite and $_GET variables

If I am mod_rewriting a URL from: http://www.mysite.com/blog/this-is-my-title/1/ to http://www.mysite.com/blog.php?title=this-is-my-title&id=1 ...is it possible then to arbitrarily attach a get value on to the URL later, or does the mod_rewrite throw it off? MY REWRITE RULE: RewriteRule ^blog/([A-Za-z]+)/(0-9]+)/? blog?ti...

Passing constantly changing query strings PHP

I have a list of articles on my page, and I would like to be able to apply a myriad of sorts and filters to it by appending $_GET values to the URL: http://www.example.com/blogs.php?sort=newest&popularity=high&length=200 If I have links on my page to append these values to the url...they need to be smart enough to account for a...

I have a simple database of content. Should I hash the "id" so that people don't look over it in the URL?

Is it recommended to create a column (unique key) that is a hash. When people view my URL, it is currently like this: url.com/?id=2134 But, people can look over this and data-mine all the content, right? Is it RECOMMENDED to go 1 extra step to make this through hash? url.com?id=3fjsdFNHDNSL Thanks! ...

detect url's in text with Javscript/Prototype.js

Does anyone have suggestions for detecting url's in a set of elements and converting them to links? $$('#pad dl dd').each(function(s){ //detect urls and convert to a elements. }); ...

Do I need to encode strings (eg URL) I pass as a POST form parameter

Hi Do I need to encode strings (eg URL) I pass as a POST form parameter? Ie I want to pass a URL I have to my web application (ruby on rails) as one of the form parameters. So are there any potential characters in a URL/URI that would need to be encoded? Or perhaps rails would handle this anyway? ...

How do I retrieve several hex values that are included in a a URL query string using jQuery?

I have an image tag that looks like this: <img src="http://www.example.com/render/pattern?obj=patterns/pattern_1&amp;color=7F8C6C&amp;obj=patterns/pattern_2&amp;color=C8D9B0&amp;obj=patterns/pattern_3&amp;color=FFFFD1" width="100" height="100" alt="" /> Is it possible for me to use jQuery/Javascript to search the src attribute to find...

What's the proper term for the URL sans query param?

Say you have the following URL: http://example.com/path?param=value "param=value" is the query string "/path" is path "http://" is the protocol What's the proper name for "http://example.com/path" only? thanks! -nikita ...

Accessing a document's text from an <iframe> that's hosted on a different domain

I'm implementing a "widget" that will be included on article/story pages of a 3rd-party website. This widget lives in an <iframe> hosted on our domain. It needs to gather text from the articles of its parent page (the 3rd-party website), which it then uses to make a variety of API calls to services that return related content, which is t...

JQuery - url location and click event

Hello, I have code: $('#head_menu a').click(function(){ currentPage = document.location.hash.split('#')[1]; }); <div id="head_menu"> <a href="#order"><div>make order</div></a> <a href="#portfolio"><div>portfolie</div></a> <a href="#contacts"><div>contacts</div></a> <a href="#vacancies"><div>vacancies</div></a> <...

Why isn't -stringWithContentsOfURL returning my php echo?

My app accesses a simple php file on my server that does a simple echo "YES"; for testing purposes. I try to get the contents of the echo into an NSString object as below but my string is ALWAYS returning (null). Whats wrong? NSString *theString = [NSString stringWithContentsOfURL:aURLThatEchos]; NSLog(@"Value is: %@", theString); //...

Wicket Dynamic Image URL

Short question: I need to turn a dynamic image pulled from a database into a URL without adding a component to the displaying page (such as using a NonCachingImage) using Wicket. The perfect solution (that I've implemented in other Frameworks) is simply to create a page that takes the image ID as a url parameter and renders the image to...

Test browser history before going back via javascript?

I'm playing around with using some javascript to add extra functionality to a back button on my website. Right now I have a set of javascript that looks like this: $(".back-link a").live("click", function(){ history.go(-1); return false; }); Now, it works great but I'm trying to make it as bulletproof as possible and one issue...

TinyMce - Copy/paste changes url of image

Hi, On my site I use url rewrite mode and probably that's causing troubles... I use my own image insertion and it works fine (I enter image abolute url and using button it is converted to html tag). Problem occurs only when, in editor, I copy (or cut) picture (which has absolute url) and then paste it again to text. Pasted version of ur...

urlrewriter problem: Query string is duplicated shown?

I'm using urlRewritingNet. My web.config is here>> <add name="HOME" virtualUrl="^~/(.*)/Default.aspx" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/Default.aspx?PageTitle=$1" ignoreCase="true"/> My query string is here>> www.domain.com/home/default.aspx This works. But I'm insert LoginStatus control. When clic...

Deleting From Amazon S3

Hi, I have a (hopefully easy) question regarding Amazon S3 and Cloudfront. I'm using S3Fox, and I have a CNAME setup to point to my bucket: http://mycname.mydomain.com I've noticed that when I open/access that file via a distribution URL (my CNAME), and then, go to delete the file from the bucket later, the distribution URL still wor...

How do I replace all the spaces with %20 in C#

I want to make a string into a URL using C#, there must be something in the .NET framework that should help, right?. Thanks. Haim. ...

Django - use reverse url mapping in settings

A few of the options in the django settings file are urls, for example LOGIN_URL and LOGIN_REDIRECT_URL. Is it possible to avoid hardcoding these urls, and instead use reverse url mapping? At the moment this is really the only place where I find myself writing the same urls in multiple places. ...

How do I refresh content in the page and update the URL without doing a full page reload?

I thought that JavaScript didn't allow you to update the browser's URL (for bookmarking, etc) without doing a full page refresh. Facebook seems to accomplish this in their photos application, though. When I click "next" to see the next photo, the new photo loads and the URL updates, but the whole page doesn't refresh. Does anyone know...

ASP.net MVC performance with extensionless url on IIS 6

We are getting ready to do a an initial deployment of an ASP.net MVC app on IIS 6 running on Windows Server 2003. We've been reading about performance issues involving the use of extenionless urls in MVC applications specifically in the case of removing the '.aspx' extension from the controller portion of the url. Has anyone who has dep...