HTML Forms question - Off-topic

I'm trying to put together a small HTML page that links to several reports I look at frequently so I'm trying to do something like this
USER ID [____________] [SUBMIT]
and whatever is entered will be tacked on to the end of a URL that is launched.
So something like this
http://blah/report=(whatever they typed in)
I've done a bit of googling but can't seem to find a way to do it.

Try this one
HTML:
<html>
<body>
<form action="http://forum.xda-developers.com/" method="get">
USER ID: <input type="text" name="report" /><input type="submit" value="Submit" />
</form>
</body>
</html>
For USER ID: 123456
It will go to "http://forum.xda-developers.com/?report=123456

Related

Changing branded bookmarks in Internet tab

Is it possible to change the bookmarks in the Internet tab?
I have branded ones as the first 4, with a branded larger logo at the top, and I really have no use for all but one of them. The ones I want to replace don't even work, as they connect via a proxy I'm not using.
Can I replace them?
tap and hold and select delete on the ones you don't want
hi,
i had the same problem with my t-mobile mda and here is the answer of your problem! patrickw_mdav explained the hole thing.
my internet tab looks now like this:
cu
I just tried to find the folder referenced to in that post and can't find it on my Diamond.
While browsing on the device, I see two files called "InternetPortal" that are XML that will open within Opera.
How can I back them up and edit them? I can't see them when browsing the device on my laptop.
*EDIT*
Nevermind, I'm logged into to a different OS than usual on my laptop, and didn't have system files viewable.
pomfiedel said:
my internet tab looks now like this:
Click to expand...
Click to collapse
How have you managed to customize it like that? At the moment I'm only able to get it to remove the banner (which it replaces with I'm assuming a default "launch browser" image) and it the one link I want remains.
My XML looks like this
HTML:
<?xml version="1.0" encoding="utf-16"?>
<InternetPortal>
<IncludeUserFavorites>True</IncludeUserFavorites>
<!--<Banner
DefaultImagePath="\Windows\_Telstra_banner.qtc"
SelectedImagePath="\Windows\_Telstra_bannerH.qtc"
Text="BigPond"
NavigateUrl="http://wap.telstra.com/wap?entry=g"
Width="480"
Height="200" />-->
<OperatorLinks>
<!--<Link
Text="Yellow"
NavigateUrl="http://waprd.telstra.com/redirect?target=yellow-g"
ImagePath="\Windows\_Yellow48.qtc" />
<Link
Text="Sensis Search"
NavigateUrl="http://waprd.telstra.com/redirect?target=sensis-g"
ImagePath="\Windows\_Sensis48.qtc" />
<Link
Text="Facebook"
NavigateUrl="http://waprd.telstra.com/redirect?target=facebook-g"
ImagePath="\Windows\_Facebook48.qtc" />-->
<Link
Text="Google Mobile"
NavigateUrl="http://m.google.com"
ImagePath="\Windows\google.jpg" />
<Link
Text="YouTube"
Executable="\Windows\YouTube.exe"
ImagePath="\Windows\HTC\Assets\Images\InternetPortal\youtube.qtc" />
</OperatorLinks>
</InternetPortal>
You see I've commented out everything but the YouTube link, and added a custom Google image and link. Is it that it doesn't support JPG? I've got no info on qtc files, otherwise I'd use one of them to keep the convention.
Cheers.
my .xml looks like this and i´ve used .jpg and png (both works):
HTML:
<?xml version="1.0" encoding="utf-16"?>
<InternetPortal>
<BrowserExe>\Windows\BrandedBrowser.exe</BrowserExe>
<IncludeUserFavorites>True</IncludeUserFavorites>
<Banner
DefaultImagePath="\interner speicher\google.png"
NavigateUrl="https://www.google.com/accountsxxxxxxxxxxxxxx/"
Text="Click Here"
Width="371"
Height="123" />
<OperatorLinks>
<Link
Text="XDA-Developers"
NavigateUrl="http://www.forum.xda-developers.com/forumdisplay.php?f=429/"
ImagePath="\Windows\Mobile-TV_48X48.qtc" />
<Link
Text="Telefon-Treff"
NavigateUrl="http://www.telefon-treff.de/"
ImagePath="\interner speicher\tt.jpg" />
</OperatorLinks>
</InternetPortal>
i only changed the banner to my asked adress and picture!
my .xml is called "InternetPortal-de-de.xml" an the path is \Application Data\Manila
i´m just searching for a nice picture for my devs shortcut
cu
Hmm.
The syntax in both our XML is fine. The only difference is the <browser> tag, which my original XML files didn't have, so I didn't think to include.
Do you happen to know the properties of your jpg? 48x48 is the standard dimension, I'm using 96DPI, but that shouldn't make too much difference.
Do you know when the XML is loaded? Is it on startup, or when the tab is accessed?
papalazarou said:
Hmm.
The syntax in both our XML is fine. The only difference is the <browser> tag, which my original XML files didn't have, so I didn't think to include.
Do you happen to know the properties of your jpg? 48x48 is the standard dimension, I'm using 96DPI, but that shouldn't make too much difference.
Do you know when the XML is loaded? Is it on startup, or when the tab is accessed?
Click to expand...
Click to collapse
i don´t have any idea about .xml. i only displaced the things i thought it schould work
the xml is loaded when the tab is accessed. i didn´t have to restart.
my picture is 41x48 pixel and 24bit true color.
Ok, it really doesnt seem to like Dreamweaver, so I'm doing my editing in notepad.
So I've figured that if I have a corrupt or no XML file in Manila, it reverts back to a defaul "Launch Browser" banner, with a pretty cool image of a globe. For some reason the YouTube app is also in there, so that must be pulled in from elsewhere.
If I have the correct XML, it removes the banner and uses the settings from the XML, which has no banner set. So can anyone tell me the default banner properties? I really want that "Launch Browser" banner, with my own custom links.
can you just use my xml? maybe this works and you just have to edit the path to the pictures!? i use notepad too.
cu
pomfiedel said:
can you just use my xml? maybe this works and you just have to edit the path to the pictures!? i use notepad too.
cu
Click to expand...
Click to collapse
No your XML has that iGoogle banner you created. I want the default one, but because it's pulling from custom XML, and no banner is specified in that, it isn't producing one.
If I remove my XML, it goes back to default, so I need to know what the default settings are (image location/name/dimensions, executable target) and then plug them into my custom XML.
But the earlier problem I was having was because I was using Dreamweaver. I'm not entirely sure why, but switching to notepad opened the thing up for me and everything works as it should, just without a banner.
If I get no info from anyone, I might post back in a new topic about it.
adesonic said:
tap and hold and select delete on the ones you don't want
Click to expand...
Click to collapse
Try to only post suggestions that actually work.

