Decreasing The Amount Of JS Files In A Website From 2 To 1?
Dec 19, 2010
i got 2 galleries that use 2 JS files for a thumbviewer, those 2 files are very similar and both are used to achieve excactlly the same thing
the only difference is that one of them got page scrolling:
here is the one that use page scrolling : ddphpalbum.js [URL]
and here is the one without : thumbnailviewer.js [URL]
My question is, is there any way of changing one of those files so it'll fit both kinds of galleries? so ill just use 1 of them instead of 2...
View 1 Replies
ADVERTISEMENT
Jan 28, 2010
The javascripts files in my website are constantly getting injected with malicious codes which redirects my website
View 2 Replies
View Related
Feb 1, 2011
I'm working at a college in Michigan and we have an issue with the files not loading correctly for our website. The issue appears to be a javascript problem. When I try to access a page, it will load, but the javascript functions for instance will show up on the page as if it is just html text. So I right-clicked the page, clicked "view source" and when the source code for the file opens up it shows the javascript portion in the head section as:
<disabled-script type="disabled-text/javascript">
function somefunction(){}
</disabled-script>
However, the code I have in the file of course is written as:
<script type="text/javascript">
function somefunction() {}
</script>
I do not have javascript disabled on my browser or anything, so that is not the issue. For some reason it appears it is getting disabled though on page load.
View 1 Replies
View Related
Apr 4, 2009
I have an array similar to this:
Code:
0 -> 0
1 -> 5
2 -> 9
3 -> 2
[Code].....
There is no clear logic and that does not matter. I need to decrease the values of those by one where the value is higher than x. How would I do this?
For instance, if x = 5, then that array becomes
Code:
0 -> 0
1 -> 5
2 -> 8
[Code]....
All values higher than 5 were decreased by one.
View 3 Replies
View Related
Jun 26, 2006
Okay - for me, javascript is a great add-on to many websites & i've been using it since college. For any website viewers using norton internet security, it's worthless.
How Symantec have managed to continue selling something that is consistantly blocking commonly used (& very useful) scripting technologies without being sued?... i'll never know.
Problem is, anyone viewing a js-enhanced site ends up seeing a blank page, because the code is intercepted and replaced before it gets chance to be displayed. Neat huh? Now, surely there has to be a way to conquer their ridiculous 1-size-fits-all approach to js blocking?
View 8 Replies
View Related
Mar 30, 2010
when user populate info it will appear like this:
-------------------------
chkbox | name | number
-------------------------
radbtn | MJ | 234123
radbtn | MD | 343543
radbtn | AB | 453466
Is uncertain that how many info will appear as its from database. I am able to enable the radbtn with chkbox by getting radbtn name. How can i enable only the selected radbtn textbox under name and number in order for user to edit it?
View 9 Replies
View Related
Aug 16, 2010
I have designed a mail service in java.In my compose page,i want to attach some excel files of text files and to send it.After sending i want to store it my database.Then how can i download or open that file after opening that recipient mail inbox.
View 1 Replies
View Related
Oct 2, 2010
I have the following JavaScript (see below). The script requests an XML file from the server and displays it on the page.The script works fine when the requested XML file is stored on the same server as the script.The problem is when I try requesting an XML file from an external server such as the National Weather Service. I get an error. If I take the XML file from the National Weather Service and save it to my server it works. Why can't I use my script to request XML files stored on external servers?
Javascript Code
Code:
window.onload = initAll;
var xhr = false;
function initAll() {
document.getElementById("makeTextRequest").onclick = getNewFile;
[code]....
View 6 Replies
View Related
Aug 27, 2010
In my quest to implement ajax for the first time i've hit a brick wall. i've been searching for hours for a solution but with no success. Here is the problem.
[Code]...
why is it not working? my PHP code is outputting the contents of the xml document.
View 1 Replies
View Related
Sep 5, 2008
I want to write a javascript to list of all files in a folder including files in the subfolders. This is for the scorm purpose to list all the files. some examples are listing files but not listing the files inside the subdirectories. I want the file's full path like C:Documentsjavascriptwilson.js like this.
View 5 Replies
View Related
Jan 15, 2010
I have four folders and each folder has one images, let say ( images-one.jpg, images-two.jpg, images-three.jpg, images-four.jpg). now,in index.php page there are four buttons, each buttons for each images. if i clicked button numer two for images-two.jpg, and then it will show that images name from that folder in index.php page. and then if i reload same index.php page or refreshed same page, i want to show SAME images that I clicked before which is images-two.jpg. how can i write that code to show images from four files, each files are in each folder.
View 1 Replies
View Related
Dec 29, 2005
I'm trying to code a feature for my website using DHTML where the person viewing the website can rotate between viewing the positive/negative points of the website being reviewed. This example was in the publication called Using HTML 4 by Lee Anne Phillips. Code:
View 5 Replies
View Related
Nov 30, 2010
I have a ajax program on a page on website A. And I need to let it talk to a program on website B. I tried to put website B into the url of the parameter but it doesn't work.It gives me a "[objet XMLHttpRequest]" error.here is the code on website A:
[Code]...
View 1 Replies
View Related
Apr 27, 2010
Suppose I want to allow a user of a website to add a poll to the website for everyone to see/vote on. How exactly would I write a script for that?
View 8 Replies
View Related
Nov 17, 2009
I have a webpage and i want to put a section of another website on to my own website..
The Section i want to put on my website is on this page www.bebo.com/thegaadiscos and i only want to put the section with the comments on it...
What i want is a bit like the face book section of this website [URL]
View 4 Replies
View Related
Jan 9, 2011
What is the correct way to work with multiple language JavaScript files? So how to use your PHP language variables in your JavaScript files? The way I do it now is create JavaScript files like 'script_js.php' like this:
[Code]...
View 10 Replies
View Related
Sep 4, 2011
I�d like to get the amount between "(+$" and ")" and add it to the value of the inputbox.For example, you select the following:
Solero Exotic (+$1.85)
Cappuccino (+$2.49)
iMac 27-inch 3.1GHz (+$1,999.00)
[code]....
View 21 Replies
View Related
Jul 23, 2005
I want to make a hooverbox, which is shown when the mousepointer is not
moved for a amount of time.
When the hooverbox is shown, i will do a server request to retrieve the
information for the hooverbox.
I was thinking of using document.onmousemove and a infinit running while
loop comparing the mouse positions. Is this the way to solve it?
(pointers/samples are welcome ;-) )
View 4 Replies
View Related
Feb 7, 2009
Im using a vb script that will show the latest x forum threads on forumhome but i would like to be able to restrict how many characters it out puts so after say 150 chars then the 3 dots would appear.ie. This would be my forum thread ti ...Heres the script im using
<if condition="$vbulletin->options['externaljs']">
<!-- show latest active threads -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0"
[code]....
View 4 Replies
View Related
Jul 19, 2010
This is probably a really simple question. Is it possible to initialize x amount of variables. Like someone enters 10 into an input box and it makes 10 variables called variable1, variable2, variable3, etc.How would you name them?variable + num = 0; ?
View 2 Replies
View Related
Nov 17, 2010
is there a way to only allow a certain numeric amount to be entered into a text input? i.e, Like nothing over 20?
View 3 Replies
View Related
Oct 9, 2011
I cannot calculate all total amout about this..How can i do it.?? here is coding:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<script type="text/javascript">
function startCalc(){
interval = setInterval("calc()",1);
}
[Code]....
View 1 Replies
View Related
May 1, 2009
if I have Subtotal amount = 10Tax rate 8.5%then Grand Total = 10 + (10 * 8.5 / 100) = 10.85Now what if I have Grand total =10.85 and tax rate 8.5% - how to calculate the Subtotal
View 4 Replies
View Related
Feb 4, 2011
I want to add an invoice calculator for my website just like this...http://www.jeevansathi.com/profile/m...t_above_search
View 3 Replies
View Related
Sep 20, 2005
i have the following html im just wondering how will i go about selecting a product from the list then automatically on the change showing its unique cost in the cost text field.
Then depending on the quantity purchased of that product selection and what radio button is checked (cheque add 2$ total) (credit card increase total by 1.5 %) (cash add $5 to the total amount) and calculate the total amount of the product. Code:
View 1 Replies
View Related
Sep 20, 2010
I'm a newbe and but I was to become a good developer. I'm currently working on a script that will pull call information from a data base using PHP. I managed to create the portal where this information is displayed.But I just need to add some kind of alert where the call has been on hold for about 20 seconds. Is there a way I can do this. The script that I have created has Javascript. can you guys help me with the code to alert when the 20 seconds have passed.
View 2 Replies
View Related