I am using XSL to display an XML representation of an email message in browsers. Email attachments are stored in separate files to the main email XML file, and so I want the resulting web page for the email to contain a link to its attachments.
However some of the attachments are email messages themselves, and may have been forwards or ...
I have a String which provides an absolute path to a file (inlcuding the file name). I want to get just the filename. What is the easiest way to do this.
It needs to be as general as possible as I cannot know in advance what the URL will be. I can't simply create a URL object and use getFile() - all though that would have been ideal if ...
I trying to write a php page that will take url values and insert them into an xml file. Any sample files would be of great help.
...
Hello,
I'm currently writing an application that works with modules. The module part is all okay, but I am not entirely clear on what would be the best approach to display multiple modules on a same page. The way common MVC like systems could work is that an URL like "site.com/article/full/18543/how-to-lose-weight" (I'm not implying any...
In Java 5, is there a default way to pass a URL to the system and have it launch the application associated with it?
For example http:// links would usually open IE or Firefox, but things like itms:// should open iTunes.
If possible I would rather not use Runtime.exec() to start some external process directly, because this would be plat...
Hi
I was just wondering what is the best way to define urls linking to pages within a domain name. For example, for domain www.example.com .. I can have links like
<a href="http://www.domain.com/test.html">test</a>
or
<a href="test.html">test</a>
One of the issues, which I came across was that while using templates .. if I...
In my HTML file I have linked to the JS with:
src="myscript.js?config=true"
Can my JS directly read the value of this var like this?
alert (config);
This does not work, and the FireFox Error Console says "config is not defined". How do I read the vars passed via the src attribute in the JS file? Is it this simple?
...
Is there a benefit to passing a string in your url patters vs a function instance? It seems like it could be optimized to not actually load the function until it is needed, but is this in fact true?
from django.conf.urls.defaults import *
from myapp.views import myView
urlpatterns = patterns('',
# as a string
url(r'^as-string/$...
I have made a html page and two website take it on her website like a frame.
I want to change the color of my frame. So i have to know witch website included my frame.
What function I have to use in javascript
Thanks
...
Is it possible to use the:
[NSMutableArray writeToURL:(NSString *)path atomically:(BOOL)AuxSomething];
In order to send a file (NSMutableArray) XML file to a url, and update the url to contain that file?
for example:
I have an array and I want to upload it to a specific URL and the next time the app launches I want to download tha...
This is the reverse of the usual expanding short URLs question.
For a given Long URL, how can I find which short URLs link to it?
If this needs to go through the APIs of the shorteners, apointers ot the ones which support such a query would be appreciated.
...
I'm trying to either grab only part of this URL or inject part of a string into it (whichever is simplest).
Here's the URL:
http://www.goodbuytimeshare.com/listings/min:1000/max:150000/agreements:rent,buy/properties:apartment,condo,hotel,resort/show:4/
I figure I either need to be able to tim it down to:
/listings/min:1000/max:15000...
I am trying retrieve data from a .php file on a server from within an iPhone OS app. In one method, I employ the following code:
NSString *aString = [[NSString alloc] initWithContentsOfURL:aURL encoding:anEncoding error:nil];
//See what I got
NSLog(aString);
When I run the App it seems like the App runs through the code so fast I dou...
This seems like a rather simple request but no amount of Googling has turned up a satisfactory answer, which is surprising because all I want is to get the website URL. Not the URL as taken from a link (I can already do that just fine) on the page loading I need to be able to grab the full, current URL of the website and set it as a vari...
I wish to use the $html->image(...) helper function in CakePHP to output images, but I need it to produce an img tag using an absolute rather than relative URL (the resulting HTML will be downloaded and emailed round in a company newsletter). Is this possible?
It's not documented, but I notice from looking at the source code that the im...
Sorry if this is a stupid question...
I've developed an application that creates absolute links by prepending urls with the site root (of whichever site it is hosted).
For example:
<link rel="stylesheet" href="<?=SITE_ROOT?>/assets/css/global.css">
Notice that a slash is coming after site root. I need to convert this now to be relat...
How much time would be saved in skipping the request for the IP of a domain name? Would it be noticeable. Before anyone gets to excited i know there could be problems with using an IP as opposed to a URL in web dev like if you have multiple servers, but im just curious.
...
What is the character limit for a URL, especially if the URL is formed from a GET method of a form.
...
Basically I want to redirect all requests to my domain to a specific page. For example, redirect all requests to page X, unless you are already on page X, in which case you should just load it. But my solutions just create an infinite loop :/
because 'new users'cant post hyperlinks, assume $LINK = 'http://www.example.com/'
I tried...
...
How can I use Perl regexps to extract all URLs of a specific domain (with possibly variable subdomains) with a specific extension from plain text. I have tried:
my $stuff = 'omg http://fail-o-tron.com/bleh omg omg omg omg omg http://homepage.com/woot.gif dfgdfg http://shomepage.com/woot.gif aaa';
while($stuff =~ m/(http\:\/\/.*?homepage...