|
hello fellows,
I'm facing a problem with localization. You know each time the browser create a request, it will send its language (en, en_us, ..etc) with the it where the web application can determine the language of the client and send the proper response.
Now, what i want is to play around with this option on the client-side not from the server-side. And I want the language option to be displayed as a choice as a select-box on login page.
My first option (as i think) is to modify the browser's language using javascript when the user select (event) a choice from the select-box.
My second option is to override the value of the header "accept-language" using javascript also.
Until now I couldn't know it those two options are possible or there's any other choices.
I really appreciate it if you can help
Regards,
Faris Madi
Nothing Comes Easy (N.C.E.)
|
|
|
|
|
HI,
In an INTRANET area, my app needs to upload a .lnk file, this avoid to post the real target big file.
We use ASP.NET, IE or FireFox as browser, but I don't know how to solve this in <INPUT type="file"> world.....
In WINDOWS, the same problem is solved with the use of OFN_NODEREFERENCELINKS in OpenDialog form.
Any ideas? Thanks.
|
|
|
|
|
Unless the file being referenced actually exists on the web server, this isn't going to work. The big file would still have to be uploaded from the client machine via HTTP.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi Paul,
Yes, the file can be referenced from server Web...classic intranet area.
The very strange thing is the inability to upload a .lnk file, by browser.
...if this link works or not is a secondary issue.
|
|
|
|
|
Is it possible to Apply rounded corners for a ASP Button using CSS?If so can yyou provide me any links
Many Thanks
|
|
|
|
|
By default, they already have rounded corners.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
You can use the border-radius style, but there'll be a lot of browsers that won't support it.
|
|
|
|
|
Hi friends,
Can anyone tell how to localize OK Cancel buttons of Confirm box . I am able to localize the texts in the confirmation box. But buttons wont be localized( OK , Cancel) especially in Japanese language. Can anyone tell me how to resolve this problem.
Thank you
|
|
|
|
|
Get your users to install localized browsers. Those buttons are the business of the browser, not the page scripts running in it.
|
|
|
|
|
|
Thank you for your reply.But this example dint resolved my problem. I want confirm box button should be localized in java script(OK and Cancel).
|
|
|
|
|
navi1510 wrote: But this example dint resolved my problem.
That's ok. I already answered your question. You should consider reading it.
|
|
|
|
|
I am having an intermittent problem showing a new window from an ASP.NET page (and yes, they already chased me off the ASP.NET forum) with javascript. When a user clicks a linkbutton on my page, it should show BalanceReport.aspx with the accompanying parameters, instead it does nothing. It always works on my system (naturally), it usually works on another users' system, and it never works on yet another users' system. Apparently, no one has any popup blockers installed, but the user is in another city so I haven't verified that. In the Page_Load event I do some database stored procedure calls and fill a stringbuilder with HTML that is sent to the page. That seems to work. Javascript is enabled on our browsers (IE6 xpSp2). I am unsure where to look next.
In page_load:
const string cOnClientClickReportTemplate = "javascript:window.open('BalanceReport.aspx?CompPK={0}',";
const string cReportDialogArgs = "'newWindow','width=800,height=800,resizable=yes, menubar=yes,toolbar=yes');return false;";
lbtnReport.OnClientClick = String.Format(cOnClientClickReportTemplate, ViewState["CompPK"].ToString()) + cReportDialogArgs;
Any ideas? Thanks.
Someone's gotta be the last to know, but why is it always me?
|
|
|
|
|
Did the web browser show any exclamation symbol near the system tray or any information bars near the top when the link was clicked?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Nope, I'm not seeing any jscript errors. And like I said it works on other machines, just not this one.
Someone's gotta be the last to know, but why is it always me?
|
|
|
|
|
I am still having a problem showing a new window with javascript. When a user clicks a linkbutton on my page, it should show BalanceReport.aspx with the accompanying parameters, instead it does nothing. It always works on my system (naturally), it always works on another users' system, and it never works on yet another users' system. In the Page_Load event I do some database stored procedure calls and fill a stringbuilder with HTML that is sent to the page in an asp:Literal control. That seems to work. Javascript is enabled on our browsers (IE6 xpSp2). There are no popup blockers on the suspect system, and other window.opens work. I am unsure where to look next.
This link works:
const string cOnClientClickTemplate = "javascript:window.open('ClaimPopup.aspx?CompPK={0}&ProviderName={1}&FundType={2}',";
const string cPopupDialogArgs = "'newWindow','width=500,height=450');return false;";
NewDiscClaim.OnClientClick = String.Format(cOnClientClickTemplate, ViewState["CompPK"].ToString (), ViewState["ProviderName"].ToString(), "disc") + cPopupDialogArgs;
This link does not work:
const string cOnClientClickReportTemplate = "javascript:window.open('BalanceReport.aspx?CompPK={0}',";
const string cReportDialogArgs = "'newWindow','width=800,height=800,resizable=yes, menubar=yes,toolbar=yes');return false;";
lbtnReport.OnClientClick = String.Format(cOnClientClickReportTemplate, ViewState["CompPK"].ToString()) + cReportDialogArgs;
Any ideas? Thanks.
Someone's gotta be the last to know, but why is it always me?
|
|
|
|
|
Hi,
I am using following code for modalbox.
window.showModalDialog
but i want handle two modal boxes at a time.
I want know is it possible two modalbox for a HTML page, IE6.0.
If yes how to handle them.
Thanks in advance.
|
|
|
|
|
I doubt it. The idea of a modal dialog is to force the user to interact with that dialog and prevent interaction with any other component or window until the modal is closed. You may need to ask why you want to show 2 modals simultaneously and find a more useable alternative. Maybe make the modal window follow a wizard model.
|
|
|
|
|
Mark J. Miller wrote: You may need to ask why you want to show 2 modals simultaneously
Exactly, because all problems are not nails therefore not every solution is a hammer.
led mike
|
|
|
|
|
One modal dialog is one modal dialog too many. What do you think two would be?
...ask yourself this: have you ever been browsing the web and stopped to think, "Hey, this is all just too easy - what i need right now is at least one dialog box that prevents me from navigating until i make it go away!"
|
|
|
|
|
absprogrammer wrote: but i want handle two modal boxes at a time.
Weird. The user has to dispose a modal dialog to proceed with any operation. Two concurrent modal dialogs would be a wild goose chase or impossible.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi,
Thanks for replying.
my issue is
I am working on web application in which i'm showing a pop up dialog as modal box. but when application is ideal for some time a lockscreen modal dialog appears. Thus I cannot access html page but i can access popup modal box which should not happen. lock screen is also a modalbox.
So i want to handle two modalbox.
please suggest if any alternative for this.
Thnaks in advance.
|
|
|
|
|
Hi, I want to make my website such a way that it can be easily browse through mobile. Its look n feel should be maintained. Can anyone provide guidelines on this? How should I go for it? Thanks in advance.
pari
|
|
|
|
|
|
Thanx for quick reply.
I have already gone through link suggested by you.
But I want to know how fast I can make my existing website for browsing through mobile without much changes. Is there are any technical limitations while showing pages on mobile as it is? & can we know request is coming for mobile or other than mobile.
Pari
|
|
|
|