|
Has anyone seen this before. Actually what is happening is that when I call my asp file that gets the data from the form and does the insert into the database the file is being called twice in production only once on the dev server. any suggestions.
Bill
|
|
|
|
|
Is there any code in the submit button? If yes, then does this javascript code include form.submit() statememt..?
If it does, then remove form.submit() line.
Om Prakash
|
|
|
|
|
How to write use case for a web portal ? How to start ?
Hi all this is Deeps..
|
|
|
|
|
Use cases are written the same, no matter what they are for. There may be some cases when you will find things that do/don't need to be in the use case, but for the most part, they're all the same.
Here's the basic content of an average use case, tho...
1. My Use Case
1.1 Brief Description
1.2 Workflow Diagram
1.3 Actors
2. Flow of Events
2.1 Basic Flow
2.2 Alternate Flows
2.2.1 Alternate Flow 1
2.2.2 Alternate Flow 2
2.2.3 ...
3. Special Requirements
4. Pre-Condition
4.1 Pre-condition 1
4.2 Pre-condition 2
4.3 ...
5. Extensions Points
5.1 Includes
5.2 Extends
Michael Flanakin
Web Log
|
|
|
|
|
Thanks It helped.
Thanks in advance
Deeps..
|
|
|
|
|
ok so i have a form that has a droplist in it
when the selection changes i want to fire the submit event
so i add this:
<form name='fp' method='post' action='blah.blah'>
<select name='fptype' onChange='document.fp.submit()'>
---
rest of form
---
</form>
and all i get is errors saying:
document.fp.submit is not a function
am i being an idiot or did something change when i wasnt looking?
"there is no spoon" biz stuff about me
|
|
|
|
|
uhm, I tried the exact code you described and it worked for me (in IE that is). Are you using a different browser?
As reference though, this is a more programatically correct approach:
<html>
<script language='javascript'>
<!--
function onchangeOptions()
{
var frm = document.getElementById("fp");
if (frm) frm.submit();
}
</script>
<body>
<form id='fp' name='fp' action='http://localhost' method='post'>
<select name='fptype' onChange='onchangeOptions()'>
<option>1</option>
<option>2</option>
</select>
</form>
</body>
</html>
We've included the id attribute for the <form> and so we can use:
getElementById DOM method
which is better than using the document.elementname approach as this searches through all the DOM collections. With multiple FORMs on the page (in my experience) the latter didn't always return the object, whereas the former does.
Anyway, hope this helps
Cheers,
Andy
|
|
|
|
|
thnx a lot for the post
i did fix it already tho and it was a dumb pfu
i had a button called submit on the form
doh!!
and yah its not just for ie
"there is no spoon" biz stuff about me
|
|
|
|
|
Never ever submit a form onchange of a select!
Reasons:
- the user is not able to select options with the keyboard
- when the user uses the mouse wheel and the
select has focus the form is again submitted by accident - the form will not be submitted if the user has JS disabled
Having that said here's another programatically correct approach:
<script type="text/javascript">
function doSubmit(frm) {
frm.submit();
}
</script>
...
<select onchange="doSubmit(this.form)">
|
|
|
|
|
I get this error everytime a page needs to return after a submission:
Response object error 'ASP 0156 : 80004005'
Header Error
/ok3/Discussion Pages/utils/Login.asp, line 68
The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.
Since I rode in on the short bus I can't figure it out. Please Advise.
William Hosack
|
|
|
|
|
Ahh this old chestnut. I'm going to take a stab in the dark here and say that you've got a Response.Redirect in the Login.asp file. This is getting called after you've written some data out to the client. There is a simple fix for this, just add
Response.Buffer = true at the top of the asp file and you should find that all will be well.
Setting Response.Buffer to true, tells asp to buffer all of the output until the page has been fully parsed and is ready to go. This means that if you make a change to the HTTP headers mid-page (Response.Redirect sends HTTP headers telling the browser that the requested item has been moved somewhere else [in this case wherever you Response.Redirected to]), asp will just issue out the final headers. Without buffered output, asp will have already sent an HTTP header saying that the resource was found as is following, then it will try to tell the browser that it moved (hence the error)
You will probably find that this page would work "as is" in IIS 5.0 as buffering is turned on by default, whereas in IIS 4.0 it was turned off.
If I'm wrong and this doesn't fix things for you, then please provide the broken code and I will try to help you further.
HTH
|
|
|
|
|
Anyone have a suggestion for a good FREE web anaylsis tool?
|
|
|
|
|
|
Thanks, but I already know how to search for free web analysis tools. I am asking for peoples opinions on any ones that they already have used or heard about. I am looking for personal recommendations.
|
|
|
|
|
Drives me f*ckin nutts when people do that
How do I print my voice mail?
|
|
|
|
|
We use AWstats - really good I think. And relatively easy to setup.
http://www.awstats.org/[^] - go fetch
Do you know why it's important to make fast decisions? Because you give yourself more time to correct your mistakes, when you find out that you made the wrong one. Chris Meech on deciding whether to go to his daughters graduation or a Neil Young concert
|
|
|
|
|
|
I am getting server errors when trying to download a CAB file from a webserver.
I think the problem is that the default headers don't allow for CAB file mime type.
What string do I need to use in my call to
CHttpFile.AddRequestheaders(); to get this file?
I believe this is the problem, because if I change the URL to point to an HTML page, but leave everything else the same, then the file downloads just fine.
Thanks!
(I am also posting this in VC++ forum)
//placeholder for witty verbiage
|
|
|
|
|
Hi,
I'm guessing that you need to include the header:
Accept: application/cab
so
CString szHeaders = "Accept: application/cab\r\n";
pFile->AddRequestHeaders(szHeaders);
Hope this helps,
Andy
|
|
|
|
|
Turns out I had the wrong path on my server DO'H!
But the CAB file thing still has me messed up because I don't know how to get it to automatically execute. If I try to download the single EXE file contained within it, I get a server error.
I tried "Accept: application/exe" for my header and my webserver throws an error.
How do you form the headers for an EXE file?
//placeholder for witty verbiage
|
|
|
|
|
Hi Dear...
I struck in a problem & I know you can help me..
I've a pro-merchant account in amazon..& I want to upload Inventory to amazon.. but getting problem..File Error..even from site upload...
Can you send me Execl file you used for that uploading...
+ if possible some coding snippet of uploading invenorty. I want to upload through coding.. send me at:
sumit_kapoor1980@hotmail.com
or chat with me at hotmail account or yahoo: sumit_kapoor1980@yahoo.com
I hope you will help me..
Thanks
Have a Nice Life..
Sumit Kapoor.
---Sumit Kapoor---
|
|
|
|
|
I often have to convert lengthy word document to html. Every time, I copy the doc to a text file, then format it to html, adding different tags, bold there, italize there, add a list somewhere. I often wonder if there is a better way, an efficient way to do this? I do not want to use office conversion tools, since there is too much, too much junky spaghetti code, which is very very hard to manage. So can someone let me how I am suppose to do it?
|
|
|
|
|
|
wrong direction. Not html-> word, but the other way around.
|
|
|
|
|
looks like you want stuff to fall on your lap, it's not happening.
I am sitting in my flame proof buncker, so don't even bother.
by the way, perl stinks.
|
|
|
|