write some code lie this,
`<form id="abc">
<input type="text" id="txt" />
</form>
`
and now I want to redirect like this,
var temp = $("#txt").val();
url = "http:abc.com/" + temp;
window.location.replace(url);
or
window.location(url);
Is there anyway in jquery to solve this because it's still let me have url = http://abc.com plea...
Does anyone know how I might programmatically discover the current page's full address. We share our codebase accross several clients in subdomains and I am trying to discover which client is viewing the page in order to load appropriate CSS, eg. red.website.com; blue.website.com; (I am looking to grab the red or blue, in my code).
Man...
How can I launch a URL in a NEW window using C++ (Windows only)?
The straight-forward approach seems to open a new tab in an existing browser window. (Or, if tabbed browsing is disabled, the new URL hijacks the existing browser window).
This is for a (large) desktop app, using MFC and Qt.
...
when testing out our machine for apache or SVN, i found that we can actually use
http://pc_name
when our computer is named "pc_name" and other PC on the same network can access that PC by that URL at port 80.
and a mac can connect to my PC shared resources by Finder -> Connect to Server -> smb://pc_name
these are great. are there ...
The web application I'm working on serves up images with URLs like /image?name=a.gif. Pages are loading slowly partly because browsers are not caching the images.
Is there any combination of http headers that will persuade IE to cache the images even though the URL has a query string in it? I'm trying to avoid the browser making any unn...
Alright, so let's say I'm writing a forum application, and I want pretty URLs. However, all my tables use numeric IDs, so I'm not sure the best way to format the URLs for those resources. Let's pretend I'm trying to get a topic with ID 123456 and title This is a forum post. I've seen it done a couple ways:
www.example.com/topic/123456
...
Is it possible to programmatically place the contents of a web page into a Word file?
To further complicate this, I'd like to do these steps in Java (using JNI if I must).
Here are the steps I want to do programmatically, followed by ways that I would do this manually today:
Provide a method with a URL (Manually: Open page in Fir...
Hi,
I have a bit of an issue for my JSP site.
I have it divided into three sections: a main folder within which a "resources" and an "actions" folder are. I house the files which show the site in the main folder, and validaton and action files in the "actions" folder.
Upon entering a site, a user must login. I validate whether a user ...
I'm trying to send information from a form and a hidden email variable (from a db) to a PHP script using cURL. I have the post items moving correctly, but I am not sure if can also send a variable vai the url. (the $_Get)
...
I've got a bit of text that I'm trying to display in a list. Some of those pieces of a text contain a hyperlink. I'd like to make the links clickable within the text. I can imagine solutions to this problem, but they sure don't seem pretty.
For instance, I could tear apart the string, splitting it into hyperlinks and non-hyperlinks. ...
In Java, you can load all kinds of resources using the same API but with different URL protocols:
file:///tmp.txt
http://127.0.0.1:8080/a.properties
jar:http://www.foo.com/bar/baz.jar!/COM/foo/Quux.class
This nicely decouples the actual loading of the resource from the application that needs the resource, and since a URL is just a Str...
I'm developing using Django on Windows. I have a model with an imagefield, and use a form to fill it. Images get uploaded without problem. The problem occurs when I attempt to show an uploaded image inside a template by coding this:
<img src ='{{object.image.url}}'/>
(object is an instance of the relevant model, and image is the name ...
Hi there,
I have built UI, its like a search engine for BioProcess/Disease--> Genes. e.g., User can query: "Stem Cells" or "brain tumor"and in result it will give 50 to 5000 GeneIDs (essentially those are Numbers representing a uniqe Gene at NCBI database) .
Its free, you can try at : http://proteogenomics.musc.edu/genemesh/
Now, the ...
Hi folks! Current code only replace the spaces to dash (-)
$url = str_replace(' ','-',$url);
I want only letters, numbers and dash (-) allowed on the URL.
Let me know the tricks.
...
how do you make it so that www.site.com/123 or www.site.com/123/some-headline www.site.com/123/anything-at-all will lead users to the same place which is www.site.com/123 ? I think the routing in Ruby on Rails can do it. But other than that, what other methods can do that. can it be done by Apache alone?
...
I am writing a search engine (why not hey?) and need to handle navigating relative urls such as "../about.aspx", "/about.aspx" "about.aspx" etc
Is there anything out there or in the .Net Library's which can convert these to absolute addresses?
...
I want to add a variable list of parameters to a Struts2 URL tag. I have a map of the parameters (name value pairs) in an object in the session. I'm struggling to find a good approach to this. Here is the relevant JSP code:
<s:iterator value="%{#session['com.strutsschool.interceptors.breadcrumbs']}" status="status">
<s:if test=...
I'm updating some old code to grab some binary data from a URL instead of from a database (the data is about to be moved out of the database and will be accessible by HTTP instead). The database API seemed to provide the data as a raw byte array directly, and the code in question wrote this array to a file using a BufferedOutputStream.
...
I currently have a community site that I run that is made up of 15 or so php pages. It is not currently very dynamic, only using php for includes/templates.
Currently no content is generated via a query string. The pages do not follow a standard naming convention and there are many inbound links.
I am looking to expand the site (and st...
Right now, we are having problems allowing the client to access the svn server because of the unknown host name error. Is there an error which will tell the correct svn server URL from the server computer? Thanks.
I am on Collabnet Subversion Server and the client uses TortoiseSVN.
...