Ganjaran Bonus Forex Yang Terbesar Tidak Pernah Ditawarkan Sebelum ini ... BONUS TANPA SEBARANG DEPOSIT SEBANYAK $1500 DARI INSTAFOREX !!


Go Back   CariGold Forum > COMPUTER, INTERNET > Webmaster, Blogger Discussion > Programming, Web Development

Recommended Brokers

Forex Chart
Crypto Chart
CG Sponsors



Reply
 
Thread Tools
  #1  
Old 12-09-2013, 03:47 PM
mutanic mutanic is offline
Super Active

mutanic's Avatar
 
Trader Rating: (2)
Join Date: May 2009
Posts: 5,536
Active Level
Exclamation Javascript fail in other browsers version except Internet Explorer 10

Salam sume CGRian,

Minta tlg spot & betulkan aku kat mana salah, aku dah test program aku run kat Internet Explorer 10 jer OK tapi IE6-9, Chrome & Firefox fail(script x jalan), ni aku share code kat sini :

HTML Code:
<script type="text/javascript">
	//Working in IE 10 but fail in other version including Firefox & Chrome
    $(function GetFile(object) {
        var bBrowseFile = document.getElementById('<%= FileUploadExcel.ClientID %>');
        var bGetWorksheet = document.getElementById('<%= ButtonGetSheetName.ClientID %>');
        var bResult = document.getElementById('<%= LabelUpload.ClientID %>');

        $(bBrowseFile).change(function () {
            if ($(this).val()) {
                $(bGetWorksheet).attr('disabled', false);
				bResult.style.color = "Green";
                bResult.innerHTML = "<BR><B>Selected file is : </B>" + bBrowseFile.value;
            **
            else {
                $(bGetWorksheet).attr('disabled', true);
            **
        **);
    **);
</script>
HTML Code:
<asp:FileUpload ID="FileUploadExcel" runat="server" Width="400px" onchange="GetFile(this);" />
<asp:Button ID="ButtonGetSheetName" OnClick="GetExcelSheetNames" runat="server" Text="Get Worksheet Name" Width="200" Enabled="False" />
Full source code program ada kat sini
__________________
“When it's difficult like this, the taste (of winning) is better.” ~ Valentino Rossi
Reply With Quote
Paid Advertisement
  #2  
Old 12-05-2019, 05:00 PM
Poinwan Poinwan is offline
Junior

Poinwan's Avatar
 
Trader Rating: (0)
Join Date: Dec 2018
Posts: 70
Thanks (Received): 0
Likes (Received): 4
Active Level
Default

Where did you get that code ? I assume you really should have some understanding that it's all about different version of JavaScript for each of those feature really. So I do not understand your surprise about all that. But if you will show us where did you get that we can help you with this.
Reply With Quote
Sponsored Links
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

AMP
Forum Jump