resText contains the HTML which I am writing on this window. other thing is this content replication is not every time, it happens only occasionally.
Amit
User Profile
Collapse
-
content replicated twice
Hi,
I am using following javascript code to write some content in a window. my problem is content in the document is written twice. can someone please help me how to avoid this.
Code:_newwindow = window.open('',pr_OpenWindows[index].Name,'height=690,width=775,status= no, resizable= no, scrollbars=yes, toolbar=no,location=no,menubar=no,left=' + pr_OpenWindows[index].XPos + ',top=' + pr_OpenWindows[index].YPos); _newwindow.document.write(resText);
-
-
I am using that way only but somehow it looks like embedded javascript file don't get included. any other idea please ?.
<script src="twiaBase_3 _1.js">
AmitLeave a comment:
-
javascript include
how do I include one javascript file (.js) inside another javascript file ?
Regards,
Amit -
acoder,
you have posted following links here. could you please tell me which one i should refer for my problem.
AJAX:Getting Started (Mozilla Developer Center)
http://www.xul.fr/en-xml-ajax.html (GET, POST, text and XML examples)
Jibbering
W3Schools AJAX Tutorial
Captain's AJAX Form Post/Get
Thanks,
Amit...Leave a comment:
-
calling asp.net code behind function from window.onload javascript function
Hi Gurus,
I have a requirement like below. In my asp.net(C#) code behind file "MyPage.aspx.cs " file I have a function like below:
void PopulateAccount (int AccountNumber)
{
this.AccountNum ber.Text = AccountNumber;
}
I want to call this function from JavaScript (inside the window.onload function) from my MyPage.aspx page, something like below:
window.onload... -
please replace the options string with this one:
var options = 'height=670,wid th=654,status= no, resizable= no, scrollbars=yes, toolbar=no,loca tion=no,menubar =no,left=-540,top=-20';
even i am setting left and top and -ve value still my window is always opening in positive coordinate. Please help
Thanks,
AmitLeave a comment:
-
window.open
Hi friends,
I want to open a window with window.open method, but I want to set left and top coordinates in negative. but when i run this then it always open with positive top and left position. Please help me. its very urgent.
code is like this:
var options = 'height=670,wid th=654,status= no, resizable= no, scrollbars=yes, toolbar=no,loca tion=no,menubar =no,left=offset =-540,top=-20';
var newwindow... -
-
-
problem is my asp.net page will be of varying width and height and before calling in window.open method I can't get its full height and width.
AmitLeave a comment:
-
I am opening a url (asp.net page) from window.open which I am resizing if the loaded url document is bigger or smaller than the opened window, but my user didn't liked this resizing of the window. so, I thought if i could open the window with hide attribute set initially and after resizing if I could display it then users will not see the resizing effect.
any suggestions ?Leave a comment:
-
hiding window.open
Hi friends,
I am opening a popup window with window.open method. I want to hide it, someting like visible=false. is there some property or method available which solve this purpose.
Thanks,
Amit -
1 sec is expected bahaviour for my client as it displays lots of data in this new window....Leave a comment:
-
Hi Acoder,
user gets this popup window and they expect that they would be getting this popup window. Also my url takes approx 1 sec to load as it loads lots of data to show to the user and it seems user white flickering before page completly loads which I want to fill with stylesheet so that they don't see the flickering due to color change from defauly white to my url's background color.
Thanks,
AmitLeave a comment:
-
window.open and stylesheet
Hi Friends,
I am using window.open(myu rl, other parameters....) method to open my url in a window. The problem is that myurl takes some time to open in the window, till that time this newly created window shows the default white background which I want to change with my page color so that user doesn't feel wrong. could sombody please help me how to change the default background color of the window.
I can set the background... -
you are right, 'btn2' gets focus but the problem is when you press the 'TAB' button then focus again shifts to 'btn1' which is not correct. focus should be on the second textbox.
Regards,
Amit...Leave a comment:
-
default focus on asp.net button
Dear Friends,
I have a problem. In one of my asp.net form, I have two buttons 'reset' and 'submit' and approx 20 textboxes. through javascript, I am setting focus on first textbox. What I am seeing that cursor is blinking in the first text box, and my first button 'reset' also have focus. I want this focus should be on the second button but I am not able to do that. can somebody please help me on this. I am using asp.net 1.1. Other thing...
No activity results to display
Show More
Leave a comment: