|
Wow
Could you try to reword that, so it makes sense, please ?
1 - what do you want to do ?
2 - what technology are you using ?
3 - what do you need help with ?
4 - what have you done already ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
You know, the message was just shy of gibberish, but the sig was perfectly clear - i wonder if perhaps he intended to just post the thing about passwords, and accidentally leaned on the keyboard while doing so...
|
|
|
|
|
|
I posted this on ASPMessageBoard, I hope it's okay that I repost it here.
I'm a relatively new asp developer so I'm hoping someone more experienced can help me. My company has a third party application that runs on our local Intranet. It runs on a web browser with a query string like http://intranet/blahblah/software.dll/FrmHome
No one seems to know much about it, but near as I can tell it's asp. I've been pouring over the generated html for hours with no clues as to how it does certain behaviors. Most noticebly is when you click a menu item, a "frame" (there are no actual frames, just the appearance done by css) on the right hand side changes it's text so show "Processing" with an animated gif, and after a moment loads the page. The query string changes to http://intranet/blahblah/software.dll/FrmSomethingElse
Here's the kicker - there's absolutely no refresh or flicker visible in the menus, the header, or anywhere. You can expand any menu, click any link, and get no flicker.
My first thought was AJAX. I can't find any mention of any http requests any where in the source. The menu onclick functionality basically directs to a javascript function with the code below:
function ExecuteMenuAction(Page) {
document.all.BTN_JUMP.value = Page;
document.forms(0).submit();
SetProcessing();
return;
}
function SetProcessing(Text) {
TheMenu = document.all.MenuContainer;
if (TheMenu) { TheMenu.disabled = true; }
DisableNavigators();
if (!Text) { Text = "Processing..."; }
ShowProc = "ShowProcessing('"+Text+"');";
setTimeout(ShowProc,150);
}
function ShowProcessing(Text) {
Container = document.all.divDocContent;
Container.innerHTML = "<div class='ProcessingPanel'><img src='../Images/gears.gif'> "+Text+"</div>";
}
I realize this doesn't give you quite the full picture, but I believe it's the important part. THe processing functions are obviously just showing the processing animation. The only indication that I've found of the server being hit is the forms(0).submit. I understand the code to replace the page must be done from this submit on the server. What I don't get is how it replaces the data on the page without so much as a flicker. I hope someone has a theory because I'm tapped. Thanks so much.
|
|
|
|
|
aspcodenut wrote: The query string changes to http://intranet/blahblah/software.dll/FrmSomethingElse
Here's the kicker - there's absolutely no refresh or flicker visible in the menus, the header, or anywhere. You can expand any menu, click any link, and get no flicker.
If the url changes, another page is loaded. There is no way of changing the url without loading a different page.
If the page is well built, there is rarely any flicker when a page loads.
---
single minded; short sighted; long gone;
|
|
|
|
|
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.
|
|
|
|