HTML-StickyQuery-DoCoMoGUID
view release on metacpan or search on metacpan
lib/HTML/StickyQuery/DoCoMoGUID.pm view on Meta::CPAN
for my $key (@{ $attrseq }) {
if ($key eq 'action'){
$self->{output} .= sprintf ' action="%s"', $self->escapeHTML($u->as_string);
} elsif ($attr->{$key} eq '__BOOLEAN__') {
$self->{output} .= " $key";
} else {
$self->{output} .= sprintf qq{ $key="%s"}, $self->escapeHTML($attr->{$key});
}
}
$self->{output} .= '>';
# add some params
_sticky_input($self, 1);
return;
}
$self->{output} .= $orig;
}
sub _sticky_input {
my($self, $ignore_guid) = @_;
while (my($key, $value) = each %{ $self->{param} }) {
next if $ignore_guid && $key eq 'guid';
$self->{output} .= sprintf '<input type="hidden" name="%s" value="%s"%s>',
$key, $value, ($self->{use_xhtml} ? ' /' : '');
}
}
1;
__END__
=encoding utf8
=head1 NAME
HTML::StickyQuery::DoCoMoGUID - add guid query for DoCoMo imode
=head1 SYNOPSIS
use HTML::StickyQuery::DoCoMoGUID;
my $guid = HTML::StickyQuery::DoCoMoGUID->new;
print $guid->sticky( scalarref => \$html );
add sessionid
my $guid = HTML::StickyQuery::DoCoMoGUID->new;
print $guid->sticky(
scalarref => \$html,
param => { sessionid => 'SID' },
);
guid=ON ãåºããªã
my $guid = HTML::StickyQuery::DoCoMoGUID->new;
print $guid->sticky(
scalarref => \$html,
param => { sessionid => 'SID' },
disable_guid => 1,
);
FORM ã¿ã°ã®æã® INPUT ã¿ã°ã XHTML ããç¡ããã
my $guid = HTML::StickyQuery::DoCoMoGUID->new;
print $guid->sticky(
scalarref => \$html,
param => { sessionid => 'SID' },
disable_guid => 1,
xhtml => 0,
);
=head1 DESCRIPTION
主㫠HTML::StickyQuery ã使ã£ã¦ DoCoMoç¨ã® guid=ON ãã¤ãããã£ã«ã¿ãªã³ã°ããããã
FORM ã¿ã°ãããå ´åã«ã¯ã get method ã®æã«ã¯ input ã¿ã°ã追å ãã¦ã post method ã®æã«ã¯ action ã®ä¸ã« guid=ON ã追å ãã¾ãã
sticky method ã¸ã®å¼æ°ã« param => { key => value } ã追å ãã㨠HTML::StickyQuery ã¸ãã®ã¾ã¾å¦çãå¼ãç¶ããããã
ãã ãã FORM ã¿ã°ã®å ´å㯠<input type="hidden" name="key" value="value" /> ã®ãã㪠HTML ãåºåããã¾ãã
ã©ããªæãã§ãã£ã«ã¿ãªã³ã°ãããã㯠t ãã£ã¬ã¯ããªã®ä¸ã®ãã¹ãã³ã¼ããåèã«ãã¦ãã ãããã
=head1 AUTHOR
Kazuhiro Osawa E<lt>yappo {at} shibuya [dot] plE<gt>,
Hideo Kimura
=head1 SEE ALSO
L<HTML::StickyQuery>, L<http://www.nttdocomo.co.jp/service/imode/make/content/ip/index.html#imodeid>
=head1 REPOSITORY
git clone git://github.com/yappo/p5-HTML-StickyQuery-DoCoMoGUID.git
patches and collaborators are welcome.
=head1 LICENSE
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
=cut
( run in 1.904 second using v1.01-cache-2.11-cpan-119454b85a5 )