my js files are included through header. i dont want to have some .js files included in certain pages, while that particular page is loading. is it is possible.??? help me please.....
My jquery script reference are :
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js" type="text/javascript"></script>
I'm using Chrome Version 23.0.1271.64 m
- And I'm getting an error on line 338
})( jQuery ); //-- line…
Hello, we're facing a problem now. We have a pretty big page with a loooong inline script, which does all the work. We now want to obfuscate it and use it as a separate .js file. But the problem is that we have paths which are generated by Url helper (Url.Content()). So what is the best way to separate js file from the page and not using hard-coded…
Hello,
How can I share html/js widget? Javascript, iframe or what way is good?
Now I have html page, css file and js file. I want to share this widget with people so they can attach it to their blogs, websites etc.
Creating a cache file with writeBuffer() requires that webroot/js be world writable and allows a browser to cache generated script resources for any page.
how to make webroot/js be writable and allows a browser .....
when i use rspec with capybara to test my rails js page , I got the following error:
"Selenium::WebDriver::Error::WebDriverError: Could not find Firefox binary (os=linux). "
Actually my rails script are all written on the linux server, where there is on brower installed, and any desktop software is not supported on the server (since no X11…
For a node.js project I'm doing, I have a tree like this.
+-- public
¦ +-- components
¦ +-- css
¦ +-- img
+-- routes
+-- views
Essentially, I have the root to be set to public. I want all requests destined to
/components/
/css/
/img/
To check to see if their appropriate destinations exist on disk.…
I am experiencing some confusion with jquery.validate.js
First of all, what is MicrosoftMvcJqueryValidation.js. It is referenced in snippets on the web but appears to have dissapeared from the RTM MVC2 and is now in futures. Do I need it?
The reason I'm asking is that I'm trying to use the validator with MVC and I can't get it to work.…
i use mimic.js regarding a project that i m developing..
the issue that i face, is if there is a fault response from the webservice,
mimic, doesn't handle it, and the browser remains "awaiting" for a response, that has actually been back, but hasn't been handled by mimic..
to be more specific, one typical fault response is the…
(This is not a question per se, I'm documenting a solution I found using Ext JS 3.1.0. But, feel free to answer if you know of a better solution!)
The Column config for an Ext JS Grid object does not have a native way to allow word-wrapped text, but there is a css property to override the inline CSS of the TD elements created…
Im working with a shopping cart plugin and that uses a basic form on the product page to submit values like price, product name, etc.. The problem is that the plugin uses a standard submit button to send the values and I would like to replace said button with a prettier custom jquery rollover. In order to make this happen I…
Hi,
I'm building a new app with 3.0.0.beta3. I simply try to render a js.erb template to an Ajax request for the following action (in publications_controller.rb):
def get_pubmed_data
entry = Bio::PubMed.query(params[:pmid])# searches PubMed and get entry
@publication = Bio::MEDLINE.new(entry) # creates Bio::MEDLINE…
I'd be interested to hear how people handle conditional markup, specifically in their masterpages between release and debug builds.
The particular scenario this is applicable to is handling concatenated js and css files. I'm currently using the .Net port of YUI compress to produce a single site.css and site.js from a large…
Hi,
I need some advice.
I have developed some asp.net mvc web pages.
Each page has a master and some ascx controls (between 2 - 6) embedded into it a js and css file.
Up to now every thing was fine.
In order to improve modularity, flexibility and testability the ascx's are now expected to be able to work as stand alone…
I am currently developing a Ext JS application with many views/controlers/...
I am wondering myself what the best practice is for loading the JS controllers/views/and so on...
currently i have my application defined like this:
// enable javascript cache for debugging, otherwise Chrome breakpoints are lost…
The images are being aligned horizontally correctly but they are all spaced out vertically.. Take a look here http://brstudios.co.uk/testing to see what I mean properly..
My mark up is as followed (simplified):
<html>
<head>
<script type="text/javascript"…
This is a general question on how to go about building a project I have in mind, and the best way to set off on the right foot. I am fairly new to JS, please be gentle.
I want to use isotope.js (or a similar script) to display a page with multiple items (about 30…
I've been looking into local storage options and plugins like Persist.js, sessvars.js, and even sisyphus.js - but I am unsure if any are the best fit (though I'm fairly certain I need to use one).
Page one is a form with input fields for data like names, phones,…
Note: This question is also cross-posted in Q.js mailing list over here.
i had a situation with multiple asynchronous operations and the answer I accepted pointed out that using Promises using a library such as q.js would be more beneficial.
I am convinced to…
I believe the port 80 on my remote instance is blocked, and I am trying to run a node.js app using port 80. I have experimented with ports 3000 and 3002, and both ports are working fine, but I get an error when running on port 80. I suspect port 80 is blocked…
Okay guys, I'm super confused. I thought node.js was a sever side framwork, basically the js version of Ruby's Rails or PHP's Zend. However, I'm having some difficulty with turbolinks, and it seems to be the way to fix it is through installing node.js
I…
Node.js : enfin une intégration native et complète sous Windows
Le framework événementiel en JavaScript arrive sur le Cloud d'Azure
Mise à jour du 9 novembre 2011 par Idelways
Microsoft a manifesté en juin dernier son soutien au projet Node.js, le…
Amazon sort AWS SDK pour Node.js
un kit de développement open source qui facilite l'accès à ses solutions Cloud aux développeurs Node.js
Voila une nouvelle qui va certainement ravir les développeurs JavaScript utilisant Node.js.
La team AWS (Amazon…
I am interested to work with the nginx_http_push_module. It says something about using comet, and I see some code example of ruby.
I want to know if this is just used as an example or is this the only way to have it to work.
I want to use this…
I'm using supervisor to start my node.js application on a micro EC2 instance. However, the app only stays running for some time until it eventually shuts down. Not exactly sure how long the app stays running but I'm guessing for about a few hours…