ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 13th, 2003, 10:04 AM
Kurti Kurti is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Canada
Posts: 8 Kurti User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation AutoResponse and .NET

Is it possible to do the following?

I am asking about writing a script that will allow me to run it like a batch file on my desktop. Where I can click it and it will open the browser to a search engine page (of my boss' creation) with one text field and one button.

In that script, it will have a string that has a word in it, say: Doctor, which it will put it into the text field.

Once that is done, it will then automatically click the button which will send the information.

So, a brief recap;

1) I need to get a script that fills in a field with a word.
2) Once that word is in the field, it will automatically press the button on the webpage.
3) Once that button is pressed, it then will search for that word 'Doctor' and display the results.

I wish I could be more specific. However this was all the information that was given to me. All I know is that my boss wants to be able to press an icon on his desktop that will run the script which opens a website address (which I do not have). Have a word inserted into a text field and have that webpage automatically press the Search Button and display the results.

I hope this helps you guys out somewhat, because I'm just confused on what he is trying to accomplish.

Reply With Quote
  #2  
Old May 14th, 2003, 02:26 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Posts: 2,056 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 44 m 22 sec
Reputation Power: 0
You could do this by just creating a simple HTML page, with a form. The user open the page (either thru a shortcut or has the actual page on their desktop). They enter in the word, press Enter to submit the form, which posts to wherever you want it to go.

No server-side programming is needed... just simple HTML (forms). At least this is what i think you want... i couldn't really understand your post.

Reply With Quote
  #3  
Old May 14th, 2003, 07:22 AM
Kurti Kurti is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Canada
Posts: 8 Kurti User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Stumpy:

Yes that is the basic Idea, with the shortcut on the desktop and the HTML Form...

However, when you click on the Desktop Icon, my boss wants it to Automatically have the word already entered into the form.

Once that word is in the Form, have a script press the Button and have it search for that word...

Reply With Quote
  #4  
Old May 14th, 2003, 07:26 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Posts: 2,056 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 44 m 22 sec
Reputation Power: 0
How is the word sposed to be entered into the form? It's simple to have the one single word in the form all the time (<input type="text" value="Blah">), but what's the point in having the same word every time?

As far as automatically submitting. How is the form sposed to know when the word ends?

Reply With Quote
  #5  
Old May 14th, 2003, 09:23 AM
Kurti Kurti is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Canada
Posts: 8 Kurti User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Stumpy;

You are right with the (<input type="text" value="Blah">) because that is what I was thinking as well...

As for what is the point of having the same word everytime... That I do not know....

As far as automatically submitting. That is where I think scripting of some kind is able to help.

A friend of mine told me that in VB.NET, I would have to look up Weblinks,
Webforms
and then finally: AutoResponse to see if I could get this to work...

Reply With Quote
  #6  
Old May 14th, 2003, 09:26 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Posts: 2,056 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 44 m 22 sec
Reputation Power: 0
You can auto submit with some Javascript, but i just don't see what you are try to achieve by submitting the same word everything time.

To auto submit a form after the page has loaded:
<body onload="document.forms[0].frmName.submit()">

Reply With Quote
  #7  
Old May 14th, 2003, 09:31 AM
Kurti Kurti is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Canada
Posts: 8 Kurti User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Honestly Stumpy, I wish I knew why I would be submitting the same word over and over again searching for whatever the word is.

However, I do not...

Reply With Quote
  #8  
Old May 14th, 2003, 09:36 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Posts: 2,056 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 44 m 22 sec
Reputation Power: 0
hehe - okay - employers make odd requests sometimes.

Hope I've solved your problem anyway.

Reply With Quote
  #9  
Old May 15th, 2003, 08:55 AM
Kurti Kurti is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Canada
Posts: 8 Kurti User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Then the question is Stumpy,

When I put this javascript into the body of the html document, What Frm am I calling... Can I create it in VB or Can I create it in HTML....

I'm just not quite understanding that particular code that's all...

Reply With Quote
  #10  
Old May 15th, 2003, 09:27 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Posts: 2,056 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 44 m 22 sec
Reputation Power: 0
It's all done with HTML & Javascript - no server side code necessary

Reply With Quote
  #11  
Old May 15th, 2003, 09:39 AM
Kurti Kurti is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Canada
Posts: 8 Kurti User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
This is what I have so far...

Below is what I have so far.... Any suggestions?

[<html>]
[<head>]
[<title> Test Form </title>]

[</head>]

1) It is this part that is confusing me... unless I have to give the form tag itself a name.... \/
[<body onload="document.forms[0].frmName.submit()">]

[<table>]
[<tr>]
[<td>]

[<FORM METHOD="POST" ACTION="mailto:kurtis@mastronardiproduce.com">]

[<INPUT TYPE="text" NAME="name" SIZE="30" value="test" TITLE="This is the textbox that has a default value of 'test' in the Field">]

[<INPUT TYPE="submit" name="Submit" TITLE="This is the Submit button which should Automatically Press when the above script runs...">]

[</form>]

[</td>]
[</tr>]
[</table>]


[</body>]
[</html>]

Reply With Quote
  #12  
Old May 15th, 2003, 09:49 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Posts: 2,056 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 44 m 22 sec
Reputation Power: 0
looks good. remove the square braces around everything tho... u don't need 'em

forms[0] simply refers to the first form in the forms array found in the page. There's only one form in our page, and it'll use that one. Alternatively, you can refer to the form by name (I prefer this method).

So, give your form a name: <form name="frmSearch">

You can then refer to is like this: document.frmSearch

You're almost done.

Reply With Quote
  #13  
Old May 15th, 2003, 09:53 AM
Kurti Kurti is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Canada
Posts: 8 Kurti User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Only reason why I did the square brackets was to make sure that the code showed up

Now that I've renamed the form tag to (see 'Here) below:

<html>
<head>
<title> Test Form </title>

</head>

'Here \/
<body onload="document.frmSearch.submit()">

<table>
<tr>
<td>
<FORM METHOD="POST" name="frmSearch" ACTION="mailto:kurtis@mastronardiproduce.com">

<INPUT TYPE="text" NAME="name" SIZE="30" value="test" TITLE="This is the textbox that has a default value of 'test' in the

Field">

<INPUT TYPE="submit" name="Submit" TITLE="This is the Submit button which should Automatically Press when the above script

runs...">

</form>

</td>
</tr>
</table>

</body>
</html>

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > AutoResponse and .NET


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap