Interaction with webform in backround. - Web App Development

I am developing an application, in which I need to enter details to a webform and click on submit button after entering those details. But all this is to be done on backend. Means, the webform should not be able to see the webform. he should be able to see the text fields and form widgets, that i have put on the layout of the activity. the entered details should go to the webform in the background.
I don't know how to do this, or even this is possible or not. please help..

shivamg95 said:
I am developing an application, in which I need to enter details to a webform and click on submit button after entering those details. But all this is to be done on backend. Means, the webform should not be able to see the webform. he should be able to see the text fields and form widgets, that i have put on the layout of the activity. the entered details should go to the webform in the background.
I don't know how to do this, or even this is possible or not. please help..
Click to expand...
Click to collapse
If I understand correctly you either need to simply put the controls in a form that will post them to the server page URL, or you can use AJAX so you can have a "loading - please wait" type dialog and give some feedback about what's happening. It's up to you which you do, but I'd recommend using a form to start with as it's easy to modify the page to use AJAX later on (especially if you use jQuery).
This is a very good explanation of the whole process, along with some examples...
https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Forms/Sending_and_retrieving_form_data

Related

Another volunteer project: IIWPO (theft protection)

I need (or in fact, we all need...) someone that can read and write to the registry and send SMS messages in C++. (A code example for sending SMS is here)
The objective here is to create a program which we can include in the ROMkitchen and which will allow for theft-protection of the device. Basically when you select this option, you enter the GSM number of a friend and your name at the time you create the ROM. The device regularly checks whether your name still appears in the Owner Information. If not, it sends an SMS to your friend, including the new owner info, and then it is silent until the Owner Information changes again.
More formally:
Code:
Loop forever
SLEEP 1 hour
IF reg-key '\HKEY_CURRENT_USER\ControlPanel\Owner'
value 'Owner' != reg-key '\HKEY_CURRENT_USER\
Software\XDA-developers\IIWPO' value 'LastOwner'
THEN
COPY 'Owner' to 'LastOwner' (See above)
IF value 'Owner' doesn't contain the string
held in '\HKEY_CURRENT_USER\Software\
XDA-developers\IIWPO' value 'Name' THEN
Send data from Owner field above
via SMS to number held in '[...]IIWPO'
value 'Number' (REG_SZ)
Only slightly complicating factor is that the 'Owner' field is a binary field holding unicode, and that I'd like the 'Name' field in our own entry to be REG_SZ because ROMkitchen does that without hassle. But otherwise this is all pretty straightforward.
Because our IIWPO (which, by the way, stands for 'Interesting Interaction With Previous Owner') program is meant to be in 'Startup', it would be nice if memory footprint was as small as possible. Since it's going to sleep most of the time, performance should be unaffected no matter what.
The sleep is at the beginning so that you have one hour after a cold boot to set your name before it starts sending the SMS.
Ofcourse everyone that has read this could change the registry. We're assuming for a moment that it's much more likely that your phone will be stolen by someone that didn't read this. A little Security By Obscurity never hurt anyone.
I just wonder
very interesting concept, very...
I can code this feature easy, but I just wonder: what to say, if your stoles device will stay hundreds kilometers away from you a few days later? ask the new owner to mail it to you?
hmmm? maybe it is worth?
improve the concept
I have an idea to improve the above concept:
1. we can save the original owner and "sms to send" number in the random generated register key, encrypted binary - it will be hard to find and delete for most of users
2. we provide a shortcut to the application allows the oroginal user to run it and type the name and the above number and save
3. after the above point 2 happen once, the shortcut and even the application are deleting completely, so nobody can do that again
the quextion is:
the execute part of the application: to check the current name and eventually send the sms, have to be placed in the Startup folder to run after the reset. How to hide this shortcut?
Re: improve the concept
JGUI said:
1. we can save the original owner and "sms to send" number in the random generated register key, encrypted binary - it will be hard to find and delete for most of users
Click to expand...
Click to collapse
Nice idea: but any thief that knows about this danger will just cook themselves a new ROM and install it.
2. we provide a shortcut to the application allows the original user to run it and type the name and the above number and save
Click to expand...
Click to collapse
Why not just do it in the ROMkitchen?
And besides, it already done: a kind gentleman by the name of Charles Warner has written the app, and it'll be in the ROMkitchen later today, hopefully...

