Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > XHTML Basic / targets

Reply
Thread Tools

XHTML Basic / targets

 
 
sirboom
Guest
Posts: n/a
 
      02-22-2006
I'm looking to develop an XHTML Basic web site specifically intended to work
on mobile / handheld devices. I foresee no problem with doing that, except
for one specific necessity that does not seem to be addressed. I need to
send commands to the server through a URL when the user clicks an image,
button, etc.

To my knowledge, there are several ways to do this in traditional HTML.
1. Create a frameset (with one frame set to a height of zero to be
invisible), or iframe. <a href="http://example.com/cgi?do=action"
target="zeroframe"> would easily do that.
2. Use javascript to send the command. var z = new Image(0,0); z.src =
"http://example.com/cgi?do=action"

Neither of these techniques seem to be possible in XHTML Basic, as
javascript is not something one should rely on with a mobile device, and it
specifically says frames are not part of it.

I understand that it is intended to be a modular specification, but is there
any way to perform this action while still remaining within the confines of
XHTML Basic?

Thank you for your time,

-- Mike
 
Reply With Quote
 
 
 
 
Toby Inkster
Guest
Posts: n/a
 
      02-23-2006
sirboom wrote:

> I'm looking to develop an XHTML Basic web site specifically intended to work
> on mobile / handheld devices. I foresee no problem with doing that, except
> for one specific necessity that does not seem to be addressed. I need to
> send commands to the server through a URL when the user clicks an image,
> button, etc.


Use a link / use a form:

<a href="http://example.com/cgi?do=action">...</a>

<form action="http://example.com/cgi">
<div>
<input type="hidden" name="do" value="action" />
<input type="submit" />
</div>
</form>

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PSD to XHTML Conversion, PSD to HTML, Joomla, Drupal, WordpressConversion, PSD to XHTML CSS xhtml champs XML 0 08-02-2011 05:40 AM
PSD to XHTML Conversion, PSD to HTML, Joomla, Drupal, WordpressConversion, PSD to XHTML CSS xhtml champs C Programming 0 08-01-2011 06:29 AM
convert xhtml to another xhtml using xslt Usha2009 XML 0 12-20-2009 01:13 PM
Should I Convert Site To XHTML or XHTML mobile? chronos3d HTML 9 12-05-2006 04:46 PM
parse URL (href) from xhtml, xhtml -> text, for data hawat.thufir@gmail.com XML 7 02-08-2006 07:39 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57