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.....
Im building an automatic refreshing comment section for my website using jQuery .load. So I am using a javascript 'setTimeout' timer to check for new comments.
But after doing some stuff like changing comment pages or deleting (all using ajax), a few old timers keep running, even though I used clearTimeout before loading new ajax content.
Is there some way to clear ALL javascript timers when I load new ajax content?
I am working with WPF TreeView control. I am creating a hierarchical data structure and assigning it to ItemsSource and it will generate TreeviewItems automatically. By default I use IsExpanded of TreeViewItem to true. But in a particular case, I want to set IsExpanded property to false. So that treeview loading doesn't take time to generate all items. How can I set that in code since I don't have reference to TreeViewItem's instance at that time?
OK, i have been doing some work modding a pre-compiled ASP.NET application (VB codebehind) but i have come across something i have never seen before.
When ever theres an error on the loading of a page, the page outputs nothing (no error message, no error message, nothing at all)
firefox displays this error:
XML Parsing Error: no element found
Location: http://site.local/Checkout.aspx
Line Number 1, Column 1:
Because there is no html output.
Is there some sort of setting that im missing that makes IIS/ASP.NET function like this?
Currently I'm using file_get_contents() to submit GET data to an array of sites, but upon execution of the page I get this error:
Fatal error: Maximum execution time of 30 seconds exceeded
All I really want the script to do is start loading the webpage, and then leave. Each webpage may take up to 5 minutes to load fully, and I don't need it to load fully.
Here is what I currently have:
foreach($sites as $s) //Create one line to read from a wide array
{
file_get_contents($s['url']); // Send to the shells
}
Python's SimpleHTTPServer is a great way of serve the contents of the current directory from the command line:
python -m SimpleHTTPServer
However, as far as web servers go, it's very slooooow...
It behaves as though it's single threaded, and occasionally causes timeout errors when loading JavaScript AMD modules using RequireJS. It can take five to ten seconds to load a simple page with no images.
What's a faster alternative that is just as convenient?
Hi,
I'm trying to load bean runtime configuration.
@Stateless
public class MyBean implements MyLocal{
@Resource String runtimeSetting1="default_value";
//....
}
I cannot find out how to create custom resource on app server side (Glassfish) - I have no idea what I should enter in "Factory Class" field.
Maybe there is a better way of loading configuration...
Thanks.
I'm experimenting with application cache based on this example:
http://html5demos.com/html5demo.manifest
This example works fine in ff, but when I create analogous site (almost identical) I get only status "UNCACHED (numeric value 0) -- The ApplicationCache object's cache host is not associated with an application cache at this time."
I work on xampp and I've set correct mime-type. When the page is loading ff "is asking to store data on your computer for offline use" and when I show Tools - Options - Advanced - Network - Offline data there is localhost but with 0B size.
I use Index.cshtml and Index.mobile.cshtml. My Index.cshtml is a mobile app landing page containing an iframe to live demo the mobile web app. Index.mobile.cshtml is the mobile web app itself.
The problem is, the iframe keeps loading the desktop version itself. As far as I know, I cannot configure the user agent of the iframe to a mobile type. It should be solvable with some routing but I couldn't figure out how!?
OK so, let's say I have a Java applet that takes a while to load (~5 secs). It's getting the mysql-connector.jar and it's loading. Well.. instead of the gray box with the coffee logo... can I make it have a simple progress bar with the percent?
Thanks.
Hi,
I am loading data from svg file on the webview in iPhone , but the problem is that images are getting smaller than the original size , when they are displayed on webView.
I am not getting reason that why images are shrinked???
Thanks
Meet B.
Is there a good way to display the contents of a file as binary?
I am creating a program that needs to save and load a 2D arrays from a files.
When loading a saved file the result appears different.
I need to be able to view the contents of the saved file in plain binary to tell if my problem in in my save or load function.
Is there a program like octal dump but is binary dump?
Thanks.
I'm making a very simple content-management system in Javascript. It uses plugins which are individual .js files which live in a "modules" folder. Currently I'm loading them with JQuery's getScript() function, but I have to manually define the list of available modules.
Is there any way to dynamically load the list of Javascript files so that the user can install additional modules by simply dropping them into the "modules" folder?
How do you determine which file is imported in Python with an "import" statement?
I am want to determine that I am loading the correct version of a locally modified .py file. Basically the equivalent of "which" in a POSIX environment.
Page A has a meta refresh to redirect to another page, C, after a certain amount of time (time T).
From page A a link is clicked that takes a long time to load, longer than time T, and would eventually load another page; B.
Will the meta refresh on page A cause the page to be re-directed to C, or will the processing of the link override the meta refresh, eventually loading page B?
I would like load a different than English language locale for jqueryui, while loading jqueryui form Google AJAX Libraries API CDN?
Is there a way to pass I18n parameter into load function?
google.load("jqueryui", "1.7.2")
I have also tried as per jQueryUI documentation on date picker internationalization to pass:
$(selector).datepicker($.datepicker.regional['pl']);
... but it did not do the trick :(
like
img { background-color:color: color matched to the theme}
or
img { background-image:url (a very very tiny gif image with the text "image loading") }
I'm thinking in the benefit of this when user access site on slow connection then background color will give clue about something is there which is diffrent than text content..
when loading up a solution in VS2008 I get:
An error was encountered while
opening associated documents the last
time this solution was loaded.
Document load is being skipped during
this solution load in order to avoid
that error.
How can I find which document is causing the problem?
Is it possible to read the GUID from the Assembly without actually loading it in the current App Domain.
Normally Assembly.Load loads the DLL into the app domain. I just want to read the value.
The description of the GUID is
'The following GUID is for the ID of the typelib
' if this project is exposed to COM
<Assembly: Guid("DEDDE61CD-928E-4ACD-8C25-3B8577284819")>
I would like to Integrate Google Analytics Tracking into my IOS APP.
I have integrated Google Analytics Library and Add It To my Application.
cf. https://developers.google.com/analytics/devguides/collection/ios/v2/
into my code to tracking my view contact
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
self.trackPageView = @"Contact Screen";
//
}
A have this error "Property 'TrackPageView' not found on object of the type 'ContactViewController'" Please help me
I've tried implementing various methods from around the internet, all seem to be providing the same solution. But it just won't work and I'm unsure why, it creates the file, however, it's blank and if I try loading that file, it has an error.
Main.java contains the code to save and load the file: 190-224.
Rooms.java contains the object.
Code
Any help is greatly appreciated, I've been trying for almost a week now! Thanks in advanced!
A wild card SSL allows any domain prefix:
*.mydomain.com accepts
ssl.mydomain.com
secure.mydomain.com
anything.mydomain.com
Given that MVC can route the request to the correct view based on the URL, is it as simple as loading the wildcard SSL cert on an IP, then use DNS to map the various names to the IP?
I've been asked to protect a Magento module through obfuscation. I never used PHP obfuscation packages but I know how they work and I forsee some issues in obfuscating a module that is very string and xml dependant:
/etc/config.xml registers harcoded class names and paths
auto-loading is heavily used
I cannot imagine how to automatically obfuscate a class name that will be called later by Mage::getModel('my/module').
Any recommendations?
is there a way to make fcdraggable live so it works with ajax loaded external events? right now i'm loading the draggable function after each ajax call, but i'm wondering if there is a more elegant solution using live()
Hi There,
I am currently trying to full appreciate how and when to use hash tags in urls when building an ajax powered website. There seems to be a distinct lack of reading material on the web regarding this technique and as such I don't feel like I've got a good handle on it.
Could someone explain in the simplest terms how the hash tag can be used in urls to enable things like loading pages via ajax.
Thanks