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...
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?
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 -...
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
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?
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 = (...
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...
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>
<!--//...
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.
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"...
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...
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
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...
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
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.