|
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
|
|
|
|
|
for my project i created a smiley chart....
as user clicks a particular smiley from the chart it's corresponding code ex (@;}--) is for rose) should appear in textbox......
i got struck in javascript code......
<ul>
<li class="dropList"><a href="#" id="smiLink"><img src="Images1/1.gif" alt="Smileys" /></a></li>
</ul>
<div id="smileysDiv">
<a href="#" id="link1" class="smiley"><img id="img1" src="Images1/1.gif" alt="smile"/></a>
<a href="#" id="link2" class="smiley"><img id="img2" src="Images1/2.gif" /></a>
<a href="#" id="link3" class="smiley"><img id="img3" src="Images1/3.gif" /></a>
<a href="#" id="link4" class="smiley"><img id="img4" src="Images1/4.gif" /></a>
<a href="#" id="link5" class="smiley"><img id="img5" src="Images1/5.gif" /></a>
<a href="#" id="link6" class="smiley"><img id="img6" src="Images1/6.gif" /></a>
<a href="#" id="link7" class="smiley"><img id="img7" src="Images1/7.gif" /></a>
<br />
<a href="#" id="link8" class="smiley"><img id="img8" src="Images1/8.gif" /></a>
<a href="#" id="link9" class="smiley"><img id="img9" src="Images1/9.gif" /></a>
<a href="#" id="link10" class="smiley"><img id="img10" src="Images1/10.gif" /></a>
<a href="#" id="link11" class="smiley"><img id="img11" src="Images1/11.gif" /></a>
<a href="#" id="link12" class="smiley"><img id="img12" src="Images1/12.gif" /></a>
<a href="#" id="link13" class="smiley"><img id="img13" src="Images1/13.gif" /></a>
<a href="#" id="link14" class="smiley"><img id="img14" src="Images1/14.gif" /></a>
<br />
<a href="#" id="link15" class="smiley"><img id="img15" src="Images1/15.gif" /></a>
<a href="#" id="link16" class="smiley"><img id="img16" src="Images1/16.gif" /></a>
<a href="#" id="link17" class="smiley"><img id="img17" src="Images1/17.gif" /></a>
<a href="#" id="link18" class="smiley"><img id="img18" src="Images1/18.gif" /></a>
<a href="#" id="link19" class="smiley"><img id="img19" src="Images1/19.gif" /></a>
<a href="#" id="link20" class="smiley"><img id="img20" src="Images1/20.gif" /></a>
<br />
<a href="#" id="link21" class="smiley"><img id="img21" src="Images1/21.gif" /></a>
<a href="#" id="link22" class="smiley"><img id="img22" src="Images1/22.gif" /></a>
<a href="#" id="link23" class="smiley"><img id="img23" src="Images1/23.gif" /></a>
<a href="#" id="link24" class="smiley"><img id="img24" src="Images1/24.gif" /></a>
<a href="#" id="link25" class="smiley"><img id="img25" src="Images1/25.gif" /></a>
<br />
</div>
<br />
<br />
<br />
<asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" Height="106px"
Width="248px"></asp:TextBox>
javascript code-------------
window.onload = inItAll;
function inItAll() {
document.getElementById('smiLink').onmouseover = showSmiley;
document.getElementById('smileysDiv').onmouseover = showSmiley;
document.getElementById('smileysDiv').onmouseout = hideSmiley;
for (var i = 1; i < document.links.length; i++) {
document.links[i].onclick = smileyClick(i);
}
}
function smileyClick(i) {
alert(i);
var symbols = new Array(""," ", " ", " ", " ", ";;)", ":-/", ":-X", ":\">", ":-P", ":-*", " ", "=((", "X-(", "B-)", "> ", " (", " )", "0 ", ":-B", "=))", "|-)", "=P~", "=D>", "~X(", "@};-");
document.getElementById('TextBox1').value = document.getElementById('TextBox1').value + symbols[i];
//return false;
}
function showSmiley() {
document.getElementById('smileysDiv').style.visibility = "visible";
}
function hideSmiley() {
document.getElementById('smileysDiv').style.visibility = "hidden";
}
---------------------------------------------------------------------------------------------------------
the loop part is troubling here, even without click it's passing value 1 to smileyClick(i) function and only running once........
Thnx!
|
|
|
|
|
document.links[i].onclick = smileyClick(i);
That doesnt do what you expect.
It assigns the results of smileyClick(i),
which is a function call, to onclick.
Try this ...
for (var i = 1; i < document.links.length; i++) {
document.links[i].num = i;
document.links[i].onclick = smileyClick;
}
function smileyClick() {
alert(this.num);
...
...
document.getElementById('TextBox1').value = document.getElementById('TextBox1').value + symbols[this.num];
-- Modified Monday, March 22, 2010 4:46 PM
|
|
|
|
|
Thnx a lot....
|
|
|
|
|
Every business needs a brochure. A brochure should be made in such a way that it becomes unique and noticeable among the thousands of brochures developed daily. For this you should know the basics of brochure designing. Here are a few brochure designing tips to help you to make your next brochure exclusive.
A brochure is often judged by its cover. Hence the cover should be highly impressive. It should have all the enticing information to attract your readers. Therefore you should plan for a cover that is exceptional from the usual brochure covers.
The brochure should be visually attractive. Hence choose an attractive design and a catchy text for your brochure. Including pictures is a good idea to make your brochure appealing. You can add clear and colorful images related to your business.
Make sure that your brochure is directed towards the right customers. For this you should have a clear-cut idea about the section of customers that you target. Based on this you can plan the design and content for your brochure.
Visit the websites of leading brochure designing companies to know more tips about brochure designing. If you are from Brisbane, you can do a web search using the keyword brocure design brisbane, and get the tips from expert companies in Brisbane.
|
|
|
|