Is it possible to add multiple application shortcuts to Internet tab?

I apologize if this is in the wrong section (although I'm pretty sure it's correct). I did search around, and wasn't able to find an answer.
I've been trying to add multiple application shortcuts to my internet tab, but so far I haven't been able to get anything in addition to the YouTube application to show. Here's what my InternetPortal-en-US.xml looks like:
Code:
<?xml version="1.0" encoding="utf-16"?>
<InternetPortal>
<IncludeUserFavorites>True</IncludeUserFavorites>
<Banner
DefaultImagePath="\Windows\HTC\Assets\Images\InternetPortal\banner.qtc"
SelectedImagePath="\Windows\HTC\Assets\Images\InternetPortal\banner_selected.qtc"
Text="Opera"
Width="480"
Height="215" />
<OperatorLinks>
<Link Text=”YouTube”
Executable=”\windows\youtube.exe”
ImagePath=”\Windows\youtube.jpg”/>
<Link Text=”Internet Explorer”
Executable=”\windows\iexplore.exe”
ImagePath=”\Windows\internetexplorer.jpg”/>
</OperatorLinks>
</InternetPortal>
All the paths are correct, so is there something else I'm doing wrong or is the internet tab just limited to one application shortcut? Thanks in advance for any insight!
-David
There is a possibility that your images are of the wrong dimensions. Try to use only 48x48 icons/images for the shortcuts. I have no problems with having 9 shortcuts in my internet tab.

TF3D Internet favorites problem

Hallo people.
I want to use internet bookmarks(Internet Tab of TF3D) with UCWeb.
I have searched the forums,and everywhere is described,that these bookmarks are stored in "27c65cbd_manila" file.
Unfortunately,I hate Opera and I have it uninstalled from NATF's ROM and now I have different contents on the screen and the file(compare screenshot and the content of manilafile).
UCWeb is working pretty well for these bookmarks,but I want to modify them.
Code:
<?xml version="1.0" encoding="utf-16"?>
<InternetPortal>
<IncludeUserFavorites>True</IncludeUserFavorites>
<Banner
DefaultImagePath="\Windows\HTC\Assets\Images\InternetPortal\banner.qtc"
SelectedImagePath="\Windows\HTC\Assets\Images\InternetPortal\banner_selected.qtc"
Width="480"
Height="215" />
<OperatorLinks>
<Link
Text="YouTube"
Executable="\windows\youtube.exe"
ImagePath="\Windows\HTC\Assets\Images\InternetPortal\youtube.qtc" />
</OperatorLinks>
</InternetPortal>
This means,so this file is no longer a bookmarks file.
How to solve that?
Thanks.

HTML Panel Help

