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 Mike Lewis 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: *

  • Users: Smoogan
  • Order by date
  1. Smoogan

    Advanced Replace

    I'm still a little confused. At least I know it works.
  2. Smoogan

    Advanced Replace

    Hi tsuji, Thanks for that, can you esplain alittle more on what excatly you done? Also how would you change my orginal code? How you give an example. thanks
  3. Smoogan

    Advanced Replace

    Hello everyone, I have the following replace function: item.value = item.value.replace(/[.](\s{1,2})?/g, ".").replace(/[.]/g, ". "); Ok. My problem is and I'm not really sure where to start is that I want to only replace the full stops that have a Alphabetic character preceding it. Any...
  4. Smoogan

    Emigrating

    You don't have to have 1 if you have 12 years experience. Is there different types of working visas?
  5. Smoogan

    Emigrating

    I just read somewhere that I would need at least 12 years experience within my field to be able to get a H1B visa. I don't know why they makes things so hard.
  6. Smoogan

    Emigrating

    Well I don't know much about visa, or being sponsored. That's why I have 6-8 month plan to find everything out. I would be looking to be sponsored for a visa, that's for sure.
  7. Smoogan

    Emigrating

    Hi, I haven't really thought too much about where in America, certainly a major city. But i've just been speaking with someone and they told me if you don't have a Degree (Which I don't) it can be a huge dis-advantage. I instead started work at 16 and have nearly 8 years in it. So experience I...
  8. Smoogan

    Emigrating

    Hi all, I would love to work aboard for a few years, and I'm thinking about applying for Web Development jobs in America. Whats the best way to approach this? Just before anyone asks I'm British, Male, 23. Have been in the web development industry for 7 years now. I'm not looking for an...
  9. Smoogan

    Get Image Size in FireFox

    Hi You need to do an onload on the image to get the width & height. This doesn't work for locally loaded images. var image=new Image(); image.src="http://www.tek-tips.com/images/logo.gif" image.onload=function() { alert('W:'+image.width+', H:'+image.height) } Thanks Smoogan
  10. Smoogan

    str.replace

    Ah.. Done ;) Just becuase I wondered... what if you was seaching for instances of \/? How do you write this?
  11. Smoogan

    str.replace

    Thanks kaht, Have done that now, thanks MarkZK. Also... Can you explain how to user back/forward slashes correctly in regexp? Thanks
  12. Smoogan

    str.replace

    Well the brackets seem to work... not really too hot on regular expressions.
  13. Smoogan

    str.replace

    Ok... i should of look over that before I posted that... Now working... item.value = item.value.replace(/[/](\s{1,2})?/g, "/").replace(/[/]/g, "/ ");
  14. Smoogan

    str.replace

    I need to do the same thing but with forward slashes, having a problem with it? Should this work: item.value = item.value.replace(/,(/{1,2})?/g, ",").replace(/,/g, "/ "); ??
  15. Smoogan

    str.replace

    Indeed it does! Thanks
  16. Smoogan

    str.replace

    That doesn't have the effect I want, would need to be: item.value = item.value.replace(/,(\s{1,2})?/g, ",").replace(/,/g, ", ");
  17. Smoogan

    str.replace

    Fixed it... str = item.value; var pattern1 = /, /g; var pattern2 = /, /g; var pattern3 = /,/g; str = str.replace(pattern1, ","); str = str.replace(pattern2, ","); str = str.replace(pattern3, ", "); item.value = str; Ok... now i change the script so it will look less prettier. item.value =...
  18. Smoogan

    onclick and onscroll issue

    Ok so that worked? Sorry I should of explained a little more.. Ok... So the page doesn't have to go to a .html, .asp file, etc you can place a # in the href, that simply calls it self. But this forces the window to jump back up to the top. <a href='#' onclick='showhidemenu()'>show help</a>...
  19. Smoogan

    onclick and onscroll issue

    I can't actually get the above code to work... but I think if you change the code to this: <a href='#help#' onclick='showhidemenu()'>show help</a> <table class='data'> <a href='help'> This should give you your desired effect. Adam
  20. Smoogan

    Iframe refresh child page only

    Hello, I recommend do it via a cookie. Ok very child page (iframe page) should create the cookie by having the following script in the <head> tag. <script> function createCookie(name,value) { document.cookie = name+"="+value+"; path=/"; } createCookie("usersAction","CHANGETHISNAME.html")...

Part and Inventory Search

Back
Top