|
I believe if you want any data sent to a CGI script via POST you must encapsulate your form data with form tags. There is a submit() which could be called to programmatically send data to a script on the server, instead of having the user click Submit button. There may be a hack around this i'm not sure off the top of my head, i'd have to think about it for a while.
If sending data to the server doesn't require POST you can use GET method and send some data to a script on the server whether it be stored in a variable or cookie.
var temp = getCookie('my_cookie', document.cookie);
for(var i=0; i<12; i++){
if(temp==i)
location.href="index.php?my_value="+temp;
}
What exactly is it your trying to accomplish??? Maybe i can figure something out for you.
Cheers!
"Two wrongs don't make a right, but three lefts do!" - Alex Barylski
|
|
|
|
|
Well interestingly enough I'm trying to retrieve cookie values and have them sent out to a server as part of a query string. Problem is, I don't know javascript and don't really want to have to learn it. I assumed that there would be similar code snippets out there that I could use but the ones I've seen look hackish. By the way, I want to read the whole cookie, not just specific values.
The method you've shown above though, with "location.href", does that use POST under the covers?
Thanks!
Senkwe
What's the difference between a C++ programmer and God? God knows he's not a C++ programmer :
anon
|
|
|
|
|
Senkwe Chanda wrote:
The method you've shown above though, with "location.href", does that use POST under the covers?
No i'm pretty sure it's GET because the values would be part of the URL.
"Two wrongs don't make a right, but three lefts do!" - Alex Barylski
|
|
|
|
|
You can use forms , and submit using Javascript.
What you are sending is accessible from server side.
|
|
|
|
|
Hi,
I'm looking for a web site like code project, but for web desing ( CSS's, java script goodies, ...).
Can you tell me one cool site ?
Thanks
|
|
|
|
|
I know a site that isn't as diverse as here but does give some excellent examples of what can be achieved with Javascript and CSS. It's the best web site interface I've ever seen.
www.youngpup.net[^]
Live to ride. Ride to live.
|
|
|
|
|
Anybody knows zipping algorithm in ASP?
or how to write file on server through applet (applet is downloaded from the same host machine , codebase is same host)
I want to create a zip file dynamically using an applet on net and save it on server machine
The flow is like this:
client selects some files from server and pass it to an applet embedded in bowser (Applet is selected coz it is the only way to process on client side )
Applet processes it and make zip out of it and write back to server
But the main problem is applet cant write back to server directly
so I am using applet-javascript-ASP chain
but by this I am not able to use ziping code and just the processed binary data I am able to send to ASP which then create new file for every request and write data in it ; but then I am not able to zip it
Can anybody help me out?
yogini
|
|
|
|
|
I use C# to develop a web embed application, and I find that using WebClient is very easy to raise a web request and get the response. But I don' know how to set the TIMEOUT property(or something like that) to prolong the request time.
|
|
|
|
|
Hi, everyone!
I want to invoke a client side execute program through
a link in the web page. Please notice that it is a client
side program and not a server side one. For example, when clicking
a link pointing to a .rm file on the server, RealOne player on
the cilent side will be invoked.
Are there some sample codes?
Thanks in advance,
George
|
|
|
|
|
You cannot run EXE file, it will break security, but if you mean running a program associated with some file, then just place a link. For RealPlayer, just put a link to your RM file on the server and when user clicks it, the player will pop and start playing (of course if it is installed)
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
|
|
|
|
|
Thanks, Philip buddie!
How can I register a new file type for my specific
application? Are there some materials for me to
reference?
regards,
George
|
|
|
|
|
George2 wrote:
when clicking
a link pointing to a .rm file on the server, RealOne player on
the cilent side will be invoked.
That's what is automatically done already, thanks to the .rm file association with the RealPlayer. You don't have anything to do. Of course, for all of this to work, the client must have RealPlayer installed. Otherwise Internet Explorer will prompt the client with the download box.
|
|
|
|
|
Thanks, .S.Rod. buddie!
George
|
|
|
|
|
I have PWS installed and I'm trying to preview a simple ASP .NET page. Since I only have Win98, I can't use Web Matrix's built-in server. So I will have to use IIS, which comes with the NT 4 Option pack for Win 95/98. My question is: how do I set up an IIS app for the .NET page? I heard that IIS apps are administered through the IIS MMC snap-in. But the IIS snap-in isn't listed in the list of available snap-ins. How do I register/install it????
Thanks
/jdunlap
|
|
|
|
|
Either you are a genius, or a bit confused. IIS only runs on Windows NT/2000/XP/2003. It does not work on Windows 98.
That is why they made PWS. Windows 98 is not a server product.
i.e. You cannot get the MMC IIS snap-on in Windows 98 because IIS does not work on Windows 98.
The NT4 Option Pack is exactly that. An option pack for Windows NT4. Not Windows 98.
What you need to do is get hold of Windows 2000 (or Windows NT 4 if you insist.) Then you can run IIS locally and do all those nifty bits.
Paul Watson Bluegrass Cape Town, South Africa
Macbeth muttered:
I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er
DavidW wrote:
You are totally mad. Nice.
|
|
|
|
|
|
No, Windows 98 is not a server OS; yes, it can run scaled-down versions of some servers, including MTS. Whether that includes IIS I don't know. I only know that the NT Option Pack has all the IIS dlls.
|
|
|
|
|
I just delevop a project using webservice,there are more than one webservice(.asmx file) in my project,how do i write the .disco file to let me refer these webservices
in other project?
thank u in advance!
|
|
|
|
|
I have an application that will execute a command on a server and return the results of the command to the browser. I want to be able to pop up a web page with the results. I have 2 questions.
1. How do I open the second window from C#?
2. How do I size the new window so it is smaller that the orginial window?
Thanks
Gary
|
|
|
|
|
gmonk wrote:
1. How do I open the second window from C#?
2. How do I size the new window so it is smaller that the orginial window?
C# is a Server Side language.
You need to use JavaScript to control the Client Side.
You can use C# to output your JavaScript which is then run on the CS.
e.g. mycontrol.Attributes.Add("onclick", "window.open(\"newwindow.aspx\", \"width-100; height=100;\")");
To control the window you use the window.open method in JS.
Paul Watson Bluegrass Cape Town, South Africa
Macbeth muttered:
I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er
DavidW wrote:
You are totally mad. Nice.
|
|
|
|
|
I already have a view in SQL2000. How can I use that query to return and display in Crystal? Any basics out there for me?
Thanks
|
|
|
|
|
Hi,
I'm trying to update a progress bar with the load progress of a webpage. On my form I have a webbrowser control and a progress control. I'm trying to use the ProgressChange event but it fires for every item that has to be downloaded (images, etc). So when the page starts loading after the first item completes the progress bar is finished even though most of the page is still loading. My question is how do I know what the progress is for the entire page instead of simply an item?
I tried posting this in the C# forum, but they said it was a question better suited for this forum.
Many thanks in advance.
- monrobot13
|
|
|
|
|
I installed Visual Studio Service Pack 5 for Visual Studion 6.
Now I can't debug ASP. ( cannot see dllhost or inetinfo when trying to 'attach process' in InterDev )
Thanks in advance for any help.
|
|
|
|
|
Use the ISM to find the Aplication Configuration dialog for the application, then in the App Debugging tab enable the Enable Server-Side Script Debugging option. This causes IIS5 to run in single-thread mode, so be sure to disable it after the debugging is complete or you'll have performance problems.
"Please don't put cigarette butts in the urinal. It makes them soggy and hard to light" - Sign in a Bullhead City, AZ Restroom
|
|
|
|
|
Roger , I have tried that option but still nothing happens,..the problem is still you cant see dllhost or inetinfo in 'attach process'of interdev.
This happens after installing svc pack 5...
|
|
|
|