Improving YSlow Grade In Regards To External ?
Dec 18, 2009
Does anyone have a cool way to deal with too many third party external javascripts. I have a total of 13 JS files being called. Mine plus, Google Analitics, tracking code and more.
View 4 Replies
ADVERTISEMENT
Feb 10, 2008
I have a program which is reading a list of names from a table in the database. I am wanting a user to select specific names and then these names will be available in the rest of the application (i.e. a cut down list from over 100 to approx 20).
Basically I have a select box where are user can click on a name in the left box and move it to the right box. This part all works. What I am hoping someone can tell me is the following. Is there anyway that when a person clicks on a name in the left that it is automatically highlighted in the right-hand side box so that if a user hits enter on the page then everything works properly. At present if a user moves a name form the left to the right then name isnt highlighted unless the user highlights the name. Code:
View 5 Replies
View Related
Jan 21, 2010
I've implemented jQuery within a web application where a very large number of DOM elements, comments in this case, are injected post-load by a 'Show all' button. Returned via JSON is a HTML string of <li> elements, to be injected into a pre-existing <ul> element. I'm looking to make this more efficient, as reading various sites I've been led to believe that wrapping new elements in a parent wrapper node before injecting would yield the best speed. Here, however, I'm injecting into an <ul> element that already has elements in, so can't wrap it.
What's the most efficient way of tackling this?
a) Wrap them in an element, inject, then unwrap and move into the target?
b) Clone the existing <ul>, add the elements in-memory and then replace in the DOM with the consolidated version
View 5 Replies
View Related
Oct 11, 2011
For example I have a HTML table...
name | grade | action
bob | 1.0 | [button class="button" id='1']
jack | 2.0 | [button class="button" id='2']
john | 3.0 | [button class="button" id='3']
When I click the button,
[Code]...
so if I were to press buttonid 1 how do I get the grade '1.0' without having to open the database?
View 3 Replies
View Related
Dec 5, 2010
I'm trying to wrap up my program now but cannot get it to stop at the right time. It should stop and print the report after the user enters "end" after being prompted to enter a course. I have do{}while loops in place. I also cannot seem to get it to store the amount of credits as totalCredits and the amount of points as totalPoints, which are necessary for the GPA formulaThe inputted Courses, Credits and Grade print out correctly but after typing "end" (in which it doesn't actually end but continues until you input the credit and grade for course "end" (which isn't a course)) it prints the Total Credits and Total "Quality Points" but the wrong GPA..The coding is almost the same as his, but I've tinkered with it for about 8hours straight now. I should've posted this 5hours ago when I first had the thought to do so, but I didn't
View 1 Replies
View Related
Apr 23, 2010
I'm trying to build a page that has multiple ajax calls on it. When you do it the old-fashioned way with XmlHttpRequest, you'd create a new xhr object for every call so that they execute simultaneously. If I try to do this in jquery it will only execute a call when the previous one has completed. This makes the page load time completely unacceptable. How to improve the performance?
View 2 Replies
View Related
May 12, 2011
I am looking for a javascript quiz script that will allow me to grade individual sections of a quiz rather than grading the quiz as a whole.
I am looking to setup an online test consisting of a number of sections but the output must grade each section individually.
View 3 Replies
View Related
Nov 1, 2010
I am trying to create a grading calculator which will prompt the user to enter specific data and calculate the final grade.
View 8 Replies
View Related
Mar 8, 2011
//-----10% Off Coupon-----
if (coupon=="N110"){
form.PRICE.value=-(moneyFormat(fTotal * .10)-1);
form.ID_NUM.value="N110";
form.NAME.value=" Craft Month Promo 10% Off";
location.href=location.href;
return true;
}
I want to replace the .10 with an external peice of data, so users can change the amount with having to open the script. Sorta like those early marquees' where the marquee text was inserted from a text file.
View 3 Replies
View Related
Sep 7, 2009
I hav linked external js (ext1.js) to my app.html page. Now in the ext1.js, I have a function like
[CODE] function onwindowload(){
//Access HTML element and append external js 2 (ext2.js) here
}[CODE]
//Access HTML element and append external js 2 (ext2.js) here--->I donno how to add external JS here.
Even if i add the external JS here, the JS uses document.write fn. which replaces entire page.
View 1 Replies
View Related
Nov 5, 2007
I'm working my way through Sam learning:Xhtml in 24 hours and am need a little help with the rel="external attribute.
I've tried the code written in the book a few times and I just can't get it to work! I've also tried google for an answer but again I can't see anything that I'm doing wrong! Code:
View 8 Replies
View Related
May 9, 2010
I want only one external javascript link on each of my pages. However, I'll be using Clicky and other programs where it's own external javascript is needed. Can I put an external javascript in another external javascript?
View 3 Replies
View Related
Jul 23, 2005
very new to this (javascript and the likes) so this might range in the dumb
cataegory. when i am saving my external javascripts on the same server as
all my HTML and Perl, etc scripts, what is the proper permissions to set the
JS files at? i.e as in Perl scripts should be 755..
View 6 Replies
View Related
Feb 9, 2007
I have this table cell that is 150 pixels wide. In it I desire to call an
external javascript file to print on the screen, in this cell, a menu and to
jump to a page when the corresponding button is pressed. I am trying to have
all my button layout and linking happen in the javascript. I am wanting to
do this in javascript so I can easily add or delete page links by just
updating the javascript page instead of having to re-compile a java program
or change a bunch of html pages. Is this possible or am I just dreaming?
View 5 Replies
View Related
Jul 20, 2005
I have a small script (it prints the date in the UK fashion ) that i
want to include on several but not all the pages on my web site.
it seems illogical to type all the code on every page, I understand I
can put the code in a file lets call it do_date.js and have it used by
the pages it is needed on, i just don't seem to be able to get it to
work.
View 6 Replies
View Related
Feb 14, 2009
I'm working on a web app that, after reading an user submitted url, return the colors of bg and fg for any element of the page.Actually I can view all the html code of the page in a specific div (XMLHttpRequest responsetext and innerHTML) but...with responseText I can't access dom, and... I can't use responseXML due to the page is in HTML format...
View 10 Replies
View Related
Feb 28, 2009
Here are the scripts I am trying to call to the HTML page......The CSS works fine no problem.....I have been working on this for a while, I am no expert but, have been looking at this for so long and can't figure out what the problem isHere is the web page:
-->
<title>French Phrases Week 5</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
[code]....
View 5 Replies
View Related
Oct 17, 2010
I have a PHP page with a number of images displayed thumbnail size. I want the image source of a clicked thumbnail to be the image source of a larger image in an image field. Javascript is here:
<script type="text/javascript">
function getValue(VarSrc)
{
[code]....
View 7 Replies
View Related
Nov 4, 2011
I'm having a bit of trouble understanding something that seems relatively simple. When I make changes to CSS in JavaScript using '.style' I'm changing the attribute values of inline CSS. Can I use JavaScript to change the attribute values of rules in an external CSS file? I have no CSS in my html and would like to know if I can grab the values of attributes in an external CSS file using JavaScript.
View 2 Replies
View Related
Jul 20, 2006
How do you link in external js file from a current js file? i went to do it with <script> tags and remembered i wasn't in html.
View 8 Replies
View Related
Mar 20, 2009
I uploaded a javascript called 'bmi.js' to a external server, and now I want to use it inside a form.
I have put both the javascript tag (line #1) and the form below.
How do I glue together both things to get a result in the form window BodyMassIndex?
<script type="text/javascript" src="http://javascripthost.com/s1/bin/bmi.js"></script>
<form name="form" id="form">
<input type="Text" name="weight" size="4"> Weight (in Kilos)
[Code]....
View 1 Replies
View Related
Oct 22, 2009
I have a webpage where I would like to load an external FLV (video)The plan is to have a DIV that sits above the webpage (top/left) that plays until the end, and then it fades out.I have managed to do the FLV and the CSS but not the coding .
Code:
#video {
position: fixed;
width: 640px;[code].....
View 4 Replies
View Related
Apr 15, 2004
Is it possible to run an external program with a simple click in IE?
Actually i need to launch an editor with parameter, like
uedit32.exe "C:var est_devXML_HTMLSax-2.1.2XML_HTMLSax.php"
I guess some active-x stuff is required....
P.S. *.bat trick won't do as the file parameter is dynamic
View 5 Replies
View Related
May 9, 2007
I have a php pages where i want to put the js script as externaly.
i have this code but not working.
If i put the code directly in the head area then works but externaly linking is not working.
Code:
<head><title>» School Registration From</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT language="JavaScript" src="script.js" type="text/javascript"></SCRIPT>
<script language="javascript" src="script.js"></script>
<link rel="stylesheet" href="styles/style.css" type="text/css">
</head>
View 2 Replies
View Related
Dec 23, 2007
I have this in the html source
<SCRIPT language="JavaScript" src="images/header.js" type="text/javascript"></SCRIPT>
I have put it below the ,head> part and in it, no difference.
it is the same external js format, I use for another site.
no error messages , just nada on IE or FF.
I have tried it this way
document.write('<body leftmargin="0" topmargin="0" bgcolor="#ffffff" marginheight="0" marginwidth="0" text="#000000">)'
document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%">);
document.write('<tbody><tr> '
......... blah blah);
document.write('<body leftmargin="0" topmargin="0" bgcolor="#ffffff" marginheight="0" marginwidth="0" text="#000000">'
+'<table border="0" cellpadding="0" cellspacing="0" width="100%">'
+'<tbody><tr> '
.......
View 5 Replies
View Related
Mar 28, 2011
I try to get a value from anotherweb-page but i always encounter an exception not allowed by Access-Control-Allow-Origin.
This is my code-snip
Code:
if (window.XMLHttpRequest){// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
[code]....
View 2 Replies
View Related