I'm really unsure of how ordered results are displayed on a page like stack overflow questions. I know how to get the data from the DB but do i use a for each loop to display the data. And how can i paginate?
I know all about display logic on the databse end. What i mean is that i have the data ready but i do not know how to put in on t...
I would like a simple help. I have a URL like this: /profile.php?id=<id>&name=<name>.
My .htaccess file like this:
RewriteRule ^profile/(.*)/(.*) profile.php?id=$1&name=$2
So I have a end URL like this: /profile/<id>/<name>.
I can make /<id>. But how can I get a URL like /<name>?
I can use the RewriteCond to make a conditional?
I s...
Hi,
I'm trying to define a new URL handler under OSX that will point at a python script.
I've wrapped the Python script up into an applet (right-clicked on the .py, and gone Open With -> Build Applet)
I've added the following into the applet's Info.plist:
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</ke...
I'm developing an international site which uses UTF8 to display non english characters. I'm also using friendly URLS which contain the item name. Obviously I can't use the non english characters in the URL.
Is there some sort of common practice for this conversion? I'm not sure which english characters i should be replacing them with. S...
Hello,
The title is self explanatory I guess.
How can I develop a C# application to open a page in a web browser, given the URL, and refresh it continuously (always the same URL).
Thanks!
...
I'm very new to back-end web work and I'm trying to create a form for my theatre wherein someone can submit a space inquiry form. I have the form made, it works, but what I want it to do is after they hit 'submit' and the form is validated and emailed to us, they'll be redirected to a "thank you" page. I've tried using the behaviors in...
i have an aspx page with vb.net back end. in that page i get names and url's from the database depending on different conditions. My requirement is that when i get the url, the code should then use that url and have that webpage in a small preview form on my existing aspx page.
so basically i have a table as follows -
Name URL ...
Hi, i think this is a bit of a noob question, but here goes.
I am trying to get a better understanding $_GET variables in PHP. A lot of CMS's etc convert things like site.com/?ID=42 into something like site.com/42
My question is, what happens to the $_GET variables when this happens? I try and print the GET array on page load, and it i...
My app is sending users email with the following:
https://blah.chacha.com/feedback/##comment-reply-169
But for some reason, sometimes when the URL is loaded in some of the user's browsers the ## are being converted to something like:
https://blah.chacha.com/feedback/#%23comment-reply-169
Any ideas what's going on here and why?
...
Hi all!
I need to read the browsers URL (specefic to the tab) using javascript. I tried the
var currentURL = window.location;
alert(currentURL.href) ;
It shows chrome://browser/content/browser.xul instead of the web address.
What should I do to get the web address?
Can someone please help me out with this.
Thanks!
...
Hi i am retrieving image to my second view using URL,problem is i cannot able to assign the image to the UIImageView object
this code working fine
NSData imageData = [NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://dblog.com.au/wp-content/galah.jpg"]];
UIImage animalImage = [[UIImage alloc] initWithData:imageData];
problem...
Hi All,
I have a asp.net webform with a button. The OnClientClick event is wired to a javascript function.
I need this function to redirect the current page to this page.
After much reading is have tried all the following, but to no avail:
var url = "http://www.google.com";
document.location = url; //Doesn't Wor...
what is the URL for WCF post?
I create a VS 2008, WCF method like this
[WebMethod]
public string TestMethod(string param)
{
return "param:" + param;
}
so then I go to
http://localhost:57000/Service1.asmx?op=TestMethod
But how do I do a post to this?
On the test page it says
HTTP POST
The following is a sample HTTP POS...
Let's say I have a Tomcat and a web application on it with index.html is in catalina_home\webapps\ROOT\index1.html and this web application runs successfully to the internet.
Also I have a glassfish with another application deployed on it with let's say an index2.jsp.
Can I have a link in index1 that can open index2?
...
Hello!
I was wondering what would be the best URL strategy for a multilingual website (for an Italy based company).
I was thinking about site.com/it and site.com/en, not showing any content at site.com and redirecting the visitors to the localized site when they try to access site.com.
What about buying an additional domain, site.it...
Hi guys,
<?php
include('bitly.php');
$bitly = new bitly('myusername', 'myapikey');
print $bitly->shorten('http://www.google.com');
?>
WORKING!!!
$currenturl = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
inc...
I have a script which tracks visits & referers to a website.
I send the document.referrer (I use escape() in javascript) to the server
and store the string in the database, after decoding it using HttpUtility.HtmlDecode (C#).
For most cases, I can parse the referer string and show hebrew characters,
but there are a few cases which I ca...
I am using asp.net 2.0, I do server.transfer from page 1 to page 2, the url remains same as page 1. Now I click a link in page 2 and that will transfer me to page 3. So, the url should remain same as Page 1 instead the browser now shows the url of page 2. Is that the expected behavior??
I was actually trying to hide the parameters from ...
Hi guys,
I'm running an Apache2 web server with a dynamic IP address. I bought exampledomain.net, and I use no-ip.com's domain-update service to redirect any visitors to my current ip address (endnote #1). For example, someone visits exampledomain.net and they get redirected to 73.181.57.34. It works like a charm. However, it isn't all ...
Do I have to put every file in a different folder?
like:
about-us/about-us.php
profile/profile.php
etc.
or is there any other automatic solution.
I want to convert
http://sitename.com/about-us/about-us.php
to
http://sitename.com/about-us
...