url

jQuery.Get() help

Hey, I'm trying to use the jQuery.Get() function to return the contents of a webpage. Something along the lines of - var data = $.get("http://mysite...../x.php"); I know the above is wrong, can someone help my out here? Cheers, ...

get the parent url of iframe in PHP

I am creating a widget that would load in a IFrame and users will be able to place the widget on their own website. How would I get the URL of the website that is using the IFrame in javascript and/or PHP? The IFrame loads a php file. I have tried "parent.top.location.href" and "parent.document.referrer" in the IFrame page but that is u...

Getting XML in JAX-RS service

Hello! How can I get XML and/or URL (String) in JAX-RS service? For example in GET method URL @GET @Produces("application/xml; charset=UTF-8") public JaxrsPriceWrapper getPrice(@QueryParam("firstId"), @QueryParam("materialId"),...) { //here I would like to get whole URL } and in POST method XML @POST public JaxrsOrderWrapper in...

How To Reload data from URL ???Only Can Load data in viewdidload ???

OK,First this program can load plist from URL by this code,and I put this in - (void)viewdidLoad{ NSURLRequest *theRequest=[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.envolab.com/envotouch/ios_status_req_test.php"] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:60.0]; NSU...

An Encoding Issue?

Hello all, I think I have a URL encoding issue. I need to open a window using Javascript and pass a SQL Select query to it. So I have done this: window.open('view_query.php?sql_query=' + query + '&db_name=' + db_name); This has worked for me, but I have a query that breaks this: SELECT a FROM table WHERE field like '%adhoc%' Now ...

Regular expression of host address?

I want a regular expression for javascript to validate host address like http://192.168.10.10:8089/ and www.abc.com and www.abc.com.aa ...

How to convert domain names with greek characters to an ascii URL?

For example: When typing παιχνιδια.com into Firefox, it is automatically converted to xn--kxadblxczv9d.com Please suggest a tool for making such a conversion. One of the easiest is this. Converts and checks for availability at the same time. ...

django and urls

Hi, I have a problem. I Have urls like that : /articles/rating/month/ /articles/viewing/day/ ... So for these urls, I have a function view_articles() with parameters : sorting,*order*. Everything works fine. But,now I think it would be great if, when I visit one of these urls, I go in a function articles() which returns all the a...

Logging rewrited url with IIS 7.5

Hi, I'm working on a web site under IIS 6.0 .NET 3.5. I made a custom httpmodule to rewrite our url. It works fine, i do a "rewritepath" in the event "onbeginrequest". In my IIS 6.0 logs i can see my rewrited url. Now my site is under IIS 7.5. I need to keep my custom httpmodule. I can't use the new urlrewrite module from MS. My custom...

Safari 5 HTML Iframe not working properly with URL + Params

Hi all, I have an URL in IFRAME with parameters like this: <iframe src="http://www.example.com/id=123&amp;place=123"&gt;&lt;/iframe&gt; Works perfectly on FF3+, IE6+ (believe in me) and Safari 4, but in Safari 5 is different. S5 changes the URL to http://www.example.com/id=123 &amp; place=123 Someone knows how can I do a workaround...

XSLT Error: A semi colon character was expected

I've got this url that I need to place in a link in some XSL. Not sure where the problem is. If I pull the link out of the XSL it works fine. a href="https://xxxxx.com/sites/mcpharm/ApplicantDocuments/Forms/ApplicantUpload.aspx?List=%7B3D4B5CEF%AF61%2DBFA1945747EA%7D&amp;RootFolder=%2Fsites%2Fmcpharm%2FApplicantDocuments%2F{$QSApplicant...

Can we change the route formate in MVC 2 asp.net .

Hi, As i read about url routing from : http://www.codethinked.com/post/2008/08/20/Exploring-SystemWebRouting.aspx I found , "Each url coming into the application will be matched against the list of Routes that you have defined, and if one matches then it will be used" Is this means we can define our own patterns of urls? except "Contro...

Get url and parameters with SSI

Hello, i have to get url and parameters with SSI (only with SSI), but i cant find any solution, so im here for example: http://www.test.com/abc.html?data=something and i have to get value of parameter "data" can someone help me? ...

Silverlight 4.0: Setting an Image Source to a URL

Is there a workaround on this or is this possible in silverlight? my image is not displaying. <Image Source="http://localhost/TempWS/Images/mtdb.ico" Height="60" Width="60"/> ...

How to request a URL that requires a client certificate for authentication

Hi, I need to request a URL from a server that uses client certificates for authentication and can't find a way to do this for my application. My problem is that the Java client I'm working on has the certificate file available locally but due to restrictions on the PCs it will be running on it cannot install the certificate in a keyst...

how facebook controls #! in url

how can i controls #! in url suppose i have the following url http://www.facebook.com/#!/video/video.php?v=1106030301789 now how facebook controls that #! in url.... ...

url safe name function in mysql

I have this php function wich generate name from title which contains polish local characters like ł,ó,ż,ć function safe_name($name) { $chars = array('ą' => 'a', 'ż' => 'z', 'ź' => 'z', 'ś' => 's', 'ć' => 'c', 'ó' => 'o', 'ł' => 'l', ' ' => '-', '"' => '-', "'" => '-'); $result = strtr(strtolower(trim($name)), $chars); return pre...

allowed domains/subdomains in Uri

I have some url in Uri. How can i check if this url is part of some domain or subdomain. Example: URL: http://www.example.com/something/index.apsx?lala=ddsadasd&amp;dasdas=dsdas&amp;dsdsd=ikpi&amp;das=asd allowed: http://www.example.com/something/ not aloowed: http://www.example.com/some/ if URL is in allowed domain then code ...

separating values in a URL, not with an &

Each parameter in a URL can have multiple values. How can I separate them? Here's an example: http://www.example.com/search?queries=cars,phones So I want to search for 2 different things: cars and phones (this is just a contrived example). The problem is the separator, a comma. A user could enter a comma in the search form as part...

Why don't my Facebook share links work if they have spaces in them yet are encoded (asp.net mvc)?

Here's my code for my Facebook share link: <a href="<%= HttpUtility.UrlPathEncode("http://www.facebook.com/sharer.php?u=http://www.apoads.com"+ Request.Url.PathAndQuery) %>" title="Share on Facebook" rel="nofollow" target="_blank"><img src="/Content/Img/Png/SocialIcons/facebook_16.png" width="16" height="16" alt="share on facebook" /></...