Hello people. I need to convert a few WML codings to HTML. I have found plenty of converters that convert HTML to WAP, but none usable. Please guide me. Thanks in advance.

Dani AI

Generated

This thread actually covers two separate tasks: converting WML pages to HTML and automatically redirecting a user from one page to another. was right that the clean long‑term solution for automatic navigation is server‑side; ’s client‑side meta refresh (mentioned later in the thread) will work in a pinch but has drawbacks for accessibility, SEO and session handling.

For redirects (recommended order)

  • Best: issue an HTTP 3xx response from the server so browsers and search engines see a real redirect (use 301 for permanent, 302/307 for temporary).
  • If you can’t change server config, send a 3xx from server‑side code (example languages below).
  • Fallback: client‑side JavaScript redirect (better UX than meta refresh), but don’t rely on it for authentication or security.

Example server-side examples:

# Apache (.htaccess)
Redirect 302 /index.html /main.html
<?php
// PHP
header("Location: /main.html", true, 302);
exit;
?>
/* Node + Express */
app.get('/index.html', (req, res) => res.redirect(302, '/main.html'));
<!-- client-side fallback -->
<script>window.location.replace('/main.html');</script>

WML → HTML conversion (practical checklist)

  • Treat WML as XML: parse the files rather than doing blind search/replace.
  • Convert each WML “page” into an HTML document or a single-page structure with logical sections; convert navigation actions into links or JS handlers.
  • Map device-specific behaviors (form posting, events) to HTML forms + server endpoints or fetch/XHR logic.
  • Move presentation into CSS and keep markup semantic (HTML5 when possible).
  • Validate the resulting HTML, test on target devices/browsers, and check character encoding.

Troubleshooting tips

  • If redirects loop, check rules for index/main and base href values.
  • Test redirects with browser devtools or a HEAD request to confirm the HTTP status code.
  • For login flows, always create the session and perform the redirect server‑side so access control isn’t bypassable.

This summary prioritizes robust, maintainable redirects and a systematic approach to converting WML content so pages are accessible and future‑proof.

Recommended Answers

All 8 Replies

WML uses essentially the same tags as HTML. You would basically convert the <wml> to <html> , and <card> to <div> .

You would combine the "anchor" and "go" tags to a single <a> tag, and so on. A few simple "search & replaces" with a good text editor is all you need.

the thing were my friends also have got stuck is we have index.html and we want to redirect it to home.html without without any click by the user.. We've got wml code for it but need html code.. Please can you give? Thanks in advance

Could you please use real punctuation? No sentence structure I've ever seen requires a "..?" at the end of it.

I don't understand your question. Users navigate from one page to another by clicking on hyperlinks.

oh i'm extremely sorry about ".." what i need is,as in dani forums,we login then it directly redirects to new main page,without need to click on hyperlink,it automatically gets refreshed. Same way suppose user is in index.html he should automatically get redirected to main.html . I hope i am clear this time.

thanks i got my answer you can close this thread. And thanks for trying to solve@tgeer

This isn't a WML-to-HTML conversion question, though. Redirects and login authentication are done via server-side programming.

no i was having the wml coding but now i don't meet someone said me that this code was enough <meta equiv="refresh" content=8;url=> to be added in header file.

Well, that's my point: the "meta refresh" tag is a solution to a specific problem, which has nothing to do with WML vs. HTML or converting from one to the other. Marking this thread "solved" would mislead someone who actually needed help converting WML to HTML.

I'm glad you solved your problem, but your problem had nothing to do with the question you asked.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.