Permission requested from admins/mods

reposted to Dev&Hack forum Aug 9th, 12:30pm PST
I'm not a developer, and only an intermediate(?) VBA programmer for my own solutions. (Though several of those are quite involved.)
I have a question that I'd like to post on the Developers forum, because I believe it falls in "their" wheelhouse.
I've read and respect the posting guidelines published for each forum and the site generally.
I've done my web search diligence, and have posted inquiry on other sites specific to my device and the particular application(s) involved. No luck.
Am requesting permission/blessing to post the following:
Keystrokes as code?
Specifically Excel Mobile keyboard shortcut Alt-PgUp/Dn
I've created several Keystroke "routines" to minimize stylus use in Excel Mobile. I've mapped to hardware buttons, and they all work great... except Alt-PgUp(and PgDn). In Excel, these key combos will scroll one screen left or right, respectively. Other similarly-coded "routines" work as expected.
I've worked around this for now by recording screentaps in Excel's horizontal scrollbar. Unfortunately, the location of that s/b depends on whether SIP is active. If it is, the vertical co-ordinates of the screentaps become irrelevant and/or potentially destructive to my intended result. I prefer to avoid "position dependent" commands whenever possible for obvious reasons.
I have several other programs at my disposal to effect the Alt-PgUp/Dn shortcut(s).... IF I knew how to define the values(?) of Alt-PgUp/Dn in a script.
(MortScript, PHMkeys, Pen Commander, Spb FullScreenKb, PDA MediaKb)
I've been all over the web, and I think I understand keystroke scan-codes and values... and how they work together. Is there something akin to an ASCII "value" for this key combination? (099/0A1; 073/081; 153/161)?
Any ideas are appreciated. I've no aversion to research or work, but can't figure out what to ask or where to look further.
(I just really need a more direct/reliable functionality to scroll entire screen at a time left/right.)
Thanks in advance if anyone can help.
Dell Axim x51v WM5 (if it matters)
(Please feel free to "re-direct"/re-locate/modify/enlighten etc.)
pro-fit2: your post sounds like one of the very few that truly does merit going in the developer forum Please repost it there.
BTW, the solution to your problem sounds like you could just emulate scrollbar commands, rather then keyboard commands. That's fairly easy to do by posting WM_VSCROLL or directly manipulating the scrollbars in code. With that you can emulate smooth scroll, line scroll and page scroll. I wrote an app that can do that, once upon a time.
V
Scroll bar control, accessing, WM_HSCROLL
Vijay, thank you for permission and input.
Before I go further, I like the sound of your suggestion, but my code background is primarily VBA thru Excel, from which I access some minor(?) "other" things like PrintDialog, or other MS Office apps...
I'm willing to work through the API(?) to access window scrollbar controls, WM_HSCROLL (etc), but I would need a more basic start. If it's easy to generate, I'd love to see some further detail on the approach you described.
Thanks either way,
Pro-Fit
pro-fit2: apologies for being an ass, but could you open a thread in the developers forum, and I'll paste some code in.
I would open it for you, but it's better if it's opened under your member ID.
To get you started, this is a not particularly good article on scrollbar functions in vb.net. It's not VBA, but should give you an idea.
There are two ways to control the scrolling -
method 1: by sending the scrollbar a rough command to scroll up/down/left/right one line or one page. [ WM_VSCROLL with SB_LINEDOWN/SB_PAGEDOWN ]
method 2: by sending specific thumbposition control commands, which will give you fine control over the scrollbar. Frankly, this is probably what you don't need as it requires you to interrogate the scrollbar and then react accordingly. You just need to emulate line up/down I think. Look into SetScrollInfo etc.
Again, apologies for being obtuse, but there's no point filling this thread with redundant info. But start here:
http://windowssdk.msdn.microsoft.com/en-us/library/ms674659(vs.80).aspx
Open the development thread and we'll continue
V

[Q] Need Suggestion

