|
Never done any Web development before, but would like my MFC dialog program to interface with Web Pages. The server will obtain data and this data will be displayed on Web Pages.
My 1st question is what should I be looking at to use Edit boxes, push buttons combo list etc on the Web Page to Get/Set various options using these controls. Can I do it with plain HTML, or do I need to use ASP or JavaScripts. I have just started to use HTML, so a good tutorial would be very helpful.
2nd question, how do I get hold of the data on these controls (Edit box, combo list- on the Web Page) in my MFC program. I have placed an ActiveX Web Browser on my main dialog. Currently I can Set/Get the Web Browsers current ULR.
grahamfff
|
|
|
|
|
I assume the web pages you will be creating will be on a web server and not on the local machine. I know some developers put their help section in a web page and make it a part of the installation on the end-user's computer, but this limits you to what can be done. If it is on the server, you can use whatever you like.
The good news is you can do it with plain HTML if your help section is pretty basic. This would give you pages with text and regular hyperlinks. If you want to add in something like a text search or anything like that, you will need to use a back-end language like ASP, PHP, etc. I wouldn't worry about javascript for your situation.
If the files are on a web server, you can start out with raw html and later beef-up the pages with ASP or whatever you want. If you are new to web development, stick to the easy path until you want to add in more things.
|
|
|
|
|
Thanks for your post.
I will be using Visual Studio .Net to produce these Web Pages, but having trouble getting a value from an Edit Box or Combo into say a table on the Web Page. Is that another page?
May be getting confused with MFC C++ events etc
Any good sites/books for getting started, writing simple display Web Pages is OK its the interaction/moving data around.
Thanks.
grahamfff
|
|
|
|
|
When I go to http://localhost I get the error "Bad Request". When I try http://127.0.0.1 I get my local site. My Hosts file has an entry for localhost.
I'm running Windows 2003 / IIS6. I'm going insane.
Anyone have any suggestions?
cheers,
Chris Maunder
|
|
|
|
|
Verify that your site is listening to all addresses on the host. Then check to see if the site is reading the header data for hostname resolution. The problem is most likely to be with the second one.
|
|
|
|
|
Hi,
I want to Save images from a website programatically and not by the "Save Image As..." Option. I have certain websites in my list which provide these images and I want to scrape images from there on to the hard disk.
Any suggestions ?
Thanks.
|
|
|
|
|
Howdy all.
Something that should be incredibly simple I would appreciate some help with.
How do you use the Post method to send data to an asp page without building a form, setting field values and requiring the user to click on a button?
In fact, the only thing that needs to be different from the normal idea of using the "POST" method is that the user shouldn't need to click a button, it should be clicked automatically.
Does this make sense? Can anyone help sort me out?
Cheers all,
Kutz
_____________________
Don't take out the Magic Pen,
Don't draw on the Infinity Board
- Neil Young
|
|
|
|
|
Ok... I'm silly. Don't worry.
I believe the answer is to use javascript.
Ie. Document.formName.submit();
Cheers for reading, if, indeed, you're reading this.
Adios,
Kutz
_____________________
Don't take out the Magic Pen,
Don't draw on the Infinity Board
- Neil Young
|
|
|
|
|
If you need to shield youself away from some details and are not interested in how somethings are done I would suggest you get clasp asp framework. Posting data automatically in ASP has never been that simple before the era of .Net
|
|
|
|
|
Cheers for that, but it's not really that I want to shield myself away from these details, but my users from having to make an extra click. I was simply forgetting one of the more simple methods available in the DOM.
Cheers though.
PS. What the heck is clasp?
|
|
|
|
|
CLASP is a Framework developed in VBScript for the development of Classic ASP WEB applications.
It simplifies your coding and makes it very portable to ASP.NET.
Provides you with a rich event driven environment that resembles ASP.NET and Visual Basic Windows applications.
Supports ViewState and other cool features.
It has a large list of web controls
Many of the controls has a method call autopostback that allows your form data to be posted automatically without your user clicking the submit button
|
|
|
|
|
Cheers mate for the info.
_____________________
Don't take out the Magic Pen,
Don't draw on the Infinity Board
- Neil Young
|
|
|
|
|
Hi,
how do I check whether the entered email ID is valid or not?
I found this filter :
var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
if (!filter.test(str))
{
alert("Please input a valid email address!")
return false;
}
But I can not interpret the filter.
can anyone help?
|
|
|
|
|
First off....whats a email ID???
filter is a regular expression...read up on those first....then try and interpret it
As far as I can tell from just glancing at the regex...it is indeed checking for a email address...
Just copy and paste and you'll be good to go...
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
Hi,
I have a MS access database of product's table namely
with fields imagefile, product_id, name, cost and 4
different products added.
I created a table 2 rows 2 cols in products.aspx, i have
the database connected, datasets up and i wish to display
the 4 products into this 2 row 2 col table i created, how
is that possible?
Earlier i setup'd a datagrid and managed to list all of
the products in one table but i can't do anything
to it and it is not the table i want.
How do i pull individual product id and its other info
in each of my cols in my table rows..
Thanks,
Josh
|
|
|
|
|
What you can do is to create a repeated region which loops through the dataset adding the appropriate code.
Go to Insert -> Application Objects - > Repeating region.
You can set the number of repeats for this region. Also, you can set a datasource for it. This means that each time the region repeats it will navigate to the next row in your table.
Will look similar to below
Ie ASP:Repeater runat="server" DataSource='<%# MyDsTable.DefaultView %>
Within this region, place the code that you'd like to see repeated.
<br />
Ie. <tr><td> <%# MyDsTable.FieldValue("Field1", Container) %></td><br />
<td> <%# MyDsTable.FieldValue("Field2", Container) %></td><br />
</tr><br />
This will create a new row for your table for each record in the dataset for however many times you repeat that region.
Make sense?
_____________________
Don't take out the Magic Pen,
Don't draw on the Infinity Board
- Neil Young
|
|
|
|
|
Thanks! help'd a lot =)
I managed to repeat my first 4 items as below.
id product name
-- --
OS1001 Microsoft Windows XP Home
OS1002 Microsoft Windows XP Pro
OS1003 Microsoft Windows 2000
OS1004 Microsoft Windows ME
How do i choose, say I do not want OS1001-1004, i
would like to list the 4th - 8th item in the same table?
basically to choose what to list.. instead of having
it pick first 4 items fr the table.
Where can i get samples or tutorials for this exact
method to use dreamweaver datasets?
Please help me, thanks.
Thanks.
|
|
|
|
|
Good day to all,
I was hoping someone could help me with this problem, as i have tried all the links on Microsoft.com and I am now in desperate need of a resolution.
Here goes,
Recently we have upgraded our web server from IIS 5.0 to 6.0 and installed our ASP application.
In doing this the application has ceased to work, this is due to the session variables being lost between the logon page and the frameset page.
So far we have discovered:
The sessionID remains live, and stays the same and can written to the screen at any point.
The sessions set in Global.asa are present through-out the redirections and can be written to the screen at any point.
The sessions set on the logon page are lost as soon as the page is re-directed. Meaning the user is logged straight back out.
Any suggestions/ideas/resolutions greatly appreciated.
Thanks
Purple
"If i was king, cigarettes would be free."
|
|
|
|
|
Howdy,
I have found this also at times with certain applications.
What I have found is that if a redirect is done the variables are lost. When I have changed my url's to anchor exactly where they are destined to go, my variables have remained.
Strange, I know.
Let me know if this helps,
Kutz
_____________________
Don't take out the Magic Pen,
Don't draw on the Infinity Board
- Neil Young
|
|
|
|
|
Unfortunately that did not help but thanks for the reply.
However, we did resolve the problem.
What we discovered was that the directories in the home directory also have to be added as virtual directories unlike iis 5.0 which must assume this.
As soon as we added the directories inside the root as vds and removed the application it all came together and everything works fine.
Lovely Jubbly....
"If i was king cigarettes would be free."
|
|
|
|
|
The most likely cause of this problem is if the "Maximum number of worker processes" value (on the Performance page on the properties of the AppPool) is set to a value other than 1.
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconperformanceapplicationpoolsettings.asp[^]
Since ASP session state is stored in-process, each worker process will have its own copy of the session state. Subsequent requests from the same client will not necessarily be routed back to the same worker process, so you will either lose your session state, or see an out-of-date copy.
Variables set in the Session_Init section of Global.asa will be re-initialized if the current process doesn't have a copy of the session, which would explain why these variables are always available.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
|
|
|
|
|
i have deployed an application using weblogic 5.1 with service pack 9.
i have tried install service provided in the weblogic folders but it fails..
my requirement is , i have run my weblogic as a service! seniors help please.....
waiting for ur advice
|
|
|
|
|
hi guys,
I am doing an ASP page using javascript not VBscript linked to an access database. I have a table within the database (tblProduct) where i have
the fields ProductName, Price, description etc... Displaying the records on the website is simple, however, it will be like a shopping cart, where every
record is displayed and a checkbox next to it for the user to check if he is interested in the product. The problem is the user can select more than one
product, i.e. check more than one checkbox and a record of what he has selected needs to go into the database for example
UserID ProductID Date
0001 034 12/12/2004
0001 035 12/12/2004
I could not find any code (in javascript) to help me assign a value for the checkbox that is linked to the product and i do not know how to call it up, so
i can insert it to the database.
Since the records with the checkboxes will be produced depending on how many products meet the user's search, for example the user searches for products that
are under $200 and it will search the database to select all products that are under $200 and display them on the website, the user will then choose which
products to put in his shopping cart, which he can come back to any time.
I would appreciate if someone points me in the right direction with a link or help on here would be even better.
thank you
|
|
|
|
|
You can display the data like this:
response.Write "<td><input name='chcProduct' type='checkbox' value='" & rs("ProductID") & "'></td>"
It is in table called detail, so
row_count = detail.rows.length;<br />
if(row_count>1){<br />
chcCount = Completion.chcProduct.length;<br />
if(chcCount==undefined)<br />
{<br />
ProductID += Completion.chcProduct.value + ",";<br />
}<br />
else<br />
{<br />
for (i = 1; i <= chcCount ; i++){<br />
if (Completion.chcProduct[i-1].checked){<br />
ProductID += Completion.chcProduct[i-1].value + ",";<br />
<br />
}<br />
}<br />
}<br />
<br />
}
The result is you will get ProductID seperated by ",". When you save, split the ProductID, which will get you every ProductID selected.
<italic>Work hard, Work effectively and a bit of luck is the key to success.
|
|
|
|
|
Is there a limit on the number of applications that i can create on IIS 6.0??
|
|
|
|