I'm writing some JavaScript with three classes, one for Roofs, one for Garages, and one for Houses. The house class takes two arguments to its constructor, a Roof and a Garage. When I run this code I get:
can not construct object [Break on this error] throw new Error('can not construct object');\n
in Firebug even though the objects are...
I'm using jHtmlArea (http://jhtmlarea.codeplex.com/) WYSIWYG editor in one of my current projects. I have managed to integrate it in my forms in few seconds but the problem is that after submitting the form, the textareas changed to jHtmlArea editors return an empty string.
I confirmed this with:
var_dump($_POST);
Does anybody have a...
I,m making text slider using jquery (text scrols using transitions provided by easing jquery plugin). The parent DIV has some image as a background.
Everything works fine in every browser, but not in IE 6,7,8. Strange distortions occur in IE when text and the IMG's are being animated.
I learned recently that is fault of IE clear-type f...
Jquery seems to have difficulty in IE (6,7,8) loading using the load() function when there are url's with parameters (example: getdata.php?id=2444)
I am having this problem, but it seems this question is common and has never been resolved:
see
http://stackoverflow.com/questions/1174945/jquery-load-in-ie8-postget-not-working http://sta...
I need to have an input box in a div without a form and when the user enters something and hits return it runs a javascript function
there will be no submit button.
how do I do this?
Thanks in advance of your help.
Jonathan
...
I have a small project, wherein I need to develop a keypad with all the digits+backspace+decimal (all as buttons). These digits when clicked should populate a form field (say a text box). This keypad should be located next to the form field as a link.
The keypad should be preferably Javascript/AJAX. Also the keypad routine should have a...
Hello all,
I have a form called "wizard". Everytime any input element is changed, I want a Javascript function to run and calculate something. I have the following:
// update hidden field "channels" in wizard based on servers/cores
$('form#wizard select[name=servers], form#wizard select[name=cores]').change(function() {
var channels =...
I have an big JavaScript application with a lot of ajax in there (third-party script). Now I need to intercept all ajax events, i.e. when a message from server comes back with transport text or message, i want this text / message to do replacements.
problem: i tried with this, but it never reacts on any ajax event. It's from the jquery ...
I have a $.change() event, but when a submit button is pressed, the change event fires again. It is only supposed to fire once when a text is inputted into a input text box.
$('input:submit', top.document).bind('click', function (e) {
alert("submitting")
});
$('input').change(function (e) {
alert("fire");
});
...
I have a webpage with a number of div elements such as this one:
<div id='ahFyb2JpdGFpbGxlc2FuZGJveHIKCxIA'>
</div>
I would like each div element to call a javascript function when it has loaded, to fill in the div. Ideally I would have liked to do
<div id='ahFyb2JpdGFpbGxlc2FuZGJveHIKCxIA'
onload=getcontent('ahFyb2JpdGFpbGxlc2...
I haven't been able to get something like this to work:
var myWorker = new Worker("http://example.com/js/worker.js");
In my Firebug console, I get an error like this:
Failed to load script:
http://example.com/js/worker.js
(nsresult = 0x805303f4)
Every example of web worker usage I've seen loads a script from a relative path....
Hello experts,
I am trying to embed JavaScript into pdf that is created using iTextSharp and it is working absolutely fine if it is a file as shown in the code.
But when I try to embed the javascript part into a memory stream it is not working. Are there any limitations of iTextSharp??
Dim js As New StringBuilder
Dim p...
I am thinking as a challenge i should write a javascript based game. I want sound, images and input. A background to simulate a screen (like 640x480 with all my images in it) would be useful to separate the rest of the page from the 'game'. What should i look at?
Some things i would need
Framecontrol. A way to get the current time (or...
I would like to use the Web Worker facility introduced in Firefox 3.5 to enhance a Greasemonkey script I'm working on.
Is this even possible?
I've done some experimentation, but I can't get past the issue of loading a worker script from an arbitrary domain.
For example, this does not work:
var myWorker = new Worker("http://dl.getdrop...
Hello,
I'm trying to create a mashup of a set list of tweets onto a Google Map. The code is in here. My problem is I don't know how to combine the user's location using the set.location function on their tweets (knowing that it's not going to be very fine grained, it just corresponds to what the user enters in their profile) onto a Goog...
Why does this cause a syntax error for the return statement:
var FOO = (function($)
{
return
{
init: function()
{
}
}
})(jQuery);
Whereas this doesn't:
var FOO = (function($)
{
return {
init: function()
{
}
}
})(jQuery);
Why is there a difference?
...
Hello all,
I have a javascript running on a browser. Is it possible to call a function/method in user32.dll.
This is possible from C# by using pInvoke calls. How do I do the same in JavaScript?
Thanks,
Datte
...
Hai all,
I have a web application HTML-PHP monitoring to display some Status, where the Submit button to refresh the status, the process background is heavy enough, so I want if someone have just clicking the button at (for example) 12:00:00, then he/she can do/able next clicking the button at 12:01:00 (one minute just one click).
afte...
I have a CRUD maintenance screen with a custom rich text editor control (FCKEditor actually) and the program extracts the formatted text as HTML from the control for saving to the database. However, part of our standards is that leading and trailing whitespace needs to be stripped from the content before saving, so I have to remove extra...
string could be anything @username is the link in multi-line string.. we need to link the @username anywhere in the url.. just like twitter
$text = preg_replace('!(^|\W)@(([a-z0-9]+(\.?[-_a-z0-9]+)*)+)!', '\\1<a href="http://$2.'.site::$domain_only.'">@$2</a>', $text);
its my php version.. how can i convert it or use...