|
why would you do that anyway?
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
We have a demo coming up and need to wget a couple of websites onto a laptop. Apache is serving up the static files but doesn't like finding files with querystrings in the filename.
regards,
Paul Watson
Ireland & South Africa
Shog9 wrote: I don't see it happening, at least not until it becomes pointless.
|
|
|
|
|
Perhaps mod rewrite?
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Yeah, it might be configurable that way but I haven't found out how yet. A co-worker keeps repeating to me "Paul, it is a fundamental part of web-servers, only crazy people want to turn it off so it probably isn't an easy setting."
So we've gone with rewriting the links and filenames rather.
regards,
Paul Watson
Ireland & South Africa
Shog9 wrote: I don't see it happening, at least not until it becomes pointless.
|
|
|
|
|
Paul Watson wrote: So we've gone with rewriting the links and filenames rather.
I was going to suggest making your own mock web server... but i guess that is useless now.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
I'm looking for a web site that does extreme things with JavaScript to test some code in an embedded browser designed to defeat that. (This would include things like resizing the browser, doing popups, etc.)
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Joe Woodbury wrote: (This would include things like resizing the browser, doing popups, etc.)
That's not really anything extreme, more like basic Javascript.
Joe Woodbury wrote: I'm looking for a web site that does extreme things with JavaScript to test some code in an embedded browser designed to defeat that.
Not sure about sites that do extreme things, but here are some pretty cool ones:
Javasript Source
Javascript Kit
They're both really good. Hope this is what you need.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
|
Hello:
I am having problem of Request.queryString("address") to get the value of address, if the address contains '#' character then it is chopping up to # then I am not getting remaining part of value and other values in the query string.
My query sting is:
a href="TestCharacterForm2.aspx?Address=Apt#123&Address2=Chicago" mce_href="TestCharacterForm2.aspx?Address=Apt#123&Address2=Chicago" > TestCharacter
Is there any way using javascript or something else?
Thanks
fireman
|
|
|
|
|
The reason for this is that it is going to go to the page "TestCharacterForm2.aspx?Address=Apt" and then go to the page jump 123&Address2=Chicago. You could try "URL encoding" it.
This would give it a value of "%23" in the link but # on the server.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
The problem is what Brad suspected. You haven't url encoded the url properly. Also, you haven't html encoded the property either.
Your code should look like this:
href="TestCharacterForm2.aspx?Address=Apt%23123&Address2=Chicago"
Note that the # character is url encoded into %23, and that the & character is html encoded into &
If you are writing the values in the querystring from server code, use the methods Server.UrlEncode to encode the query string values, and Server.HtmlEncode to encode the entire property value.
---
Year happy = new Year(2007);
|
|
|
|
|
sorry just to correct you answer, HTML entities are not accepted as URL components.the "&s;" would mean that there would by a query stringAddress=Apt%23123 and a seperate on called amp;Address2=Chicago.
A quick was to get the URL values is to download the firefox extension "Hack Bar". Quite usefull (https://addons.mozilla.org/firefox/3899/[^])
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Bradml wrote: sorry just to correct you answer
You can't. It's already correct.
Bradml wrote: HTML entities are not accepted as URL components.
Of course not. The HTML entities are not encoded in the URL, they are encoded in the HTML code. When the HTML entities have been decoded to get the value of the HTML property, you get the URL.
---
Year happy = new Year(2007);
|
|
|
|
|
My bad, didn't think that through.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
This isn't a programming question, but a "is this doing what I think it's doing" question.
I have a device from a third party that presents an html login page via http. I did my testing and am ready to deploy the device, so I turned on https authentication. To my surprise the login page is still delivered via http, once I click authenticate, it pops up an https page and then continues (at first it actually didn't; I had to add the certificate to my list.)
I'm baffled by this. Both http pages are identical. Does this mean the login information is actually sent in the clear to the server, which sends back an https page just to test the certificate? Am I missing something here?
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
It sounds to me like what would be happening is that when you send the login information through the form, it is switching to https. an example might be:
<br />
<form action="https://mysite.com/nowsecure.php" ><br />
<input value="This is the text that will be sent securely to the server" type="text" /><br />
</form><br />
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Please Help!!
I have a project to create the pages to support displaying the weather on a Web site. I have been provided with the images, icons, and so on for all the weather conditions such as "Rain", "Winds", "Lightning", "Cloudy Day", "Sunny Day". This also includes the map images for UK map, separate regional maps. I have also been given the JavaScript data objects that I need to use to dynamically display all the information.
I need to include a Weather Summary, National Summary, and Regional Forecast. I also have to use a Cookie to store the current user's location.
What would be the best approach to handling this type of project such as displaying the different graphics for cities when the user clicks on the map of the UK? The programming language is classic ASP/VBScript, and JavaScript. I was wondering about AJAX but ASP does not support it. This seems to be a VERY dynamic kind of project. The user will be allowed to click on any regions on the map of the UK which will cause that particular area to be displayed. Cloud, Sun or whatever icon will be displayed for that new image that will be displayed. These weather icons will be dynamically based on the weather data. It seems that there will be many layers that each will change for each selection by the user. How do you start with such a seemingly complex requirement? Do you need to use some kind of "form post" process? Do you need a whole bunch of pages for each city do some kind of replacement? If so, how do you keep track on it all?
I have been given the "static" starter HTML pages for the Summaries, and 5-Day forecast, etc., that have been layed out with divs and CSS positioning, no tables.
These are some example Web sites of how my pages should look:
www.ntlworld.com/weather
www.gm.tv/index.cfm?articleid=2932
www.itv.com/page.asp?PartID=46
Any help of how to go about this would be really helpful.
Thanks again,
Mark.
|
|
|
|
|
What do you mean "ASP does not support Ajax"??? Please do me a favour and Google "Ajax"
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Hi Brad,
Thank you for the reply. I have been studying AJAX for an MS in IT and all the Web sites, books, professors, and other sources have only ever produced examples in PHP, and ASP.NET, not classic ASP or VBScript. If you caould please point me to any examples for widgets created in good old ASP I will be more than happy to purchase the book and cheerfully hit myself on the head with it! I have Googled many times, and ASP and AJAX just don't seem to mix. I can't force the Company to upgrade to .NET.
Thanks again for taking the time to reply.
Respectfully,
Mark.
|
|
|
|
|
Ok to understand that ASP (and any Server side language for that) is fully compatible with Ajax you need to understand the client server relationsship. This is something you normally would write an article on so I will be brief in my description.
Basically whatever happens on the clien tis unrelated to the server. What Ajax does is allow you to share what's happening on the client with the server, but without have to refreshes the page. This also means that the server can give the client the information it needs to without refreshing.
Mozilla has a very good article on the foundations of Ajax. I imagine that writing Ajax for classic ASP would be similiar to PHP (although I must say that I do not know the language [If you can call it that] well).
Have your clients considered PHP?
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Hello
I am currently writing an asp.net webapp that uses a .NET UserControl embedded through object tag. Now the dll of the control is quite big and the first time I open the page it always takes a while until the control is being displayed because it has to download the control first.
Now my question is: Is there a way to preload the control DLL into IE download cache (JavaScript...?)?
Regards
Alexander
|
|
|
|
|
I'm making a part of a website, and i need a method in which i can uniquely identify people visiting.
now this is unlike most counters, i need to be able to specify/characterize a user a well as possible.
most counters just use IP address, which is very inefficient (users with dynamically assigned IP count numerous times)
or others use cookies, again not good since many don't use/support/enable cookies. (and/or can remove them)
PHP sessions, but they are geared for a time-online-basis
i want to uniquely identify a host connecting to a specific site, and i am currently using a combination of cookies and ip address and other characteristics i can get from the host (like browser).
can anyone suggest what would be the best method in uniquely identifying a host?
Ericos Georgiades
|
|
|
|
|
User names and passwords?
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
credit card numbers?
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
it's more like a visit once kinda site.
and i dont want to have user interaction ..
but hey, if you're willing to give your credit card number as an id, then i'm gonna need that id :p
Ericos Georgiades
|
|
|
|