Hi Friends,
I am going to develop a windows mobile application for a big shopping mall using VB.NET.
I will appreciate for your suggestion for the below.
1- Can i filter Message using VB.NET and display in my application. For the example if our company send some promotional message, same time i need to invoke my application and display the message in his own window. and not let it go to the default phone message folder?
2- Is there any Service which can run background and keep filtering for all incoming SMS?
3- I will appreciate if anyone can give me link for the messaging development in VB.NET
Thank You
Hi,
For filtering incoming SMS messages, you need to look into the MessageInterceptor class:
h t t p://msdn.microsoft.com/en-us/library/bb932385.aspx
As for a background "service", you can create an exe project and have it auto-minimise on startup. Add the code to set up the Message Interceptor and display your custom form when a matching message comes in. When the user closes the form, simply minimise back down again. The exe will continue to run unless the user kills it (i.e. in task manager).
When you create your CAB file setup project, open the File System dialog and add a shortcut to the Windows Folder\Startup which targets the Primary Output of your exe. This will ensure the app runs when the user restarts their device.
Hope that helps!
Kind Regards,
PaulM
PaulM,
Thank you for your suggestion, i made a small test application and works like charm )):
After filtering i need to save the message and display it when user need in future. What is the best way to save? XML will be good or other com type should i use to act as database?
Thank You
Hi go4voip,
XML springs to mind, but it depends on security - XML is plain text and can easily be edited by the user on the device.
However, if you wanted more security, you could still use XML but encrypt the data before saving it to a file, then decrypt it before loading it into the XML document. See the System.Security.Cryptography namespace - it's dead easy to use.
Kind Regards,
PaulM
go4voip said:
PaulM,
Thank you for your suggestion, i made a small test application and works like charm )):
After filtering i need to save the message and display it when user need in future. What is the best way to save? XML will be good or other com type should i use to act as database?
Thank You
Click to expand...
Click to collapse
Hi go4voip,
well just to add one more thing here if u use messageinterceptor it may not work for some HD2s as i have faced a lot of issues because of it in one of my app, so i went for a different way. It is basically a native dll.
about saving it google "SQLite" it is mobile db, very small and just a dll...no installation. I used it for my app.
PS: Let me know if you need any help... also you can see two apps in my signature one is SMSFilter that uses the native way of filtering the sms and other one smsrule which uses the messageinterceptor way of filtering. It is verymuch simmilar to what you want.
Thanks,
Mohit

Start programming: help for coding a vocabulary builder

Hi at all,
I would like to start coding for wp7. I already have the sdk and some knowledge about c#. However, I don't know how and where to start.
My plan is to program a vocabulary builder, that just asks a vocabulary from a database, then waits until the user has thought about the answer, then on click shows the answer and the user can say if it was right or wrong. Dependent on the answer the vocabulary's phase increases or decreases 1. There should be six phases.
No idea how to do that. I even don't know where to save the vocabularies and how to get them on the phone.
Any ideas for me?
Hi,
Depending on the size of the dictionary you could put the vocabs in one or more XML files, that will be deployed with your application. Maybe something like this:
Code:
<dictionary sourcelanguage="spanish" targetlanguage="english">
<vocab id="1" word="uno" translation="one"/>
<vocab id="2" word="dos" translation="two"/>
</dictionary>
Add the file to your project with build type content and read it e.g. with XDocument.Load("spanish.xml") => see here.
Build classes representing your XML-Structure and get a random vocabulary to display it to the user (use a public property e.g. "CurrentWord" in your ViewModel that is bound to a UI-Element in your View).
The "Show answer" button should be binded to a Command that triggers the hidden answer and the "Rate my answer" button to be shown.
To save the phases you could build up a index file that saves the IDs of the vocabularies with an integer of the phase count. This would then be saved each time the user processes words.
Hope this helps a bit.

[GUIDE]windows 8 combination keys

window+q we can find applications faster
windows+m this allows us to search in the configuration parameter
windos+i allows us to open the panel of configuration
windows+c opens the menu star
please if you read this post at least say thanks
nice......
You really should visit: http://blogs.msdn.com/b/jennifer/archive/2012/04/12/keyboard-shortcuts-in-windows-8.aspx for other great Win8 related items. The Windows Blogs are terrific.
Or
http://blog.laptopmag.com/13-new-shortcut-keys-in-windows-8
All great resources to stay up to date.
Also, to search or access a program the easiest? Simply start typing the App name, no need for quick keys.

Categories

Resources