ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] µLªkÂIÀ»ºô­¶

[µo°Ý] µLªkÂIÀ»ºô­¶

[ª©¥DºÞ²z¯d¨¥]
  • GBKEE(2016/9/9 14:29): ¶K¤Wºô§}¬Ý¬Ý


¤p§Ì³£¬O¥Î¤j¤j­Ì©Ò±Ðªº¤è¦¡¨Ó§ì¨úºô­¶¸ê°T
¦ý¤U­±ªºµ{¦¡½XÂI¿ï¤F«ö¶s¤§«á
·|¸õ¥X¤W¹Ï,¦ý«o§ä¤£¨ì¤H¦ó¥i¥H±±¨îªº¤¸¯À,½Ð°Ý¸Ó¦p¦ó¥i¥HÂIÀ»½T©w©O
  1. For Each f In .getElementsByTagName("SPAN")
  2.                 If f.innertext Like "UPLOAD" Then
  3.                     f.Click
  4.                 End If
  5.    Next
½Æ»s¥N½X
¬°¤@µo²{ªººô­¶¤¸¯Àinnertext «D±`ªºªø,¤£¾å±o¦³¤j¤jª¾¹D¸Ó¦p¦ó«ö¤U¸Ó«ö¶s¶Ü?
  1. function addListingImportDropdown() { var f = 0; $('.fields').each(function(i){ f++; }); $.ajax({ "url" : "ajax/exchange_load_row.php", "data" : {"import" : "1", "headers" : listing_import, "rowid" : f}, "type" : "POST", "success" : function(data){ $('#listing_import_resp_before').before(data); } }); $('#listing_import_resp_before').before(); } $('#delete_template').click(function(){ var res = confirm("Are you sure you want to delete this template"); if(res) { var tid = $('.sel_export_listing').val(); $.ajax({ "url" : "ajax/csv_delete_listing_template.php", "data" : {"id" : tid}, "type" : "POST", "success" : function(){ $('#listing_export_resp').html(''); refreshListingTemplate(); } }); } }); $('#delete_template_import').click(function(){ var res = confirm("Are you sure you want to delete this template"); if(res) { var tid = $('.sel_import_listing').val(); $.ajax({ "url" : "ajax/csv_delete_listing_template.php", "data" : {"id" : tid}, "type" : "POST", "success" : function(){ $('#listing_export_resp').html(''); refreshListingTemplate(); } }); } }); function addProductImportDropdown() { $.ajax({ "url" : "ajax/exchange_load_row.php", "data" : {"import" : "1", "headers" : product_import}, "type" : "POST", "success" : function(data){ $('#product_import_resp_before').before(data); } }); $('#product_import_resp_before').before(); } $("#listing_export_add_row").click(function(){ $(document).increaseLoSto(); $.ajax({ "url" : "ajax/exchange_load_row.php", "data" : {"rowid" : $(document).getLoSto()}, "success" : function(data){ $('#listing_export_resp_before').before(data); } }); }); $("#listing_export_process_csv").click(function(){ $('#process_response').html("Generating.."); $.ajax({ "url" : "ajax/exchange_export_listings.php", "data" : {"data" : $("#listing_export_resp *").serialize()}, "type" : "POST", "success" : function(data){ $('#process_response').html(data); } }); }); $("#listing_import_process_csv").click(function(){ $('#listing_import_resp_before').before("<input type='hidden' value='dataexchange_listings' name='type'>"); $('#import_csv_form').submit(); }); $("#product_import_process_csv").click(function(){ $('#product_import_resp_before').before("<input type='hidden' value='dataexchange_products' name='type'>"); $('#product_csv_form').submit(); }); $(".grey_subnav").click(function(){ $(".grey_subnav").removeClass("grey_subnav_sel"); $(this).addClass("grey_subnav_sel"); var id = $(this).attr("id"); $(".tab-content").hide(); $("#" + id + "-content").show(); }); $('.import_export_header').click(function(){ $('.import_export_header').removeClass("import_export_header_sel"); $('.import_export_header').children("img").attr("src", "images/btn_import.png"); $(this).addClass("import_export_header_sel"); $(this).children("img").attr("src", "images/btn_import_sel.png"); var id = $(this).attr("id"); $(".pane-content").hide(); $("." + id + "-content").show(); }); function statusMessageHide(id) { $.ajax({ "url" : "ajax/csv_running_hide.php", "data" : {"id" : id}, "type" : "POST", "success" : function(data){ refreshMessageList(); } }); } function refreshMessageList() { $.ajax({ "url" : "ajax/csv_running_list.php", "type" : "POST", "success" : function(data){ $('#running_csv').html(data); } }); } function saveListingImportTemplate(value) { $.ajax({ "url" : "ajax/csv_save_listing_template.php", "type" : "POST", "data" : {"data" : $("#listing_import_resp *").serialize(), "template" : value, "import": '1'}, "success" : function(data){ refreshListingTemplate(); } }); } function saveListingExportTemplate(value) { $.ajax({ "url" : "ajax/csv_save_listing_template.php", "type" : "POST", "data" : {"data" : $("#listing_export_resp *").serialize(), "template" : value}, "success" : function(data){ refreshListingTemplate(); } }); } function refreshListingTemplate() { $.ajax({ "url" : "ajax/csv_refresh_listing_template.php", "success" : function(data){ //$('#listing_templates_import_resp').html(data); //$('#sel_refresh_listing_template').html(data); $('.sel_export_listing').html(''); $('.sel_export_listing').html(data); $('.sel_import_listing').html(''); $('.sel_import_listing').html(data); } }); } function loadListingTemplate(id, type) { var arr_type = type.split("_"); type = arr_type[2]; $.ajax({ "url" : "ajax/csv_load_listing_template.php", "type" : "POST", "data" : {"id" : id, "type" : type, "headers" : listing_import}, "success" : function(data){ $('#listing_' + type + '_resp').html(data); var last = $('.fields').last().attr('id').split('_'); //var last = $('.fields:last').attr('id').split('_'); $(document).setLoSto(last[1]); } }); } $('#frm_stock_csv').submit(function(){ if($("#fl_filename").val() == '') { alert("A File is Required."); return false; } if($("#sel_csv_type").val() == '') { alert("An Upload Type is Required."); return false; } }); i = setInterval('csvProgress()', 3000); function csvProgress() { $.ajax({ 'url': 'ajax/csv_running_list.php', 'success': function(data) { $('#running_csv').html(data); } }); } //Stores an array of headers of the file var listing_import = ''; function setListingImport(value) { listing_import = value; $('#listing_import_resp').html("<span id='listing_import_resp_before'></span>"); $('#listing_import_options').show(); addListingImportDropdown(); } //Stores an array of headers of the file var product_import = ''; function setProductImport(value) { product_import = value; $('#product_import_resp').html("<span id='product_import_resp_before'></span>"); $('#product_import_options').show(); addProductImportDropdown(); } function statusMessageCancel(id) { $.ajax({ "url" : "ajax/csv_running_cancel.php", "data" : {"id" : id}, "type" : "POST", "success" : function(data){ refreshMessageList(); } }); } function setVal(sel, id) { if(sel == 'setval') { $('#dv_'+id).show(); $('#da_'+id).show(); } else { $('#dv_'+id).hide(); $('#da_'+id).hide(); } } var UpdateHeader = function() { var init = function() { $('.export_select_field').die('change').live('change', function(){ copy($(this).attr('row')); }); }; var copy = function(rowId) { var headerName = $('#export_select_'+rowId+' option:selected').text(); $('#field_'+rowId).val(headerName); }; init(); }; $(document).ready(function(){ new UpdateHeader(); jQuery.fn.setLoSto = function(val) { if(typeof(Storage)!=="undefined") { // Yes! localStorage and sessionStorage support! if(val == null) localStorage.row_id = "1"; else localStorage.row_id = val; } else { alert('Sorry, your browser does not support web storage'); return false; } }; jQuery.fn.increaseLoSto = function() { if(typeof(Storage)!=="undefined") { // Yes! localStorage and sessionStorage support! localStorage.row_id = Number(localStorage.row_id)+1; } else { alert('Sorry, your browser does not support web storage'); return false; } }; jQuery.fn.getLoSto = function() { if(typeof(Storage)!=="undefined") { // Yes! localStorage and sessionStorage support! return localStorage.row_id; } else { alert('Sorry, your browser does not support web storage'); return false; } }; $(document).setLoSto(null); }); function fetchAjaxReport(id) { i = setInterval('csvDisplay(' + id + ')', 1000); } function csvDisplay(id) { $.ajax({ 'url': 'ajax/csv_progress.php?id=' + id, 'success': function(data){ var vals = data.split('||'); $('#reply_csv').html(vals[0]); if(vals[1] == 0) clearInterval(i); } }); } function exportCsv(id) { $.ajax({ 'url': 'ajax/csv_error_export.php?id=' + id, 'success': function(data){ location = 'http://node2.channelgrabber.com/my/downloads/' + $.trim(data) } }); } $(document).ready(function() { $('#csv_form').submit(function() { $.ajax({ 'url': 'ajax/csv_recent_uploads.php?filename=' + $('#fl_filename').val(), 'success': function(data){ if(data > 0) { document.forms['csv_form'].submit(); $('#reply_csv').html("<div style='width:50px;margin:0 auto 0 auto;display:none;' id='loader'><img src='images/loader.gif'></div>"); $('#loader').show(); } else { var conf = confirm('[color=Red]You have already submitted a file within the last 15 minutes with that name, are you sure you wish to do this again?[/color]'); if(conf) { document.forms['csv_form'].submit(); $('#reply_csv').html("<div style='width:50px;margin:0 auto 0 auto;display:none;' id='loader'><img src='images/loader.gif'></div>"); $('#loader').show(); } } } }); return false; }); });
½Æ»s¥N½X
PKKO

ie > ¤u¨ã > F12¶}µo¤H­û¤u¨ã

¶}±Ò«á¡A¤U¤èDOMÁ`ºÞ>¿ï¨ú¤¸¯À

´N¯à¬Ý¨ì³o­Ó¤¸¯Àªºid©Înameªº¤¸¯À¸ê°T
EXCEL VBA·s¤â¡A½Ð«e½ú¦h¦h«ü±Ð

TOP

¦^´_ 2# ketrddem


    ¦nªº,§Ú¸Õ¸Õ¬Ý
¦]¬°¸Óºô­¶¦³±b¸¹±K½Xªº°ÝÃD
¤@¯ë¨Ï¥ÎªÌµLªkµn¤J
©Ò¥H¨S¦³´£¨Ñºô§},ÁٽШ£½Ì
PKKO

TOP

        ÀR«ä¦Û¦b : ¤@­Ó¯Ê¤fªºªM¤l¡A¦pªG´«¤@­Ó¨¤«×¬Ý¥¦¡A¥¦¤´µM¬O¶êªº¡C
ªð¦^¦Cªí ¤W¤@¥DÃD