Jump to content

aspnetguy

Members
  • Content Count

    6,787
  • Joined

  • Last visited

Everything posted by aspnetguy

  1. I'm not sure if cost is an issue. Getting hosting for a JSP site will likely be more expensive as well as more complex.
  2. Check out this tutorial. It should work.http://www.w3schools.com/php/php_mysql_create.asp
  3. Basically you are trying to do this var y = document.getElementsByClassName('show_hide');if(y[0].style.display == 'none') { alert('Hi); } That if statement will never return true. The style attribute of the element is not related to the CSS class. Trying to retrieve the css style property via javascript will only work when that style property has previously been set via javascript OR when that style property was defined inline by using the style attribute in (X)HTML.
  4. If you do the follow it will get the records of people who's first name starts with P <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/Database/phone.mdb" SelectCommand="SELECT [FirstName], [LastName], [ext], [cell] FROM [table] WHERE ([FirstName] LIKE @fname + '%')"> <SelectParameters> <asp:ControlParameter ControlID="TextBox1" Name="fname" PropertyName="Text" Type="String" /> </SelectParameters> </asp:AccessDataSource>
  5. try this ava script:var sku=location.href;sku=sku.replace("http:/www.dealextreme.com/forums/Forums.dx/Forum", "");sku=sku.replace("/~~threadid.[0-9]/i", "");alert(sku);
  6. I see this technique used a lot. I always set the selectedIndex but mostly just because that is what I have always done.This thread mentions that it might not be fully cross browser but the poster does not provide details when challenged. It appears to be cross browser safe. Just make sure you test in all the major browsers and you should be fine.
  7. aspnetguy

    §cientology

    What ads...??? I use AdBlock Plus and NoScript. I rarely ever see ads on websites anymore.
  8. Frames or iframes are generally a bad idea to use. Especially for a store front website. Your users will not be able to bookmark category or product pages if you are opening them in frames and it will be hard to get indexed by search engines.If you really want to only load pieces of the page at a time look at AJAX. Frames will cause you more harm than the little good they provide.
  9. I like to use the following method as it degrades nicely if a popup blocker is being used. <a href="some url" rel="external">My Link</a>...<script type="text/javascript">var links = document.getElementsByTagName("a");for(var i=0;i<links.length;i++) { if(links[i].getAttribute('rel') == 'external') { links[i].onclick = function() { return !window.open(this.href); }; }}</script> What that click handler does is try to open the link in a new windows. If it fails, fior whatever reason, it will then open the link in the current window. This way if the user has a popup blocker they can still access the link.
  10. It is likely this line that is throwing the error If myRadioButton.Checked = False Then This line is returning null because it cannot find the control you are looking for. Either you are calling it wrong or it does not exist. myRadioButton = CType(tbAdress.FindControl(rdbutton), RadioButton)
  11. aspnetguy

    Rotator

    this one requires jQuery and let;s you put a caption along the bottom of the imagehttp://nivo.dev7studios.com/
  12. If the change you made was in the external JS file it was likely cached.
  13. var firstNumber = 15; //this variable is declared and set to a value of 15var secondNumber = 10; //this variable is declared and set to a value of 10var answer; //this variable is declared but no value is assigned to it. It currently is null or undefinedanswer = 15 / 10; //the expression is evaluated and a value of 1.5 is assigned to the variablealert(answer); //alerts the value of the variable answer which is currently 1.5alert(15 / 10); //evaluates the expression and alerts the result - 1.5answer = firstNumber / secondNumber; // evaluates the expression and the values of the variables used (15/10) and assigns the result to answeralert(answer); //alerts the current value of answer which is still 1.5
  14. use this instead window.onload = updateShouts; this assigns the function as the handler what you were doing was assigning the result of the function as the handler.
  15. I think starting a blog that focuses on front-end design is a good idea. You can promote blog posts easily at dzone.com and get decent traffic.I would stay away from creating a bunch of tutorials or a reference guide. There are a million of them out there. W3Schools and SitePoint both have excellent tutorials and references already.Focusing on how to's or common newbie questions and mistakes would be a good angle, IMO.
  16. You will need to read the tutorial. Focus on the PHP Database section.
  17. What isn't working? Can you post the full code or a link to make it easier to debug the problem?
  18. I recently experienced a problem like this. I had a proxy server running as a Windows Service that receives requests from multiple users on a machine and from other machines. I couldn't solve the problem of writing log files from multiple threads even with using mutexes or using the Synchronized TextWriters.I ended up writing a Queue that a write job would get added to and then the queue would iterate over it's jobs and write the logs every so often.
  19. this site is pretty good http://www.mysqltutorial.org/mysql-stored-...e-tutorial.aspx
  20. The XML DOM and HTML DOM do have differences but in this case createElement works the same. var myDiv = document.createElement("div"); I could not find document.createElement in the JavaScript tutorial which is a bit odd.If you are interested here it is in the Mozilla Javascript reference.
  21. He was responding to your comment about being lost reading those links about functions and stored procedures. The are very specialized careers doing nothing but managing databases and writing functions and stored procedures for programmers to use. It isn't as confusing as it might seem at first. If you read a few tutorials on the subject you will get it. Most hosting companies do not let you use functions and stored procedures unless you have a dedicated server anyway.For the first 3 years of my current job all database access was through stored procedures (using MS SQL Server). It was time consuming and painful. Once I convinced my boss to let me use NHibernate it cut time writing data access code by at least 75%.
  22. You can use the window.onload event to initialize your script to ensure everything is loaded before you begin. This should work fine as long as you don't have large images for other external resources on the page.
  23. Try clearing your cache (CTRL+F5) and see if it still happening. What browser are you using?
  24. You can't use the if statement in the natural flow of the SQL statement. Would need to create a MySQL function or stored procedure which usually is not supported my free or shared hosting.
  25. Everything is working fine for me using Firefox 3.6.10. I am not seeing what you described.
×
×
  • Create New...