Hello all. Been a lurker here for ahwile but finally had a question so figured i would sign up.
Ive been working on a panel that is basically a front end to a parts search page online.
Ive got it somewhat working but am having some issues.
Basically what i need to do is take input from the user, pass that into a url and then pass that url into the
Open URL
ive been trying to do this via javascript but i cant seem to get it... is it possible to use a java function such as self.location = "extended://app:start ect ect " to open up the link in IE?
the only way i can get IE to open is via <a href="extended.......>
sorry im not in anyway a java or html guru and havent done anything like this in years so please forgive my ignorance..
any help would be appreciated..
for reference here is the code im attempting to use..if its sloppy or messy, again im not very well versed in html or javascript..
Code:
<html>
<head>
<meta name="MobileOptimized" content="240">
<meta http-equiv="PRAGMA" content="NO-CACHE">
<title>Partsurfer Mobile</title>
<base href="http://partsurfer.hp.com/cgi-bin/spi/main">
<script type="text/javascript">
function gosearchprod() {
var searchstring = document.getElementById('prodsearch').value;
var url ="extended://app:start?app=iexplore.exe&arg=http://partsurfer.hp.com/cgi-bin/spi/main?sel_flg=modsrch&template=main&cpric=&prodsrch=";
var searchurl = url + searchstring;
self.location = searchurl;
}
function gosearchpart() {
var searchstring = document.getElementById('partsearch').value;
var url =
"extended://app:start?app=iexplore.exe&arg=http://partsurfer.hp.com/cgi-bin/spi/main?sel_flg=partinfo&template=main&cpric=&psrchmode=&partsrch=";
var searchurl = url + searchstring;
self.location = searchurl;
}
</script>
</head>
<body>
Mobile Partsurfer<br>
<br>
<br>
By model number or name:<br>
<input name="prodsearch" id="prodsearch" value=""
type="text">
<input name="gobutton" id="gobutton" value="Go!"
onclick="gosearchprod();" type="button"><br>
<br>
By part number:<br>
<input name="partsearch" id="partsearch" value=""
type="text">
<input name="gobutton" id="gobutton" value="Go!"
onclick="gosearchpart();" type="button">
</body>
</html>
anyone?? common i cant be the only one attempting to create html panels here....even if people who know javascript can take a peek that would be awesome..
help... please.?!?
or does anyone know if you can pass variables into the "arg=" instead of say passing in "arg=http:///..........."
say "arg=id1 bla bla bla" ??

Who can write simple Application for form-submits?

I am dealing with the next problem.
Our work server has a firewall security. You have to go to a https:// website, submit username and password, and then your IP is logged to get an 8 hour connection to the server. It runs an exchange server which I can connect to when I open the firewall (also on the android device)
I have made this easyer by making a simple local html file, which passes a form to my server:
Code:
<form accept-charset="utf-8" method="post" action="https://xxxxxxxxxxxx.html" name="authform">
<input type="hidden" name="url" value=""/>
<input type="hidden" name="meth" value="plain"/>
<input type="hidden" name="action" value="login"/>
<input type="hidden" name="time" value="480"/>
<input type="hidden" name="uid" value="username"/>
<input type="hidden" name="pswd" value="password"/>
<body onload="document.authform.submit()">
</form>
Only, running this thing in android is not working: htmlviewer can't run java, the webviewer can't browse local files and htmlviewer using submit button is not loading the wanted page anyway.
Opening server manually by browsing there on android webbrowser works.
I am looking for a program to:
enter variables: uid, pswd, time and the url behind the action=" "
then pass the form to this website
Thanx!
do this without any screen (background), maybe an icon in the taskbar is cool
do this every x hours or (preferably) before I want to sync with server
I am using cyanogen 4.9999
anyone tips, idea's or has this app written in a blizz? A linux-console script / cronjob is cool also.
look at the gears tutorials on the ADP site. I think there's an example there for form submissions.
Fingerlickin said:
look at the gears tutorials on the ADP site. I think there's an example there for form submissions.
Click to expand...
Click to collapse
Oh hey I am really really no developer. I can do stuff with some examples maybe Where would I have to look? I am not familiar with Gears on ADP site.
Riel said:
Oh hey I am really really no developer. I can do stuff with some examples maybe Where would I have to look? I am not familiar with Gears on ADP site.
Click to expand...
Click to collapse
No developer? Might want to start reading up....
It is actually quite a simple process that you need to manage.
You need to note one thing; the form method is "POST", not "GET", so the form elements go in the message body rather than in the URL. "GET" is quite a lot simpler, you simply alter the URL from "http://www.whatever.com" to "http://www.whatever.com?field1=value1&field2=value2&...&fieldN=valueN"
But since this is post, you're going to have to do something a little more involved;
This might be some help to you: http://www.anddev.org/doing_http_post_with_android-t492.html
I think you'd find that this is actually a really great first project for learning to develop on Android. I'd download the SDK and look at the "hello, web" example in the Android Dev Guide.
Have a look at issue 2454 "Cannot view html on sdcard because no file url". You could also "star" that issue to vote for it.
content://com.android.htmlfileprovider/sdcard/some/where.html works for me on the Hero (1.5 Cupcake), although I didn't succeed to bookmark that URL.

Categories

Resources