Hello,
I ask because I'm running an application in which I load an external script file in the HEAD section of the page, and then attempt to call a function from it in the onLoad section of the BODY tag.
external.js
function someFunction()
{
alert("Some message");
}
myPage.html
<html>
<head>
<script type="text/javascript" ...
My understanding of the different kinds of JavaScript functions are as follows:
function MyObj() {
this.propOne = true;
this.publicInstanceFunc = function() {
if (propOne)
return 'public instance function';
}
function privateFunc() {
return 'private function only visible inside this constructo...
DIV behave like an IFRAME & load url using ajax for a web application having many forms/web pages loading each form/webpages dynamically
...
Hi,
I need help adding the jquery date picker to my existing code, but not reconstructing the whole HTML file.
my code,
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Con...
I found a vector library on the Internet that even works with IE6!
http://raphaeljs.com/index.html
It's amazing.
Now my question is it better than the upcoming HTML5 <canvas>? The only reason I ask is that it could be years before Microsoft implements a <canvas> that doesn't require a plugin for it to run.
And it will be even long...
I'm trying to return the contents of any tags in a body of text. I'm currently using the following expression, but it only captures the contents of the first tag and ignores any others after that.
Here's a sample of the html:
<script type="text/javascript">
alert('1');
</script>
<div>Test</div>
<script type="text/javascript"...
Hi there, Im trying out some sample code from a dojo tutorial. I have
<button dojoType="dijit.form.Button" id="helloButton">
Test
<script type="dojo/method" event="onClick">
dojo.xhrGet({
url: 'response.txt',
load: testCallback,
error: testError
});
alert("getting thru");
</script>
</button>
When I click my but...
Hi,
what is the lightest WYSIWYG HTML/Javascript editor. I don't really need it to have many functions, but just the basic such as changing fonts etc.
TinyMCE seems a bit slow loading for me :(
...
This way I could have a function that says whatever_way_you_do_this = something. Is this possible? Basically I could tell a function which variable I want to set by giving it a string that holds the name of the variable.
Thanks
...
Recently, I've heard a number of different people lamenting the speed differences in IE versus pretty well every other browser when it comes to using JavaScript to manipulate the DOM.
I thought I'd put together a tiny little script to see what the differences really were, but I think I'm looking at the wrong problem as IE performs as w...
I am debugging a Safari-specific javascript issue, and I can't get console.log to output to the error log. This is a documented feature of Safari (I'm using version 4.0.3). These statements in my code just seem to be ignored, however. Any ideas why? I'm not finding leads through Google.
...
i have seen a number of javascript examples to throw on top of an html table to make them sortable. The issue is that everyone i have seen and tried are insanely slow.
any suggestions or recommendation for a good performance solution.
...
I am stumped, I am tossing out my code and I need help with a cross browser ajax submit.
Can anyone PLEASE give me a simple working ajax submit script for updating mysql? The one I have is all bad.
Works in FF and Safarai (iphone), but in IE7, it has caching problem and in IE8 it doesn't even submit.
...
Edit: derp, using pageX/Y instead of clientX/Y -- apparently scrollBy expects input with that offset rather than the other. Jaggy movement gone.
I am getting jagged movement when doing small scroll increments using the following bindings. Can anyone point me in the right direction for how to smooth this out? FYI, its intermittent. It se...
I'm looking for something very, very close in functionality to the lightbox on
Apple's MacBook Pro website (the lightbox will open automatically).
I really need the thumbnail slider and the text-area. The layout can be different, as I have the skills to remodel it if need be, I just don't have the time to build it from scratch.
No pre...
I have a php form. After this form is submitted, if all data is valid, then it executes a python script which takes 5-10 seconds. For this wait period I would like to have a progress bar (.gif) displaying in the middle of the screen. If I could also 'fade away' the background so that the progress bar was like a top layer and the backgrou...
While my page is loading content via XHR, if the user clicks the stop button or clicks to go to another page, the XHR error() function is called. This wouldn't normally be a big deal except for the user shock of seeing lots of (red) error messages on the page.
The messages are valid - there was indeed an error retrieving the content - b...
A site I am working on displays an intermittent runtime error but only in IE7 and 8. This error will appear almost randomly (like, it may pop up on initial page load one time or it may not pop up until the nth page load). The error says it occurred at line:0 and the error is "Object required". I'm using jQuery throughout the site but di...
Hi,
I'm trying to access some custom data emitted into an SVG document by Visio 2007. I've used jquery.svg.js by Keith Wood. Unfortunately, even with the svgdom extension, I am not able to get to the shape I'm after to animate it.
Here's what the SVG looks like:
...
<g id="group4-6" transform="translate(30.7955,-30.7955)" v:mID="4" v:...
Hi,
As you know em is a relative font measurement where one em is equal to the height of the letter "M" in the default font size. An advantage in using it is because you will be able to resize the text.
But how can i get default font size of current environment (in pixels) by using JavaScript or JQuery ?
regards,
...