Flex Builder cannot locate the required version of Flash Player. You might need to install Flash Player 9 or reinstall Flex Builder.

Do you want to try to run your application with the current version?

이런 오류 발생시..

windows - > prference -> general -> web browser -> 익스플로어 선택
Posted by 웹눈
TAG flex

This is a paragraph of text with class="goofy." It has anexternal link, some $(code), and a same-page link.

  1. list item 1 with dummy link to silly.pdf
  2. list item 2 with class="goofy"
  3. list item 3
  4. list item 4 with silly link to silly.pdf
  •  $('li:eq(0)') gets the first list item
  •  $('li:even') gets all odd-numbered list items (because, in javascript, numbering starts with 0, not 1).
  •  $('li:lt(3)') gets the first 3 list items. "lt" stands for "less than," and it starts counting at 0, not 1.
  •  $('li:not(.goofy)') gets list items 1, 2, and 4, because they're not "goofy."
  •  $('p a[href*=#]') gets any links that are inside a paragraph and have an "href" attribute starting with "#" — containing "#" anywhere. in other words, same-page linksThere are problems with trying to identify same-page links this way. I'll write about this in an upcoming entry. Note the space between the "p" and the "a"; that means that the "a" is a descendant of the "p."
  •  $('code, li.goofy') gets all code elements and any list item with a class of "goofy."
  •  $('ol .goofy > strong') gets all strong elements that are children of any element with a class of "goofy" as long as the class somewhere inside (i.e. a descendent) of an ordered list. Notice that the word "item" is not highlighted because, even though it's inside ".goofy," it's not a direct child. Only "goofy" is a direct child of ".goofy." Maybe we should call it "goofy jr."
  •  $('li + li > a[href$=pdf]') gets all links ending in "pdf" that are children of any list item that has another list item as its previous sibling. It won't get the first list item's silly.pdf because that list item has no other list items before it.
  •  $('span:hidden') gets any span element that is hidden.

Note: The selectors used for the toggle buttons are identical to the ones shown next to each button, except that they are preceded by $('#jqdt').find to target the highlighting.

jQuery's selector expressions cover the full range of CSS 1-3, along with basic XPath and a few jQuery-only expressions. For a complete list, visit jquery.com

Next time, I'll explore jQuery functions such as .filter()prev(), and siblings() that complement the above selector expressions to give you full DOM-traversing power!

'프로그래밍 > 자바스크립트' 카테고리의 다른 글

jquery select  (0) 2009/05/16
jQuery 를 이용한 XML 파싱  (0) 2009/05/16
INPUT TYPE 에서 숫자만 입력받기  (0) 2009/04/10
테두리가 둥근 테이블 만들기  (0) 2008/08/26
Posted by 웹눈
<script src="http://code.jquery.com/jquery-latest.js"></script>
  <script>

 $(document).ready(function() { 
$.get("hello.xml",{},function(xml) {
$("item",xml).each(function(i) {
title = $(this).find("title").text();
$("#contents").append("title");
});
});
 });

  </script>

아래는 <body> 안에 들어갈 div 태그
<div id="contents"></div>

'프로그래밍 > 자바스크립트' 카테고리의 다른 글

jquery select  (0) 2009/05/16
jQuery 를 이용한 XML 파싱  (0) 2009/05/16
INPUT TYPE 에서 숫자만 입력받기  (0) 2009/04/10
테두리가 둥근 테이블 만들기  (0) 2008/08/26
Posted by 웹눈
TAG jQuery
생각보다 간단하게 만들었다.

<?
$month = 4 ;// date("n");
$year = date("Y");
$start_days = date("w" , mktime(0,0,0,$month,1,$year));
$uptodate = date("t", mktime(0,0,0,$month,1,$year));
for($d=$start_days + 1,$days=1;$days<=$uptodate;$d++,$days++) {
  $id[$d] = $days ;
  }



?>
<table>
  <tr>
  <? echo $year."년 ".$month."월";?>
  </tr>
  <tr>
    <td>일</td>
    <td>월</td>
    <td>화</td>
    <td>수</td>
    <td>목</td>
    <td>금</td>
    <td>토</td>
  </tr>
  <?
    //1부터 42까지 tr은 6개, td는 7개.
    for($tr=0;$tr<=5;$tr++) {
      echo"<tr>";
        
        for($td=1;$td<=7;$td++) {
          $no = $td + ($tr*7) ;

          echo"<td>$id[$no]</td>";
          }
          echo"</tr>";
          }
  ?>
</table>

'프로그래밍 > PHP' 카테고리의 다른 글

