Jump to content

Reg Edit

Members
  • Content Count

    411
  • Joined

  • Last visited

Everything posted by Reg Edit

  1. Different ads, maybe. The thread in the Mozilla forum mentioned pop-up windows. I noticed whenever it crashed in the w3schools forums, it nearly always had something like this in the status bar: But to me that's academic... should not be possible to code a site to crash a browser, so it still comes down to a software bug in the browser or the add-in.Maybe that's why the name Firebug was chosen for this add-in.
  2. Yup, seems to be Firebug. I've now spent some time back on the XP box in these forums, on two separate days, with zero Firefox crashes since disabling Firebug. Previously it would have been crashing every few mouse-clicks. So the difference is very clear.And, guess what, turns out it's been known about in the Mozilla forums since 26 May Mozilla forum: Firebug crashes FirefoxNote to anyone needing to disable: personally I disabled Firebug completely in the Tools, Add-ons dialog. Firebug also has its own "disable" menu, and using that may stop the crashing too, but I don't propose to spend any
  3. The term "unhandled exception" refers to the fact that you have not included exception-handling code. The way to include exception-handling code is a try-catch block in your code. This allows you to catch the exception and take appropriate action such as displaying a messagebox in this case.
  4. You are triggering the ajax callback from the onkeyup/onchange event. One or other event may be more suitable; you must judge that. But, more importantly, I would not execute the submit button enable/disable from the same event. I would do that when the onreadystate change event is fired on completion of the ajax call, at which time the data you mentioned earlier is available for this validation.
  5. Well, supposing you have a submit button with id "mysubmit", and a validation function "allfieldsvalid()" that returns true/false, then after each ajax call you can use:document.getElementById('mysubmit').disabled = !allfieldsvalid();
  6. Reg Edit

    different styles

    I doubt that you can do that with css alone. But you don't say what your mechanism is for allowing the user to create html elements. Does it involve scripting? Client-side, or server-side? I should think you will need scripting to set the css class in this way. Please post your existing code that lets the user create html elements.
  7. You'll need to give the form an id:<form id="myformid" method="post" ... and the javascript is document.getElementById('myformid').submit() To stop the submit button showing, just remove it!
  8. (I've posted my reply in the original thread.)
  9. That was suggested earlier in this thread, but I thought that explanation was discounted? However, looking back, I can't see that it definitively was discounted, so that seems to remain a possibility.The Firefox crash problem on these forums is so bad I've completely abandoned Firefox on my XP box till it's fixed. Am only able to use Firefox on my Visa box. Both boxes have Firebug enabled, but Firefox has never crashed on the Visa box despite heavy use of these forums.
  10. To navigate from an ASP.NET page to a classic ASP page, use Response.Redirect, not Server.Transfer.http://support.microsoft.com/kb/320439
  11. That makes no difference. It is still as Ingolme said.
  12. Reg Edit

    ASP ObjMail.cc

    An email recipient list should be semicolon-separated, not comma-separated. I think you'll find it works if you use ";" instead.
  13. Actually the replace method loads the specified URL over the current history entry. After calling the replace method, the user cannot navigate to the previous URL by using browser's Back button. That may not be the intent in this case.
  14. Reg Edit

    different styles

    You can apply different styles to the same html element type using the class selector. For example:<html><head><style type="text/css">p.a {color:green}p.b {color:red}</style></head><body><div><p>Line 1</p><p class="a">Line 2</p><p class="b">Line 3</p></div></body></html>
  15. And of course w3schools: http://www.w3schools.com/dom/dom_examples.asp
  16. Ah, yes: I see your form has no id! So it won't be found by getElementById().This<form name=\"record_mod\" method=\"post\" action=\"jobadmin.php\"> needs to become <form name=\"record_mod\" id=\"record_mod\" method=\"post\" action=\"jobadmin.php\">
  17. There are other <frame> attributes you can set (see previous link).The <div> tag defines a division/section in a document. If you view the source of many web pages (including the one you're viewing this reply on) you will find loads of divs. People use them to divide the content up into areas in much the same way you can do with frames, but with better control and styling. Have a look around the tutorials--there's not much on the div page but it's a starting-point and you can use the links from there.
  18. I think you're going to need:<a href="java script:document.getElementById('record_mod').submit()" class="button" span class="icon"> Submit </span><a> Note: javascript is one word, not two. This forum splits it into two when sample code is posted, but it won't work like that!
  19. You can control it by setting scrolling="no" in the <frame> element. (info)Also, as an alternative to html frames, consider html divs.
  20. I think you'll need to leave that part as client-side script. Basically you are not going to be able to do that in server-side script. The browser content is only going to change in response to user actions, client script actions, and server responses to browser requests.Have you looked at RSS at all? That might be very relevant since you want to publish xml news feeds.
  21. Sorry, realised after posting, your question was to do with the radiobuttons, which your function doesn't refer to yet! There are various ways to check which radiobutton is checked, but assuming you have radiobuttons such as: <input type="radio" name="r" value="yes" checked="checked" onclick="disable_enable(this)">Yes<input type="radio" name="r" value="no" onclick="disable_enable(this)">No then the javascript could become: function disable_enable(radio){ document.getElementById('clanpass').disabled=!(radio.value=='yes');}
  22. I would use document.getElementById to reference the element:if (document.getElementById('clanpass').disabled==true)document.getElementById('clanpass').disabled=falseelsedocument.getElementById('clanpass').disabled=true Also, I would simplify the code by making use of the fact that the value of the disabled attribute value is already boolean true/false. This means you can have a single statement instead of an if/else: document.getElementById('clanpass').disabled=(!document.getElementById('clanpass').disabled)
  23. Sorry but I think it will be a rewrite.ASP.NET: works in a totally different way from ASP classic. VB projects; in principle, usually you can open an old version of an MS project in the new Visual Studio and it will try to convert as much as it can. But usually you are left to pick up the pieces and work out how to finish it off, and follow up error messages/warnings etc.And VB5 is a very long time ago, which will compound this problem.In any case there will be features of .NET that would mean you could do things in a better way than before.I would start again. Think of it as a learning opport
  24. This works in MS SQL, and I assume MySQL too:insert into addresseswithvotes (fname, lname, address)select a.fname, a.lname, a.address from votes vinner join addresses a on a.fname = v.fname and a.lname = v.lname Normally you would have a Person record, and have PersonID rather than fname+lname on the other tables. In that case you would just use PersonID in the join. But anyway, that's the logic.
×
×
  • Create New...