|
Keep in mind the behavior of closures in JavaScript. The anonymous function declared in this manner:
req.onreadystatechange = function()
{
}
will still have req in scope as long as it exists (which is for the life of the actual request).
So, you could do something like this without problems:
function MakeRequest(request)
{
var req;
if ( !window.ActiveXObject )
req = new XMLHttpRequest();
else
req = new ActiveXObject("Microsoft.XMLHTTP");
req.onreadystatechange = function()
{
if ( req.readyState == 4 )
{
var title;
if (req.responseText.match(/<title>([^<]*)/))
title = RegExp.$1;
alert("Request: \n\t" + request + "\nLoaded:\n\t" + title);
}
}
req.open("GET", request, true);
req.send(null);
}
|
|
|
|
|
Hi, everybody!!
I'm doing a project on C# web application. I need to design a web page and a search engine. I need to design a search engine using the calendar to select the particular date we have click. I have drag and pull the calendar icon. Anyone could tell me the code that if i select on the date i've choose it will show me the database. Anyone who can help me with this. I have stuck here for a long time. Thank! Your help will be appreciated..
Cheers!
|
|
|
|
|
i added a combo box on page have two values "NIC" and" Passport NO".i want that when user select nic nic form field display and when passport select passport no field display in same on same position. Initially both fields are hidden.how i achieve this task
|
|
|
|
|
I have modifed DTC configuration. checked allow remote client
Gave full rights to windows\temp directory
installed all the service packs for sql and windows
I logged in as administrator
while configuring the biztalk 2004 server i got the following error.(clean build)
Following is the error transcript. Please help me to solve the following problem
[7:00:41 AM Error BtsCfg] c:\depot4000\jupiter\source\private\mozart\source\setup\btscfg\btswmi.cpp(266): FAILED hr = c0c025b3
[7:00:41 AM Error BtsCfg] Failed to deploy BizTalk system assembly "C:\Program Files\Microsoft BizTalk Server 2004\Microsoft.BizTalk.GlobalPropertySchemas.dll".
[Microsoft.BizTalk.Deployment.DeploymentException] [System.Data.SqlClient.SqlException] Failed to load msxmlsql.dll.
[System.Data.SqlClient.SqlException] Failed to load msxmlsql.dll.
[Microsoft.BizTalk.Deployment.DeploymentException] [System.Data.SqlClient.SqlException] Failed to load msxmlsql.dll.
[System.Data.SqlClient.SqlException] Failed to load msxmlsql.dll.
[7:00:41 AM Error BtsCfg] c:\depot4000\jupiter\source\private\mozart\source\setup\btscfg\btscfg.cpp(762): FAILED hr = c0c025b3
[7:00:41 AM Info BtsCfg] Leaving function: CBtsCfg::ConfigureFeature
[7:00:43 AM Info ConfigFramework] Waiting for configuration thread to complete.
[7:00:54 AM Info ConfigFramework] Waiting for configuration thread to complete.
[7:01:05 AM Info ConfigFramework] Waiting for configuration thread to complete.
[7:01:06 AM Info ConfigFramework] Showing MessageBox with text: Failed to deploy BizTalk system assembly "C:\Program Files\Microsoft BizTalk Server 2004\Microsoft.BizTalk.GlobalPropertySchemas.dll".
[Microsoft.BizTalk.Deployment.DeploymentException] [System.Data.SqlClient.SqlException] Failed to load msxmlsql.dll.
[System.Data.SqlClient.SqlException] Failed to load msxmlsql.dll.
[Microsoft.BizTalk.Deployment.DeploymentException] [System.Data.SqlClient.SqlException] Failed to load msxmlsql.dll.
[System.Data.SqlClient.SqlException] Failed to load msxmlsql.dll. Return Code: 2
[7:01:06 AM Error ConfigFramework] **********************************************
[7:01:06 AM Error ConfigFramework] *** Configuration failed - Rolling back... ***
[7:01:06 AM Error ConfigFramework] **********************************************
[7:01:06 AM Error ConfigFramework] Configuration failed - rolling back...
[7:01:06 AM Info ConfigFramework] Retrieved cached IConfig object for feature: WMI ProgID: MSEBiz.BtsCfg
[7:01:06 AM Warning ConfigFramework] Rolling back feature: BizTalk WMI
[7:01:06 AM Info BtsCfg] Entering function: CBtsCfg::UnConfigureFeature
[7:01:06 AM Info BtsCfg] Unconfiguring feature: WMI
[7:01:06 AM Info BtsCfg] Entering function: CWMI::Connect
[7:01:06 AM Info BtsCfg] WMI is already connected
[7:01:06 AM Info BtsCfg] Leaving function: CWMI::Connect
[7:01:06 AM Info BtsCfg] Entering function: CWMI::DeleteServer
[7:01:06 AM Error BtsCfg] c:\depot4000\jupiter\source\private\mozart\source\setup\btscfg\btswmi.cpp(1236): FAILED hr = c0c024bf
[7:01:06 AM Error BtsCfg] The server has not been configured.
To configure the server, type the following at a command prompt:
ConfigFramework.exe
[7:01:06 AM Info BtsCfg] Entering function: CWMI::UnConfigureGroup
[7:01:06 AM Info BtsCfg] Leaving function: CBtsCfg::UnConfigureFeature
[7:01:06 AM Info ConfigFramework] *************************
[7:01:06 AM Info ConfigFramework] *** Rollback complete ***
[7:01:06 AM Info ConfigFramework] *************************
[7:01:06 AM Info ConfigFramework] Configuration complete.
[7:01:06 AM Info ConfigFramework] Configuration thread finished.
[7:01:06 AM Info ConfigFramework] Configuration thread has ended.
[7:01:06 AM Info ConfigHelper] Retrieved INSTALLDIR: C:\Program Files\Microsoft BizTalk Server 2004\
Chakrapani Ramachandran
|
|
|
|
|
hi
i have a locally created web site created with visual web developer 2005.
i have also instaled IIS and now i want to deploy my web pages onto my own PC
that is i want to make my pc a web server,
could any body tell me in this regard
?
?
thanks
|
|
|
|
|
just simply copy all aspx and dll files
<< >>
|
|
|
|
|
m_amin83 wrote: have also instaled IIS and now i want to deploy my web pages onto my own PC
Create a virtual directory under the IIS, and map it to your application, and then pay for a domain name, and try Microsoft windows 2003 server[^], and configure it .
------------------------------ "The Soapbox has been so ..."
|
|
|
|
|
I would like to add contact details to the client's outlook address book in asp.net. In ASP.Net, as the click of the button runs on the code on the server side, it is becoming a problem for me. How to achieve this using client side code?
|
|
|
|
|
Hiya all.
I have an issue with Internet Exploer which I was wondering if others had experienced as well.
I have a page which loads in a number of thumbnails. These thumbnails are placed in some div tags which are hidden (display:none;visibility:hidden;) - when clicking a link they are then shown. Simple - if it weren't for Internet Explorer.
For some reason - possible because the page is to large, or something I'm not sure - IE doesn't show all thumbnails when the div is made visible again, instead you have to right click the image and choose "show image" which then loads in the image.
Have others experienced this behaviour and possible found a solution which doens't involve me having to recode the page (which I likely will have to because of this :/)
The "error" is not there in FireFox nor Opera, only in IE.
---------------------------
127.0.0.1 - Sweet 127.0.0.1
|
|
|
|
|
Alsvha wrote: display:none;visibility:hidden
Why both?
|
|
|
|
|
Just a habbit I guess. I suppose display:none; would suffice?
---------------------------
127.0.0.1 - Sweet 127.0.0.1
|
|
|
|
|
Well, it depends on your needs - the two styles have different effects. visibility:hidden; will hide the element but still allow it to occupy space in the layout, while display:none; will prevent it from affecting the layout as well as hiding it.
|
|
|
|
|
Yes, I know the difference between the two, but our designer usually just uses both at the same time, so I've adapted the habbit.
Anyways - doesn't really address my initial query, so it is moveing offtopic
---------------------------
127.0.0.1 - Sweet 127.0.0.1
|
|
|
|
|
Sorry 'bout that. I haven't run into the problem you're describing, was just curious about the technique.
|
|
|
|
|
No problem - I don't really mind off-topic posts, but I think it better to stay on topic in such forums as this
I fixed the problem by re-coding the page, though - but I'm still curious to what caused the effect
---------------------------
127.0.0.1 - Sweet 127.0.0.1
|
|
|
|
|
Can i handle behavior of TAB order of HTML Form Elements ? If yes -how ?
Thank you in advance !
|
|
|
|
|
|
What actually does this property do?, I can't find good docs for it in the MSDN.
------------------------------ "The Soapbox has been so ..."
|
|
|
|
|
Hi there,
You basically use this property to define the order of the accessible elements in the accessibility hierarchy[^] of the document. When you are tabbing the elements in the document, the next one which will receive the focus is determined based on its tabIndex property. In addition to the document provided in my previous post, you can also see the document[^] for more information.
|
|
|
|
|
I would like to show an html page inside an aspx page and it can be changed based on parameters. My constraint is that I should not use IFrame or Frame. Is there any other way?
Thanks in advance
|
|
|
|
|
There's no include directive in the ASP.NET like the classic ASP does so that you can use to include the html static page in a web page .aspx. So there are a couple of options that you might consider:
+ Use the classes defined in the System.IO namespace to read the html file and write the contents to the web page .aspx
+ Use the web user control .ascx, you simply copy the content of the html file in a web user control, and include the control in the web page .aspx.
+ Use the Server.Execute method to execute the html page, and write the output markups to the web page .aspx
|
|
|
|
|
Please help!!!
I created a DB by using MS Access, then public data on a dynamic web page.
However, to control and change a small record, example, a column data of a data table, I have no idea. (I do know about PHP)
My idea is public a list of products and their availability. then the users will change the availability amount of the product through their controlling the spinner. I also have no idea about put a spinner in. I had a glance at the code for this type of button, but I still cannot create one in the dynamic web.
Many thanks & kisses for those who help me!!
thnguyen
|
|
|
|
|
Hi,
How do I create user roles to impliment on my website? I use C# and SQL 2000.
Illegal Operation
Making Computer Software Talk
|
|
|
|
|
IMHO, you might want to have a look at Heath's article[^].
|
|
|
|
|
Hello Every Body,
I want to print Web page using window.print(),the Problem is when printing more than one page i can not print my own Header and Footer on every page.
How can i do this? Please Help me ............................It is very urgent please help me ...
Rajakumar.
Application Developer.
|
|
|
|