Re: Javascript to Objective-C
Re: Javascript to Objective-C
- Subject: Re: Javascript to Objective-C
- From: Ian was here <email@hidden>
- Date: Sun, 2 Dec 2007 23:51:33 -0800 (PST)
Are you trying to run the Javascript code through
Cocoa, which I would recommend using a WebView, or are
you just trying to port the code over to Obejctive-C?
--- Kishore <email@hidden> wrote:
> Hi All,
>
> I am a newbie in URLLoading system in Cocoa. I got
> a requirement for
> converting some javascript code to Cocoa
> (Objective-C).
>
> I tried to implement by studying URL Loading System
> (Cocoa), but I
> couldn't get the result. Please help me in
> converting this js code
> to Objective-C (Cocoa).
>
> Here is my Javascript code:
>
> var xmlReq = NewHttpObject();
> var date = new Date();
> xmlReq.open("POST", "abc.cgi", false);
> xmlReq.setRequestHeader('Content-Type', 'text/html;
> charset=UTF-8');
> xmlReq.send("&command="+command+"&date="+date);
>
> var result = xmlReq.responseText;
>
>
> Thanks,
> Kishore
>
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator
> comments to the list.
> Contact the moderators at
> cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
>
> This email sent to email@hidden
>
____________________________________________________________________________________
Be a better pen pal.
Text or chat with friends inside Yahoo! Mail. See how. http://overview.mail.yahoo.com/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden