The default output of File.toURL() is
file:/c:/foo/bar
These don't appear to work on windows, and need to be changed to
file:///c:/foo/bar
Does the format
file:/c:/foo/bar
work correctly on Unix (I don't have a Unix machine to test on)? Is there a library that can take care of generating a URL from a File that is in the correct format for the current environment?
hi
i am using GZIP for the compression and its working fine but the problem came when the URL's are dynamic (e.g Default/template_css.php?w=310&h=237&sw=200&ct=fpss-container2). I am using Php .
Thanks
Ok, first off, I didn't program this page with frames! I'll be getting rid of them later. For now I need to solve this problem.
There's a link within a frame. Instead of that link just changing the contents of the frame, I need it to change the URL of the entire window. How can I do this?
Thanks for any help
I have an xsd file Foo.xsd. I tried to refer it in a WSDL file as
But when I try to access the wsdl url using browser I am getting the following error.
org.codehaus.xfire.XFireRuntimeException: Couldn't find schema part:
I am using xFire 1.2.6 for generating webservices.
Any input would be appreciated!
What is the Url.Content() of asp.net mvc equivalent in php?
I have a file that use my style.css from both pathes:
'artciles/123/name'
'artciles/123'
How can I use links to static content, witout using absolute urls?
Hello,
In my web site there is home page, and all other pages open using fancybox window - with iframe.
I want to be able to construct a URL like www.example.org/About.html which will send the user to my website and will open the iframed page {About.html} within the fancybox window.
Thanks for help.
Recently i learned that i can display images in a web page without referencing an image URL as follows :
<img class="disclosure" img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9oIGRQbOY8MjgMAAABVSURBVBjTfc6xDcAwCETRM0rt5nbA+49j70DDAqSLsGXyJQqkVxxwNOeMiEA+waW1VuT/inrvG7wikht8UETy2ygVMjO4O8YYTf6AqrZyUwYlygAAXo+QLmeF4c4uAAAAAElFTkSuQmCC">
I had another small bmp image that i wanted to display, so i opened it in vim and the img source looke like:
When i paste this code where it needs to be pasted i only get "BM?"
How to i convert/paste this code properly to be used as an image source?
Do you know of any utility class/library, that can convert Map into URL-friendly query string?
Example:
I have a map:
- "param1"=12,
- "param2"="cat"
I want to get: param1=12¶m2=cat.
PS. I know I can easily write it myself, I am just surprised that I cannot find it anywhere (I checked Apache Commons so far).
I have done urlencode of the variable before passing to the url
http://abc.com/Restaurants?aliasF%26B
but when i try to print like
in the page
$alias = rawurldecode($_GET['alias']);
echo $alias;
it prints only F.how to solve this??
how do you append an additional url parameter to a link in your google search results? is it possible to do this within the style sheet?
for example i have domain.com/result.htm - i want to change the link to domain.com/result.htm?param=1
thank you
i am sending a request to ajaxhandler
i want if the user is not logged in then it sends back a redirect url to login page
and the page automaticaly redirects to login page after the ajaxrequest response
I am currently investigating replacing the tabs provided by a Struts 1 tag library with the tabs provided by jQuery UI. I have successfully managed to get the tabs integrated with the existing application but I am struggling on how to set the selected tab using a parameter on the incoming URL i.e. myurl.com/action.do?selectedTab=SecondTab
As a new comer to javascript and jQuery, I was wondering could give me some pointers on where to start?
Thanks In Advance
David
I have used Configuration|Site Information|Default Front Page to designate node/55 as my front page.
How can I create a menu linking to the original front page, i.e. the one with the list of articles?
If I link to <front> it goes to node/55.
P.S.: I have been able to simulate this by enabling the frontpage view, but, if possible, it would be more efficient to just link to the original front page URL.
A bit of a basic question but how may I check if a anchor is in the url when I load the page?
For example www.mysite.com/mypage#show
And then in the JavaScript I can go if #show exists do this
Thanks.
Hello,
I want to check if an URL exists using PHP. for eg. If someone enters www.adflkjweoifj123912873.com, I want to check if this domain has a website, or its live on the web.
Thanks
Jean
I need to be able to catch when the URL contains a image of multiple file types or follow this syntax.
http://localhost:8080/fdlic-web/webpic/101
Here is what i have so far.
(.*)(jpg|gif|png|bmp|jpeg|webpic/(\d+))$
Hello
I have installed Kohana in kohana directory in my xampp public folder.
When I try
url::base();
I've got only /kohana/, but I want to http://localhost/kohana/
Any chance for get this by Kohana, or I must standard PHP?
Regards
Hello,
Our current web application url reveals the class package structure to the end user. This is because in web.xml the servlet mapping tag is as follows
Servlet_ name
/servlet/com.xxx.yyy.ClassName
Is there any way by which i can hide the package structure. i.e com.xxx.yyy.ClassName to just ClassName?
Thanks
Sameer
So I want to create an Android app so it would be registered somewhere in android OS (or just would start on system start) and when phone user clicks on special button on a web page inside a web browser a la:
<a href="myapp://mysettings">Foo</a>
my app would pop up and run using the params sent in that URL.
So how do I do such thing?
I need a tutorial with code!
so I have a Track system with some kind of protection. So to get some data from any URL you have to pass protection like this http://188.134.14.27/projects/cloudobserver/login and then (in browser) you can see some pages http://188.134.14.27/projects/cloudobserver/wiki/CloudObserverCMSSetup (if you havent passed login youll get no content)
so how to login and get data from page using flash/actionscript (btw I am triing to create an rss reader)?
I have a jsp file pageshow.jsp and the parameter id,
Is there any way to cache the jsp file in server-side based on the url parameter
Requesting page pageshow.jsp?id=100 get from cache instead of building from server
Requesting page pageshow.jsp?id=200 get from cache instead of building from server
Above two pages should have different cache content since their parameter are different
This may avoid the rebuilding the jsp file in server side and also decrease the server load
Hi,
We want to create an application that downloads a mp3 file and then starts to play it.
Has anyone an idea of how to download the mp3 file from an url and then store it, either on the iphone or in the application (depending on what is possible).
So I want to create an Android App so it would be registred somewere in android os (or just would start on system start) and when Phone user clicks on special button on Web Page inside Web Browser a la
<a href="myapp://mysettings">Foo</a>
my app would PopUp and run using params sent in that URL.
So how to do such thing?
I need a tutorial with code!)
I need to build a function which parses the domain from a url.
So:
http://google.com/dhasjkdas/sadsdds/sdda/sdads.html
or
http://www.google.com/dhasjkdas/sadsdds/sdda/sdads.html
Would become "google.com" and
http://google.co.uk/dhasjkdas/sadsdds/sdda/sdads.html
would become "google.co.uk"