I'm looking for the pros/cons of pulling jQuery & other JS libraries from Google API's cloud as opposed to downloading files and deploying directly.
What say you?
My decision
The likelihood of the lib already cached on the users system is the overriding factor for me, so I'm going with a permalink to googleapis.com (e.g. ajax.googl...
Hello everyone,
I have jQuery ajax requesting a page that returns html with <script> tags inside that html, I have the dataType option set to "html" so that I get the JS inside the <script> tags executed, this works fine but the problem that it takes the browser from 2-3 seconds to evaluate the returned JS after the ajax response, why i...
The problem: I have a jQuery heavy page that has a built in admin interface. The admin functions only trigger when an admin variable is set. These functions require a second library to work properly and the second file is only included if the user is an admin when the page is first created. The functions will never trigger for normal use...
I'm trying to learn jQuery, but it's coming slowly as I really don't know any JavaScript.
My site is in VB.NET and I'm putting jQuery code on both my actual .ascx UserControl and in a separate file (something like myscripts.js). This is because I'm using webforms as I still don't know MVC well enough to implement it, so I have to get t...
I have the following but it's not working, I read somewhere on the stackoverflow that it works like this but I can't seem to get it to work.. it errors... am I doing something wrong?
If I do pass data like this - it works -- so I know my service is working
//THIS WORKS
data: "{one : 'test',two: 'test2' }"
// BUT SETTING UP OBJECT do...
I call an image using the displayMainImage.php link below and that works fine, it pulls the image name from a mysql database. I am now trying to connect an image map to the image, that part isn't working. Is this possible and if so how. The below code is in javascript running on a php site.
<?php echo '
<script language="javascript"...
I'm embarking on a project where accessibility to WCAG 2.0 and the ability to use the web application in the JAWS screenreader are key requirements.
I'm looking for insights as to how JAWS treats Javascript, is it a complete no go or is JAWS smart enough to cope!?
...
As much as I love jQuery, it is not always possible to use open source libraries (for reasons having nothing to do with technology). How best to achieve BlockUI functionality using raw javascript? I am really only interested in making it obvious to the user that the browser is busy, and preventing the user from making any more selection...
I have been making webpages for about 5 years now. I'm a C# programmer but I do know HTML, JavaScript, and CSS by nature and all my websites seem to look like they just walked out of the year 1995's internet. Is there quick reference to a set of do's and don't in web design?
Note: Even though my websites don't look great, at least they...
jQuery and similar libraries provide a number of useful APIs for DOM traversal and manipulation. Where your site as high number of repeat visitors, their use is easily justified as caching will offset any bandwidth cost to the end user.
In other cases visitors to the site might always be unique and thus the bandwidth penalty for these l...
I am using this code on a 'down' button to scroll text in an overflowed div.
var textHeight = text.outerHeight();
var pageDown = $('#page-down');
var pageUp = $('#page-up');
pageDown.bind('click', function() {
pageUp.fadeIn(500);
text.animate({ scrollTop: '+=' + textHeight + 'px'}, 50...
If I have user interactions in my Javascript layer, can I have Javascript actions trigger Rails controller actions and pass data from Javascript to those Rails methods?
...
Lately, I have been doing this in an effort to speed up performance (and sometimes it helps with maintainability)
var objectToReference = $('div .complicated #selector ul:last');
So what does objectToReference really hold? Sometimes things have bitten me, so I've gone back to using the full selector and it has worked.
So does the var...
I am looking at a jQuery screencast (jQuery for Absolute Beginners: Day 8). It has this code:
<script type="text/javascript">
$(function() {
$('.wrap').hover(function() {
$(this).children('.front').stop().animate({ "top" : '300px'}, 900);
}, function() {
$(this).children('.front').stop().a...
What is the correct way to reference Javascript in ASP.NET MVC? Using something like ../../Scripts/Myscript.js seems to work fine for routes that are the traditional {controller}/{action}/{id}, but are more fragile for anything more or less complex than that. Of greater concern is that the rational absolute reference (/Scripts/Myscript.j...
Hello,
I have written a jQuery plugin, but I want it to check if jQuery has been loaded, if not then load it, as well as a couple of other javascript files and also check if CSS file has been loaded, if not then load it.
Am wondering how to go about it?
thank you very much for your time.
...
Hi there,
I have a web service with some methods, they technically don't do much on the client.. i am calling it by jquery/ajax
What is the recommended return type, i would normally return JSON ... but in the case that it doens't return anything .. do i return a boolean? i.e. true = succesful ... and false = error ??
Any ideas?
...
Whenever I load a blog post onto the page with Ajax, I set the page <title> to "My Blog - BLOGPOST_TITLE".
Of course "My Blog - " appears in my application layout as well.
The question is, how do I tell my Javascript about the string "My Blog - " without duplicating it in my code?
...
Hi friends
i develop a website . in that i need to customize for localization . i keep the different country flag images . when i click images the webpage is changed to that relevent country language.i tried google language translater tool , But it is not efficient Please guide me to do that . Thanks in advance...
...
Is there a simple way to get the current URL from an iframe?
The viewer would going through multiple sites.
I'm guessing I would be using something in javascript.
...