|
Without telling us the technology you are using it is tough to give you good answers. Someone could give you a sample in C#, but if you are using PHP that probably won't help you much at all.
|
|
|
|
|
hiii
I am working with JSP and code needed for that one. Especially in the
3 bad login attempts blocking.
Thanks for ur reply.....
Pradeep
|
|
|
|
|
In Javascript I am trying to create a new window, write some html into it, and then bring up the print dialog for this newly created window automatically.
The follow code demonstrates what I am trying to do, the new window appears and is successfully written to but the print dialog does not show up.
What gives?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Printing Example</title>
<script type="text/javascript" language="javascript">
function HelloPrint()
{
var winPrint = window.open("", "");
winPrint.document.write("<H3>Hello World</H3>");
winPrint.print();
}
</script>
</head>
<body>
<a href="" onclick="HelloPrint()">Go</a>
</body>
</html>
|
|
|
|
|
Replace
winPrint.print();
with this
winPrint.document.execCommand("Print");
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Yes sir!
Thank you, exactly what I needed
|
|
|
|
|
Here is a way that works in more browsers ...
winPrint.document.close();
winPrint.print();
|
|
|
|
|
Good to know, cheers
|
|
|
|
|
Hi All,
In my Webpage i have a Button control.
On the button Click i have following functionalities
1.To show the "progress bar" Icon during retrieving data from Sqlserver Database..
2.After retrieving a Data from DB a csv report will be generated.
For Point 1--the below is the code i have used
Code snippet for busy Icon:
============================
Response.Write("<div ID='mydiv' STYLE='position:absolute;z-index:5000;top ;left ;width:100%;height:100%;'><table cellspacing='0' cellpadding='0' border='0' align='center'><tr><td class='copy' align='right' height='260'><img src='./processingimage.gif' width='0' align='absmiddle'></td></tr><tr><td class='copyblack' style='font-family:arial;font-size:14px' align='center'><img src='./processingimage.gif' border='0' align='absmiddle'><br><br>" + strBusyMessage + "<br>" + strReportCreteria + "</td></tr></table>")
Response.Write(" ")
Response.Write("</div>")
Response.Write("<script> var mydiv = document.getElementById('mydiv');</script>")
Response.Write("<script language=javascript>")
Response.Write("function StartShowWait(){mydiv.style.visibility ='visible';}")
Response.Write("function HideWait(){mydiv.style.visibility = 'hidden';}")
Response.Write("StartShowWait();</script>")
'Page.Session.Add("SessionID", Session.SessionID)
Response.Flush()
=================================
For point 2: please see the below code snippet
Code snippet to generate CSV report.
==================================================
Response.AddHeader("Content-Disposition", "attachment; filename=" + CSVName) Response.ContentType = "application/csv"
Response.Write(CSVContent)
Response.Flush()
Response.Close()
=====================================================
when coming to above mention code line(bold one in above snippet) i am getting the below error
"Server cannot append header after HTTP headers have been sent"
Please help me in resolving the above error.
|
|
|
|
|
Hi,
This approach won't work as calling Response.Write will force the Response Headers to be sent to the client. To get the AJAX style loading screen I think you're trying to get, you should include the markup for the busy icon on the first page and call the StartShowWait() method on the button click. The CSV will then generate as a normal ASP.Net request as you'd expect.
Regards,
Martin
|
|
|
|
|
Hi There, I need some help creating a html cookie that collects information from a registration form I created in HTML. I then need to take that information and populate another form which is an invoice. So far I haven't been able to accomplish this on my own because I have the Regform.html, which already post info to a regform.php (this is what generates an email to me with the registration info). It is on that regform.php form they have the option to have a invoice created. Since I get nest forms together I have to use this cookie method. The html cookies I have found online have not given me anything more then the generic cookie in which to place on someones pc.
No knowledge of JS doesn't help. These are the fields below that need to link from the regform.html to the invoice.html form. I just realized that I have multiple lines on the invoice for multiple registrants but the same is not true on the regform. Even if I could get the first group of info to carry over, I could then edit the regform to add multiple registrants on the next lines.
www.ahtcsonline.com/regform.html
www.ahtcsonline.com/regform.php
www.ahtcsonline.com/invoice.html
Which Class: -drop down-
Date of Class:
# of Attendees: -drop down-
Attendee Name:
E-Mail:
Company:
Address:
City:
State: -drop down-
Zip:
Phone:
|
|
|
|
|
Is it possible to configure a background thread in a web application. I am buffering some data in a file, but I would like to essentially create a cron job that would push the data to a database every few hours.
This would be easy if I had shell access on the server, but I don't. I only have a limited hosting account.
If I put something like this in the global.asax, will this work if the application is an MVC based application? Where would I put it for an MVC?
|
|
|
|
|
How can i apply a template to a number of pages at once?
|
|
|
|
|
|
I have designed a website on Dreamweaver CS 3. It's working fine in Chrome, Firefox and others but not in IE 7.
The spry menus in the page donot remain aligned when viewed in IE 7.
It's an HTML, CSS based site.
Site can be seen at www.raza.najam.com.pk -> Click the IEEE Link.
|
|
|
|
|
|
Hi,
My application is having some issue with IE 8 (working fine with IE6 and IE 7).
Below is my code
My application current domain is
"Main.Sub.com"
now i am updating the domain to "sub.domain"
document.domain="sub.domain";
after this i am setting below property in child page load.
var child_window=window.opner;
document.title=child_window.title
after checking for some conditions I am againg setting domain
document.domain="Main.Sub.com"
Then I am creating popup
MyPopup = window.createPopup();
my code is looks like below
var curdomain="Main.Sub.com";
Var child_window;
document.domain="sub.domain";
child_window=window.opner;
document.title=child_window.title;
.
.
.
document.domain="Main.Sub.com";
MyPopup = window.createPopup();
Can any one please suggest how i can make this work in IE8
Thanks,
Salmon
|
|
|
|
|
Have you forgotten to do something like...
myPopup.show(100,100,100,200,document.body);
Another problem maybe that you are giving
focus to another element which closes
the popup ?
As for working in IE6 and IE7 but not
IE8 well thats a mystery for now ?
|
|
|
|
|
Hi there, I am truly frustrated and as usual scoured the internet looking for the answer I could understand before posting on this forum. This is what I am looking to do but I know of one restraint. I have a registration form (regform.html) that gets filled out to sign up for a class, this form then sends the person's name to a Splash screen of sorts that says "Thank you "so and so" for registering for our class" and then I get an email with the registration. From the regform.php file they have the option to print an invoice. What I would like to accomplish is that the form info on the registration form is passed to the invoice. This saves the "User" from having to enter the same data twice. The constraint that I have been made aware of is that I can't nest two forms in one. Does that make any sense? I have tried some iterations of what I wanted to do, but to no avail. The files that I use are www.ahtcsonline.com/regform.html, then it passes info to www.ahtcsonline.com/regform.php (here is the option for the User to fill out the Invoice)at www.ahtcsonline.com/invoice.html. The input field id's are consistent from the invoice.html as the regform.html file thinking that this would be the only logical way to pass the data. I was also thinking that maybe I had to dump the regform data to a text file or an xml file and then import it to the invoice.html file. My background is that I started from scratch last September and have clawed my way to where my website is now. I have to used books and the internet to get here...oh and an occasional post. I like to try to figure things out on my own, but this could be out of my grasp....especially that evil thing called "javascript".
If somebody could please help me sort this out, I would be very grateful,
Evan
|
|
|
|
|
Correct, you can't nest forms.
This is not a difficult problem. You could pass the values to the second form via query string, set a cookie, post to the other form, or use a database and retrieve the info from it.
Basically, from the sounds of it, you need to spend a good deal more time learning before tackling this problem.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I agree that I need to read more, but as a business owner trying to do many things at once...it's not always an easy balance. I did some reading on "Setting cookies"...I will try to read a bit more to figure it out. Rest assured I don't take posting my problems lightly as I know that others are quite busy too. Thank you for your thoughts.
|
|
|
|
|
esebagel wrote: as a business owner trying to do many things at once
No offense to you, but I've found in my experience the ones who try to be both business owner and learn to be a developer eventually fail at both.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark Nischalke wrote: No offense to you, but I've found in my experience the ones who try to be both business owner and learn to be a developer eventually fail at both.
Mark, I am not a developer, just working to make my website more User friendly. As a business owner I am sure you will agree that multitasking is a integral part of perpetuating our business. We wear many hats, some fit us better then others, but just throwing away a hat because it doesn't fit is not in my character. Thank you for your help.
|
|
|
|
|
Hi all ..
i'd made a script like youtube .. but i've no enough space to make upload script
so i want an uploadcenter that give me the direct link for .flv files
like this on (just example)
http://www.uploadcenter.com/upload/name.flv
i tried to use usershare.com but i couldn't load the movie
please help
|
|
|
|
|
Pick one place to ask. You already posted to the quick answers forum.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
There are free flash .swf files which plays .flv. google it. and give the path of the target flv file.
and there are many free players for flv online. for example. jw player and flv player.
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|