I guess the following client side code would help you.
This is simple AJAX implementation of posting data for charset is gb2312.

var url = '';// your URL
var postdata = '' //YOur data to be posted.
var xmlHttp = new XMLHTTPRequest()
xmlHttp.onreadystatechange=AjaxStateChanged;
xmlHttp.open("POST",url,true);
xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;
charset=gb2312");
xmlHttp.send(postdata);


~ Thangaraju Ramasamy


On Wed, Dec 2, 2009 at 21:48, [G] <[email protected]> wrote:

> sorry,i check the document and found it. but i still has a trouble.
> i need send the string to server using $.post().server page charset is
> gb2312 ,but when i using $.post() function ,the unicode string always
> encode with UTF8, how can i solve it? (i can't modi server page).
>
> On 12月2日, 下午11时51分, Thangaraju Ramasamy <[email protected]> wrote:
> > Only DOM element of the web page could be accessible from content script.
> > You can't access any JS functions, vaiables or objects of any webpage.
> > You need to include jQuery in your content script, since it is isolated
> from
> > the page script.
> > It is clearly mentioned in the documentation.
> >
> > ~ Thangaraju Ramasamy
> >
> >
> >
> > On Wed, Dec 2, 2009 at 20:52, [G] <[email protected]> wrote:
> > > hi all
> > >  I want to write a extenson for the page,it already include jQuey,
> > > how can i use the use this jQuery instead put the jQuery into the
> > > extenson.
> > >  i can do that under FF,but i can't find way to do that under
> > > chrome ,Who can give me some suggestions?
> > > thanks alot.
> >
> > > --
> >
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Chromium-extensions" group.
> > > To post to this group, send email to
> [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<chromium-extensions%[email protected]><chromium-extensions%2Bunsu
> [email protected]>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/chromium-extensions?hl=en.
>

--

You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en.


Reply via email to