|
You can just replace "window.returnValue=true;window.close();" with what the function is called and then have the function perform that code when it is finished executing.
Brad
Australian
"Keyboard? Ha! I throw magnets over the RAM chips!" - peterchen
|
|
|
|
|
Hi all
before sending request to web server using ajax i am creating a string with form element's name and corresponding value.the constructed string will looks like
source.asp?elementName1=elementValue1&elementName2=elementValue2&elementName3=elementValue3
the problem with the above format is:
if the elementValue itself contains any "&" symbol i can't able to get the value of the form element from server side.
is there any way to resolve this issue other than replace the "&" char with some other char ..
|
|
|
|
|
var location = " source.asp?elementName1=" + encodeURI(elementValue1) + "&elementName2=" + encodeURI(elementValue2) + "&elementName3=" + encodeURI(elementValue3);
Brad
Australian
"Keyboard? Ha! I throw magnets over the RAM chips!" - peterchen
|
|
|
|
|
Did you mean encodeURIComponent()?
I'm on-line therefore I am.
JimmyRopes
|
|
|
|
|
encodeURIComponent is working fine on all reserved chars where as encodeURI is limited...
|
|
|
|
|
Actually, i created a data grid with different bounded cloumns(one of them is body of the mail) and with one check box.
what my porblem is. if i click the perticular check box the details of body of the mail present below that cell should concatenate to the texbox which is present in one panel.
In that panel to,cc,bcc, sub, attachment and body are the fields. its just like if i click reply "the frommailid will go to tomailid and the body is concatinated to that body in Yahoomail. naa. i want exactly like that.
please reply me.........
"i want the display that perticular cell text in tooltip where i placed cursor in the cell in datagrid"
I want to slove this porblem now only. as i am a fresher i dont know much about .net thats why i am asking
swetha.A
|
|
|
|
|
How can I close a browser window, by using server side code. Is possible or not. If possible please give me the code snippet please.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
You cannot close a client side browser from the server. The ability to do this would represent a major security flaw in any browser. What you can do, is to register a script to close the window automatically in the returned page. A sample for this would be:
this.RegisterStartupScript("Closer","<script language=javascript>window.returnValue=true;window.close();</script>");
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Can I insert any javascript funtion in it, which contains some client validations, and then close it. And remember those values I want to use in the Main or Parent window. Can I do like that. If so, please give me some snippet of code. I need it please.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
I made an application using fade in fade out technique for different images. And each image is linked to a different file.
But the problem is when the image is changes we have to move the mouse so that link gets changed.
One solution for is that when image is changes the position of the mouse should be change automatically.
So if anyone knows how to change the mouse position Please send me the source code for it in VB .Net or Javascript
Girish
|
|
|
|
|
I don't think you can with javascript. Try an applet or ActiveX
Brad
Australian
"Keyboard? Ha! I throw magnets over the RAM chips!" - peterchen
|
|
|
|
|
thanks Brad
Girish
|
|
|
|
|
You can do it with Javascript.... I am sure... Do some research on Mouse movement javascript
Regards,
Venkatesh Mookkan.
|
|
|
|
|
I am building a asp.net project using javascript in places.
I am currently building some javascript in vb.net to open a new pop up.
popup = window.open('ReportPopUp.aspx?",'Report','Top=50,Left=50,titlebar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes');
is what I am using.
In the new window there is a grid but until it is built the size is unknown.
Is there a way to set the size of the new window to the size of the grid?
It does not need to resize after just the intial size on load.
|
|
|
|
|
You should use the body onload and then read the width of the HTML table, that was generated. Assign this with to the with of the window.
|
|
|
|
|
Have you tried CSS? *** Ifon't know if this will work ***
html{width:auto;}
Actually... that won't work... nvm. you'll have to use javascript.
Brad
Australian
"Keyboard? Ha! I throw magnets over the RAM chips!" - peterchen
|
|
|
|
|
Can I use the AJAX search API's provided by Google in .Net (C#) Applications?
If yes then how to do it? I am new to AJAX & web development in .Net.
Thanks
|
|
|
|
|
Offcourse. What AJAX does in the background is just sending an HTTP requist and recieving the reply.
There is a complete implementation of the HTTP protocol in .NET that you can use.
|
|
|
|
|
I have set the Form property to target="_blank", which opens the form in new browser window when any button is clicked. But now only for one button I want to change it(the target prpperty of form) to "_self". I want to keep the remaining same but want to chage it only for this button. May be its possible by using "javascript".
I tried in the following ways, but of no use. I would be thank ful to all of you.
function openInNewWindow() {
// Change "_blank" to something like "newWindow" to load all links in the same new window
var newWindow = window.open(this.getAttribute('http://localhost/Sample1/AsposeEx3.aspx'), '_self');
newWindow.focus();
return false;
}
function f1()
{
window.Form1.target="_self";
}
function f2()
{
window.Form1.target="_self";
window.open("http://localhost/Sample1/AsposeEx3.aspx");
}
function f2()
{
window.Form1.target="_self";
window.location="http://localhost/Sample1/AsposeEx3.aspx"
}
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Set the onclick event in the button to:
"this.form.target='_self';return true;"
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|
|
I'm going crazy here, I have my file (default.htm) in the root with a link tag: <link href="News.css" rel="stylesheet" type="text/css" /> and it's working. I want my stuff to be organized so I moved the News.css into a CSS folder and changed href to "CSS/News.css". Now it doesnt load the css file. I also tried different names for the sub-directory and putting a slash and dot slash in front of CSS (e.g. /CSS/News.css and ./CSS/News.css). The only thing can get to work is if it's in the same directory. Why? What am I doing wrong? Am I crazy?
Post if you need any more information.
|
|
|
|
|
Well /CSS/News.css should work, as long as CSS is in the root directory. Also remember that linux/Unix servers are CaSe sensitive.
One degubbing teqniqe might be to try linking to an image in the CSS directory.
Brad
Australian
"Keyboard? Ha! I throw magnets over the RAM chips!" - peterchen
|
|
|
|
|
|
Hi
I am using WSE adapter to expose my Biztalk Orchestrations as web service
and I am getting following error.
This is a inconsistent error,but does comes ample number of times.
A message received by adapter "WSE" on receive location
"WebService_Ttl.Tissip.ApplicationServices.JourneyServices/Ttl_Tissip_ApplicationServices_JourneyAvailability_JourneyAvailabilityAsyncPolling_PollingPort"
with URI
"/Ttl.Tissip.ApplicationServices.JourneyServices/JourneyAvailabilityServiceAsyncPollingPolling.ashx"
is suspended.
Error details: The request message was rejected. This is most often caused
when a subscription for the message is not found. Review the application log
on the Web server for more information.
MessageId: {FC9B5ED8-614D-43AB-93B7-2EA4634CC5B7}
InstanceID: {F97C7E82-563C-455A-A4DC-B1845541034D}
Can somebody please throw some light on this issue.
Thanks In Advance
Shailesh Kawade
|
|
|
|
|
Hi all
Is it posible to change the the resolution i an IFRAME, I'm trying to make a webpage that should show 9 iframes with 9 different webpages, and I want to the user to se all of the webpage in the iframe, so one don't have to scroll in the iframe.
Can any one help?
Thanks and merry chrismas
Regards Thomas
|
|
|
|