checkbox form 에서 값 넘겨받기  (0) 2009/06/07
PHP로 달력만들기  (0) 2009/05/15
PHP 1부터 100 사이의 소수 구하기  (0) 2009/05/09
PHP 변수형 확인  (0) 2009/05/09
Posted by 웹눈
<?
// 1부터 100까지의 소수를 나열한다.
// 소수의 인수는 1과 자기자신뿐.

for($i=1;$i<=100;$i++) {
  
  for($j=1;$j<=$i;$j++)
  {
    $s = $i / $j ;
    $type = gettype($s);
    if($type==integer) { // 나머지가 정수인것들만..
      
      $num[$i][] = $s ; // 몫을 배열에 저장
      
      }
    }
 $size = sizeof($num[$i]);
 if(($size==1)||($size==2)) {
   echo $i."<br>";
   }
  }
?>

이거 하나 하는데도.. 시간이 걸리니 ㅉㅉ....

'프로그래밍 > PHP' 카테고리의 다른 글

PHP로 달력만들기  (0) 2009/05/15
PHP 1부터 100 사이의 소수 구하기  (0) 2009/05/09
PHP 변수형 확인  (0) 2009/05/09
실시간 주가정보 파싱하기  (0) 2009/05/08
Posted by 웹눈
TAG PHP
사용법:
gettype(변수명) 

변수형 리턴값 종류:
"integer", "double", "string", "array", "object", "unknown type" 
사용예:

<? 
$a=12.3; 
$c=gettype($a); 
echo("$a 의 변수형은 ${c}입니다."); 
?> 

'프로그래밍 > PHP' 카테고리의 다른 글

PHP 1부터 100 사이의 소수 구하기  (0) 2009/05/09
PHP 변수형 확인  (0) 2009/05/09
실시간 주가정보 파싱하기  (0) 2009/05/08
.htaccess 수정하여 index.php 파일 제거  (0) 2009/05/04
Posted by 웹눈
TAG PHP
개인적인 용도로 사용할 실시간 주가 정보가 필요했었다. 

주가정보를 제공하는 open api 를 검색해 보았지만, 찾기가 힘들었다.

이리저리 검색을 하던중 http://money.msn.co.kr/gadget/sb_data.php 의 parameter 를 적절히 사용하면 실시간(사실 20분 늦은) 주가 정보를 제공받을수 있다는걸 알게 되었다.

하지만 parameter에는 종목코드로밖에 검색을 할수없었고(내가 알기로는) 

종목코드로 검색을 하는것은 비효율적이였기 때문에 다른 방법이 필요했다.

다행이도 '주가종목 코드'를 검색해주는 곳이 있어서, 그곳에서 모든 종목의 종목코드를 얻을수 있었다.(약 2066개였는데, 전부인지는 모르겠다)

종목과 종목별 코드를 얻은 나는 DB에 입력하기 위해 explode를 사용해서 종목명과 코드명을 분리하였다.

이 방법은 나중에 새로운 종목이 생기거나, 코드명이 변경되면 문제점이 생기지만, 그렇게 자주 변경되는것이 아니므로 나름 쓸만하다고 생각하였다.

그리고 종목명으로 검색을 하면 ttp://money.msn.co.kr/gadget/sb_data.php 파라미터에 코드명 변수를 전달해주어서 얻은 데이터를 DOM 을 사용하여 파싱을 하였다. 

대체도 동작은 잘 작동하니, 조금만 더 손을 본다면 주가정보 분석에 사용할수 있겠다.

'프로그래밍 > PHP' 카테고리의 다른 글

PHP 변수형 확인  (0) 2009/05/09
실시간 주가정보 파싱하기  (0) 2009/05/08
.htaccess 수정하여 index.php 파일 제거  (0) 2009/05/04
DB 내용 배열에 저장하기  (0) 2009/04/26
Posted by 웹눈

Removing the index.php file

By default, the index.php file will be included in your URLs:

example.com/index.php/news/article/my_article

You can easily remove this file by using a .htaccess file with some simple rules. Here is an example of such a file, using the "negative" method in which everything is redirected except the specified items:

RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

In the above example, any HTTP request other than those for index.php, images, and robots.txt is treated as a request for your index.php

'프로그래밍 > PHP' 카테고리의 다른 글

실시간 주가정보 파싱하기  (0) 2009/05/08
.htaccess 수정하여 index.php 파일 제거  (0) 2009/05/04
DB 내용 배열에 저장하기  (0) 2009/04/26
mysql 보안  (0) 2009/04/22
Posted by 웹눈