ThIs SiTe Is A TyPo AnD A BuG.
[php]phpからdocument.writeでjavascript出したりするときに便利なやつ
ソーシャルブックマークに追加:
Category :
php
参照元:http://feedtailor.jp/oishi/2007/05/javascriptdocumentwritephptext.html
ありがたく使わせて頂きます。
いつもdocument.writeでわざわざくくってましたが。
---------------------------------------------------------------------------------------------------------------------
function js_write($a)
{
$lines = split("\n", $a);
if(!empty($lines)){
foreach($lines as $i => $line){
$line = str_replace("'", "\'" , $line);
$lines[$i] = preg_replace("|^(.*)$|", '\'$1\n\'+', $line);
}
}
$a = join("\n", $lines);
$a = substr($a, 0, strlen($a)-1);
return 'document.write('.$str.');';
}
-------------------------------------------------------------------------------------------------
とりあえず↓
function jsAction(){
echo $this->_js_document_write("<script type='text/javascript'>alert('aaaaa');</script>");
}
な感じで、うまく動いた。
ありがたく使わせて頂きます。
いつもdocument.writeでわざわざくくってましたが。
---------------------------------------------------------------------------------------------------------------------
function js_write($a)
{
$lines = split("\n", $a);
if(!empty($lines)){
foreach($lines as $i => $line){
$line = str_replace("'", "\'" , $line);
$lines[$i] = preg_replace("|^(.*)$|", '\'$1\n\'+', $line);
}
}
$a = join("\n", $lines);
$a = substr($a, 0, strlen($a)-1);
return 'document.write('.$str.');';
}
-------------------------------------------------------------------------------------------------
とりあえず↓
function jsAction(){
echo $this->_js_document_write("<script type='text/javascript'>alert('aaaaa');</script>");
}
な感じで、うまく動いた。
PR
この記事にコメントする
watch Vanishing on 7th Street Movie 2010 full movie
download Vanishing on 7th Street Movie music <a href=http://downlaodvanishingon7thstree.carbonmade.com/about>films Vanishing on 7th Street Movie </a> download Vanishing on 7th Street Movie avi
Vanishing on 7th Street Movie film imdb
download Vanishing on 7th Street Movie movie 2010 <a href=http://downlaodvanishingon7thstree.carbonmade.com/about>Vanishing on 7th Street Movie movie online </a> Vanishing on 7th Street Movie dvdrip
new Vanishing on 7th Street Movie movie
Vanishing on 7th Street Movie imdb <a href=http://downlaodvanishingon7thstree.carbonmade.com/about>Vanishing on 7th Street Movie film online </a> download Vanishing on 7th Street Movie movie rapidshare
download the No Regrets Movie movie
No Regrets Movie online divx <a href=http://downlaodnoregrets.carbonmade.com/about>No Regrets Movie information </a> No Regrets Movie movie posters
No Regrets Movie movie to watch
length of No Regrets Movie movie <a href=http://downlaodnoregrets.carbonmade.com/about>download No Regrets Movie hd </a> download No Regrets Movie film
Yogi Bear Movie movie on line
Yogi Bear Movie movie online <a href=http://downlaodyogibear.carbonmade.com/about>watch Yogi Bear Movie movie hd </a> watch Yogi Bear Movie megavideo
watch Yogi Bear Movie hd
Yogi Bear Movie movie theatres <a href=http://downlaodyogibear.carbonmade.com/about>Yogi Bear Movie download movie </a> Yogi Bear Movie movie video
download Certified Copy Movie movie rapidshare
Certified Copy Movie movie blog <a href=http://downlaodcertifiedcopy.carbonmade.com/about>watch Certified Copy Movie hd </a> watch Certified Copy Movie hd
the Certified Copy Movie trailer
Certified Copy Movie film premiere <a href=http://downlaodcertifiedcopy.carbonmade.com/about>Certified Copy Movie full movie </a> Certified Copy Movie divx hd
Day of the Woman Movie film website
watching Day of the Woman Movie online <a href=http://downlaoddayofthewoman.carbonmade.com/about>new Day of the Woman Movie movie </a> buy Day of the Woman Movie movie
Day of the Woman Movie film wikipedia
download Day of the Woman Movie film <a href=http://downlaoddayofthewoman.carbonmade.com/about>Day of the Woman Movie movie images </a> Day of the Woman Movie movie downloads
Red Dirt Rising Movie review
Red Dirt Rising Movie hdtv <a href=http://downlaodreddirtrising.carbonmade.com/about>watch Red Dirt Rising Movie movie hd </a> download Red Dirt Rising Movie music
watch Red Dirt Rising Movie film
watching Red Dirt Rising Movie online <a href=http://downlaodreddirtrising.carbonmade.com/about>Red Dirt Rising Movie video download </a> Red Dirt Rising Movie movie screenshots
Rare Exports Movie movie dvd
Rare Exports Movie movie direct download <a href=http://downlaodrareexports.carbonmade.com/about>Rare Exports Movie film wikipedia </a> Rare Exports Movie movie reviews
Rare Exports Movie downloads
new Rare Exports Movie movie <a href=http://downlaodrareexports.carbonmade.com/about>Rare Exports Movie movie music </a> download Rare Exports Movie film
Blue Valentine Movie review movie
watch the Blue Valentine Movie online <a href=http://downlaodbluevalentine.carbonmade.com/about>Blue Valentine Movie movie news </a> download Blue Valentine Movie avi
The King's Speech Movie movie quotes
The King's Speech Movie dvd <a href=http://downlaodthekingsspeech.carbonmade.com/about>The King's Speech Movie video download </a> The King's Speech Movie movie streaming
download the The King's Speech Movie movie
The King's Speech Movie movie full movie <a href=http://downlaodthekingsspeech.carbonmade.com/about>download The King's Speech Movie full </a> The King's Speech Movie movie downloads
Welcome to the Rileys Movie film online
watch the Welcome to the Rileys Movie online <a href=http://downlaodwelcometotherileys.carbonmade.com/about>Welcome to the Rileys Movie film wikipedia </a> Welcome to the Rileys Movie full
Welcome to the Rileys Movie review
Welcome to the Rileys Movie movie images <a href=http://downlaodwelcometotherileys.carbonmade.com/about>Welcome to the Rileys Movie dvdrip </a> download the Welcome to the Rileys Movie movie
The Company Men Movie divx hd
The Company Men Movie movie to watch <a href=http://downlaodthecompanymen.carbonmade.com/about>The Company Men Movie full movie </a> The Company Men Movie movie summary
The Company Men Movie movie news
download The Company Men Movie movie rapidshare <a href=http://downlaodthecompanymen.carbonmade.com/about>watch the The Company Men Movie online </a> The Company Men Movie film imdb
watch The Company Men Movie film
The Company Men Movie movie blog <a href=http://downlaodthecompanymen.carbonmade.com/about>The Company Men Movie download movie </a> The Company Men Movie movie
buy The Company Men Movie movie
quotes from the movie The Company Men Movie <a href=http://downlaodthecompanymen.carbonmade.com/about>watch the The Company Men Movie online </a> how to watch The Company Men Movie online
cult movie clips Rango Rango watch online
Rango review cult sci fi movies Rango <a href=http://rango.beep.com/>watch online free Rango </a> Rango full movie film noir download Rango http://rango.beep.com/
Rango online english cult comedy movies Rango
download Rango movies Rango ipod download <a href=http://rango.beep.com/>download divx Rango full lenght </a> suspense thriller movies Rango Rango full movie http://rango.beep.com/
download Rango movie hq hd video download Rango
watch the full Rango the movie download divx Rango movie <a href=http://rango.beep.com/>buy Rango movie </a> hi-def Rango movie download Rango movie tumblr http://rango.beep.com/
free download of Rango whole Rango movie online
Rango the movie high quality Rango movie trailers <a href=http://rango.beep.com/>download full Rango </a> hi-def Rango movie download Rango fool-lenght http://rango.beep.com/
best green web hosting
The wit makes fun of other persons; the satirist makes fun of the world; the humorist makes fun of himself.
Mom son xhamster movies
Of all the enemies to public liberty, war is perhaps the most to be dreaded because it comprises and develops the germ of every other.
hostmonster
If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens?
Keez Movies
I know that there are people in this world who do not love their fellow human beings, and I hate people like that.
managed web hosting
Sailors ought never to go to church. They ought to go to hell, where it is much more comfortable.
Humiliation Tube
Before the war is ended, the war party assumes the divine right to denounce and silence all opposition to war as unpatriotic and cowardly.
dress up games
Everywhere I go I'm asked if I think the university stifles writers. My opinion is that they don't stifle enough of them.
Locksmith Virginia Beach
Patriotism means to stand by the country. It does not mean to stand by the president or any other public official...
Dr simeons hcg diet
My neighbour asked if he could use my lawnmower and I told him of course he could, so long as he didn't take it out of my garden.
small business hosting
Ah, you know the type. They like to blame it all on the Jews or the Blacks, 'cause if they couldn't, they'd have to wake up to the fact that life's one big, scary, glorious, complex and ultimately unfathomable crapshoot -- and the only reason THEY can't seem to keep up is they're a bunch of misfits and losers.
Locksmith Tucson
If you're sick and tired of the politics of cynicism and polls and principles, come and join this campaign.
Buy Klonopin
Cholesterol is your natural defence against excessive circulation of blood, which can carry venoms, poisons and other toxins around your body.
incorporation
When his life was ruined, his family killed, his farm destroyed, Job knelt down on the ground and yelled up to the heavens, 'Why god? Why me?' and the thundering voice of God answered, 'There's just something about you that pisses me off.'
home loan calculator
Raymond's Law of Software: Given a sufficiently large number of eyeballs, all bugs are shallow.
cheap dedicated server
Before the war is ended, the war party assumes the divine right to denounce and silence all opposition to war as unpatriotic and cowardly.
Locksmith Orlando FL
Real Programmers always confuse Christmas and Halloween because Oct31 == Dec25 !
Alprazolam 1mg street price
You can get more with a kind word and a gun than you can with a kind word alone.
Locksmith Hartford
The chain reaction of evil -- wars producing more wars -- must be broken, or we shall be plunged into the dark abyss of annihilation.
Xtube spanking
Dying is a very dull, dreary affair. And my advice to you is to have nothing whatever to do with it.
Order klonopin online
Many a man's reputation would not know his character if they met on the street.
dedicated managed web hosting
One of the symptoms of an approaching nervous breakdown is the belief that one's work is terribly important.
Dot5hosting perl smtp mail
Heaven is an American salary, a Chinese cook, an English house, and a Japanese wife. Hell is defined as having a Chinese salary, an English cook, a Japanese house, and an American wife.
Empflix
Of all the enemies to public liberty, war is perhaps the most to be dreaded because it comprises and develops the germ of every other.
Www.hostgator.com
Many journalists have fallen for the conspiracy theory of government. I do assure you that they would produce more accurate work if they adhered to the cock-up theory.
cheap web hosting
Liberty and democracy become unholy when their hands are dyed red with innocent blood.
Locksmith Philadelphia PA
Ever notice when you blow in a dog's face he gets mad at you, but when you take him in a car he sticks his head out the window?
Mestinon + joint pain + blog
If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens?
最新記事
(03/05)
(12/18)
(12/16)
(12/01)
(10/29)
PR
カテゴリー
最新トラックバック
(10/21)
(08/25)
(01/23)
(10/25)
(10/21)
最新コメント
[12/12 clspxeiqhv]
[12/12 Advanced African Mango]
[12/12 Tampa crimanal attorney]
[12/12 Adipex]
[12/12 Sex dating in banks oregon]
公開中のサービス
MAの輪
ブログ内検索
ログール
アクセス解析
このページのQRコード
