I'm using the jQuery jstree plugin (http://jstree.com) in a ASP.NET MVC 2 project on .NET 4 RC, and running on IIS 7.5. It comes with some stylesheets with inline images with data urls, like this:
.tree-checkbox ul {
background-image:url(data:image/gif;base64,R0lGODlhAgACAIAAAB4dGf///yH5BAEAAAEALAAAAAACAAIAAAICRF4AOw==);
}
Now,...
I want to build a URL at runtime when a resource is render to either XML or JSON. I can do this easily when the view is HTML and is rendering only parts of the resource, but when I render a resource that contains a links to another resource I want to dynamically generate the correct URL according the host (site) and resource specific URI...
Apache web hosts have a user-configurable ~/.htaccess file that allows local redirects, for example, www.awesomesite.com => www.awesomesite.com/launchmyawesomeapp.cgi
In lighttpd I know there is a global /etc/lighttpd.conf file, but is there something local like the Apache htaccess file?
thanks,
joe
...
http://something.com:80/somedir/index.html?type=test;one=onevalue#nose
This is typical URI structure my question is what is "#nose" and how i can use/utilize it as web developer ?
Thanks all.
...
I am trying to update RichEdit so that it detects URL and enables clicking on it to open in the browser. Detecting URL is easy, I just use the following code from http://www.scalabium.com/faq/dct0146.htm
mask := SendMessage(MNote.Handle, EM_GETEVENTMASK, 0, 0);
SendMessage(MNote.Handle, EM_SETEVENTMASK, 0, mask or ENM_LINK);
SendMes...
Hi, im having problems starting a codeigniter project, the problem is that when i do something in a controller and then i want a page to display the result, an example: i have a form to add a item to the database, i get all the data in the controller and save it to database and then i want (if all went well) to redirect to the main page ...
I have a string of text that contains html, and I need to extract each url (most likely in img or a tags) to create a generic list of string objects. I only want the urls from inside html tags, not in the text. Is there an easy way to do this or will I have to resort to regular expressions?
If I have to resort to regular expressions, ...
Hi,
i'm creating a mvc application and i'll use under subdomain like
http://myapp.mycompany.com
This subdomain is pointing to app subdirectory, but my actions are always generated with applicationPath (subdirectory) like:
http://myapp.mycompany.com/myapp/Home/About
// I want just this without additional paths
http://myapp.mycompany....
how can i do such thing in model or controller?
<%= Url.Action("Home"); %>
...
In python, how would I check if a url ending in .jpg exists?
ex:
http://www.fakedomain.com/fakeImage.jpg
thanks
...
Hey guys,
I was wondering if anyone knows - if I have an iPhone app that is registered with a URL service (e.g. alocola://), which means another app can invoke it by calling its URL - is there any way to embed this URL in an HTML page, and catch the exception if the app is not installed on the user's iPhone?
Or in other words / more de...
Let's say I have a site with multiple links as follows:
www.example.com/product/1
www.example.com/product/2
www.example.com/product/3
I also append tracking info to links from time to time so that I can see how my site is being used, e.g, if somebody visits the products page from the product browser I would set a ref parameter:
www.e...
So this is a really simple question, I just can't find the answer. I have some text in a UITextView, that I would like to have show as blue, and serve as a link to a website. How do I do that in interface builder? Thanks
...
Hey guys,
I already tried getting the current url of my UIWebView with: webview.request.URL.
Unfortunately the NSURL was empty. Anything wrong here? I'am working with Xcode 3.2.2 beta 5.
The code above should be executed in the UIWebViews delegate didStartLoad...
Thanks a lot!
...
I have to build an url dynamically according to the current url. Using the {% url %} tag is the easiest way to do it, but I need the current url name to generate the new one dynamically.
How can I get the url name attached to the urlconf that leads to the current view?
EDIT : I know I can manually handcraft the url using get_absolute_...
I'm probably being completely thick here but I can't seem to make an optional trailing slash work in my url rewriting
I've seen Gumbos comment about excluding the file you are rewriting to exclude infinite recursion, but still having no joy.
So for example I have this:
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/index\.php$
Rewrite...
my developer is saying that it is not possible to rewrite url form
example.com/name/name/?lang=english to
example.com/en/name/name/
is it possible to do or not?
if yes, how should it be done?
if not, what could be the reasons?
we have windows based hosting from maddogdomains (godaddy)
...
How to manually create Friendly URLs? (PHP)
So I have created simple php file which echos requested string. Now it has form echo.php?string=bla+bla+bla&font=times
I want to see it like echo/bla+bla+bla/times How to do such thing (not using external libs)?
...
this dont work any options please?
"Result below if printed"
http://maps.google.com/maps/api/staticmap?center=WYOMING,WYOMING,MI&zoom=14&size=500x500&maptype=roadmap&markers=color:blue|label:S|42.902160,-85.696708&sensor=false
need to replace parts of url like shown above to enter "result" into an iframe src= ???...
How do I extract the domain name from a url using bash?
like: http://example.com/ to example.com
must work for any tld, not just .com
...