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

  1. TrueJoker

    2 Decimal places!!!!

    I have managed to find a piece of code which seems to work, i was reading through some tutorials and foudn ti in one of them! incvat = Math.round((vat + subtotal) * 100)/100; document.form1.incvat.value = dm(eval(incvat)); The only issue is that if the result is £10.50 or any decimal with a...
  2. TrueJoker

    2 Decimal places!!!!

    I changed the calculation like you showed me before incvat = vat + subtotal; document.form1.incvat.value = incvat.toFixed(2); But there was no reaction, the calculation still worked but it still returned a recuring answer. I was just curious if i had to assign or define toFixed as anything?
  3. TrueJoker

    2 Decimal places!!!!

    it doesnt ahve any affect on the calculations when i try it! Do i have to specify the toFixed option as anything for it to work?
  4. TrueJoker

    2 Decimal places!!!!

    sorry to be a noob but where would i implement it?
  5. TrueJoker

    2 Decimal places!!!!

    I ahve set up some calculations using javascript code, but to my horror it displays way too many decimal places, how can i resrict the calculations result to 2 decimal places? This is the snippet of code i am using! function dm(amount) { string = "" + amount; dec = string.length -...
  6. TrueJoker

    Collaspible menu

    Does anyone know of script or places where i can investigate about script that will create a collapsible menu structure preferably with images, that is useable in all browsers? i have found 1 or 2 but they seem to not like working in certain browser! Any Help would be appreciated
  7. TrueJoker

    Expandable Forms Sections

    Ok so i spent all of last day trying to figure out how to stop the images dissappearing in IE but for it still to work in Other browsers! I've had no luck so far =[ Im not the most knowledgable in JavaScript or PHP but i know enough to get by =S can anyone help please?
  8. TrueJoker

    Expandable Forms Sections

    well the thing is this code makes it work perfectly in FireFox but not in IE! in IE the main buttons that u click to expand and display more links disappear in IE. But in Firefox it all works prefectly, but when i delete this part <? $isiepos = strpos($HTTP_USER_AGENT,"MSIE"); $isie = (...
  9. TrueJoker

    Expandable Forms Sections

    I have recently been researching using JS to create expandable sections within a form and have come across a fairly simple example and ahve been testing it and playing about with it but i noticed when cross browser testing that there were slight errors for some reason! I shall post the code and...
  10. TrueJoker

    calculations

    I have just setup an HTML form that uses javascript to total up prices etc and add on vat. I have come across a slight snag though! the total is not restricted to 2 decimal places. How do i do this? the code that performs the calculations is as follows: <script language=javascript> <!--//...
  11. TrueJoker

    WEB FORUM's

    should of said i obviouslt am not using the '?!?!?!' in the code but i used it to represent something that i am unsure about what to use. as at this point i want it to determine whether the id value is odd or even and then act corespondingly.
  12. TrueJoker

    WEB FORUM's

    the code i was trying and modifying is as follows i believe the problem may lie with '?!?!?!' at the beginning but knowing me there are many problems with this code or it is just completely useless! if (['a_id'] = '?!?!?!') { <table width="100%" border="0" cellpadding="3" cellspacing="1"...
  13. TrueJoker

    WEB FORUM's

    I ahve just created a web forum using PHP & MySQL, it is only a basic forum and i am now trying to change to look of it etc. I have been playing about with some code to try and alternate the colour of the posts as the appear on the screen, say the first will be a pale blue and the next will be...
  14. TrueJoker

    Weird Problem with Dreamweaver

    I tried out of curiosity deleting some rather large files from the server and then tried uploading the pages that i was experiencing problems with and they upload fine now! so i think i had used all the space on the server lol :) problem solved i hope :D
  15. TrueJoker

    Weird Problem with Dreamweaver

    Recently something very strange has started happening when i try to upload certain pages using dreamweaver. I choose one page to upload and it uploads fine, GREAT, but then i try and upload another page and it says "An FTP error occurred - cannot put {file name} Access Denied. The file may not...
  16. TrueJoker

    Database hyperlinks on .asp pages

    Ah i understand now and it is working fine at last thank you for your help! sorry for being confusing about my issue i have a hard time explaining myself at times
  17. TrueJoker

    Database hyperlinks on .asp pages

    hmmm im not sure if i grasp it totatlly yet! the problem with that solution if i understand it correctly would be that the search page that searchs the dtabase for information has been setup up in a repeatable region incase multiple results occur. As such if i was to make it a text field on the...
  18. TrueJoker

    Database hyperlinks on .asp pages

    the value that is stored in the field within the database is `Link` but then i right click it and add a hyperlink to `http://www.example.com` [code]<a href="<%=(reMembership.Fields.Item("Profile").Value)%>">Link</a>[/code is how the field containg `Link` is being called to appear on the web...
  19. TrueJoker

    Database hyperlinks on .asp pages

    I have connected to the database and everything is working except this text that i wish to be hyperlinked at the moment it appears like so Link#http://www.example.com# the #.....# represent the address it should go to The actual link itself has been created within the database. This is...
  20. TrueJoker

    Database hyperlinks on .asp pages

    I'm not sure if this has to go on these pages or Access pages but here goes anyway. I have a database search setup on a webpage using a MS Access database to hold the information. I ahve tried hyperlinking say a website within the database field which works fine, but when it appears in the...

Part and Inventory Search

Back
Top