http://www.freepint.com/gary/direct.htm#top


          大多數搜索引擎存在著非常大的問題,很多人已經意識到這個問題了。
          現在的問題是,海量的網絡有一些通用搜索引擎——谷歌、百度抓取不到的“看不見的網頁”
          這部分網頁比例是比較高的;
          特別由于AJAX 以及RIA的大量應用,crawler面臨挑戰不小……
          待續

          There's a big problem with most search engines, and it's one many
          people aren't even aware of. The problem is that vast expanses of the
          Web are completely invisible to general purpose search engines like
          AltaVista, HotBot and Google. Even worse, this "Invisible Web" is in
          all likelihood growing significantly faster than the visible Web
          you're familiar with.
          So what is this Invisible Web and why aren't search engines indexing
          it?  To answer this question, it's important to first define the
          "visible" Web, and describe how search engines compile their indexes.

          posted @ 2009-03-17 17:19 Robert Su 閱讀(236) | 評論 (0)編輯 收藏


          現在遇到的問題是生成折個每周事項的表格是邏輯亂了~
          以下是Javascript代碼:
          頂部周一周二是另一個循環生成的,現在是下面的日期這塊出現了問題
          我現在想只顯示上下午,但是由于事件Item的日期判斷這塊現在很亂
          發到首版來討論下這個問題


                 var _minutesPerStep = 0;
                 var _stepsPerHour = 0;
                 

                  var _tr, _td;
                  var _stepCounter = 0;
                  var _dayIndex = 0;
                  var _hourIndex = 0;
                  var _totalSteps = 24 * _stepsPerHour;
                  for (var _steps = 0; _steps < _totalSteps; _steps++) {
                      if(_steps==12){
                      _tr = _table.dom.insertRow(_steps);}
                      //timerows
                      _dayIndex = 0;
                      for (var _days = 0; _days < 8; _days++) {
                          if (_days == 0) {
                              if (_stepCounter == 0) {
                                  _tr.className = "HourDivider";
                                  _td = _tr.insertCell(_dayIndex++);
                                  _td.style.width = _firstColWidth + "px";
                                  _td.rowSpan = _stepsPerHour;
                                  _td.className = "Time";
                                  _td.innerHTML = (_hourIndex > 9 ? "" : "0") + (_hourIndex++) + ":00";
                                  if (_steps === 0) {
                                      _tableContainerCell = Ext.get(_td);
                                  }
                              }
                              else {
                              
                                  _tr.className = "StepDivider";
                              }
                          }
                          else {
                              _td = _tr.insertCell(_dayIndex++);
                              _td.className = "TimeStep";
                              _td.day = _days;
                              _td.step = _steps;
                              _td.ddTarget = new Ext.dd.DDTarget(_td, "Calendar");
                          }
                      }
                      _stepCounter = _stepCounter == (_stepsPerHour - 1) ? 0 : _stepCounter + 1;
                  }
              }


          posted @ 2009-03-16 01:44 Robert Su 閱讀(946) | 評論 (0)編輯 收藏

          [RPC Fault faultString="Security error accessing url" faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTP"]
           at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
           at mx.rpc::Responder/fault()
           at mx.rpc::AsyncRequest/fault()
           at DirectHTTPMessageResponder/securityErrorHandler()
           at flash.events::EventDispatcher/dispatchEventFunction()
           at flash.events::EventDispatcher/dispatchEvent()
           at flash.net::URLLoader/redirectEvent()

          報錯如上
          是我把flex里的release版本直接放到頁面中出息此提示的
          先挖坑~

          原來我的url寫的問題,比如
          url = 'http://202.111.11.1/appliaction/datasource.*'
          這樣會被flash player以為是romote web Service
          url = /appliaction/datasource.*'這樣就對了

          posted @ 2009-03-14 11:45 Robert Su 閱讀(924) | 評論 (0)編輯 收藏

          tbar: [
                      blockedtype,'-',{text:'封堵驗證',handler:do_checkBlockedVideok,iconCls:'block'}
                      ,'-',
                      {text:'刷新',iconCls:'refresh'
                      },'-',new Ext.Toolbar.Fill(),'-',
                      {text:'編輯',iconCls:'add'
                      },'-',
                      {text:'導出Excel','-','已封堵數量:[0] 未封堵數量:[0] 總數量:[0]'
                      ]

          這里注意下 Ext.Toolbar.Fill()
          充滿組件把'導出Excel'頂到最右邊

          CSS:
          <style type="text/css">
          .add {
                      background-image:url(../icons/add.gif) !important;
                  }
                  .delete {
                      background-image:url(../icons/delete.gif) !important;
                  }
                  .save {
                      background-image:url(../icons/save.gif) !important;
                  }
                  .block {
                      background-image:url(../icons/block.gif) !important;
                  }
                  .refresh {
                      background-image:url(../icons/refresh.gif) !important;
                  }
                  .in {
                      background-image:url(../icons/in.gif) !important;
                  }
                  .out {
                      background-image:url(../icons/out.gif) !important;
                  }
          </style>

          posted @ 2009-03-13 18:07 Robert Su 閱讀(5737) | 評論 (0)編輯 收藏

          Case:
          action需要同時向兩張表中添加數據
          比如一個是class 一個是video
          每次都是一對多的關系~每一次插入的Video的classID是相同的

          video表中有個字段是classId 對應的是的class中的主鍵   ID

          ID是sequence生成的
          那我批量插入video的時候怎樣獲取class_ID_sequence生成的id值呢?

          思路:
          我觀察到Hibernate做插入的時候每次插入記錄的時候會首先查詢sequence

          select CLASS_ID_SEQ.nextval from dual
          那怎樣獲取到這個select的值呢?

          獲取到這個值可以直接給
          video.setClassID(classID)

          請大家討論并指教~

          ***************整理如下*******************
          執行完這句sql語句select CLASS_ID_SEQ.nextval from dual之后,class這個對象已經執行過setId方法,所以當前它的id值可以獲得getId方法得到;
          可以直接在在action這樣寫
          Long id=class.getId();


          感謝隔葉黃鶯

          posted @ 2009-03-11 13:49 Robert Su 閱讀(5189) | 評論 (6)編輯 收藏

          [RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: 流錯誤。 URL: http://localhost:8080/vbm/videoTrackHist/videoTrackAdd.htm"]. URL: http://localhost:8080/vbm/videoTrackHist/videoTrackAdd.htm"]
              at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C:"autobuild"3.2.0"frameworks"projects"rpc"src"mx"rpc"AbstractInvoker.as:220]
              at mx.rpc::Responder/fault()[C:"autobuild"3.2.0"frameworks"projects"rpc"src"mx"rpc"Responder.as:53]
              at mx.rpc::AsyncRequest/fault()[C:"autobuild"3.2.0"frameworks"projects"rpc"src"mx"rpc"AsyncRequest.as:103]
              at DirectHTTPMessageResponder/errorHandler()[C:"autobuild"3.2.0"frameworks"projects"rpc"src"mx"messaging"channels"DirectHTTPChannel.as:362]
              at flash.events::EventDispatcher/dispatchEventFunction()
              at flash.events::EventDispatcher/dispatchEvent()
              at flash.net::URLLoader/onComplete()

          當本地服務器關閉時,沒有成功錯誤響應的時候flex builder報錯如上

          代碼:  
              var param:URLVariables = new URLVariables();
              param.query = query;
             
              var v:HTTPService = new HTTPService;
              v.method = URLRequestMethod.POST;
              //v.method = 'POST';
              v.resultFormat="text";
              v.url = url ;
              v.send(param);


          posted @ 2009-03-10 16:22 Robert Su 閱讀(1199) | 評論 (0)編輯 收藏

          昨天一直被一個問題困擾,關于XMLlistCollection的賦值問題
          問題概述:
           <mx:DataGrid  id="videoList" dataProvider="{gridData}" ...

          gridData定義
          [Bindable] public var gridData:XMLListCollection = new XMLListCollection();

          gridData的取值來自于
          <mx:HTTPService id="videoXml"  method="POST" url="{serviceUrl}" resultFormat="e4x" result="loadDataOk();"  />
           <mx:XMLListCollection id="videoSrc" source="{videoXml.lastResult.webVideos}"/>

          這樣的做的目的在于想把每次請求回來的數據累加——“ +=”

          之前一直錯誤的賦值方式:
          gridData=videoSrc
          這樣會導致dataProvider與gridData指向同一個對象,與指針一樣。

          所以當HTTPService 返回數據改變, videoSrc改變的時候,DataProvider里的數據都是videoSrc當前數據
          而大小已經變成了gridData一樣的大小了

          改正后代碼
          if(gridData.length==0){
               //gridData=videoSrc; //錯誤代碼
               gridData = new XMLListCollection((XMLList)(videoSrc.source));
              }else{
               gridData=MergXMLCollect(gridData,videoSrc); 
              }

          posted @ 2009-03-06 13:37 Robert Su 閱讀(1767) | 評論 (0)編輯 收藏

          發送參數為

          deleteId:["3161104","3160521","1465591"]

          那我在action中的deleteId該定義成何種類型才能正常接收呢?

          問題解決了,在action中定義成List<String>
          就可以

          posted @ 2009-03-04 15:36 Robert Su 閱讀(404) | 評論 (1)編輯 收藏

          Ext2.0對框架進行了非常大的重構,其中最重要的就是形成了一個結構及層次分明的組件體系,由這些組件形成了Ext的控件,Ext組件是由 Component類定義,每一種組件都有一個指定的xtype屬性值,通過該值可以得到一個組件的類型或者是定義一個指定類型的組件。
                  組件大致可以分成三大類,即基本組件、工具欄組件、表單及元素組件。
          基本組件有:

            xtype            Class
          -------------    ------------------
          box              Ext.BoxComponent  具有邊框屬性的組件
          button           Ext.Button  按鈕
          colorpalette     Ext.ColorPalette 調色板
          component        Ext.Component 組件
          container        Ext.Container 容器
          cycle            Ext.CycleButton 
          dataview         Ext.DataView 數據顯示視圖
          datepicker       Ext.DatePicker 日期選擇面板
          editor           Ext.Editor 編輯器
          editorgrid       Ext.grid.EditorGridPanel 可編輯的表格 
          grid             Ext.grid.GridPanel 表格
          paging           Ext.PagingToolbar 工具欄中的間隔
          panel            Ext.Panel 面板
          progress         Ext.ProgressBar 進度條
          splitbutton      Ext.SplitButton 可分裂的按鈕
          tabpanel         Ext.TabPanel 選項面板
          treepanel        Ext.tree.TreePanel 樹
          viewport         Ext.ViewPort 視圖
          window           Ext.Window 窗口

          工具欄組件有
          ---------------------------------------
          toolbar          Ext.Toolbar 工具欄
          tbbutton         Ext.Toolbar.Button 按鈕
          tbfill           Ext.Toolbar.Fill 文件
          tbitem           Ext.Toolbar.Item 工具條項目
          tbseparator      Ext.Toolbar.Separator 工具欄分隔符
          tbspacer         Ext.Toolbar.Spacer 工具欄空白
          tbsplit          Ext.Toolbar.SplitButton 工具欄分隔按鈕
          tbtext           Ext.Toolbar.TextItem 工具欄文本項

          表單及字段組件包含:
          ---------------------------------------
          form             Ext.FormPanel Form面板 
          checkbox         Ext.form.Checkbox checkbox錄入框
          combo            Ext.form.ComboBox combo選擇項
          datefield        Ext.form.DateField 日期選擇項
          field            Ext.form.Field 表單字段
          fieldset         Ext.form.FieldSet 表單字段組
          hidden           Ext.form.Hidden 表單隱藏域
          htmleditor       Ext.form.HtmlEditor html編輯器
          numberfield      Ext.form.NumberField 數字編輯器
          radio            Ext.form.Radio 單選按鈕
          textarea         Ext.form.TextArea 區域文本框
          textfield        Ext.form.TextField 表單文本框
          timefield        Ext.form.TimeField 時間錄入項
          trigger          Ext.form.TriggerField 觸發錄入項

          可用的vtype列表:
          alpha,alphanum,email,url

          posted @ 2009-03-04 10:43 Robert Su 閱讀(514) | 評論 (0)編輯 收藏

          效果如下圖所示:
          控制代碼在GridPanel中

          loadMask: true






          11

          posted @ 2009-02-16 10:43 Robert Su 閱讀(1230) | 評論 (2)編輯 收藏

          僅列出標題
          共11頁: 上一頁 1 2 3 4 5 6 7 8 9 下一頁 Last 

          posts - 103, comments - 104, trackbacks - 0, articles - 5

          Copyright © Robert Su

          主站蜘蛛池模板: 巴东县| 荣成市| 信宜市| 陆川县| 新兴县| 沂源县| 兴海县| 上林县| 类乌齐县| 屯昌县| 丹巴县| 锡林浩特市| 高雄市| 怀柔区| 乌拉特中旗| 龙岩市| 竹溪县| 东至县| 德惠市| 文登市| 平度市| 嵊泗县| 濉溪县| 宜君县| 永丰县| 乌什县| 隆安县| 甘孜| 长顺县| 哈尔滨市| 德格县| 辽源市| 宝丰县| 乌拉特中旗| 盐城市| 杨浦区| 利川市| 潜江市| 桐梓县| 六枝特区| 塔城市|