|
aspcodenut wrote: What I don't get is how it replaces the data on the page without so much as a flicker.
Given that it's an intranet site, the page is probably downloading very, very quickly (and as Guffa said, unless the page is poorly done this should be enough to prevent flicker in most cases).
You can test this theory by installing Firebug[^] and then watching the Net tab as you navigate. You should be able to see what actually gets sent and how fast...
|
|
|
|
|
Thanks for the tip. The page won't execute under Firefox but I found a similar program for IE called DebugBar.
I justed noticed that the address bar is being set to the page I WAS on not the one I'm going to.. interesting. It's also interesting to note I cannot manualy change the address to another page or I get a timeout error.
Here's what seems to be happing. The http request fires off as soon as you click the button (the form is being submitted) The "processing" gif is loaded at this time. Then there's multiple calls to an htc file that is set as a property to the body. The htc file is very simple. It's a property that when set evalutes whatever javascript is passed in.
The FOrm posts its own name but is referred by the page in the address bar (the previouspage?)
Okay, this is confusing, but let me relate what's up. When I first load the page I am redirect from FrmHome.. thus the address bar reads http://blahblah/thisweb.dll/FrmHome despite the fact I am on FrmPage1. Maybe an example. Let's say I click on FrmPage2 This is the http data
POST thisweb.dll/FrmPage1 from referer thisweb.dll/FrmHome
GET /styles/form.css referer FrmPage1
GET Components/runner.htc (no referer)
GET Components/runner.htc referer thisweb.dll/FrmHome
GET Components/runner.htc referer thisweb.dll/FrmHome
And that's it. What it seems to me is that there is a post being made to the server. The server is then referencing back to the htc attached to the body and using it to inject javascript that changes a single div (divDocContent).
I still don't know how that's possible, but I assure you there are not GETS other than those listed above. I'm not even convinced at this point if it's ASP. I suppose if the server had some way of setting the body property from the server and loading the page from the cache. It's just that I can create a page with one line of text and a submit button (returning to the current page) and I get more flicker than I do on this other site. Thanks again for everyone's ideas.
|
|
|
|
|
Hi guys.
I have a lil problem, maybe easy but I havent found any resolutions to it.I have webpages but Ive jus remembered that I have to make sure that they all appear the same in all screens.I have tried a few on my pages on another computer from work and they appear all over the screen and not structure.
I do remember that there are some settings to ensure that a webpage appears properly as was structured at all computers.
How do I do that.Thank you in advance.
kagiso
|
|
|
|
|
You need to look into using CSS. It was designed pretty much for just this situation.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I have used CSS with all the pages but its jus not working on other computers.It works on mine and other flat screens but cant seem to be able to share the same capabilities on other CRTs.
Anyother ideas.
Thanx by the way
kagiso
|
|
|
|
|
Take a look at the browsers: are they the same version? Not all of the stuff in CSS is supported by all browsers.
|
|
|
|
|
Thanx.I will do that.
kagiso
|
|
|
|
|
How are you, people? I would like to seek help in creating a page that will search the whole page with the keyword that the user input the text box
Ex.
Search Here [___________________]
--------------------------------------------------------------------------
This will be the page that will be searched in the same window...
**************************************************************************
It will highlight the searched item, just like in firefox. I'm creating a new window without the toolbars in it. So I will be placing a textbox at the upper part of the document that will be the Searchbox for the document at the lower part. Thanks alot for you help....
-=H=-
|
|
|
|
|
|
Hi
For my website .. i want to disable user from using back button of the browser.
Web site is in asp.net
Vikram
I Code...
|
|
|
|
|
|
Thank you
Vikram
I Code...
|
|
|
|
|
Vikram..... wrote: For my website .. i want to disable user from using back button of the browser.
For my browser... i want the back button to always work.
What you want is sketchy at best - yes, there are certain hacks that can kinda do what you want, but there's no promise that they'll work on all browsers or for all users, and unless you are very careful can actually make things worse in situations where your real goal is to prevent multiple posts or equiv.
Design your system so that it is tolerant of the user using their browser.
|
|
|
|
|
Hi i need to check pattern of a file name using Regular Expression.
The file name is something like "TRANS#7_26_2007.xls" ie "TRANS#[MM]_[DD]_[YYYY].xls"
Can any one please help me.... Thanks,....
Vikram
I Code...
|
|
|
|
|
Hi Vikram
I think the pattern you need is TRANS#\d{1,2}_\d{1,2}_\d{4}\.xls .
The "\d" matches any numeric character.
The "{x,y}" pattern matches the preceding character between x and y times (i.e. your example showed that the months may be expressed as a single digit).
The "{4}" pattern matches the preceding character exactly 4 times.
The "\" says to treat the following character as a literal (because "." is a special matching character).
Hope that helps.
Regards
Andy
I code too...
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message".
|
|
|
|
|
Hi,
I need some help in writing a regular expression. I normally do checks, but in this case I need something else. I have a textare control, and I need to extract all the numbers. There is text in between as well, but I need to get all the numbers separately.
What I have here extracts a wide variety of numbers, like: 321.0, 321, -0.020, -0.02, 3.0E-17, 3E-17, 1, 34, etc. I need just whole numbers, it's for ISBN. I want it to search for number, but if a there is a number like 999-999 I need it to remove the - as well.
I am using ASP.NET 1.1 and VB.NET 1.1.
Regards,
ma se
|
|
|
|
|
I don't have VS.Net on this PC, but the following should do the trick:
[0-9]-?[0-9]-?[0-9]-?[0-9]-?[0-9]-?[0-9]-?[0-9]-?[0-9]-?[0-9]-?[0-9]
or
\d-?\d-?\d-?\d-?\d-?\d-?\d-?\d-?\d-?\d
Regards
Andy
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message".
|
|
|
|
|
Hello,
I m facing a problem attaching a parameterized function onkeypress of textboxes that are getting created at runtime using document.createElement()
Need advices...
Here is the code:
The problem is that the event is neatly attached to every textbox object.
But the Object parameter that is passed to anonymuous method always takes the loop's last iteration textbox textbox-object for each textbox-object
function CreateTextBoxes(NumOfBoxes, ContainerID)
{
document.getElementById(ContainerID).innerHTML="";
for (i=0;i<parseInt(NumOfBoxes) ; i++)
{
var oTextBox="";
oTextBox=document.createElement("input");
oTextBox.id="Age"+i;
oTextBox.size="5";
document.getElementById(DependentsContainerID).appendChild(oTextBox);
document.getElementById(ContainerID).innerHTML+=" ";
}
var TextBoxId="";
for(i=0;i<parseInt(NumOfBoxes) ; i++)
{
TextBoxId="Age"+i;
document.getElementById(TextBoxId).onkeypress=function(){LimitChars(document.getElementById(TextBoxId),"3","Numbers");}
}
}
}
Help will be greatly appreciated!!!
Thanks,
Pranav
-- modified at 6:10 Wednesday 1st August, 2007
|
|
|
|
|
Pranav Kaushik wrote:
TextBoxId="Age"+i;
document.getElementById(TextBoxId).onkeypress=function(){
LimitChars(document.getElementById(TextBoxId),"3","Numbers");
}
You need to change as below.
TextBoxId="Age"+i;<br />
document.getElementById(TextBoxId).onkeypress=function(){ LimitChars(document.getElementById(<big>this.id</big>),"3","Numbers");}<br />
Here is my test script for you..
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<html xmlns="http://www.w3.org/1999/xhtml" ><br />
<head> <title>Untitled Page</title><br />
<script language="javascript"><br />
function CreateTextBoxes(NumOfBoxes, ContainerID) {<br />
document.getElementById(ContainerID).innerHTML="";<br />
for (i=0;i<parseInt(NumOfBoxes) ; i++) {<br />
var oTextBox="";<br />
oTextBox=document.createElement("input");<br />
oTextBox.id="Age"+i;<br />
oTextBox.size="9";<br />
oTextBox.value = "Value Age" + i;<br />
document.getElementById('DependentsContainerID').appendChild(oTextBox);<br />
document.getElementById(ContainerID).innerHTML+=" ";<br />
}<br />
var TextBoxId="";<br />
for(i=0;i<parseInt(NumOfBoxes) ; i++) {<br />
TextBoxId="Age"+i;<br />
document.getElementById(TextBoxId).onkeypress=function(){ alert(document.getElementById(this.id).value);<br />
}<br />
}<br />
}<br />
</script><br />
</head><br />
<body><br />
<div id="DependentsContainerID"></div><br />
<div id="ContainerID"></div><br />
<input type="button" value="Create Textboxes" onclick="CreateTextBoxes(10,'ContainerID');"<br />
/><br />
</body><br />
</html>
Hope it helps.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
hi
I registered a site with this address "MyProject.com"
and now I want to redirect every address like " ____.MyProject.com" to "MyProject.com"
ex:
mail.MyProject.com
ex:
login.MyProject.com
How can i configure IIS?
or How can i configure DNS server.
|
|
|
|
|
There is something called a host header in IIS. This allows you to map multiple web addresses to one IP address. If you open computer management and go to your web site and right click and select properties. On The web site tab there is an advanced button. The top part is where you add the multiple identities for the web site. NOTE: I believe you have to enter each of them in, I do not believe wild cards work. So you would have to enter mail.MyProject.com, login.MyProject.com etc.
Then you will have to configure you DNS server with all of the same mappings, so your DNS server knows which IP to route traffic.
Hope that helps.
Ben
|
|
|
|
|
hi
I configure DNS server.my Site with "MyProject.com" has 150.150.0.1 ip address.and other address like "___.MyProject.com" redirect to 150.150.0.1
ex:
from command line client computer
ping nnn.MyProject.com
150.150.0.1
but
when I write this address in ie address bar it return an error that says:
Page is under construction
howcan i fix it?
|
|
|
|
|
Did you configure your web site in IIS like I said in my previous post? You have to add the host headers in the advanced screen for the site to respond to the different URLs.
Ben
|
|
|
|
|
yes
But Ihae problem yet?!
|
|
|
|
|
I would guess that you didn't set up your default page correctly. What page is suppose to be the start page of your web site? In IIS you need to set it there. In IIS in the properties for the web site there is a tab called document. Usually there is Default.htm etc. You need to add your start page to the top of the list.
Hope that helps.
Ben
|
|
|
|