Jump to content

Reg Edit

Members
  • Content Count

    411
  • Joined

  • Last visited

Everything posted by Reg Edit

  1. Can you post the php that uses $stuff to build the menu, because I think that is the problem.
  2. In the absence of any other response, in case it helps...My main experience is in the MS world. I have almost no experience of Apache or php (yet). However, since I want to start looking at the open source stuff too, I've finally (just) got round to installing WAMP on a virtual PC.This has installed a Windows Service for wampapache (Apache/2.2.6 (Win32) PHP/5.2.5).I don't know what Apache you are using (WAMP or other) but I assume it will run as a Windows Service, which by default may be configured to run under the Local System account. But you can configure it to run under a specific account
  3. I've at last got round to dropping WAMP onto a virtual PC so I can start playing with this stuff. So I've used your question as the basis of my very first php practice! My own answer, based on what I would do in other languages, is below. <form action="action.php" method="post"> <p>Field 1: <input type="text" name="Field1" /></p> <p>Field 2: <input type="text" name="Field2" /></p> <p>Field 3: <input type="text" name="Field3" /></p> <p><input type="submit" /></p></form> for ($i = 1; $i < 4; $i++) { echo $
  4. The problem then seems to be how to know what numbers to use in the javascript loop. For this you need to consult the DOM referenceFor instance, in your example you need to know that getElementsByTagName returns a NodeList object, and that NodeList has a length property. Armed with this knowledge you can code a javascript loop to iterate through the returned elements, as shown in the example at http://www.w3schools.com/dom/met_document_...tsbytagname.asp
  5. Reg Edit

    Images

    You have to paste the file into the folder in Solution Explorer, not Windows Explorer.
  6. Reg Edit

    Which one?

    Both 3.0 and 3.5 "wrap around" 2.0, adding their own enhancements. All the 2.0 assemblies are still used by 3.5 just the same as before. So yes, you can install 3.5 and continue to use that book without any problems at all.
  7. Yes: http://www.w3schools.com/js/js_loop_for.asp
  8. Reg Edit

    LinkButton + AJAX?

    As you're seeing, yes, Page_Load fires first, before the server control events fire. And yes, you could implement a callback to get round this (even using javascript, if you want, with some AJAX code in an OnClientClick event handler). But I'd look at doing it another way because what you're up against is this: paging is overcomplicated with a DataList. You are fighting the framework. Depending on what .Net version you're coding for, consider a DataGrid instead of the DataList, or perhaps avail yourself of the new DataPager in 3.5.If you must keep it as it is, consider whether you can find a w
  9. I haven't heard back from my sister (Sys Edit) but it seems we were on the right lines with this issue.Another suggestion: use a session variable to set a flag when you send the text message. If the flag is already set, don't send a text message.
  10. I haven't come across a "one-hit" deployment; typically the deployment process should be fully scripted anyway (and hence testable and repeatable) so running the script against each box generally isn't too painful.I assume you are load-balancing a number of application server boxes and maintaining a (probably different) number of separate database server boxes. SQL Server has built-in support for such things as clustering, mirroring and replication; I'd look at these first of all to see if any of the built-in stuff meets your needs. MySQL... not used yet, but planning to start looking at it so
  11. Reg Edit

    Timer problem

    Funny... I pasted your code and it works for me in both IE7 and FF. What browser are you trying it in?
  12. In fact I've just read it again and I think this is the problem:toutnickel is using a form to capture details and then on the post, sending a text message. Trouble is, if the user hits F5 and refreshes the page, a second text message gets sent: toutnickel wants to prevent this second text message, and has tried those things listed, without success.That's my best guess so far...
  13. Ma seur habite en France. J'ai la demandez explique.My sister lives in France. I've asked her to try and explainI think it may be something to do with cookies, or similar, and toutnickel is having trouble clearing the session.The four lines under "déjà testé : ça ne change rien" ("already tried : doesn't change anything") are the things toutnickel has tried so far.I will post again if my sister can shed any light!
  14. No, an html doc can't "include" other html docs. However, the same effect is often achieved using server-side scripting (php, asp etc): you then cease to store your complete html page as a static source file, and instead store a php/asp page. When that page is requested, the script within it executes to emit the html, and since the script can include common sections etc, you could define the links once and have each page include them.If server-side scripting is not an option for you, then you can probably do it in javascript, by pulling in the same bit of javascript to each html page, and havi
  15. Reg Edit

    SQL help

    The brackets would not work in SQL Server. You would need: where date_last_out BETWEEN '01-NOV-99' AND '30-NOV-99' What database are you using?
  16. Base64-encode the data on the server, and decode it after receiving it on the client.
  17. No, not a java function, a database function. A user-defined function you define in the database.SQL Server: http://msdn2.microsoft.com/en-us/library/ms191007.aspxMySQL: http://dev.mysql.com/doc/refman/5.0/en/adding-functions.html
  18. Well, an element is one type of node. An attribute is another type of node. And there are other types of node:http://www.w3schools.com/dom/dom_nodetype.asp
  19. You also said Not sure what kind of method you have in mind but if you can implement this logic in a database function getRank(), then you can return rank in the resultset (and therefore sort on it). select col3, myfuncs.func1(col3) mycol from table1order by mycol
  20. Assuming rank is in the resultset (which it sounds as though it is), then you can sort on it, regardless of whether it is a column in the database. select col3, col3 + 'MyOtherStuff' mycol from table1order by mycol
  21. Your starting-point is mysql/php. But by real life as opposed to academic, do you mean commercial? If so (or perhaps anyway), you should consider the MS world too, because the things you are asking for are already built in to ASP.NET in the membership provider classes and forms authentication: http://msdn2.microsoft.com/en-us/library/y...fzy(VS.80).aspx
  22. It depends on what you want to achieve. You twice use the term web design, which to me suggests a focus on visual aspects (creating graphics, choosing a look and feel) rather than programming; is that a deliberate choice? Or do you perhaps want your learning to encompass web development too (the programming aspects). If you want to do web development, I think the best way to get started is to create a simple website, using just html. You can learn html in the the html tutorials - and don't miss the Try-It Editor which is great for typing things and seeing the effect on a web page.Then, once yo
  23. I'm pretty lazy, yes but actually I haven't been around here for a while... so on both counts I have only just seen your post. I have not read that book, but I have to say that in all the time I've spent using ADO.NET I have never heard of anyone defining their own database class for ADO.NET. Why on earth would anyone want to do that? Perhaps for a special purpose, yes, but in an ADO.NET beginner's tutorial??!!! It seems an unneccessary obstacle, to put it mildly. So my advice is, rather than work out why your database type is not being found, put that book down and get the information on lea
  24. There are known styling differences with input type="file" between browsers. See for instance this which sheds some light and suggests one approach.BTW if you have large chunks of code to post, you can use codebox instead of code (it puts scrollbars).
×
×
  • Create New...