|
on the main page do this:
<script language="javascript"><br />
var childWin;<br />
<br />
function openWin()<br />
{<br />
childWin = window.open(urlForThePopupPage);<br />
}<br />
<br />
window.onfocus = checkPopup;<br />
<br />
function checkPopup()<br />
{<br />
if(childWin)<br />
childWin.focus();<br />
}<br />
</script>
-----
|
|
|
|
|
Thanks For Your Help
Its really helpful.
is their anyway that i can put the childWin height, width etc?
thanks in advanvce
Sarfarj Ahmed
|
|
|
|
|
<br />
window.open(url,"newWindow", "status=no,directories=no,width=450,height=120,top=50,left=120,location=no,menubar=no,toolbars=no,scrollbars=yes,resizable=yes");<br />
you can change the values to yes or no as requyired
-----
|
|
|
|
|
Hi All
Well I want to consume a webservice using javascript. I want my client to just Copy/Paste small piece of javascript in HTML. Somewhat like Google Adsense and other API's provided by Google.
Please suggest any reference Article/ Project to accomplish this....!
|
|
|
|
|
wEb GuRu... wrote: Well I want to consume a webservice using javascript
Yeah. It's possible.. You can use XmlHttpRequest object to invoke the webservice.. You should use "POST" instead of "GET" while invoking.
(Note: You can use the pure Javascript code to consume the .NET webservice. You don't need to use "htc" for that.)
I can give you the example how to comsume the Webservice from Javascript if you want.. I think you probably don't want because there is no relationship between "consuming the webservice from JS" and "I want my client to just Copy/Paste small piece of javascript in HTML. somewhat like Google Ads."
wEb GuRu... wrote: I want my client to just Copy/Paste small piece of javascript in HTML.
You want your client to copy and paste small piece of Javascript??? so, i will tell them to copy and past. btw, who are they??
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
Hi
I want to fetch the cost of various products from other websites for our own use so that i can use these figures in our project programmatically.
Simply i want to access cost of various products from other websits.
How can i do this.
please help me as soon as possible...
krishna veer singh
|
|
|
|
|
1. Open IE.
2. Browse to website.
3. Write down the price.
Or provide us with some more information. If you are talking about taking prices from competitors' websites, i doubt you will find them having some handy method for doing this.
|
|
|
|
|
Yes i'm talking about taking prices from competitors' websites programmatically.
Plese reply...
krishna veer singh
|
|
|
|
|
Hello Friends,
I'm sending mails at my mail account following code given belo is used to send the mail but it throing error... And further before this piece of code was running great .................
I'm getting the following error
Could not access 'CDO.Message' object.
MailMessage mail=new MailMessage();
//mail.To="manoj@chinufilms.com";
mail.To="mail@saamstesting.com";
mail.From=txtEmail.Text;
mail.Subject="Default Page";
mail.Priority=MailPriority.Normal;
mail.Body="Programme"+":-"+ddlProgramme.SelectedItem.Text+"\n"+"Name"+" :- "+txtName.Text+"\n"+"Review"+":-"+txtReview.Text;
try
{
SmtpMail.SmtpServer="mail.saamstesting.com";
SmtpMail.Send(mail);
lblMsg1.Text="Record Saved Successfully";
lblMsg1.ForeColor=Color.Green;
}
catch(Exception ex)
{
//lblMsg1.Text="Error Occured!!";
lblMsg1.Text=ex.Message.ToString();
lblMsg1.ForeColor=Color.Red;
}
|
|
|
|
|
It seems that your dev. Machine is behind a firewall or proxy server.
Try this and you should be ok:
SmtpMail.SmtpServer.Insert( 0, "127.0.0.1 or your mail server name here")
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
The Smtp Server u suggested would also work if i upload it
|
|
|
|
|
I am not sure whether you are asking a question or providing any information.
Do you want me to look further into this issue or is this resolved?
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
Dear friends,
I am using ASP.NET 2.0 with C# and MSSQL2000
When T try to import System.Transactions namespace,it shows error like
Error 1 The type or namespace name 'Transactions' does not exist in the namespace 'System' (are you missing an assembly reference?<br />
why this is showing??
This is working fine in another downloaded sample application ...
Be very grateful for any advice.
They laugh at me; they think I’m different. I laugh at them, ‘coz they are all same!! CrazySanker
|
|
|
|
|
Ran into the same issue. Like it's not in the library. Hmmm.
|
|
|
|
|
hi
can anyone help me to navigate from one url to another url by using ajax in asp.net
|
|
|
|
|
Ajax is a concept that allows you to go to a server to retrieve data and to publish it on the page without a full page refresh.
To navigate from one URL to another just use Javascript location.href = 'otherurl.htm'
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
I have a requirement which is basically Drag & Drop values from ListBox to a Panel or DataGrid. How can I do ?
Pls advise
ahdk
|
|
|
|
|
hi
this is the code for show the download dialog page code.it works well.but my requirement is just open.but it shows open/save/download.it takes lot of time.
i need when we click on the link then open the page .
plz help me to solve the problem.
string filename = Path.GetFileName(filepath);
Response.Clear();
Response.ContentType = "application/octet-stream";
Response.AddHeader("Content-Disposition", "attachment; filename=" + filename + "");
Response.Flush();
Response.WriteFile(filepath);
regards
venkaT
venkat
|
|
|
|
|
You can't avoid this. AFAIK it is in built security. You wouldn't want any application to run on your machine when you click a link would you? This ensures you know what is behind the link you have clicked and therefor your responsibility to run. I don't believe you can turn it off.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
Hi,
I am using Dunda's Charts in my asp.net application. I want to refresh two charts on selectedindexchanged event of a dropdown ddlmovie. I have written the code:
if (!IsPostBack)
{
ScriptManager1.RegisterAsyncPostBackControl(ddlMovie);
ddlMovie.Attributes["onchange"] = Chart1.CallbackManager.GetCallbackEventReference("ddlMovie", "NA");
ddlMovie.Attributes["onchange"] = Chart2.CallbackManager.GetCallbackEventReference("ddlMovie", "NA");
}
But it refreshes the chart2 only.. i want to refresh both the charts... Any solution...
Sangram
(A battle with self)
Life is simple, we are the ones makes the living difficult
|
|
|
|
|
The the help forums on the dundas website...
http://support.dundas.com/forum/[^]
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
it is because the way you arr adding onchange (only second onchange will occur)
try this
if (!IsPostBack)
{
ScriptManager1.RegisterAsyncPostBackControl(ddlMovie);
ddlMovie.Attributes["onchange"] = refreshCharts();
}
private void refreshCharts()
{
Chart1.CallbackManager.GetCallbackEventReference("ddlMovie", "NA");
Chart2.CallbackManager.GetCallbackEventReference("ddlMovie", "NA");
}
-----
|
|
|
|
|
hi All
Am using Vb2003, and am trying to create a Web service, whe i try to Create one Project, i have ASP.NET Version issues, the Errors is as following
Visual Studio.Net has detected that the specified web server is not running ASP.NET version 1.1. you will be unable to run ASP.net web Application or Services.
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Check the properties in IIS. There is one option to set the version of .NET framework.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
Thanks Man,
This Option worked well
thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|