|
It's not. I turned off JS completely in IE and it is still very (just as) slow. That was also my first guess and what I tried first.
|
|
|
|
|
Then I don't know what it is that you do that IE doesn't like, but you are obviously doing a lot of weird stuff when loading the page, so it could be just about anything...
The site loads quite slowly in any browser. It takes about five seconds before it's completely loaded in Firefox, only twice that time in IE so the difference is not that big anyway. I would expect less than a second for a site like that.
---
b { font-weight: normal; }
|
|
|
|
|
What's your connection? I have basic AT&T DSL (the slow one) and it loads in about 1 second here...
|
|
|
|
|
first time takes around 5 seconds (im on v. good connect); subsequent trips (cached) def have less load time.
Nathan Lindley
|
|
|
|
|
I have a 100 MBit broadband connection, so that's not why it's slow.
Hold control when you press F5 to update, so that the page is not fetched from the cache, if you want to experience the real loading time.
---
b { font-weight: normal; }
|
|
|
|
|
i have the error described in
Issue 5: Converting the Personal Web Site Starter Kit (Visual Basic)
(This issue applies only when using Visual Basic.) When converting the Visual Basic version of the Personal Web Site starter kit to a Web application project, you will see a run-time error similar to the following:
Server Error in '/' Application
The type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found
To resolve the error, you must add the project namespace to the TypeName property. Assuming your project namespace is "wap1", follow these steps.
1. Open the Member_List.aspx page.
2. Change the type name in the ObjectDataSource declaration to be fully qualified, as in the following example:
<asp:objectdatasource typename="wap1.MemberDetails">
The problem is that id on't have the page of Member_List.aspx. Any one know what i should do
|
|
|
|
|
Hi,
In my asp.net (C#) application, I am running a long running process on one asp:button's click. So for safety purpose, I set the UseSubmitBehaviour attribute = "false" and then disable the buttons on the page (using javascript) and then proceed with the process.
Before actually starting the process, I ask the user a confirmation, whether to proceed or not using Ok/Cancel box in javascript and then actually proceed with the process.
But I see that even if user clicks Cancel, the page still posts back and server side process starts to execute.How can I avoid this ?
For your reference, given below is the whole code
<asp:Button ID="btnSubmit" runat="server" UseSubmitBehavior="false" Text="SUBMIT" Width="100%" CssClass="BUTTON" OnClick="btnSubmit_Click"/>
On Page_Load()
{btnSubmit.Attributes.Add("onclick", "ConfirmSubmit('" + btnSave.ClientID + "','" +btnSubmit.ClientID + "','" +btnValidate.ClientID + "','" +btnCancel.ClientID + "','" +btnBack.ClientID + "','" +btnViewEntireRecord.ClientID + "')");
javascript function
function ConfirmSubmit(btnSave,btnSubmit,btnValidate,btnCancel,btnBack,btnViewEntireRecord)
{if( window.confirm("Are you sure you want to submit this data ?") == true)
{
event.cancelBubble = false;
window.history.forward(1);
btnSave=document.getElementById(btnSave);
btnSubmit=document.getElementById(btnSubmit);
btnValidate=document.getElementById(btnValidate);
btnCancel=document.getElementById(btnCancel);
lnkBack=document.getElementById(btnBack);
lnkViewEntire=document.getElementById(btnViewEntireRecord);
btnSave.disabled = true;
btnSubmit.disabled = true;
btnValidate.disabled = true;
btnCancel.disabled = true;
lnkBack.disabled = true;
lnkViewEntire.disabled = true;
return true;
}
else
{
event.cancelBubble = true;
return false;
}
What is the bug in this. Pls guide me.
Thanks and best regards
Omkar
|
|
|
|
|
AFAIK you need to change the following:
{btnSubmit.Attributes.Add("onclick", "<big>return</big> ConfirmSubmit('" + btnSave.ClientID + "','" +btnSubmit.ClientID + "','" +btnValidate.ClientID + "','" +btnCancel.ClientID + "','" +btnBack.ClientID + "','" +btnViewEntireRecord.ClientID + "')");
The reason is when calling the Javascript from onclick you need to return false to cancel the event.
Your ConfirmSubmit function returned the true or false but it is not returned to the onclick event handler.
"A democracy is nothing more than mob rule, where fifty-one percent of the people may take away the rights of the other forty-nine." - Thomas Jefferson
"Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." - Benjamin Franklin
Edbert
Sydney, Australia
|
|
|
|
|
I have a website create in Visual Studio 2005 (so asp.net 2.0). This site includes a Temporary folder where files are written by this site only for temporary storage. On my computer, I used IIS to give myself rights to read/write to this temporary folder. However, when I publish my website to the company's servers those rights do not transfer and must be manually set on each server. I'd read once that you can put a web.config in any directory to configure it differently from the rest of your website, but I haven't found anything specific. How do I grant read/write permissions to a specific folder? (I'd rather not use a virtual directory in this case)
Any help would be greatly appreciated.
|
|
|
|
|
My xml contains something like this
<intersectionx>street1
<intersectionx>street2
<intersectionx>street3
<intersectionx>street4
<intersectionx>street3
<intersectionx>street1
In my javascript i have stored the street names in an array using Dom.GetElementByTags() method.
in this case my array (lets call it list[]) will have the following content:
list[0]=street1
list[1]=street2
list[2]=street3
list[3]=street4
list[4]=street3
list[5]=street1
is there a good way in JS to make it so that the array contains only a set? (i.e. remove dupicates)
|
|
|
|
|
Hi,
This may be a very common task that many websites carry out, but I dont seem to find a proper solution for the same. Pls help me out
I have a webpage with a datagrid and stuff and 3 buttons. On the click of 2 out of those 3 buttons, I know that the processing time taken at backend is longer, so I need to change the mouse pointer to Hourglass so that none of the buttons are clickable, whereas when the processing is over and screen is updated with new data, I need to show default mouse pointer to the user.
The basic problem what I see here, is that, Because the Client side page rendering doesn't start before server side code is run through, how do you set 2 different cursors at the start of event and then at the end of that event.
Pls Guide me.. I am totally confused, whether this is even possible.
Thanks.. Waiting for ur scholarly reply.
Omkar
|
|
|
|
|
I do not know what language you are using. But one way you could change the cursor is, in the style sheet for your button (if none then make one), add this:
cursor: wait;
|
|
|
|
|
Have a look at AJAX, or if you're using .Net 2.0 you can check Microsoft's Atlas.
Sorry I don't have time to show you the code, but basically you may need Javascript and XMLHTTP to achieve that.
*Ok, just found an article I read in CP before. This article[^] (PleaseWaitButton) is what you need.
"A democracy is nothing more than mob rule, where fifty-one percent of the people may take away the rights of the other forty-nine." - Thomas Jefferson
"Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." - Benjamin Franklin
Edbert
Sydney, Australia
|
|
|
|
|
I have two web pages. The main page contains several VML rectangles that have their "onclick" events set to javascript code. The second page is opened by the first page when a particular link is clicked. What I want to do is change the onclick event of a <v:rect> element on the main page from the 2nd page.
So far I am able to retrieve the reference to the object and view it's initial onclick event:
<br />
var rectelem = window.opener.document.getElementById('event2_2372');<br />
alert(rectelem.onclick);
rectelem.onclick = 'alert(\'This is the new onclick event!\');' ;<br />
alert(rectelem.onclick);
When I switch back to the main page and click on the object though, the initial onclick behavior is gone but the new behavior does not take place. Nothing happens and I get no script error to look at. I've tried moving the new onclick behavior to a function and then setting the object's onclick to the address of that function:
<br />
rectelem.onclick = test;<br />
<br />
function test()<br />
{<br />
alert('This is the test function!');<br />
}<br />
This approach has had the same result so far Any ideas on what I'm doing wrong or how to change this events behavior at runtime?
|
|
|
|
|
I have since been able to get the second approach to work by putting the function test() on the main page and then setting the onclick event = to window.opener.test. This still leaves me with the underlying problem though which is that I need to change what test() does during runtime which I'm not sure how to do.
|
|
|
|
|
Try to put the function object in the event instead of in the page:
rectelem.removed = function() { alert('This is the test function!'); }
---
b { font-weight: normal; }
|
|
|
|
|
This only works if that element is on the same page as the function. My element and function that I want to be used for the element's onclick event, reside on the main page but I need to modify that function's code from the popup page.
|
|
|
|
|
Yes, I did some testing, and it appears that the anonymous function still belongs to the page where it is created, although the function is not declared in the page.
---
b { font-weight: normal; }
|
|
|
|
|
I came up with the following solution:
On the main page I have a function that takes a string and then executes that string as code using the eval function:
<br />
function execCode(codestring)<br />
{<br />
eval(codestring);<br />
}<br />
Then on the popup page I do the following to change the onclick event's code:
<br />
window.opener.execCode("window.document.getElementById('event2_2372').onclick = function() { alert('Modified event code!'); };");<br />
This allows the "function()" assignment to take place in the address space of the main page thus giving it a valid entry point to the function.
If anyone has any tweaks or a better way to do this, please let me know. Thanks!
|
|
|
|
|
I am making a web site that I wish to be viewable by both a normal everyday PC and mobile devices(WM5, CE ect.)
The only way I know how to do it is to detect the browser type and go off that. Is there a way to do this without the wasted page?
Thanks in advance!
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
I've created a web service with an .asmx file that contains many <WebMethod()> functions that I can consume in other projects just fine. Is it possible to somehow share classes belonging to the web service that are not inside the .asmx file?
On the consuming end I would like to be able to declare and use the classes belonging to the web service e.g.
Dim Bleh as new ReferenceName.service.SomeClassBelongingToTheWebService
Bleh.ExecuteSomeFunction()
Bleh.SetSomeProperties = "SomeString"
Is this possible? I currently don't have access to any of the classes belonging to the web service and I have to place all functions inside of the service.asmx file. If I could access the classes belonging to the web service then I could use it to pass strong typed collections and keep my functions grouped accordingly. Thanks so much!
- Paul Anderson
|
|
|
|
|
Hi below is my hyperlink description in a datagrid
<<asp:hyperlink runat="server" text="<%#Container.DataItem("field1")%>" navigateurl="<%# "results.aspx?Param1=" & Server.UrlEncode(Container.DataItem("field1")) & "&Param2=" & Server.UrlEncode(Container.DataItem("field2"))%>">
Please note all the parameters are strings and i am displaying it in Results page so user can be cleaver and handcode the url parameter and print the value in the page.
how can i avoid user from doing this
please help
|
|
|
|
|
uglyeyes wrote: how can i avoid user from doing this
Simple, to avoid it you must not use it.
Use button instead to handle where you need to redirect the user from the server side.
"A democracy is nothing more than mob rule, where fifty-one percent of the people may take away the rights of the other forty-nine." - Thomas Jefferson
"Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." - Benjamin Franklin
Edbert
Sydney, Australia
|
|
|
|
|
I've written a code that creates a receives the request, sent by the web browser(I use FireFox), and then it parses the request and set the headers of a WebRequest object and if it finds any information after the empty line, it writes the information in the WebRequest object, then I get a WebResponse object out of the WebRequest object and creates 2 byte arrays, then it reads the WebResponse stream and puts the data in the first byte array and then puts the Header information of the WebResponse in the second array using the ToByteArray method of the WebResponse's Header propety.
Then I have tried to methods for sending data to the web browser:
1)I have sent the Header array first in a separated Send method and then the Data array in a separated Send method after that, that makes the browser report the "Done" status and shows nothing!
2)I have added the data to the end of the header and sent them az a single Send method, that makes the browser show the html and css and jscript information but it leaves the places of the pictures empty!
Does anyone know, what should I do to fix this problem?
Should I send the header just if the data is in html/text format?
Or the Gip/Png/Jpg of Application data formats also need the header?
If they need, how to make the browser show the images and flashes?
Please help!
Sojaner!
|
|
|
|
|
Try checking your syntax.
|
|
|
|