OT: q on sending HTML data

In javascript, i do a query that the user does not see, and apparently able to get it into HTML (looks like a document page same name as HTML page that created the script but only on the screen). Ideally,what i would like to do is send this info as if i texted it, say to snipped-for-privacy@gmail.com . I say "texted" because i want to do this on ANY browser, especially cell-phones. Which leads me to the question, do ANY "browser-enabled" cell phones support JS? And if not,is there any kind of (simple?) script that would be able to determine info like cellphone make,type,browser - and then "text" it to snipped-for-privacy@mysite.biz?

Reply to
Robert Baer
Loading thread data ...

it's generally best to stick to http and https.

most

Have you considered instead just inspecting the HTTP request headers? there's lots of useful info there, else it's easy to fashion a GET request in javascrit if you need to transmit extra headers... doing this requires probably you have access to a server on the internet, but it doesn't need to be anything fancy, (only needs to run a scripted web page and send the info to data store).

--
?? 100% natural 

--- news://freenews.netfront.net/ - complaints: news@netfront.net ---
Reply to
Jasen Betts

simple.

don't use javascript and just send the broweser plain text. it will work anywhere, and everywhere.

set the mime type for the document encoding to text/plain

Reply to
Cydrome Leader

1) I did some fiddling on a cellphone regards to texting which i never did and did not know how to do. Basically, it is another call to a phone number, with the provisio that if you want the message to be receivable, that number better be a cellphone number. So texting is OUT; cannot be used to send message to a server. 2) HTTP request headers..i had better look into that more; HTTP and HTML-wise, i am un-eddikated. What little i saw concerning GET, seemed to allow VISUAL changes to the URL line and maybe text in the current viewed page. POST seems to be similar, and "more secure". Then there is PUT. a) i do not know how to use these b) it is not clear how to use them to get some text variable (which may be long) "sent" not unlike an e-mail to an address say to snipped-for-privacy@gmail.com - WITHOUT the need to have an e-mail "client", which a "mailto:" requires if success is wanted. 3) The "contact-form" and fieldset scheme does not work in some browsers. Safari totally barfs with forms and with mailto: ; Opera does not work with forms. So, it seems best to be safe and ASSUME neither work on cellphones.

Your idea/suggestion to use HTTP request headers appears to be the ONLY ?possible? way to do this.

So, please be kind enough to point to real-life examples using GET, POST or PUT, picking the lowest-level most universal of them. I saw comments that some of the InsipidExasperator versions do not work with one or more of those - which i (maybe falsely) assume is unavailable in one or more of the cellphone browsers.

Reply to
Robert Baer

Gee! _HOW_? Real life example, please!

Reply to
Robert Baer

Late at night, by candle light, Robert Baer penned this immortal opus:

If you have access to the server logs you can extract the user-agent field.

formatting link

- YD.

--
Remove HAT if replying by mail.
Reply to
YD

View

Cheers

Reply to
Grant

Interesting..only the first line is useful and the info flows toward gibberish after the second line.

Found an alternate (and easier) way to do what i needed with navigator.userAgent.match against a list of cellphone browsers like iPhone|iPod|BlackBerry etc.

Reply to
Robert Baer

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.