Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. harmmeijer

    Firefox Js issue

    Firefox assumes type="submit" with a <button element. Try <input type="button" value="step ..." instead of <button or return false when it's clicked. Greetings, Harm Meijer http://www.niceinchina.com
  2. harmmeijer

    Firefox Js issue

    The form might have a function attached to it when it's submitted, it should return false to NOT submit the form but if it causes an error in firefox it will return nothing and submits the form. Use firebug plugin and check the console in firefox for errors. //script: function...
  3. harmmeijer

    Swapping script

    Will look something like this: <div> <div id="show" onclick="this.style.display='none';this.parentNode.childNodes[1].style.display='inline'">show</div> <div id="hide" onclick="this.style.display='none';this.parentNode.childNodes[0].style.display='inline'">show</div> </div> you can put it in...
  4. harmmeijer

    Link Target

    window.onload=function(snd){ var links = document.body.getElementsByTagName("a"); for(link in links){ // check if link.href!=null if(link.href.toLowerCase().indexOf("pubtext")!=-1){ link.target="_blank"; }else{ link.target="_self"; } } } For better debugging please use firefox...
  5. harmmeijer

    Freebase result has forward slash in variable name

    The sollution is: res["/location/location/containedby"] That will read the value for "/location/location/containedby" Greetings, Harm Meijer http://www.niceinchina.com
  6. harmmeijer

    Freebase result has forward slash in variable name

    Lee, thanks for your reply There is no way I can control what freebase is sending me (maybe changing the query will help but I don't see why). Firebug can reed the variable so I should be able to do so too. The example given above is what Freebase.com returnes to me, so there is no way to...
  7. harmmeijer

    Freebase result has forward slash in variable name

    I get something back like this from freebase: var result = { "/location/location/containedby" : "the value", otherval : 22 } // result./location/location/containedby gives me syntax error (suggested by // jsEclipse auto suggest // result.location.location.containedby not working either...
  8. harmmeijer

    Help with count( ) with a query containing math

    Thank you for your replies, I'll just have php get a count first and depending on the result select grouped set or not. This is because I can't even get a simple if statement to run in mysql nor setting a variable. The following only creates errors in mysql: set @row = select count(distinct...
  9. harmmeijer

    Help with count( ) with a query containing math

    Sorry to dig up an old thread here but I was wondering if I could use that found_rows and return data based on that. Here is what the manual says: http://dev.mysql.com/doc/refman/5.0/en/information-functions.html#function_found-rows "it is desirable to know how many rows the statement would have...
  10. harmmeijer

    RegExp question

    I have firefox here and IE 6 but it works ok here, no need to escape the < character. Maybe you need more instances of <script to be replaced, to do that make the regexp global (g) alert('<script\n<script\n'.replace(/<script/i,"hallo")); alert('<script\n<script\n'.replace(/<script/ig,"hallo"))...
  11. harmmeijer

    RegExp question

    Does this work? var thisReg = /\[url/i; Greetings, Harm Meijer http://www.niceinchina.com
  12. harmmeijer

    Adding 2 floats as strings

    Hi, thanks for your reply. Don't need the 2 floats as string and add them since I can just do it like this: SELECT latitude, longitude, count( latitude ) FROM users GROUP BY latitude, longitude HAVING count( latitude ) > 1 They will not be grouped unless both latitude and longitude are the...
  13. harmmeijer

    Adding 2 floats as strings

    Well here is a second question: How do I add strings in mysql sql expression? select 'this' + ' will ' + ' be 0' ends up giving me the value: 0 Greetings, Harm Meijer http://www.niceinchina.com
  14. harmmeijer

    Adding 2 floats as strings

    Hello all and thank you for reading my question. I have 2 float fields lat and long and want to have the rows collapse where both lat and long are the same. I want to add the lat and long as strings and group them by that select lat, long, count(lat + ' - ' + long) from ... group by lat + ' -...
  15. harmmeijer

    hide image / resize image issue

    Just found out that preloading is not needed. display: none will not occupy space of the image. This way you can just let it load by giving the <img element its source and onload resize it. After all this time I never stumbled across the display property. <script> function resize(img){ //...
  16. harmmeijer

    Auto fill text field additional help

    Not sure what you mean with different java page but if you have an item with the following properties: description itemID price discount It is better to have them as separate properties of the <option in html. For example: <select id="mySelect"> <option discount="12" price="price"...
  17. harmmeijer

    hide image / resize image issue

    The problem with the image in html is that when the image loads even though it is set to hidden after loading it will reserve empty space for the image. If the image is 500 by 500 px it will have an empty space of 500 by 500 for the time script executes and looks strange too. You can preload the...
  18. harmmeijer

    Auto fill text field additional help

    I've added a lot of comments to my code. Hope you understand what the code does now. <html> <head> <script type="text/javascript"> function populate(item){ // the item vatiable is the entire select element: // <select name="Product Code Listing" ... // lets see which of the option is...
  19. harmmeijer

    XMLHTTP + ActiveX + Javascript + security Issues

    You need to know if the exception occurs when creating the xmlhttprequest object or when trying to connect. Cross site scripting might not be allowed and then the exception occures when trying to connect (open method). http://msdn2.microsoft.com/en-us/library/ms537505.aspx look for "Security...
  20. harmmeijer

    Auto fill text field additional help

    first of all I think you have the text and the value of the select mixed up the user sees values like 1B2 but the value (used for processing by script) is what the user should see because it is a lot more descriptive. Anyway here is the code that will put the price in the textbox and I've...

Part and Inventory Search

Back
Top